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

泛化教师网络以实现跨学生架构的有效知识蒸馏

Generalizing Teacher Networks for Effective Knowledge Distillation Across Student Architectures

Kuluhan Binici, Weiming Wu, Tulika Mitra

AI总结:

本文提出 Generic Teacher Network(GTN),通过权重共享超网络让教师一次性适配架构池中多种学生容量,从而提升跨架构知识蒸馏效果并分摊训练成本。

摘要:

知识蒸馏(KD)是一种模型压缩方法,其要求训练一个紧凑的学生模型来模拟更复杂教师模型的性能。然而,两个模型之间的架构容量差距限制了知识迁移的有效性。为解决这一问题,先前工作侧重于定制教师-学生对以提升兼容性,这一过程计算成本高昂,并且每当任一模型发生变化时都需要重复进行。因此,当必须将教师模型压缩为不同学生模型,以部署在具有不同资源约束的多种硬件设备上时,这些方法并不实用。在本文中,我们提出 Generic Teacher Network(GTN,通用教师网络),这是一种一次性的 KD 感知训练,用于创建一个能够有效向从给定有限架构池中采样的任意学生模型迁移知识的通用教师。为此,我们将学生池表示为一个权重共享超网络,并使通用教师具备条件化能力,以与从该超网络采样的各种学生架构的容量相匹配。实验评估表明,我们的方法既提升了整体 KD 有效性,又将通用教师的最小额外训练成本分摊到池中的各个学生上。

英文摘要:

Knowledge distillation (KD) is a model compression method that entails training a compact student model to emulate the performance of a more complex teacher model. However, the architectural capacity gap between the two models limits the effectiveness of knowledge transfer. Addressing this issue, previous works focused on customizing teacher-student pairs to improve compatibility, a computationally expensive process that needs to be repeated every time either model changes. Hence, these methods are impractical when a teacher model has to be compressed into different student models for deployment on multiple hardware devices with distinct resource constraints. In this work, we propose Generic Teacher Network (GTN), a one-off KD-aware training to create a generic teacher capable of effectively transferring knowledge to any student model sampled from a given finite pool of architectures. To this end, we represent the student pool as a weight-sharing supernet and condition our generic teacher to align with the capacities of various student architectures sampled from this supernet. Experimental evaluation shows that our method both improves overall KD effectiveness and amortizes the minimal additional training cost of the generic teacher across students in the pool.

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

↑