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

重新审视自回归语言模型的知识蒸馏

Revisiting Knowledge Distillation for Autoregressive Language Models

Sun Yat-sen University(中山大学);Nanyang Technological University(南洋理工大学);Wuhan University(武汉大学);The University of Sydney(悉尼大学)

Qihuang Zhong, Liang Ding, Li Shen, Juhua Liu, Bo Du, Dacheng Tao

AI总结:

本文针对自回归语言模型知识蒸馏中“大教师反而教出差学生”的问题,提出自适应教学方法 ATKD,使多种基线蒸馏方法在 8 项任务上稳定提升并增强泛化。

摘要:

知识蒸馏(KD)是一种常用的模型压缩方法,通过训练一个更小的学生模型来压缩教师模型,从而降低其推理成本和内存占用。然而,在自回归语言模型(LM)场景中,我们通过实验发现,更大的教师语言模型可能会显著导致更差的学生模型。针对这一问题,我们开展了一系列分析,揭示不同 token 具有不同的教学模式,忽视这些模式会造成性能下降。受此启发,我们提出一种简单而有效的自适应教学方法(ATKD)以改进知识蒸馏。ATKD 的核心是减少机械学习,使教学更加多样和灵活。在 8 项语言模型任务上的大量实验表明,借助 ATKD,多种基线 KD 方法能够在所有模型类型和规模上取得一致且显著的性能提升(平均分数最高提升 +3.04%)。更令人鼓舞的是,ATKD 能够有效提升学生模型的泛化能力。

英文摘要:

Knowledge distillation (KD) is a common approach to compress a teacher model to reduce its inference cost and memory footprint, by training a smaller student model. However, in the context of autoregressive language models (LMs), we empirically find that larger teacher LMs might dramatically result in a poorer student. In response to this problem, we conduct a series of analyses and reveal that different tokens have different teaching modes, neglecting which will lead to performance degradation. Motivated by this, we propose a simple yet effective adaptive teaching approach (ATKD) to improve the KD. The core of ATKD is to reduce rote learning and make teaching more diverse and flexible. Extensive experiments on 8 LM tasks show that, with the help of ATKD, various baseline KD methods can achieve consistent and significant performance gains (up to +3.04% average score) across all model types and sizes. More encouragingly, ATKD can improve the student model generalization effectively.

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

↑