arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.21176cs.LGcs.AIcs.CLq-bio.NC
收藏

语言模型在工作记忆中存在共同的读出瓶颈

Language Models Share a Readout Bottleneck in Working Memory

Yale University(耶鲁大学)

Dongyu Gong

AI总结:

该研究通过15个不同规模的LLMs和最小Transformer,分离工作记忆的两种解释,发现LLMs工作记忆限制在于干扰下读出项目,而非定位项目,支持干扰解释。

摘要:

大型语言模型(LLMs)在N-back任务上重现了人类工作记忆的特征:性能随记忆负荷N的增加而下降,错误集中在诱饵项(即与当前刺激在相邻但错误序列位置重复的项目)。我们询问这种共同的行为特征是否反映了共同的机制。文献提供了两种候选解释:精度解释认为,softmax注意力无法将权重集中在N个位置后的项目上,因此会检索相邻项目;干扰解释认为,注意力能选择正确项目,但竞争项目的内容会破坏决策。我们在15个预训练LLMs(来自三个模型家族,参数规模为7000万至1400亿)以及从头训练的最小Transformer中对这些解释进行了分离。在所有三个模型家族中,执行该任务的注意力头在大多数未命中匹配时会关注目标;线性探针能近乎完美地解码匹配字母出现在目标位置还是诱饵位置,即使在模型对诱饵产生误报的试验中也是如此,尽管模型自身的决策几乎无法区分两者。锐化注意力带来的提升可忽略不计,而抑制非目标项目的字母身份几乎在所有按负荷划分的模型条件下都能提高灵敏度(d')。在更大的模型中,任务分布在更多注意力头上,消除干扰的帮助更大;在最小Transformer中,精度限制了单个注意力层,但第二层消除了这一限制。因此,LLMs的工作记忆限制在于在干扰下读出项目,而非定位项目,这与人类工作记忆的干扰解释一致。

英文摘要:

Large language models (LLMs) reproduce a human working-memory signature on the N-back task: performance declines as memory load N increases, and errors concentrate on lures, items that repeat the current stimulus at a neighboring but incorrect serial position. We ask whether this shared behavioral signature reflects a shared mechanism. The literature offers two candidate accounts. On a precision account, softmax attention cannot concentrate its weight on the item N positions back, so adjacent items are retrieved instead. On an interference account, attention selects the correct item, but the content of competing items corrupts the decision. We dissociate these accounts in 15 pretrained LLMs from three families (70 million to 14 billion parameters) and in minimal transformers trained from scratch. In all three families, the attention heads that carry the task attend to the target on most missed matches. Linear probes decode near-perfectly whether a matching letter occurred at the target or at a lure position, even on trials where the model false-alarms to the lure, although its own decisions barely distinguish the two. Sharpening attention yields negligible gains, whereas suppressing the letter identity of non-target items improves sensitivity (d') in nearly all model-by-load conditions. In larger models the task is spread over more heads, and removing interference helps more. In minimal transformers, precision limits a single attention layer, but a second layer removes this constraint. The working-memory limit of LLMs therefore lies in reading items out under interference rather than in locating them, consistent with interference accounts of human working memory.

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

↑