arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.01484cs.LG
收藏

基于贝叶斯教师的基于随机梯度下降的知识蒸馏:理论与指导方针

SGD-Based Knowledge Distillation with Bayesian Teachers: Theory and Guidelines

School of ECE, Ben-Gurion University(本·古里安大学电子工程学院);Faculty of Math and CS, Weizmann Institute of Science(魏茨曼科学研究院数学与计算机学院)

Itai Morad, Nir Shlezinger, Yonina C. Eldar

AI总结:

研究从贝叶斯视角用随机梯度下降训练学生的知识蒸馏收敛行为,分两种情况分析,发现从贝叶斯类概率学习有优势,提倡用贝叶斯深度学习模型作教师,实验表明这样蒸馏出的学生准确率更高、收敛更稳定。

摘要:

知识蒸馏(KD)是一种将知识从大型教师网络转移到通常较小的学生模型的核心范式,通常利用软概率输出。虽然KD在众多应用中取得了强大的实证成功,但其理论基础仍未得到充分理解。在这项工作中,我们采用贝叶斯视角对KD进行严格分析,以研究使用随机梯度下降(SGD)训练的学生的收敛行为。我们研究了两种情况:(i)教师提供精确的贝叶斯类概率(BCP);(ii)使用BCP的噪声近似进行监督。我们的分析表明,与独热监督相比,从BCP学习可减少方差并消除收敛边界中的邻域项。我们进一步刻画了噪声水平如何影响泛化和准确性。基于这些见解,我们提倡使用通常能提供更好的BCP估计的贝叶斯深度学习模型作为KD中的教师。与我们的分析一致,我们通过实验证明,与从确定性教师蒸馏的学生相比,从贝叶斯教师蒸馏的学生不仅能达到更高的准确率(高达+4.27%),而且收敛更稳定(噪声减少高达30%)。

英文摘要:

Knowledge Distillation (KD) is a central paradigm for transferring knowledge from a large teacher network to a typically smaller student model, often by leveraging soft probabilistic outputs. While KD has shown strong empirical success in numerous applications, its theoretical underpinnings remain only partially understood. In this work, we adopt a Bayesian perspective on KD to rigorously analyze the convergence behavior of students trained with Stochastic Gradient Descent (SGD). We study two regimes: $(i)$ when the teacher provides the exact Bayes Class Probabilities (BCPs); and $(ii)$ supervision with noisy approximations of the BCPs. Our analysis shows that learning from BCPs yields variance reduction and removes neighborhood terms in the convergence bounds compared to one-hot supervision. We further characterize how the level of noise affects generalization and accuracy. Motivated by these insights, we advocate the use of Bayesian deep learning models, which typically provide improved estimates of the BCPs, as teachers in KD. Consistent with our analysis, we experimentally demonstrate that students distilled from Bayesian teachers not only achieve higher accuracies (up to +4.27%), but also exhibit more stable convergence (up to 30% less noise), compared to students distilled from deterministic teachers.

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

↑