How do Language Models Bind Entities in Context?
Jiahai Feng, Jacob Steinhardt

TL;DR
This paper uncovers a binding ID mechanism in large language models that enables them to associate entities with attributes in context, revealing how they internally represent symbolic knowledge for in-context reasoning.
Contribution
It identifies and characterizes a binding ID mechanism in large language models, demonstrating its role in representing entity-attribute associations internally.
Findings
Binding ID vectors are present in all large models studied.
Binding ID vectors form a continuous, discernable subspace.
Interventions show binding IDs are crucial for in-context reasoning.
Abstract
To correctly use in-context information, language models (LMs) must bind entities to their attributes. For example, given a context describing a "green square" and a "blue circle", LMs must bind the shapes to their respective colors. We analyze LM representations and identify the binding ID mechanism: a general mechanism for solving the binding problem, which we observe in every sufficiently large model from the Pythia and LLaMA families. Using causal interventions, we show that LMs' internal activations represent binding information by attaching binding ID vectors to corresponding entities and attributes. We further show that binding ID vectors form a continuous subspace, in which distances between binding ID vectors reflect their discernability. Overall, our results uncover interpretable strategies in LMs for representing symbolic knowledge in-context, providing a step towards…
Peer Reviews
Decision·ICLR 2024 poster
1. This paper presented a novel concept of binding mechanism in language models. 2. The paper provided experiment results based on many datasets, albeit toy data. Figure 3, Tables 1 and 2 supported the main claims of the binding vectors and their additivity property. 3. The paper was well-written. I found that the definitions and hypotheses were well articulated and precise. It also provided sufficient background to understand the paper.
**Significance of the Results** 1. While the ideas presented in this work were novel, it was unclear how generalized they are. The authors presented a series of experiments based on somewhat synthetic datasets. Had the task been reading comprehension, we might not have observed the same mechanism. I think adding more tasks did not provide meaningful results unless they required different reasoning complexities. In addition, the experiments presented in Section 3 only provided anecdotal evidence
- The paper explores an interesting topic on representation learning that should contribute to a deeper understanding of LLMs. - The paper presents a novel idea to explain the phenomenon.and experimental results that support the idea.
- The paper is sometimes difficult to follow. This may be because the main body of the paper contains too many concepts and fails to provide important explanations and examples that would help the reader understand the concepts. - It is not entirely clear whether the authors’ conclusions are supported by experimental evidence.
Figure 2 was very helpful in illustrating the substitution scheme. I am not completely convinced that the claims follow from the observations due to some clarity (or confusion on my part) issues (see below), but assuming they hold: the _binding ID_ mechanism and its properties represent a really exciting discovery in terms of understanding LLM ICL phenomena. I suppose maybe this sort of lines up with the recent (Bricken et al 2023)[https://transformer-circuits.pub/2023/monosemantic-features/in
Section 2.2: it was not immediately obvious to me whether the stacked activations completely "d-separates" (maybe not exactly this concept?) the intervention token from everything else, without some more detail on the LM architecture. Section 4.1 is very dense, and I found it difficult to follow without working it out myself on separate paper. Given the importance of these concepts to the rest of the paper, a diagram might help make it clearer. See questions below, but I had a central confusion
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Language and cultural evolution
MethodsPythia
