arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.13093cs.LGstat.ML
收藏

对知识蒸馏的理解

Towards Understanding Knowledge Distillation

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

Mary Phuong, Christoph H. Lampert

摘要:

知识蒸馏,即,根据另一分类器的输出训练一个分类器,这是一种经验上非常成功的分类器之间知识转移技术。甚至已经观察到,如果使用另一个分类器的输出作为软标签进行训练,而不是从地面真实数据进行训练,则分类器学习得更快,更可靠。然而,到目前为止,还没有令人满意的理论解释这一现象。在这项工作中,我们通过研究线性和深度线性分类器的特殊情况,首次深入了解了蒸馏的工作机制。具体来说,我们证明了一个泛化界,建立蒸馏训练的线性分类器的预期风险的快速收敛。从边界及其证明中我们提取出决定蒸馏成功的三个关键因素:* 数据几何--数据分布的几何性质,特别是类分离,对风险的收敛速度有直接影响; * 优化偏差--梯度下降优化找到一个非常有利的蒸馏目标的最小值;* 强单调性-当训练集的大小增加时,学生分类器的预期风险总是降低。

英文摘要:

Knowledge distillation, i.e., one classifier being trained on the outputs of another classifier, is an empirically very successful technique for knowledge transfer between classifiers. It has even been observed that classifiers learn much faster and more reliably if trained with the outputs of another classifier as soft labels, instead of from ground truth data. So far, however, there is no satisfactory theoretical explanation of this phenomenon. In this work, we provide the first insights into the working mechanisms of distillation by studying the special case of linear and deep linear classifiers. Specifically, we prove a generalization bound that establishes fast convergence of the expected risk of a distillation-trained linear classifier. From the bound and its proof we extract three key factors that determine the success of distillation: * data geometry -- geometric properties of the data distribution, in particular class separation, has a direct influence on the convergence speed of the risk; * optimization bias -- gradient descent optimization finds a very favorable minimum of the distillation objective; and * strong monotonicity -- the expected risk of the student classifier always decreases when the size of the training set grows.

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

↑