atlas

Research map / Large language models / Retrieval and knowledge

How do Language Models Bind Entities in Context?

ICLR 2024 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Identifies a binding ID mechanism in sufficiently large Pythia and LLaMA models, showing via causal mediation that entity-attribute bindings are represented by additive, geometrically structured binding ID vectors.

Problem

How language models bind entities to their attributes in context (the binding problem), so that they can later recall the correct attribute for each entity.

Approach

LMs attach abstract binding ID vectors to entity and attribute activations by vector addition; queries retrieve the attribute sharing the entity's binding ID. Causal mediation experiments (factorizability, position independence, additive mean interventions) verify this, and binding IDs form a continuous subspace where distance reflects discernability.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Swap the attribute binding ID vectorsLLaMA 30B binding ID mechanism · Capitals, n=2median-calibrated accuracy: 0.99 -> 0.00; 1.00 -> 0.03Hurt
Swap the entity binding ID vectorsLLaMA 30B binding ID mechanism · Capitals, n=2median-calibrated accuracy: 0.99 -> 0.00; 1.00 -> 0.01Hurt
Apply entity and attribute mean interventions togetherLLaMA 30B binding ID mechanism · Capitals, n=2median-calibrated accuracy: 0.99 -> 0.97; 1.00 -> 0.99No clear effect
Replace estimated binding ID difference vectors with random directionsLLaMA 30B binding ID mechanism · Capitals, n=2median-calibrated accuracy: 0.99 -> 0.98; 1.00 -> 0.98No clear effect
Apply binding-vector differences estimated from parallelLLaMA 30B binding ID mechanism · Capitals, n=3mean median-calibrated accuracy: 0.30 -> 0.87Helped
Apply binding-vector differences estimated from shapesLLaMA 30B binding ID mechanism · Capitals, n=3mean median-calibrated accuracy: 0.30 -> 0.71Helped
Apply binding-vector differences estimated from fruitsLLaMA 30B binding ID mechanism · Capitals, n=3mean median-calibrated accuracy: 0.30 -> 0.80Helped
Apply binding-vector differences estimated from biosLLaMA 30B binding ID mechanism · Capitals, n=3mean median-calibrated accuracy: 0.30 -> 0.47Helped
Replace source-task binding vectors with randomly oriented vectorsLLaMA 30B binding ID mechanism · Capitals, n=3mean median-calibrated accuracy: 0.30 -> 0.31No clear effect
Swap the attribute binding ID vectorsLLaMA 65B binding ID mechanism · Onehopmedian-calibrated accuracy: 0.73 -> 0.25; 0.79 -> 0.28Hurt
Swap the entity binding ID vectorsLLaMA 65B binding ID mechanism · Onehopmedian-calibrated accuracy: 0.73 -> 0.24; 0.79 -> 0.26Hurt
Apply entity and attribute mean interventions togetherLLaMA 65B binding ID mechanism · Onehopmedian-calibrated accuracy: 0.73 -> 0.71; 0.79 -> 0.77No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: SST-2

Benchmarks: capitals parallel shapes fruits bios onehop SST-2 MCQ

Metrics: median-calibrated accuracy mean log prob top-1 accuracy

Baselines: direct binding (alternative mechanism) random vectors zero vector ablation

Builds on: rotary position embeddings causal mediation analysis median-calibrated accuracy

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy