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

Talking Models:通过交互通信将预训练知识蒸馏到下游模型

Talking Models: Distill Pre-trained Knowledge to Downstream Models via Interactive Communication

Google DeepMind(谷歌DeepMind);University of Maryland(马里兰大学)

Zhe Zhao, Qingyun Liu, Huan Gui, Bang An, Lichan Hong, Ed H. Chi

AI总结:

针对预训练基础模型向小模型知识蒸馏效果受容量差距、分布偏移影响的问题,提出带交互通信的蒸馏方法,让师生模型通过编解码器互传消息适配需求,实验证明其性能优于现有蒸馏技术。

摘要:

机器学习领域的诸多最新突破都得益于预训练基础模型。通过扩大模型参数规模、训练数据量和计算资源,基础模型已在众多应用中显著提升了当前最优水平。然而,如何利用这些模型高效执行下游任务仍是一个悬而未决的问题。知识蒸馏(KD)已被用于应对这一挑战,它将知识从大型教师模型迁移到较小的学生模型。尽管知识蒸馏在提升学生模型性能方面取得了成功,但近期研究发现,由于教师与学生之间存在巨大的容量差距,强大的教师并不一定能培养出强大的学生。此外,预训练数据与下游任务之间可能存在的分布偏移,会导致知识蒸馏中的知识迁移在提升下游任务性能方面效果欠佳。本文通过引入交互通信过程拓展了知识蒸馏方法,以帮助下游任务的学生模型从预训练基础模型中有效学习。我们的设计灵感来源于人类向教师学习的方式——教师能够以满足学生需求的方式讲解知识。具体而言,我们让每个模型(即学生模型和教师模型)训练两个组件:(1)一个编码器,用于将模型的隐藏状态编码为消息;(2)一个解码器,用于将任意消息解码为自身的隐藏状态。借助编码器和解码器,教师不仅可以通过编码自身的隐藏状态来传递丰富信息,学生还可以将包含下游任务信息的消息发送给教师。因此,从教师传递给学生的知识能够适配学生的容量以及下游任务的分布。我们在基准数据集上开展了实验,结果表明我们的通信机制优于当前最优的蒸馏技术。

英文摘要:

Many recent breakthroughs in machine learning have been enabled by the pre-trained foundation models. By scaling up model parameters, training data, and computation resources, foundation models have significantly advanced the state-of-the-art in many applications. However, it is still an open question of how to use these models to perform downstream tasks efficiently. Knowledge distillation (KD) has been explored to tackle this challenge. KD transfers knowledge from a large teacher model to a smaller student model. While KD has been successful in improving student model performance, recent research has discovered that a powerful teacher does not necessarily lead to a powerful student, due to their huge capacity gap. In addition, the potential distribution shifts between the pre-training data and downstream tasks can make knowledge transfer in KD sub-optimal for improving downstream task performance. In this paper, we extend KD with an interactive communication process to help students of downstream tasks learn effectively from pre-trained foundation models. Our design is inspired by the way humans learn from teachers who can explain knowledge in a way that meets the students' needs. Specifically, we let each model (i.e., student and teacher) train two components: (1) an encoder encoding the model's hidden states to a message and (2) a decoder decoding any messages to its own hidden states. With encoder and decoder, not only can the teacher transfer rich information by encoding its hidden states, but also the student can send messages with information of downstream tasks to the teacher. Therefore, knowledge passing from teacher to student can be tailored to the student's capacity and downstream tasks' distributions. We conducted experiments on benchmark datasets to show that our communication mechanism outperforms state-of-the-art distillation techniques.

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

↑