蒸馏$\approx$提前停止?过参数化神经网络利用各向异性信息获取暗知识
Distillation $\approx$ Early Stopping? Harvesting Dark Knowledge Utilizing Anisotropic Information Retrieval For Overparameterized Neural Network
摘要:
蒸馏是一种将知识从一个模型转移到另一个模型的方法,通常可以在相同的容量下实现更高的准确性。在本文中,我们的目的是提供一个理论上的理解,主要是什么有助于蒸馏。我们的答案是“早停”。假设教师网络是过度参数化的,我们认为教师网络本质上是通过提前停止从数据中获取暗知识。这可以通过一个新的概念来证明,{各向异性信息检索(AIR)},这意味着神经网络倾向于首先拟合信息信息,然后拟合非信息信息(包括噪声)。受近年来对过参数化神经网络理论分析的启发,我们可以用神经切核(NTK)的特征空间来刻画AIR。空气促进了对蒸馏的新理解。有了这个,我们进一步利用蒸馏来细化噪声标签。我们提出了一种自蒸馏算法,在前一个训练时期从网络中顺序提取知识,以避免记住错误的标签。我们还证明,无论是理论上和经验上,自我蒸馏可以受益于不仅仅是早期停止。理论上,我们证明了该算法收敛于随机初始化的超参数化神经网络在$\ell_2$距离方面的真实标签,而之前的结果是在$0$ - $1$损失方面的收敛.理论结果保证了学习后的神经网络在训练数据上有一定的余量,从而具有更好的泛化能力。经验上,我们实现了更好的测试精度,并完全避免了早期停止,这使得算法更用户友好。
英文摘要:
Distillation is a method to transfer knowledge from one model to another and often achieves higher accuracy with the same capacity. In this paper, we aim to provide a theoretical understanding on what mainly helps with the distillation. Our answer is "early stopping". Assuming that the teacher network is overparameterized, we argue that the teacher network is essentially harvesting dark knowledge from the data via early stopping. This can be justified by a new concept, {Anisotropic Information Retrieval (AIR)}, which means that the neural network tends to fit the informative information first and the non-informative information (including noise) later. Motivated by the recent development on theoretically analyzing overparameterized neural networks, we can characterize AIR by the eigenspace of the Neural Tangent Kernel(NTK). AIR facilities a new understanding of distillation. With that, we further utilize distillation to refine noisy labels. We propose a self-distillation algorithm to sequentially distill knowledge from the network in the previous training epoch to avoid memorizing the wrong labels. We also demonstrate, both theoretically and empirically, that self-distillation can benefit from more than just early stopping. Theoretically, we prove convergence of the proposed algorithm to the ground truth labels for randomly initialized overparameterized neural networks in terms of $\ell_2$ distance, while the previous result was on convergence in $0$-$1$ loss. The theoretical result ensures the learned neural network enjoy a margin on the training data which leads to better generalization. Empirically, we achieve better testing accuracy and entirely avoid early stopping which makes the algorithm more user-friendly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。