类人工作记忆干扰在大语言模型中
In-context superposition: human-like working memory interference in large language models
AI总结:
研究发现大语言模型在工作记忆任务中存在干扰限制,其表现与人类相似,且通过抑制无关信息实现有效记忆检索。
摘要:
智能系统必须在线维护和操作与任务相关的信息以适应动态环境和变化目标。这种能力称为工作记忆,是人类推理和智能的基础。尽管生物和人工系统各有1000亿个神经元,但两者在工作记忆上都存在限制。这引发了关键问题:为何大语言模型(LLMs)表现出这样的限制,尽管transformers通过注意力机制可以完全访问先前上下文?研究发现,虽然双层transformer可以被训练以完美解决工作记忆任务,但多样化的预训练LLMs仍然表现出工作记忆限制。值得注意的是,LLMs重现了人类观察到的干扰特征:性能随着记忆负载增加而下降,并受近期性和刺激统计的影响。在模型之间,更强的工作记忆容量与标准基准上的更广泛能力相关,这与人类一般智力的联系相似。然而,尽管工作记忆表现存在显著差异,LLMs却意外地收敛到一种共同的计算机制。而不是直接从上下文中复制相关记忆项,模型将多个记忆项编码为纠缠表示,使得成功回忆依赖于干扰控制——主动抑制无关内容以隔离目标进行读取。此外,一种针对抑制刺激内容信息的干预可以提高性能,为表示干扰提供了因果支持。总之,这些发现将表示干扰识别为预训练LLMs中工作记忆的核心限制,表明生物和人工系统的工作记忆限制可能反映了一种共同的计算挑战:在干扰下选择任务相关的信息。
英文摘要:
Intelligent systems must maintain and manipulate task-relevant information online to adapt to dynamic environments. This capacity, known as working memory, is fundamental to human reasoning. Yet, human working memory is strikingly limited, maintaining only three to four items in a brain with billions of neurons. Surprisingly, large language models (LLMs), despite different substrates and direct access to prior context through attention, exhibit similar working memory limitations. Why should such different systems face analogous constraints? We propose that working memory limitations reflect a general trade-off of shared representations: representational compression and reuse support efficient learning and generalization, but also cause simultaneously active representations to interfere. We show a two-layer transformer trained on a working memory task can solve it perfectly, but diverse trained LLMs exhibit human-like limitations: performance declines with memory load, while retrieval is biased by recency and stimulus statistics. Mirroring humans, working memory performance in LLMs is also associated with broader model capability. Mechanistically, we show that LLMs encode multiple memories in entangled representations --- a condition we call \emph{in-context superposition} --- and progressively suppress competing content while aligning the target with the readout. Moreover, a causal intervention that suppresses interfering information improves performance. Together, these findings suggest that working memory capacity reflects the ability to select task-relevant information under interference, a computational challenge shared by biological and artificial systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。