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

不要盲目模仿教师:使用扰动损失进行知识蒸馏

Do Not Blindly Imitate the Teacher: Using Perturbed Loss for Knowledge Distillation

Georgia Institute of Technology(佐治亚理工学院);Google Research(谷歌研究院)

Rongzhi Zhang, Jiaming Shen, Tianqi Liu, Jialu Liu, Michael Bendersky, Marc Najork, Chao Zhang

AI总结:

针对知识蒸馏中盲目模仿教师输出分布导致性能不佳的问题,提出基于Maclaurin级数扰动前导项的PTLoss目标,隐式构建更接近真实分布的代理教师,并在五个数据集上显著提升不同规模教师的蒸馏效果。

摘要:

知识蒸馏是一种将知识从大型教师模型转移到小型学生模型的流行技术。通常,学生通过最小化其输出分布与教师输出分布之间的KL散度来学习模仿教师。在这项工作中,我们认为这种学习目标不是最优的,因为教师的输出分布与真实标签分布之间存在差异。因此,强迫学生盲目模仿不可靠的教师输出分布会导致性能较差。为此,我们提出了一种新颖的知识蒸馏目标PTLoss,首先通过Maclaurin级数表示基于KL的蒸馏损失函数,然后扰动该级数中的前导项。这种扰动损失隐式地将原始教师转换为一个分布更接近真实分布的代理教师。我们建立了这种“分布接近度”与学生模型泛化能力之间的理论联系,这使我们能够以有原则的方式选择PTLoss的扰动系数。在五个数据集上的大量实验表明,PTLoss可以显著提高不同规模教师的蒸馏效果。

英文摘要:

Knowledge distillation is a popular technique to transfer knowledge from large teacher models to a small student model. Typically, the student learns to imitate the teacher by minimizing the KL divergence of its output distribution with the teacher's output distribution. In this work, we argue that such a learning objective is sub-optimal because there exists a discrepancy between the teacher's output distribution and the ground truth label distribution. Therefore, forcing the student to blindly imitate the unreliable teacher output distribution leads to inferior performance. To this end, we propose a novel knowledge distillation objective PTLoss by first representing the vanilla KL-based distillation loss function via a Maclaurin series and then perturbing the leading-order terms in this series. This perturbed loss implicitly transforms the original teacher into a proxy teacher with a distribution closer to the ground truth distribution. We establish the theoretical connection between this "distribution closeness" and the student model generalizability, which enables us to select the PTLoss's perturbation coefficients in a principled way. Extensive experiments on five datasets demonstrate PTLoss can significantly improve the distillation effectiveness for teachers of various scales.

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

↑