atlas

Research map / Architectures and efficiency / Attention and transformers

Constrained Belief Updates Explain Geometric Structures in Transformer Representations

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 1 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 single-layer transformers trained on Mess3 HMM sequences implement a constrained (parallelized, attention-based) Bayesian belief update, predicting attention patterns, OV vectors, and embedding geometry via a spectral analysis of the HMM transition matrix.

Problem

Optimal next-token prediction requires recursive Bayesian belief updating, but transformer architectures compute in parallel via attention; it is unclear how transformers reconcile this and why intermediate residual-stream activations form fractal geometries that differ from the final belief-state g

Approach

Model the first attention layer as implementing a constrained belief update: each past token contributes an independent correction to the stationary belief, Pr(S_d|Z_s) - Pr(S_d), summed in parallel. A spectral decomposition of the HMM transition matrix then predicts attention weights (decaying as (1-3x)^n), OV vectors, and embeddings, and multiple heads are needed when eigenvalues are negative.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add a second attention head instead of using a single head (ablation)single-layer transformer · Mess3 with x=0.5belief geometry fitHelped
use a single attention head rather than two (ablation)single-layer transformer · Mess3 with x>1/3, including x=0.5belief geometry fitHurt
add a second attention head to capture oscillatory updates (ablation)single-layer transformer · Mess3 with negative transition eigenvalueKL divergence to optimal probabilitiesHelped
add subsequent transformer layers after the first attention layer4-layer transformer · Mess3fit to full Bayesian belief geometryHelped

Surprising findings

Limitations

Experimental setup

Datasets: Mess3 HMM-generated sequences

Benchmarks: Mess3 HMM belief-state geometry

Metrics: MSE to constrained belief geometry MSE to full belief geometry validation KL divergence explained variance ratio

Baselines: optimal full Bayesian belief updating

Builds on: computational mechanics belief state geometry transformer circuits framework

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