arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.21676cs.CLcs.LG
收藏

语言模型如何学习事实?动态、课程与幻觉

How do language models learn facts? Dynamics, curricula and hallucinations

ETH Zürich(苏黎世联邦理工学院);Google DeepMind(谷歌DeepMind)

Nicolas Zucchet, Jörg Bornschein, Stephanie Chan, Andrew Lampinen, Razvan Pascanu, Soham De

AI总结:

本文通过合成事实回忆任务分析语言模型的三阶段学习动态,揭示注意力回路形成、数据分布、平台期、幻觉及微调导致参数记忆损坏之间的关系,并提出数据调度策略。

摘要:

大型语言模型在预训练期间积累了大量知识,但支配这种知识获取的动态仍鲜为人知。本研究考察语言模型在合成事实回忆任务上的学习动态,揭示了三个关键发现:第一,语言模型分三个阶段学习,在获得精确事实知识之前会表现出性能平台期。从机制上看,该平台期与支持回忆的基于注意力的回路形成同时发生。第二,训练数据分布显著影响学习动态,因为不平衡分布会导致更短的平台期。最后,幻觉与知识同时出现,而且通过微调将新知识整合到模型中具有挑战性,因为这会迅速破坏其现有的参数化记忆。我们的结果强调了数据分布在知识获取中的重要性,并提出了用于加速神经网络训练的新型数据调度策略。

英文摘要:

Large language models accumulate vast knowledge during pre-training, yet the dynamics governing this acquisition remain poorly understood. This work investigates the learning dynamics of language models on a synthetic factual recall task, uncovering three key findings: First, language models learn in three phases, exhibiting a performance plateau before acquiring precise factual knowledge. Mechanistically, this plateau coincides with the formation of attention-based circuits that support recall. Second, the training data distribution significantly impacts learning dynamics, as imbalanced distributions lead to shorter plateaus. Finally, hallucinations emerge simultaneously with knowledge, and integrating new knowledge into the model through fine-tuning is challenging, as it quickly corrupts its existing parametric memories. Our results emphasize the importance of data distribution in knowledge acquisition and suggest novel data scheduling strategies to accelerate neural network training.

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

↑