arXiv:2410.05464cs.LG2024-10被引 19

渐进式蒸馏通过隐含课程加速学生模型学习

Progressive distillation induces an implicit curriculum

  • 让学生逐步从教师模型的中间版本学习,形成隐含训练顺序
  • 在稀疏奇偶性任务中,学生学习速度提升且样本需求减少
  • 适用于复杂任务如语法建模和真实语料预训练,效果显著

知识蒸馏利用教师模型提升学生模型的训练效果。一个长期挑战是:更好的教师并不总能带来更好的学生,常见缓解方法是引入多个中间教师的额外监督。一种经验证有效的策略是渐进式蒸馏,即学生依次学习教师模型的中间检查点。通过稀疏奇偶性任务作为实验平台,我们发现渐进式蒸馏中存在一种隐含课程机制,该机制仅来自中间检查点而非最终收敛的教师模型,能同时带来经验上的加速和可证明的样本复杂度优势。随后,我们在基于概率上下文无关文法(PCFG)训练的Transformer以及真实预训练数据集(Wikipedia和Books)上展开研究,通过探测教师模型发现类似隐含课程:模型逐步学习捕捉更长上下文的特征。理论与实证结果在稀疏奇偶性任务上得到支持,并在更复杂任务中获得一致的观察,表明渐进式蒸馏通过隐含课程机制在多种设置下均具有效性。

原文摘要 · Abstract (English)

Knowledge distillation leverages a teacher model to improve the training of a student model. A persistent challenge is that a better teacher does not always yield a better student, to which a common mitigation is to use additional supervision from several ``intermediate'' teachers. One empirically validated variant of this principle is progressive distillation, where the student learns from successive intermediate checkpoints of the teacher. Using sparse parity as a sandbox, we identify an implicit curriculum as one mechanism through which progressive distillation accelerates the student's learning. This curriculum is available only through the intermediate checkpoints but not the final converged one, and imparts both empirical acceleration and a provable sample complexity benefit to the student. We then extend our investigation to Transformers trained on probabilistic context-free grammars (PCFGs) and real-world pre-training datasets (Wikipedia and Books). Through probing the teacher model, we identify an analogous implicit curriculum where the model progressively learns features that capture longer context. Our theoretical and empirical findings on sparse parity, complemented by empirical observations on more complex tasks, highlight the benefit of progressive distillation via implicit curriculum across setups.

知识蒸馏隐含课程Transformer渐进学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。