atlas

Research map / Architectures and efficiency / RNNs and normalization

Transformers Represent Belief State Geometry in their Residual Stream

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that small transformers trained on next-token prediction from HMM-generated data linearly represent the belief-state (mixed-state) geometry of the data-generating process in their residual stream, including fractal geometry.

Problem

What computational structure do transformers learn when trained on next-token prediction? The paper asks whether optimal Bayesian belief-state geometry from computational mechanics is linearly represented in transformer activations.

Approach

Uses the mixed-state presentation from computational mechanics to predict belief-state geometry for HMM-generated data, then regresses residual stream activations linearly onto ground-truth belief states to test for that geometry; finds it is linearly embedded, sometimes spread across layers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Concatenate residual-stream activations across layers (ablation)Transformer trained on RRXOR · RRXORbelief-state geometry representationHelped
Use activations after rather than before final LayerNorm (ablation)Transformer trained on Mess3 · Mess3belief-state geometry regression MSE: 0.0004 -> 0.0003Helped
Shuffle input-to-belief-state correspondences (ablation)Linear regression of residual activations onto belief states · Mess3belief-state geometry representationHurt
Fit the regression using only 20% of input-activation pairs (ablation)Transformer trained on Mess3 · Mess3belief-state geometry regression MSENo clear effect
Train the transformer on the HMM-generated processTransformer · Mess3belief-state geometry representationHelped
Train the transformer on the HMM-generated processTransformer · RRXORbelief-state geometry representationHelped
Represent belief states rather than using next-token predictions as the pairwise-distance accountTransformer trained on RRXOR · RRXORpairwise-distance correlation R²: 0.31 -> 0.95Helped

Surprising findings

Limitations

Experimental setup

Datasets: Mess3 HMM generated sequences RRXOR HMM generated sequences

Benchmarks: Mess3 process RRXOR process

Metrics: mean squared error of linear regression R^2 of pairwise distances

Baselines: next-token probability geometry

Builds on: computational mechanics epsilon-machine mixed-state presentation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy