paper-with-me

Papers

Transformers represent belief state geometry in their residual stream

2024-05-24 · Adam S. Shai, Sarah E. Marzen, Lucas Teixeira, Alexander Gietelink Oldenziel, Paul M. Riechers

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.

📄 PDF Abstract BibTeX arXiv:2405.15943

Code (0)

등록된 구현이 없습니다.

Tasks

Prediction

Similar Papers 제목 키워드 기반

Finding Belief Geometries with Sparse Autoencoders

2026-04-03 · Matthew Levinson arxiv

Understanding the geometric structure of internal representations is a central goal of mechanistic interpretability. Prior work has shown that transformers trained on sequences generated by hidden Markov models encode pr…

Constrained belief updates explain geometric structures in transformer representations

2025-02-04 · Mateusz Piotrowski, Paul M. Riechers, Daniel Filan, Adam S. Shai

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 parti…

Bayesian InferencePrediction

Learning to Achieve Goals with Belief State Transformers

2024-10-30 · Edward S. Hu, Kwangjun Ahn, Qinghua Liu, Haoran Xu 외

We introduce the "Belief State Transformer", a next-token predictor that takes both a prefix and suffix as inputs, with a novel objective of predicting both the next token for the prefix and the previous token for the su…

Neural networks leverage nominally quantum and post-quantum representations

2025-07-10 · Paul M. Riechers, Thomas J. Elliott, Adam S. Shai arxiv

We show that deep neural networks, including transformers and RNNs, pretrained as usual on next-token prediction, intrinsically discover and represent beliefs over 'quantum' and 'post-quantum' low-dimensional generative …

The Shape of Beliefs: Geometry, Dynamics, and Interventions along Representation Manifolds of Language Models' Posteriors

2026-02-02 · Raphaël Sarfati, Eric Bigelow, Daniel Wurgaft, Siddharth Boppana 외 arxiv

Large language models (LLMs) form implicit beliefs (posteriors over latent variables) from prompts, but we lack a mechanistic account of how these beliefs are encoded in representation space, how they update with new evi…