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

SWITCH:与教师共同学习用于大语言模型的知识蒸馏

SWITCH: Studying with Teacher for Knowledge Distillation of Large Language Models

IPAI, Seoul National University(首尔国立大学IPAI);LG AI Research(LG人工智能研究院);Seoul National University(首尔国立大学);SNU-LG AI Research Center(首尔国立大学-LG人工智能研究中心)

Jahyun Koo, Yerin Hwang, Yongil Kim, Taegwan Kang, Hyunkyung Bae, Kyomin Jung

AI总结:

SWITCH 提出一种在长序列生成中策略性引入教师模型干预的知识蒸馏方法,通过识别师生令牌概率差异减少误导,在三个模型家族和五个数据集上超越传统方法。

摘要:

尽管大语言模型(LLMs)取得了成功,但它们仍面临推理成本高和内存需求大的挑战。为解决这些问题,知识蒸馏(KD)已成为一种流行的模型压缩方法,其中以学生生成输出(SGOs)作为训练数据尤为引人注目,因为它能减少训练与推理之间的不匹配。然而,SGOs 经常产生带有噪声和偏见的序列,这可能导致教师模型的误导,尤其是在长序列中。为缓解这些挑战,我们提出了 SWITCH(与教师共同学习用于知识蒸馏),一种新颖的方法,在学生序列生成过程中策略性地引入教师模型。SWITCH 识别教师和学生模型令牌概率之间的差异,允许教师有选择性地进行干预,特别是在更容易受到教师误导的长序列中。跨三个模型家族和五个指令遵循数据集的广泛实验结果表明,SWITCH 超越了传统知识蒸馏方法,尤其在长序列数据的生成方面表现出色。

英文摘要:

Despite the success of Large Language Models (LLMs), they still face challenges related to high inference costs and memory requirements. To address these issues, Knowledge Distillation (KD) has emerged as a popular method for model compression, with student-generated outputs (SGOs) as training data being particularly notable for reducing the mismatch between training and inference. However, SGOs often produce noisy and biased sequences, which can lead to misguidance from the teacher model, especially in long sequences. To mitigate these challenges, we propose SWITCH (Studying WIth TeaCHer for Knowledge Distillation), a novel approach that strategically incorporates the teacher model during the student's sequence generation. SWITCH identifies discrepancies between the token probabilities of the teacher and student models, allowing the teacher to intervene selectively, particularly in long sequences that are more prone to teacher misguidance. Extensive experimental results across three model families and five instruction-following datasets show that SWITCH surpasses traditional KD methods, particularly excelling in the generation of long sequential data.

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

↑