arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.17581cs.LGmath.OC
收藏

知识蒸馏执行部分方差缩减

Knowledge Distillation Performs Partial Variance Reduction

Institute of Science and Technology Austria (ISTA)(奥地利科学技术研究所(ISTA))

Mher Safaryan, Alexandra Peste, Dan Alistarh

AI总结:

本文从优化视角揭示KD机制,证明其在线性与深度线性模型中是一种部分随机方差缩减,并给出强凸与非凸损失下的收敛分析及实验验证。

摘要:

知识蒸馏是一种流行方法,通过利用更强大的“教师”模型来提升表示能力较低的“学生”模型的性能。尽管知识蒸馏(KD)看似简单且被广泛使用,但其背后的潜在机制仍未被完全理解。在本工作中,我们从优化角度审视该方法,从而为其内部运作提供新的阐释。我们表明,在线性和深度线性模型的情境中,KD可以被解释为一种新型随机方差缩减机制。我们对由此产生的动力学进行了详细的收敛分析;这些结果在强凸和非凸损失的标准假设下均成立,表明KD充当一种部分方差缩减形式:它可以降低随机梯度噪声,但可能无法将其完全消除,具体取决于“教师”模型的性质。我们的分析进一步强调,需要谨慎参数化KD,尤其是在蒸馏损失的加权方面;该分析也在线性模型和深度神经网络上通过实验得到验证。

英文摘要:

Knowledge distillation is a popular approach for enhancing the performance of ''student'' models, with lower representational capacity, by taking advantage of more powerful ''teacher'' models. Despite its apparent simplicity and widespread use, the underlying mechanics behind knowledge distillation (KD) are still not fully understood. In this work, we shed new light on the inner workings of this method, by examining it from an optimization perspective. We show that, in the context of linear and deep linear models, KD can be interpreted as a novel type of stochastic variance reduction mechanism. We provide a detailed convergence analysis of the resulting dynamics, which hold under standard assumptions for both strongly-convex and non-convex losses, showing that KD acts as a form of partial variance reduction, which can reduce the stochastic gradient noise, but may not eliminate it completely, depending on the properties of the ''teacher'' model. Our analysis puts further emphasis on the need for careful parametrization of KD, in particular w.r.t. the weighting of the distillation loss, and is validated empirically on both linear models and deep neural networks.

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

↑