Constrained belief updates explain geometric structures in transformer representations
Not on the map. Why?
Abstract (arXiv)
What computational structures emerge in transformers trained on next-token prediction? In this work, we provide evidence that transformers implement constrained Bayesian belief updating -- a parallelized version of partial Bayesian inference shaped by architectural constraints. We integrate the model-agnostic theory of optimal prediction with mechanistic interpretability to analyze transformers trained on a tractable family of hidden Markov models that generate rich geometric patterns in neural activations. Our primary analysis focuses on single-layer transformers, revealing how the first attention layer implements these constrained updates, with extensions to multi-layer architectures demonstrating how subsequent layers refine these representations. We find that attention carries out an algorithm with a natural interpretation in the probability simplex, and create representations with distinctive geometric structure. We show how both the algorithmic behavior and the underlying geometry of these representations can be theoretically predicted in detail -- including the attention pattern, OV-vectors, and embedding vectors -- by modifying the equations for optimal future token predictions to account for the architectural constraints of attention. Our approach provides a principled lens on how architectural constraints shape the implementation of optimal prediction, revealing why transformers develop specific intermediate geometric structures.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 11 of its 24 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
11 of 24 references.
References · 11
- 2017Attention Is All You Needcited by 60,361
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2022Toy Models of Superpositioncited by 971
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 716
- 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 435
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
- 2024Transformers represent belief state geometry in their residual streamcited by 77
- 2017Nearly Maximally Predictive Features and Their Dimensionscited by 9
Built on by
Citing papers per year: 2025: 4; 2026: 11.
15 papers.
Sort:
By area:
- 2025Are LLM Belief Updates Consistent with Bayes' Theorem?cited by 9
- 2026Transformers learn factored representationscited by 7
- 2025Neural networks leverage nominally quantum and post-quantum representationscited by 6
- 2025Next-token pretraining implies in-context learningcited by 5
- 2025From monoliths to modules: Decomposing transducers for efficient world modellingcited by 4
- 2026The Topological Trouble With Transformerscited by 3
- 2026Finding Belief Geometries with Sparse Autoencoderscited by 2
- 2026Predictive Statistics Shape Emergent World Representations of Grid Walkerscited by 1
- 2026Erased, Rerouted, or Rescaled? Post-Training and the Causal Quotient of a Language Model's Belief Statecited by 1
- 2026Structure and Scale in Simplicial Sequence Modellingcited by 0
- 2026Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimizationcited by 0
- 2026Elicitation without Backpropagation: Steering Model Behavior by Optimizing the Latent Posteriorcited by 0
3 more
- 2026World models of environment, agent and joint agent-environment systemscited by 0
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanismcited by 0
- 2026Bayesian Fine-tuning Yields Language Models that are as Bayesian as their Beliefs Allowcited by 0
- 2026Erased, Rerouted, or Rescaled? Post-Training and the Causal Quotient of a Language Model's Belief State4 Oct 2026
- 2026Bayesian Fine-tuning Yields Language Models that are as Bayesian as their Beliefs Allow30 Sep 2026
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanism28 Sep 2026
- 2026World models of environment, agent and joint agent-environment systems23 Jul 2026
- 2026Elicitation without Backpropagation: Steering Model Behavior by Optimizing the Latent Posterior21 Jul 2026
- 2026Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimization29 Jun 2026
- 2026Structure and Scale in Simplicial Sequence Modelling31 May 2026
- 2026The Topological Trouble With Transformers18 Apr 2026
- 2026Finding Belief Geometries with Sparse Autoencoders3 Apr 2026
- 2026Predictive Statistics Shape Emergent World Representations of Grid Walkers17 Mar 2026
- 2026Transformers learn factored representations2 Feb 2026
- 2025From monoliths to modules: Decomposing transducers for efficient world modelling1 Dec 2025
3 more
- 2025Are LLM Belief Updates Consistent with Bayes' Theorem?23 Jul 2025
- 2025Neural networks leverage nominally quantum and post-quantum representations10 Jul 2025
- 2025Next-token pretraining implies in-context learning23 May 2025
- 2025Neural networks leverage nominally quantum and post-quantum representationscited by 6
- 2025From monoliths to modules: Decomposing transducers for efficient world modellingcited by 4
- 2026Predictive Statistics Shape Emergent World Representations of Grid Walkerscited by 1
- 2026World models of environment, agent and joint agent-environment systemscited by 0
- 2026World models of environment, agent and joint agent-environment systems23 Jul 2026
- 2026Predictive Statistics Shape Emergent World Representations of Grid Walkers17 Mar 2026
- 2025From monoliths to modules: Decomposing transducers for efficient world modelling1 Dec 2025
- 2025Neural networks leverage nominally quantum and post-quantum representations10 Jul 2025
- 2026Finding Belief Geometries with Sparse Autoencoderscited by 2
- 2026Finding Belief Geometries with Sparse Autoencoders3 Apr 2026
- 2025Are LLM Belief Updates Consistent with Bayes' Theorem?cited by 9
- 2026Transformers learn factored representationscited by 7
- 2025Next-token pretraining implies in-context learningcited by 5
- 2026The Topological Trouble With Transformerscited by 3
- 2026Erased, Rerouted, or Rescaled? Post-Training and the Causal Quotient of a Language Model's Belief Statecited by 1
- 2026Structure and Scale in Simplicial Sequence Modellingcited by 0
- 2026Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimizationcited by 0
- 2026Elicitation without Backpropagation: Steering Model Behavior by Optimizing the Latent Posteriorcited by 0
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanismcited by 0
- 2026Bayesian Fine-tuning Yields Language Models that are as Bayesian as their Beliefs Allowcited by 0
- 2026Erased, Rerouted, or Rescaled? Post-Training and the Causal Quotient of a Language Model's Belief State4 Oct 2026
- 2026Bayesian Fine-tuning Yields Language Models that are as Bayesian as their Beliefs Allow30 Sep 2026
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanism28 Sep 2026
- 2026Elicitation without Backpropagation: Steering Model Behavior by Optimizing the Latent Posterior21 Jul 2026
- 2026Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimization29 Jun 2026
- 2026Structure and Scale in Simplicial Sequence Modelling31 May 2026
- 2026The Topological Trouble With Transformers18 Apr 2026
- 2026Transformers learn factored representations2 Feb 2026
- 2025Are LLM Belief Updates Consistent with Bayes' Theorem?23 Jul 2025
- 2025Next-token pretraining implies in-context learning23 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learning
- 2026Fully Interpretable Minimal Transformers: From Geometry to Algorithm
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Context
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks
- 2024Learning interpretable positional encodings in transformers depends on initialization
- 2026Trajectory Geometry of Transformer Representations Across Layers
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization
- 2026Neural expectation-maximization and meta-models