Skip to content

Constrained belief updating explains the geometric structure in Transformer representationsConstrained belief updates explain geometric structures in transformer representations

arXiv· arXiv:2502.01954· Mateusz Piotrowski, Paul M. Riechers, Daniel Filan, Adam S. ShaiMATS; Simplex, Astera Institute; Beyond Institute for Theoretical Science (BITS)Indexed by this site · 2026-10-14· Originally publishedAlignment

Translation in progress — untranslated text is omitted.

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe paper presents evidence that Transformers implement constrained Bayesian belief updating, i.e., a parallelized version of partial Bayesian inference shaped by architectural constraints. The study trains Transformers on tractable hidden Markov models and performs mechanistic interpretability analysis, focusing mainly on single-layer Transformers, showing that the first attention layer implements such constrained updates, while subsequent layers in multi-layer architectures further refine the representations. The authors state that attention performs an algorithm with a natural interpretation on the probability simplex and forms representations with distinctive geometric structure. The paper also states that by modifying the equation for optimal next-token prediction to incorporate the architectural constraints of attention, one can theoretically predict attention patterns, OV vectors, and embedding vectors.

Questions
Optimal prediction for next-token requires recursively updating the belief about the hidden state, yet attention can only do parallel weighting. The authors aim to explain why this constraint makes the transformer learn a specific intermediate geometry.
Methods
Train single-layer and 4-layer transformers on Mess3. Replace the Bayesian chain multiplication with a parallel sum of independent corrections for each historical token, and use transition matrix eigenvalues to predict attention decay, OV vectors, and embeddings.
Experiments and results
The authors state that intermediate activations match constrained belief geometry, and post-MLP activations match full belief geometry; agreement is better when α is between 0.2 and 0.6, with deviations increasing outside that range. A single head is insufficient when x>1/3. In Table 1, the first 3 principal components explain over 90% of variance in most settings.
Limitations and future work
The authors note that the models are 1-layer and 4-layer, analysis is focused on the first attention layer, the data is fully supported Mess3, and it does not capture many aspects of natural language. Why gradient descent converges to these circuits remains to be studied. The paper does not report the number of repeats.
Read originalarxiv.org