关于蒸馏中学生与教师偏差的研究:不服从是否值得?
On student-teacher deviations in distillation: does it pay to disobey?
AI总结:
本文通过分析知识蒸馏中学生与教师概率偏差的精确性质,发现偏差源于置信度夸大和梯度下降隐式偏差的放大,并证明这种夸大同时带来更好的泛化,从而解释了学生超越教师的悖论。
摘要:
知识蒸馏(KD)已被广泛用于通过训练“学生”网络模仿训练有素的“教师”网络的软概率来提高其测试准确性。然而,最近的研究表明,尽管学生被训练以适应教师的概率,但学生不仅可能显著偏离教师的概率,还可能在性能上超越教师。我们的工作旨在调和这一看似矛盾的观察。具体而言,我们刻画了学生与教师偏差的精确性质,并论证了它们如何与更好的泛化同时发生。首先,通过图像和语言数据的实验,我们识别出这些概率偏差对应于学生系统性地夸大教师的置信水平。接下来,我们在一些简单设置中从理论和实证上确立了另一种形式的夸大:KD夸大了梯度下降在数据顶部特征方向上更快收敛的隐式偏差。最后,我们将这两个观察联系起来:我们证明KD的夸大偏差可以同时导致(a)置信度的夸大和(b)学生泛化能力的提升,从而为这一明显悖论提供了解决方案。我们的分析通过考虑梯度下降在KD中的作用,并在理论和实证环境中展示夸大偏差效应,使现有理论与实践更加接近。
英文摘要:
Knowledge distillation (KD) has been widely used to improve the test accuracy of a "student" network, by training it to mimic the soft probabilities of a trained "teacher" network. Yet, it has been shown in recent work that, despite being trained to fit the teacher's probabilities, the student may not only significantly deviate from the teacher probabilities, but may also outdo than the teacher in performance. Our work aims to reconcile this seemingly paradoxical observation. Specifically, we characterize the precise nature of the student-teacher deviations, and argue how they can co-occur with better generalization. First, through experiments on image and language data, we identify that these probability deviations correspond to the student systematically exaggerating the confidence levels of the teacher. Next, we theoretically and empirically establish another form of exaggeration in some simple settings: KD exaggerates the implicit bias of gradient descent in converging faster along the top eigendirections of the data. Finally, we tie these two observations together: we demonstrate that the exaggerated bias of KD can simultaneously result in both (a) the exaggeration of confidence and (b) the improved generalization of the student, thus offering a resolution to the apparent paradox. Our analysis brings existing theory and practice closer by considering the role of gradient descent in KD and by demonstrating the exaggerated bias effect in both theoretical and empirical settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。