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

基于变换教师匹配的知识蒸馏

Knowledge Distillation Based on Transformed Teacher Matching

University of Waterloo(滑铁卢大学)

Kaixiang Zheng, En-Hui Yang

AI总结:

该研究提出变换教师匹配(TTM)知识蒸馏方法,取消学生侧温度缩放,利用目标函数中固有的Rényi熵正则化提升学生模型泛化性,进一步加入样本自适应权重的WTTM实现了最优准确率。

摘要:

作为衔接logit匹配与概率分布匹配的技术,温度缩放(temperature scaling)在知识蒸馏(Knowledge Distillation, KD)中发挥着关键作用。传统KD方法会对教师模型和学生模型的logit均施加温度缩放。受近期相关研究启发,本文取消了学生侧的温度缩放,并系统研究了由此产生的KD变体,命名为transformed teacher matching(TTM,变换教师匹配)。通过将温度缩放重新解读为概率分布的幂变换,我们证明与原始KD相比,TTM的目标函数中固有一个Rényi熵项,该项可作为额外的正则化项。大量实验结果表明,得益于这种固有的正则化作用,TTM训练出的学生模型比原始KD训练的模型具有更优的泛化能力。为进一步提升学生模型匹配教师模型幂变换后概率分布的能力,我们在TTM中引入了样本自适应加权系数,提出了一种名为weighted TTM(WTTM,加权变换教师匹配)的新型蒸馏方法。综合实验结果显示,尽管WTTM结构简单,但效果显著,性能优于TTM,且取得了当前最优(state-of-the-art)的准确率表现。我们的源代码可在https://github.com/zkxufo/TTM 获取。

英文摘要:

As a technique to bridge logit matching and probability distribution matching, temperature scaling plays a pivotal role in knowledge distillation (KD). Conventionally, temperature scaling is applied to both teacher's logits and student's logits in KD. Motivated by some recent works, in this paper, we drop instead temperature scaling on the student side, and systematically study the resulting variant of KD, dubbed transformed teacher matching (TTM). By reinterpreting temperature scaling as a power transform of probability distribution, we show that in comparison with the original KD, TTM has an inherent Rényi entropy term in its objective function, which serves as an extra regularization term. Extensive experiment results demonstrate that thanks to this inherent regularization, TTM leads to trained students with better generalization than the original KD. To further enhance student's capability to match teacher's power transformed probability distribution, we introduce a sample-adaptive weighting coefficient into TTM, yielding a novel distillation approach dubbed weighted TTM (WTTM). It is shown, by comprehensive experiments, that although WTTM is simple, it is effective, improves upon TTM, and achieves state-of-the-art accuracy performance. Our source code is available at https://github.com/zkxufo/TTM.

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

↑