Reason to Rote:重新思考推理中的记忆机制
Reason to Rote: Rethinking Memorization in Reasoning
AI总结:
本研究通过FDA和THR两个带噪合成推理数据集,发现大语言模型对标签噪声的记忆建立在底层推理机制之上,通过分布式编码与异常值启发式实现,解释了良性记忆现象。
摘要:
大语言模型很容易记住任意训练样本(比如标签噪声),却在推理任务上表现极为出色。本研究探究了语言模型如何记忆标签噪声,以及为何这类记忆在多数情况下不会严重影响模型的泛化推理能力。我们使用两个带噪声标签的可控合成推理数据集——四位数加法(four-digit addition, FDA)和两跳关系推理(two-hop relational reasoning, THR),发现记忆依赖于泛化推理机制:即使在检索已记忆的噪声标签时,模型仍会计算中间推理输出,而干预推理过程会对记忆效果产生负面影响。我们进一步表明,记忆通过分布式编码实现,即聚合各类输入与中间结果,而非构建从输入到噪声标签的查找机制。此外,我们的FDA案例研究显示,记忆通过异常值启发式发生:现有神经元激活模式会发生轻微偏移以适配噪声标签。综上,我们的发现表明,语言模型中标签噪声的记忆是建立在底层推理机制之上而非取而代之,这为“良性记忆”这一有趣现象提供了新的解释。
英文摘要:
Large language models readily memorize arbitrary training instances, such as label noise, yet they perform strikingly well on reasoning tasks. In this work, we investigate how language models memorize label noise, and why such memorization in many cases does not heavily affect generalizable reasoning capabilities. Using two controllable synthetic reasoning datasets with noisy labels, four-digit addition (FDA) and two-hop relational reasoning (THR), we discover a reliance of memorization on generalizable reasoning mechanisms: models continue to compute intermediate reasoning outputs even when retrieving memorized noisy labels, and intervening reasoning adversely affects memorization. We further show that memorization operates through distributed encoding, i.e., aggregating various inputs and intermediate results, rather than building a look-up mechanism from inputs to noisy labels. Moreover, our FDA case study reveals memorization occurs via outlier heuristics, where existing neuron activation patterns are slightly shifted to fit noisy labels. Together, our findings suggest that memorization of label noise in language models builds on, rather than overrides, the underlying reasoning mechanisms, shedding lights on the intriguing phenomenon of benign memorization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。