arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.02671cs.LGcs.AIcs.CLstat.ML
收藏

关于语言模型蒸馏中的教师黑客现象

On Teacher Hacking in Language Model Distillation

Google DeepMind(谷歌DeepMind)

Daniil Tiapkin, Daniele Calandriello, Johan Ferret, Sarah Perrin, Nino Vieillard, Alexandre Ramé, Mathieu Blondel

AI总结:

本文提出并研究语言模型蒸馏中的教师黑客现象,通过受控实验发现固定离线数据会引发该问题且可由收敛规律偏离检测,而在线数据生成与数据多样性可有效缓解。

摘要:

语言模型(LMs)的后训练越来越依赖于以下两个阶段:(i)知识蒸馏,即训练语言模型模仿更大的教师语言模型,以及(ii)基于人类反馈的强化学习(RLHF),即通过优化奖励模型来对齐语言模型。在第二个RLHF阶段,一个众所周知的挑战是奖励黑客现象,即语言模型过度优化奖励模型。这种现象符合古德哈特定律,并可能导致在真实目标上的性能下降。在本文中,我们研究在知识蒸馏过程中是否会发生一种类似的现象,我们称之为教师黑客现象。这种现象可能产生的原因是教师语言模型本身只是真实分布的一个不完美近似。为了研究这一问题,我们提出了一个受控实验设置,包括:(i)一个代表真实分布的预言机语言模型,(ii)一个从预言机蒸馏得到的教师语言模型,以及(iii)一个从教师蒸馏得到的学生语言模型。我们的实验揭示了以下见解。当使用固定的离线数据集进行蒸馏时,会发生教师黑客现象;此外,我们可以通过观察优化过程何时偏离多项式收敛规律来检测这一现象。相比之下,采用在线数据生成技术可以有效缓解教师黑客现象。更准确地说,我们确定数据多样性是防止黑客现象的关键因素。总体而言,我们的发现为蒸馏在构建鲁棒且高效的语言模型方面的优势与局限提供了更深入的理解。

英文摘要:

Post-training of language models (LMs) increasingly relies on the following two stages: (i) knowledge distillation, where the LM is trained to imitate a larger teacher LM, and (ii) reinforcement learning from human feedback (RLHF), where the LM is aligned by optimizing a reward model. In the second RLHF stage, a well-known challenge is reward hacking, where the LM over-optimizes the reward model. Such phenomenon is in line with Goodhart's law and can lead to degraded performance on the true objective. In this paper, we investigate whether a similar phenomenon, that we call teacher hacking, can occur during knowledge distillation. This could arise because the teacher LM is itself an imperfect approximation of the true distribution. To study this, we propose a controlled experimental setup involving: (i) an oracle LM representing the ground-truth distribution, (ii) a teacher LM distilled from the oracle, and (iii) a student LM distilled from the teacher. Our experiments reveal the following insights. When using a fixed offline dataset for distillation, teacher hacking occurs; moreover, we can detect it by observing when the optimization process deviates from polynomial convergence laws. In contrast, employing online data generation techniques effectively mitigates teacher hacking. More precisely, we identify data diversity as the key factor in preventing hacking. Overall, our findings provide a deeper understanding of the benefits and limitations of distillation for building robust and efficient LMs.

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

↑