SilverSpoon-KD:统一多种蒸馏范式的开源PyTorch知识蒸馏工具包
SilverSpoon-KD: A General-Purpose Toolkit for Knowledge Distillation
SilverSpoon-KD 是一个开源 PyTorch 知识蒸馏工具包,用单一 API 统一不同蒸馏范式和架构关系,并提供首个通用分块(blockwise)知识蒸馏实现。该工具包在视觉、掩码语言模型和因果语言模型上验证了同构、异构与量化蒸馏的通用性,吞吐和 GPU 显存占用与现有工具包持平或更优。
arXiv:2611.22842v1 Announce Type: new Abstract: Knowledge distillation transfers deep learning representations from a teacher model to a student model, typically reducing model size or inference cost. However, knowledge distillation tooling has not kept pace with the breadth of research methods: existing toolkits typically support only a limited subset of techniques and use cases. We present SilverSpoon-KD, an open-source PyTorch toolkit that unifies different distillation paradigms and architectural relationships across workloads and applications behind a single API. Moreover, SilverSpoon-KD offers the first general-purpose blockwise knowledge distillation implementation with unique scalability features. We validate its versatility across vision, masked language model, and causal language models on tasks spanning homogeneous, heterogeneous, and quantization distillation across paradigms. We also evaluate SilverSpoon-KD by comparing its performance, including throughput and GPU memory usage, with existing toolkits. Despite extensive support for convenience, metric calculation, and tracking, we have found SilverSpoon-KD's performance to be on par with or better than existing toolkits.
来源:arXiv (AI + Vision + Imaging) · arxiv.org