arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07876cs.CVcs.AIcs.LG
收藏

小规模无数据知识蒸馏

Small Scale Data-Free Knowledge Distillation

China Telecom Cloud Technology Co., Ltd.(中国电信云技术有限公司);Tsinghua University(清华大学);Intel Labs China(英特尔中国实验室)

He Liu, Yikai Wang, Huaping Liu, Fuchun Sun, Anbang Yao

AI总结:

针对无数据知识蒸馏依赖大规模GAN合成样本、训练效率低的问题,提出SSD-KD,通过调制、优先采样、动态回放和强化学习,用小规模合成数据实现更快且性能具竞争力的蒸馏。

摘要:

无数据知识蒸馏能够在无法访问原始训练数据的情况下,利用大型教师网络学到的知识来增强较小学生网络的训练,从而规避实际应用中的隐私、安全和专有风险。在这一研究方向中,现有方法通常遵循“反演—蒸馏”范式:在预训练教师网络的引导下即时训练一个生成对抗网络,用于合成大规模样本集以进行知识蒸馏。本文重新审视这一常见的无数据知识蒸馏范式,通过“用于知识蒸馏的小规模反演数据”这一视角表明,整体训练效率仍有相当大的提升空间。基于三项经验观察——它们揭示了在数据反演和蒸馏两个过程中,如何依据合成样本的多样性和难度平衡类别分布的重要性——我们提出了 Small Scale Data-free Knowledge Distillation(SSD-KD,小规模无数据知识蒸馏)。在形式化上,SSD-KD 引入了一个用于平衡合成样本的调制函数,以及一个用于选择合适样本的优先采样函数,并借助动态回放缓冲区和强化学习策略加以实现。因此,SSD-KD 能够在极少规模的合成样本(例如比原始训练数据规模少10倍)条件下执行蒸馏训练,使整体训练效率比许多主流方法快一到两个数量级,同时保持优越或具有竞争力的模型性能;这一点已在常用的图像分类和语义分割基准上得到验证。代码可在 https://github.com/OSVAI/SSD-KD 获取。

英文摘要:

Data-free knowledge distillation is able to utilize the knowledge learned by a large teacher network to augment the training of a smaller student network without accessing the original training data, avoiding privacy, security, and proprietary risks in real applications. In this line of research, existing methods typically follow an inversion-and-distillation paradigm in which a generative adversarial network on-the-fly trained with the guidance of the pre-trained teacher network is used to synthesize a large-scale sample set for knowledge distillation. In this paper, we reexamine this common data-free knowledge distillation paradigm, showing that there is considerable room to improve the overall training efficiency through a lens of ``small-scale inverted data for knowledge distillation". In light of three empirical observations indicating the importance of how to balance class distributions in terms of synthetic sample diversity and difficulty during both data inversion and distillation processes, we propose Small Scale Data-free Knowledge Distillation SSD-KD. In formulation, SSD-KD introduces a modulating function to balance synthetic samples and a priority sampling function to select proper samples, facilitated by a dynamic replay buffer and a reinforcement learning strategy. As a result, SSD-KD can perform distillation training conditioned on an extremely small scale of synthetic samples (e.g., 10X less than the original training data scale), making the overall training efficiency one or two orders of magnitude faster than many mainstream methods while retaining superior or competitive model performance, as demonstrated on popular image classification and semantic segmentation benchmarks. The code is available at https://github.com/OSVAI/SSD-KD.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑