arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.21139cs.CLcs.LG
收藏

老虎机:大语言模型如何跟踪多个实体

Slot Machines: How LLMs Keep Track of Multiple Entities

Anthropic Fellows Program(Anthropic 合作者计划)

Paul C. Bogdan, Jack Lindsey

AI总结:

研究探讨了大语言模型如何在上下文中绑定多个实体及其属性,通过多槽探针方法揭示当前实体与前一实体的表示机制,发现当前实体槽用于事实检索,而前一实体槽支持关系推理,但存在信息与实际使用之间的差距。

摘要:

语言模型必须将实体与其属性绑定,并在上下文中维持多个绑定关系。我们研究了多个实体在token位置上的表示方式,以及单个token是否能承载多个实体的绑定。我们引入了一种多槽探测方法,通过解构单个token的残差流激活来恢复当前描述实体和前一实体的信息。这两种信息分别编码在独立且大体正交的“当前实体”和“前一实体”槽中。我们分析了这些槽的功能,发现它们服务于不同的目的。与当前实体槽结合,前一实体槽支持关系推理,如实体级归纳(“故事中谁在Alice之后?”)和相邻实体间的冲突检测。然而,只有当前实体槽用于显式事实检索问题(“故事中有谁是高个子?”“高个子实体的名字是什么?”),尽管这些答案也可以从前一实体槽线性解码。与这一限制一致,开放权重模型在处理强制单个token承载两个主谓宾绑定的语法(例如“Alice准备并Bob消耗食物。”)时表现接近随机准确率。有趣的是,最近的前沿模型能够解析此类语法,表明它们可能发展出了更复杂的绑定策略。总体而言,我们的结果揭示了激活中可用信息与模型实际使用信息之间的差距,并表明当前/前一实体槽结构是需要同时维持两种视角行为(如趋炎附势和欺骗)的自然基质。

英文摘要:

Language models must bind entities to the attributes they possess and maintain several such binding relationships within a context. We study how multiple entities are represented across token positions and whether single tokens can carry bindings for more than one entity. We introduce a multi-slot probing approach that disentangles a single token's residual stream activation to recover information about both the currently described entity and the immediately preceding one. These two kinds of information are encoded in separate and largely orthogonal "current-entity" and "prior-entity" slots. We analyze the functional roles of these slots and find that they serve different purposes. In tandem with the current-entity slot, the prior-entity slot supports relational inferences, such as entity-level induction ("who came after Alice in the story?") and conflict detection between adjacent entities. However, only the current-entity slot is used for explicit factual retrieval questions ("Is anyone in the story tall?" "What is the tall entity's name?") despite these answers being linearly decodable from the prior-entity slot too. Consistent with this limitation, open-weight models perform near chance accuracy at processing syntax that forces two subject-verb-object bindings on a single token (e.g., "Alice prepares and Bob consumes food.") Interestingly, recent frontier models can parse this properly, suggesting they may have developed more sophisticated binding strategies. Overall, our results expose a gap between information that is available in activations and information the model actually uses, and suggest that the current/prior-entity slot structure is a natural substrate for behaviors that require holding two perspectives at once, such as sycophancy and deception.

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

↑