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

一种用于大语言模型中动态实体追踪的检索条件重绑定电路

A retrieval conditioned rebinding circuit for dynamic entity tracking in large language models

Saarland University(萨尔兰大学);Max Planck Institute for Informatics(马克斯·普朗克信息学研究所)

Soyoung Oh, Vera Demberg

AI总结:

通过因果干预识别出大语言模型中实现动态状态追踪的检索条件重绑定机制,该机制由紧凑的注意力头电路编码并恢复绑定信息,在不同模型家族中表现不同。

摘要:

为了正确解释上下文并检索相关信息,大语言模型必须将实体与其属性绑定,并在状态变化时更新这些绑定。我们分析了LLM在动态状态追踪中如何实现这一绑定过程。通过因果干预,我们识别出一种检索条件重绑定机制,这是一个紧凑的注意力头电路,编码交换相关的绑定信息并在读出时恢复。在Gemma和Llama模型中,该电路支持重绑定行为,但机制的表示特征在不同模型家族中有所不同。在Gemma模型中,绑定特征清晰地表达在相关注意力头的查询/键子空间中,而在Llama模型中,绑定信息主要由键向量携带。总体而言,我们的结果揭示了LLM中上下文相关状态追踪的可解释机制。

英文摘要:

To interpret context correctly and retrieve relevant information, large language models must bind entities to their attributes and update these bindings as state changes. We analyze how LLMs implement this binding process in a dynamic state tracking. Using causal interventions, we identify a retrieval conditioned rebinding mechanism, a compact attention head circuit that propagated binding information and when the entity is queried, uses the updated binding to retrieve the corresponding attribute. Across Gemma and Llama models, this circuit supports rebinding behavior, but the representational signature of the mechanism differs across model families. In Gemma models, the binding signature is clearly expressed in the query/key subspaces of the relevant attention heads, whereas in Llama models, the binding information is carried primarily in key vectors. Overall, our results reveal an interpretable mechanism for context dependent state tracking in LLMs.

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

↑