重复并非全然相同:不同机制维持语言模型中的重复
Repetitions are not all alike: distinct mechanisms sustain repetition in language models
AI总结:
本文研究了语言模型中表面相似的重复行为源于不同机制,发现上下文学习引发的重复依赖逐渐专门化的注意力头网络,而自然文本引发的重复缺乏明确回路且集中于低信息量token,反映了不同的失败与适应模式。
摘要:
大型语言模型(LLMs)有时会退化为重复循环,持续生成相同的词序列。由于重复在自然人类语言中很罕见,其在 LLMs 中跨多种任务和上下文的频繁出现仍令人困惑。在此,我们研究行为上相似的重复模式是否源于不同的潜在机制,以及这些机制在模型训练期间如何发展。我们对比了两种条件:由自然文本提示引发的重复,与由明确要求复制行为的上下文学习(ICL)设置引发的重复。我们的分析表明,ICL 引发的重复依赖于一个专门的注意力头网络,该网络在训练过程中逐渐专门化,而自然发生的重复出现得很早且缺乏明确的回路。注意力检查进一步表明,自然重复不成比例地集中在低信息量 token 上,这表明这是一种在无法检索相关上下文时的后备行为。这些结果表明,表面上相似的重复行为源于定性不同的内部过程,反映了语言模型中不同的失败和适应模式。
英文摘要:
Large Language Models (LLMs) can sometimes degrade into repetitive loops, persistently generating identical word sequences. Because repetition is rare in natural human language, its frequent occurrence across diverse tasks and contexts in LLMs remains puzzling. Here we investigate whether behaviorally similar repetition patterns arise from distinct underlying mechanisms and how these mechanisms develop during model training. We contrast two conditions: repetitions elicited by natural text prompts with those induced by in-context learning (ICL) setups that explicitly require copying behavior. Our analyses reveal that ICL-induced repetition relies on a dedicated network of attention heads that progressively specialize over training, whereas naturally occurring repetition emerges early and lacks a defined circuitry. Attention inspection further shows that natural repetition focuses disproportionately on low-information tokens, suggesting a fallback behavior when relevant context cannot be retrieved. These results indicate that superficially similar repetition behaviors originate from qualitatively different internal processes, reflecting distinct modes of failure and adaptation in language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。