Hybrid mechanisms: how language models retrieve bound entities in contextMixing Mechanisms: How Language Models Retrieve Bound Entities In-Context
Translation in progress — untranslated text is omitted.
The paper studies how language models bind and retrieve entities in context, finding that the positional mechanism previously established on short entity lists becomes noisy and unreliable in the middle positions as the number of entities grows. Across nine models and ten binding tasks, the authors find that models supplement the lexical mechanism (retrieving via the bound counterpart entity) and the reflexive mechanism (retrieving via a direct pointer), with the three mechanisms mixed in a consistent pattern. The causal model built from this achieves a 95% agreement rate in estimating the next token distribution and generalizes to long inputs with interleaved entity groups and open-ended text. The authors state that this provides a more complete picture of in-context entity binding and retrieval in language models.
- Context reasoning requires binding related entities before retrieving. The authors claim the prevailing positional retrieval becomes noisy at middle positions as entity groups grow, and an explanation is needed for how models compensate.
- Counterfactual pairing makes position, vocabulary, and reflexivity predict different entities after swap interventions, then separates the signal in the last-token residual stream. The causal model M fits the next-token distribution with a Gaussian position term plus two one-hot terms.
- Across nine models and ten binding tasks, the first and last positions rely more on the positional mechanism, while middle positions have more diffuse signals with stronger lexical and reflexive mechanisms; the in-group role determines which of the latter two is more prominent. On gemma-2-2b-it's music, the mixed model has an average JSS of 0.95.
- The paper does not specifically discuss limitations or future directions. Experiments cover nine models across three families and ten templated binding tasks; the causal model is mainly learned on gemma-2-2b-it's music, with sports and qwen2.5-7b-it additionally reported in the appendix.
Related events and news
0 events · 2 news mentions
News that mentions this paper
- Goodfire Researchgives the paper's titleGoodfire 研究:语言模型如何在上下文中检索绑定实体
- Goodfire Researchcites the paper's id or linkGoodfire 提出神经几何:神经网络内部世界呈弯曲流形结构
et al. 2025, Mueller et al. 2025, Prakash et al. 2025, Gur Arieh et al. 2025, Rodriguez et al. 2025, Boguraev et al. 2025, Huang et al. 2025, Minder et al. 2025, Grant et al. 2025, Sutter et al.