arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.06458cs.LGcs.AI
收藏

基于模型检查点的高效知识蒸馏

Efficient Knowledge Distillation from Model Checkpoints

Tsinghua University(清华大学)

Chaofei Wang, Qisen Yang, Rui Huang, Shiji Song, Gao Huang

摘要:

知识蒸馏是在大而强的模型(教师)的指导下学习紧凑模型(学生)的有效途径。经验上,教师和学生模型的表现之间存在着很强的相关性,人们普遍认为,高绩效的教师是首选。因此,从业者倾向于使用一个训练有素的网络或他们的合奏作为老师。在本文中,我们做了一个有趣的观察,一个中间模型,即,与完全收敛模型相比,训练过程中间的检查点通常充当更好的教师,尽管前者的准确性要低得多。更令人惊讶的是,来自同一训练轨迹的几个中间模型的弱快照集合在用作教师时,可以胜过独立训练和完全收敛的模型的强集合。我们发现,这种现象可以部分解释的信息瓶颈原理:中间模型的特征表示可以有更高的互信息的输入,从而包含更多的“暗知识”的有效蒸馏。在此基础上,提出了一种基于任务相关互信息最大化的最优中间教师选择算法。实验验证了该方法的有效性和适用性。

英文摘要:

Knowledge distillation is an effective approach to learn compact models (students) with the supervision of large and strong models (teachers). As empirically there exists a strong correlation between the performance of teacher and student models, it is commonly believed that a high performing teacher is preferred. Consequently, practitioners tend to use a well trained network or an ensemble of them as the teacher. In this paper, we make an intriguing observation that an intermediate model, i.e., a checkpoint in the middle of the training procedure, often serves as a better teacher compared to the fully converged model, although the former has much lower accuracy. More surprisingly, a weak snapshot ensemble of several intermediate models from a same training trajectory can outperform a strong ensemble of independently trained and fully converged models, when they are used as teachers. We show that this phenomenon can be partially explained by the information bottleneck principle: the feature representations of intermediate models can have higher mutual information regarding the input, and thus contain more "dark knowledge" for effective distillation. We further propose an optimal intermediate teacher selection algorithm based on maximizing the total task-related mutual information. Experiments verify its effectiveness and applicability.

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

↑