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

Transformer 优先记住,最后遗忘:大型语言模型中的双过程干扰

LLMs Remember First, Forget Last: Dual-Process Interference in Large Language Models

Thomson Reuters(汤姆森路透)

Sourav Chattaraj, Kanak Raj

AI总结:

研究探讨了大型语言模型在面对冲突信息时的记忆保留机制,发现前瞻性干扰主导后置性干扰,揭示了Transformer注意力机制中的优先效应。

摘要:

当大型语言模型在上下文中遇到冲突信息时,哪些记忆会存活——早期还是近期?本文将认知心理学中的经典干扰范式适应到这一问题,测试了39个不同架构和规模的LLM。每个模型都显示出相同模式:前瞻性干扰(PI)普遍主导后置性干扰(RI)(Cohen's d = 1.73,p < 0.0001),意味着早期编码受到保护,而近期信息被遗忘——与人类记忆相反,其中后置性干扰通常占主导。三个发现表明,RI和PI反映了不同的记忆机制。RI和PI无相关性(R² = 0.044),拒绝了统一的“记忆容量”。模型大小预测RI的抗性(R² = 0.49)但不预测PI(R² = 0.06,n.s.)——只有RI与容量相关。错误分析揭示了不同的失败模式:RI失败是被动检索失败(51%),而PI失败显示主动优先级入侵(56%);两者均显示<1%的幻觉。这些模式与认知科学中的巩固-检索区别相似,表明Transformer注意力创造了优先效应,对干扰密集的应用有直接影响。

英文摘要:

Large language models can process millions of tokens, yet how they handle conflicting information within context remains poorly understood. From patient health logs tracking evolving vital signs to legal documents with superseding clauses, real-world applications routinely require models to retrieve specific values from streams of semantically similar, competing updates. We adapt classical interference paradigms from cognitive psychology to compare retroactive interference (RI; recalling initial values after updates) and proactive interference (PI; recalling recent values despite competing prior encodings) across 39 LLMs spanning 1B to 2.5T parameters. Every model exhibits the same pattern: PI causes substantially greater degradation than RI (d = 1.73), the opposite of the typical human finding where new information more readily disrupts old. Four lines of evidence indicate that RI and PI engage distinct mechanisms: model size predicts RI resistance but not PI; the two scores correlate only weakly; error analysis reveals qualitatively different failure profiles, with RI failures reflecting passive retrieval failure and PI failures reflecting active primacy intrusion; and hallucination rates remain below 1% in both conditions. An adaptive bootstrap design further shows that RI decays smoothly while PI collapses bimodally at high interference, consistent with gradual dilution versus winner-take-all attention dynamics. These findings characterize a systematic primacy bias in transformer attention, with implications for reliable deployment in settings where in-context information evolves over time.

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

↑