arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.04140cs.CV
收藏

通过构建与动态教师的双向映射实现差距保持蒸馏

Gap Preserving Distillation by Building Bidirectional Mappings with A Dynamic Teacher

Max Planck Institute for Informatics(马克斯·普朗克信息学研究所);South China University of Technology(华南理工大学);Monash University(莫纳什大学);Shanghai Jiao Tong University(上海交通大学)

Yong Guo, Shulian Zhang, Haolin Pan, Jing Liu, Yulun Zhang, Jian Chen

AI总结:

针对知识蒸馏中师生性能差距过大阻碍训练的问题,提出差距保持蒸馏方法,通过动态教师与双向映射策略维持合理差距,在多种架构及场景下实现显著准确率提升。

摘要:

知识蒸馏旨在将知识从大型教师模型迁移到紧凑的学生模型,二者之间往往存在显著的性能差距。我们发现过大的性能差距会阻碍训练过程,这一点也得到了近期研究的验证。为解决该问题,我们提出差距保持蒸馏(Gap Preserving Distillation,GPD)方法,在训练学生模型的同时从头训练一个额外的动态教师模型来弥合这一差距。通过这种方式,整个蒸馏过程中教师与学生之间能够保持合理的性能差距。为进一步强化从动态教师到学生的蒸馏效果,我们提出一种硬策略,强制二者共享参数并鼓励参数继承。除硬策略外,我们还基于逆重参数化(Inverse Reparameterization,IR)方法和通道分支重参数化(Channel-Branch Reparameterization,CBR)策略,在二者之间构建软双向映射。需要强调的是,我们的IR能够以任意扩张比初始化更大的动态教师,同时完全保持与给定学生模型相同的准确率。这保证了动态教师和学生从同一起点出发,避免训练初期差距过大。至于我们的CBR,在参数共享的情况下,无需任何后训练就能从训练良好的动态教师中直接提取出有效的学生模型,使得我们的方法在模型部署上极具灵活性。在实验中,GPD在CNN和Transformer架构上均显著优于现有蒸馏方法,准确率提升最高达1.58%。有趣的是,GPD在无预训练教师的场景下也表现出良好的泛化性,包括从头训练和微调场景,在ResNet18上分别实现了1.80%和0.89%的大幅提升。

英文摘要:

Knowledge distillation aims to transfer knowledge from a large teacher model to a compact student counterpart, often coming with a significant performance gap between them. We find that a too-large performance gap can hamper the training process, which is also verified in recent studies. To address this, we propose a Gap Preserving Distillation (GPD) method that trains an additional dynamic teacher model from scratch along with training the student to bridge this gap. In this way, it becomes possible to maintain a reasonable performance gap between teacher and student during the whole distillation process. To further strengthen distillation from the dynamic teacher to the student, we develop a hard strategy by enforcing them to share parameters and encouraging parameter inheritance. Besides hard strategy, we also build the soft bidirectional mappings between them which are built on an Inverse Reparameterization (IR) method and a Channel-Branch Reparameterization (CBR) strategy. We highlight that our IR is able to initialize a larger dynamic teacher with an arbitrary expansion ratio, while preserving exactly the same accuracy as the given student model. In this way, it guarantees that the dynamic teacher and student start from the same point and avoid a too large gap in early stage of training. As for our CBR, with parameter-sharing, it directly extracts an effective student model from the well-learned dynamic teacher without any post-training, making our method highly flexible for model deployment. In the experiments, GPD significantly outperforms existing distillation methods on top of both CNNs and transformers architectures, achieving up to 1.58% accuracy improvement. Interestingly, GPD also generalizes well to the scenarios without a pre-trained teacher, including training from scratch and fine-tuning, yielding a large improvement of 1.80% and 0.89% on ResNet18, respectively.

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

↑