arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.12091cs.LG
收藏

随机教师是优秀教师

Random Teachers are Good Teachers

ETH Zürich(苏黎世联邦理工学院)

Felix Sarnthein, Gregor Bachmann, Sotiris Anagnostidis, Thomas Hofmann

AI总结:

本文通过随机初始化教师的蒸馏实验,发现自蒸馏可仅靠隐式正则化学习可迁移特征,并揭示了学生位于线性盆地边界、接近教师可放大特征学习等损失景观特性。

摘要:

在这项工作中,我们研究了自蒸馏中师生学习动态所诱导的隐式正则化。为了隔离其影响,我们描述了一个简单实验:考虑随机初始化下的教师,而非经过训练的教师。令人惊讶的是,当把学生蒸馏到这样一个随机教师中时,我们观察到所得模型及其表示已经具备非常有趣的特征:(1)在探测准确率方面,蒸馏后的学生相比其教师有显著提升。(2)学习到的表示具有数据依赖性,并且可以在不同任务之间迁移,但如果用随机输入训练则会严重退化。(3)学生检查点中包含稀疏子网络,即所谓的彩票子网络,并且位于监督损失景观中线性盆地的边界上。这些观察结果对机器学习中几个重要领域具有有趣的意义:(1)自蒸馏可以仅依靠梯度动态中存在的隐式正则化起作用,而不依赖任何暗知识;(2)自监督学习即使在没有数据增强的情况下也能学习特征;(3)监督训练早期阶段的训练动态不一定需要标签信息。最后,我们揭示了损失景观中一个引人入胜的局部性质:如果学生初始化时与教师很接近,特征学习过程会被强烈放大。这些结果提出了关于损失景观本质的有趣问题,而这些问题迄今尚未被探索。代码可在 https://github.com/safelix/dinopl 获取。

英文摘要:

In this work, we investigate the implicit regularization induced by teacher-student learning dynamics in self-distillation. To isolate its effect, we describe a simple experiment where we consider teachers at random initialization instead of trained teachers. Surprisingly, when distilling a student into such a random teacher, we observe that the resulting model and its representations already possess very interesting characteristics; (1) we observe a strong improvement of the distilled student over its teacher in terms of probing accuracy. (2) The learned representations are data-dependent and transferable between different tasks but deteriorate strongly if trained on random inputs. (3) The student checkpoint contains sparse subnetworks, so-called lottery tickets, and lies on the border of linear basins in the supervised loss landscape. These observations have interesting consequences for several important areas in machine learning: (1) Self-distillation can work solely based on the implicit regularization present in the gradient dynamics without relying on any dark knowledge, (2) self-supervised learning can learn features even in the absence of data augmentation and (3) training dynamics during the early phase of supervised training do not necessarily require label information. Finally, we shed light on an intriguing local property of the loss landscape: the process of feature learning is strongly amplified if the student is initialized closely to the teacher. These results raise interesting questions about the nature of the landscape that have remained unexplored so far. Code is available at https://github.com/safelix/dinopl.

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

↑