Transformers Represent Belief State Geometry in their Residual Stream
Open accessThe DOI matches its Crossref record; 26 of the 26 references it cites were found in a registry or an index; none of the 19 sources its claims cite is checked for support yet.
Abstract
What computational structure are we building into large language models when we train them on next-token prediction? Here, we present evidence that this structure is given by the meta-dynamics of belief updating over hidden states of the data-generating process. Leveraging the theory of optimal prediction, we anticipate and then find that belief states are linearly represented in the residual stream of transformers, even in cases where the predicted belief state geometry has highly nontrivial fractal structure. We investigate cases where the belief state geometry is represented in the final residual stream or distributed across the residual streams of multiple layers, providing a framework to explain these observations. Furthermore we demonstrate that the inferred belief states contain information about the entire future, beyond the local next-token prediction that the transformers are explicitly trained on. Our work provides a general framework connecting the structure of training data to the geometric structure of activations inside transformers.
Overview
CoChat Summary
TL;DR
Transformers trained on next-token prediction over HMM-generated data linearly encode the mixed-state presentation’s belief-state geometry in their residual stream, including highly nontrivial fractal geometries. This geometry can appear in the final residual stream or be distributed across layers, and it carries information beyond local next-token prediction.
Key findings
- For the Mess3 process, a 2D subspace of the 64-dimensional final residual stream linearly matches the ground-truth fractal belief-state geometry; MSE was 0.0003 after LayerNorm versus 0.0004 before LayerNorm.
- For the RRXOR process, the 36 belief states in a 4-simplex are not represented in the final residual stream, but are veridically represented when residual activations from all layers are concatenated; individual layers do not suffice.
- Pairwise distances in transformer belief-state representations correlate with ground-truth belief-state distances for RRXOR (R² = 0.95) more than with next-token probabilities (R² = 0.31), while Mess3 next-token structure is preserved.
- The geometry emerges gradually during training, lower MSE correlates with lower validation loss, and cross-validation using 20% of input-activation pairs still recovers the geometry; shuffled labels collapse to the simplex center.
Methods
- Data were generated from edge-emitting hidden Markov models, primarily Mess3 (3 hidden states, vocabulary {A, B, C}) and RRXOR (36 MSP states, 4-simplex), with Z1R as an illustrative example.
- Transformers used context window 10, ReLU, head dimension 8, model dimension 64, 1 attention head in each of 4 layers, MLP dimension 256, causal attention masking, and LayerNorm; training used SGD with batch size 64, 1,000,000 epochs, learning rate 0.01, no weight decay, and 64 sequences per batch from the HMM stationary initial state.
- Residual stream activations were recorded at all context positions, labeled by ground-truth belief states from the MSP, and fit with an affine map \(b \approx W a + c\) via linear regression minimizing MSE; controls included 20%/80% cross-validation and shuffled-label analyses repeated 1000 times.
Limitations
- Stated in the paper: experiments are small-scale, using HMMs with only 3–5 states and vocabularies of 2–3 tokens; the stationary ergodic setting is assumed; realistic systems would have belief-state simplex dimensions exceeding the residual stream, requiring unknown compression; computing ground-truth MSPs becomes intractable as generator size and context length grow; and the work did not directly test whether the representations implement Bayesian updating circuits.
- Evident from the text: validation is limited to synthetic HMM-generated data rather than natural language or other real-world sources, and linear regression establishes representational correspondence, not causal use of the belief-state geometry.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
0 Valid · 1 Not valid · 16 Not checked · 58 Own results and interpretations
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“Using linear regression, we identified a 2D subspace of the 64-dimensional residual activations that best matched the ground-truth belief distributions from the MSP.”
- Also stated in: § 3.1 Belief state geometry is linearly represented in the residual stream · boosted
“Remarkably, the geometry of this 2D subspace closely resembled the predicted fractal structure (Figure 5C), providing strong evidence that the transformer had indeed learned to represent the geometry of the belief states in its residual stream 4 .”
§ Transformers Represent Belief State Geometry in their Residual Stream > 3.1 Belief state geometry is linearly represented in the residual stream
boostedstates an associationSingle case- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
- Also stated in: § 3.1 Belief state geometry is linearly represented in the residual stream · boosted
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“In (Figure 7D Left) we compare the ground truth pairwise distances to the represented pairwise distances, and find that for both the RRXOR and Mess3 process, there is good correspondence.”
§ Transformers Represent Belief State Geometry in their Residual Stream > 3.2 Belief state geometry represents information beyond next-token prediction
plainstates an association- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“Finally, we ran a control that preserved the fractal geometry in the simplex but shuffled the input-point correspondences, resulting in the regression mapping all points to the simplex center due to the lack of discoverable structure (Figure 6C).”
§ Transformers Represent Belief State Geometry in their Residual Stream > 3.1 Belief state geometry is linearly represented in the residual stream
plainstates a cause- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“First, we performed our analysis at multiple points through training and found that the simplex structure emerged gradually (Figure 6A), suggesting that the detailed fractal structure found at the end of training was not a trivial consequence of the model architecture or initialization.”
§ Transformers Represent Belief State Geometry in their Residual Stream > 3.1 Belief state geometry is linearly represented in the residual stream
hedgedstates an association- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“In addition, more faithful representation of the belief state geometry in the residual stream corresponded to lower cross entropy loss (Figure S2).”
§ Transformers Represent Belief State Geometry in their Residual Stream > 3.1 Belief state geometry is linearly represented in the residual stream
plainstates an association- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: unclear — It is unclear whether the paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
34 more claims
Create a free account to see all 75 claims and every source verdict.
- It may state two separate claims as one. 12
- Probably not a substantial claim. 28
- The quote only partly states this claim. 1
Citations
Cites
On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? 🦜
Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021) · Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency · doi:10.1145/3442188.3445922 · Cited by 6,988
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
Gu, A., & Dao, T. (2023) · arXiv · doi:10.48550/arxiv.2312.00752 · Cited by 1,579
Computational Mechanics: Pattern and Prediction, Structure and Simplicity
Shalizi, C. R., & Crutchfield, J. P. (2001) · Journal of Statistical Physics · doi:10.1023/a:1010388907793 · Cited by 471
Crutchfield, J. P. (2012) · Nature Physics · doi:10.1038/nphys2190 · Cited by 446
Transformers Learn Shortcuts to AutomataPreprint
Liu, B., Ash, J. T., Goel, S., Krishnamurthy, A., & Zhang, C. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2210.10749 · Cited by 215
Not All Language Model Features Are One-Dimensionally Linear
Engels, J., Michaud, E. J., Liao, I., Gurnee, W., & Tegmark, M. (2025) · International Conference on Learning Representations · doi:10.48550/arxiv.2405.14860 · Cited by 210
Ha, D., & Schmidhuber, J. (2018) · Zenodo · doi:10.5281/zenodo.1207631 · Cited by 187
Future Lens: Anticipating Subsequent Tokens from a Single Hidden State
Pal, K., Sun, J., Yuan, A., Wallace, B., & Bau, D. (2023) · Conference on Computational Natural Language Learning · doi:10.18653/v1/2023.conll-1.37 · Cited by 167
Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task
Li, K., Hopkins, A. K., Bau, D., Viégas, F., Pfister, H., & Wattenberg, M. (2022) · arXiv · doi:10.48550/arxiv.2210.13382 · Cited by 61
Emergent Linear Representations in World Models of Self-Supervised Sequence Models
Nanda, N., Lee, A., & Wattenberg, M. (2023) · arXiv · Cited by 55
Emergent Linear Representations in World Models of Self-Supervised Sequence Models
Nanda, N., Lee, A., & Wattenberg, M. (2023) · Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP · doi:10.18653/v1/2023.blackboxnlp-1.2 · Cited by 55
Meta-learning of Sequential Strategies
Ortega, P. A., Wang, J. X., Rowland, M., Genewein, T., Kurth-Nelson, Z., Pascanu, R., Heess, N., Veness, J., Pritzel, A., Sprechmann, P., et al. (2019) · arXiv · doi:10.48550/arxiv.1905.03030 · Cited by 47
Crutchfield, J. P., Ellison, C. J., James, R. G., & Mahoney, J. R. (2010) · Chaos An Interdisciplinary Journal of Nonlinear Science · doi:10.1063/1.3489888 · Cited by 38
Spectral simplicity of apparent complexity. I. The nondiagonalizable metadynamics of prediction
Riechers, P. M., & Crutchfield, J. P. (2018) · Chaos An Interdisciplinary Journal of Nonlinear Science · doi:10.1063/1.4985199 · Cited by 30
Self-citationJurgens, A. M., & Crutchfield, J. P. (2021) · Chaos An Interdisciplinary Journal of Nonlinear Science · doi:10.1063/5.0050460 · Cited by 27
Nearly maximally predictive features and their dimensions
Marzen, S., & Crutchfield, J. P. (2017) · Physical review. E · doi:10.1103/physreve.95.051301 · Cited by 26
Self-citationShannon Entropy Rate of Hidden Markov Processes
Jurgens, A. M., & Crutchfield, J. P. (2021) · Journal of Statistical Physics · doi:10.1007/s10955-021-02769-3 · Cited by 21
Fraudulent white noise: Flat power spectra belie arbitrarily complex processes
Riechers, P. M., & Crutchfield, J. P. (2021) · Physical Review Research · doi:10.1103/physrevresearch.3.013170 · Cited by 20
Self-citationSignatures of infinity: Nonergodicity and resource scaling in prediction, complexity, and learning
Crutchfield, J. P., & Marzen, S. (2015) · Physical Review E · doi:10.1103/physreve.91.050106 · Cited by 18
Self-citationMultiperiodic Processes: Ergodic Sources with a Sublinear EntropyPreprint
Dębowski, Ł. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2302.09049 · Cited by 16
Better & Faster Large Language Models via Multi-token Prediction
Gloeckle, F., Idrissi, B. Y., Rozière, B., Lopez-Paz, D., & Synnaeve, G. (2024) · arXiv · doi:10.48550/arxiv.2404.19737 · Cited by 15
Spectral simplicity of apparent complexity. II. Exact complexities and complexity spectra
Riechers, P. M., & Crutchfield, J. P. (2018) · Chaos An Interdisciplinary Journal of Nonlinear Science · doi:10.1063/1.4986248 · Cited by 14
Self-citationOn Limitation of Transformer for Learning HMMsPreprint
Hu, J., Liu, Q., & Jin, C. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2406.04089 · Cited by 14
Prediction and generation of binary Markov processes: Can a finite-state fox catch a Markov mouse?
Ruebeck, J. B., James, R. G., Mahoney, J. R., & Crutchfield, J. P. (2018) · Chaos An Interdisciplinary Journal of Nonlinear Science · doi:10.1063/1.5003041 · Cited by 13
The pitfalls of next-token prediction
Bachmann, G., & Nagarajan, V. (2024) · arXiv · doi:10.48550/arxiv.2403.06963 · Cited by 6
Future Lens: Anticipating Subsequent Tokens from a Single Hidden State
Pal, K., Sun, J., Yuan, A., Wallace, B. C., & Bau, D. (2023) · arXiv · doi:10.48550/arxiv.2311.04897
Research works printed but not linked: 4
- Lukasz Debowski. Information theory meets power laws: Stochastic processes and language models. John Wiley & Sons, 2020.
- Wolfgang Löhr. Predictive models and generative complexity. Journal of Systems Science and Complexity, 25:30-45, 2012.
- Sarah E Marzen and James P Crutchfield. Nearly maximally predictive features and their dimensions. Physical Review E, 95(5):051301, 2017.
- D. R. Upper. Theory and Algorithms for Hidden Markov Models and Generalized Hidden Markov Models. PhD thesis, University of California, Berkeley, 1997. Published by University Microfilms Intl, Ann Arbor, Michigan.
Cited by
Programming Refusal with Conditional Activation Steering
Lee, B. W., Padhi, I., Ramamurthy, K. N., Miehling, E., Dognin, P., Nagireddy, M., & Dhurandhar, A. (2025) · International Conference on Learning Representations · doi:10.48550/arxiv.2409.05907 · Cited by 149
Papillon, M., Sanborn, S., Mathe, J., Cornelis, L., Bertics, A., Buracas, D., Lillemark, H. J., Shewmake, C., Dinç, F., Pennec, X., et al. (2025) · Machine Learning Science and Technology · doi:10.1088/2632-2153/adf375 · Cited by 57
ICLR: In-Context Learning of Representations
Park, C. F., Lee, A., Lubana, E. S., Yang, Y., Okawa, M., Nishi, K., WATTENBERG, M. P., & Tanaka, H. (2025) · International Conference on Learning Representations · doi:10.48550/arxiv.2501.00070 · Cited by 47
Manifold Steering Reveals the Shared Geometry of Neural Network Representation and BehaviorPreprint
Wurgaft, D., Rager, C., Kowal, M., Shyam, V., Feucht, S., Bhalla, U., Haklay, T., Bigelow, E., Sarfati, R., McGrath, T., et al. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.05115 · Cited by 44
Survey on the Role of Mechanistic Interpretability in Generative AI
Ranaldi, L. (2025) · Big Data and Cognitive Computing · doi:10.3390/bdcc9080193 · Cited by 34
Metadata
- Authors
- Shai, A., Marzen, S., Teixeira, L., Oldenziel, A., & Riechers, P.
- Venue
- Advances in Neural Information Processing Systems 37
- Published
- 2024
- Pages
- 75012-75034
- ISSN
- 1049-5258 (ISSN-L)
- OpenAlex
- W4415797094
- Cited by
- 4
- References
- 16
- Citations by year
- 2026: 2 · 2025: 2
- FWCI
- 1.17
- Type
- conference paper
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- neural information processing systems (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Logic, Reasoning, and Knowledge
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Keywords
- residual stream, transformer models
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
A language model drew the claims from the paper on 2026-11-01, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).
A second model labelled each claim on 2026-11-01 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.