Large Language Models Develop Belief State Geometry In-Context
Daniel Balcells, Andrew Jun Lee, Chirag Rastogi, Paul Riechers, Adam Shai, Xavier Poncini
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Predictive State Estimation in Context · Type: empirical study · Keywords: in-context learning, belief state decoding, large language models, hidden Markov models, representation geometry
Areas: LLM Reasoning › Reasoning Mechanisms › Internal Representation Geometry
Summary
LLMs develop internal belief state geometry that can be linearly decoded from their activations, enabling interventions that preserve downstream performance.
Explained to a 5-year-old
When you ask a big language model a question, it can answer without being taught each answer. It keeps a secret picture in its brain that changes as it reads words. This secret picture is like a map that shows what the model thinks is happening. By tweaking this map, the model still works well. This helps us understand how computers think.
Explained to a 5-year-old, longer
When you ask a big language model a question, it can answer without being taught each answer. It keeps a secret picture in its brain that changes as it reads words. This secret picture is like a map that shows what the model thinks is happening. Scientists gave the model special puzzles made from simple hidden-state machines. They discovered that the secret picture matches the puzzles almost perfectly. The model’s secret picture can be read like a picture, showing the true answer. By changing parts of this secret picture, the model still gives correct answers. If you mess with the picture in the wrong way, the model gets confused. This tells us that the model’s thinking is similar to how we do math when we guess. It also shows that computers can learn to be smart in ways that look like human thinking. Understanding this helps us build better AI that we can trust. In the end, the study shows that big language models have a hidden geometry that works like a clever map.
For a technical reader
The study shows that large language models store internal representations of belief states that can be linearly decoded from their activations. By prompting the models with sequences generated from hidden Markov models, the researchers measured how well these belief states could be extracted, finding R² scores up to 0.99. They then intervened on the identified representation subspace using patching and steering, preserving downstream performance while control perturbations caused degradation. This demonstrates that in-context learning in LLMs approximates optimal Bayesian inference over inferred HMMs. The findings provide a concrete way to probe and influence model reasoning without full fine-tuning.
Problem
It is unclear how LLMs represent belief states during in-context learning, limiting understanding of their internal reasoning.
Method
The authors prompt LLMs with sequences generated from hidden Markov models, then linearly decode belief states from model activations and intervene on the identified subspace via patching and steering to assess functional relevance.
Results
Probe R² values reach 0.83-0.99, and interventions maintain performance comparable to the original model, whereas control interventions cause substantial degradation.
Contributions
Provides representation-level evidence that ICL approximates optimal Bayesian prediction over inferred HMMs, demonstrates linear decodability of belief states, and shows functional relevance via targeted interventions.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction