Right Time to Learn:Promoting Generalization via Bio-inspired Spacing Effect in Knowledge Distillation
Guanglong Sun, Hongwei Yan, Liyuan Wang, Qian Li, Bo Lei, Yi Zhong
TL;DR
Right Time to Learn introduces Spaced KD, a bio-inspired, temporally spaced distillation strategy that advances the teacher several steps ahead of the student. The authors show theoretically that spacing leads to a flatter loss landscape, evidenced by reduced Hessian trace, and provide extensive empirical validation across CNN and ViT backbones on CIFAR, Tiny-ImageNet, and ImageNet-1K, with consistent gains over online KD and self KD. Key contributions include a formal spacing mechanism with an interval parameter $s$, a Hessian-based analysis, and demonstration of Spaced KD’s generality across loss functions and KD variants. The work suggests a practical, plug-in approach to improve KD generalization without extra training cost, and offers insights into the temporal dynamics of knowledge transfer that could inform neuroscience-inspired learning frameworks.
Abstract
Knowledge distillation (KD) is a powerful strategy for training deep neural networks (DNNs). Although it was originally proposed to train a more compact "student" model from a large "teacher" model, many recent efforts have focused on adapting it to promote generalization of the model itself, such as online KD and self KD. Here, we propose an accessible and compatible strategy named Spaced KD to improve the effectiveness of both online KD and self KD, in which the student model distills knowledge from a teacher model trained with a space interval ahead. This strategy is inspired by a prominent theory named spacing effect in biological learning and memory, positing that appropriate intervals between learning trials can significantly enhance learning performance. With both theoretical and empirical analyses, we demonstrate that the benefits of the proposed Spaced KD stem from convergence to a flatter loss landscape during stochastic gradient descent (SGD). We perform extensive experiments to validate the effectiveness of Spaced KD in improving the learning performance of DNNs (e.g., the performance gain is up to 2.31% and 3.34% on Tiny-ImageNet over online KD and self KD, respectively). Our codes have been released on github https://github.com/SunGL001/Spaced-KD.
