NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

What Arranges Features in Activation Space? Non-Classical Predictive Geometry in Next-Token Predictors

Adam Shai, Thomas Joseph Elliott, Paul M. RiechersNeurIPS 2026

TL;DR

When neural networks learn to predict the next token, they don’t just memorize disconnected facts—they sculpt their internal activation space into the exact mathematical geometry of the hidden system generating the data. Even more surprisingly, ordinary real-valued networks naturally discover compact quantum and post-quantum geometric representations when classical probability models would require infinite memory to keep up.

What Problem Does This Paper Address?

If you crack open a language model using mechanistic interpretability tools, you typically look for "features" (specific directions in activation space) and "circuits" (local pathways connecting them). Sometimes, researchers stumble upon striking global shapes—like days of the week arranged in a neat circle to handle modular arithmetic.

While we are getting good at building dictionaries of local features, a bigger mystery remains: What fundamental principle arranges these features into global geometric shapes in the first place? The authors propose that activation geometry isn't a happy accident; it is the physical manifestation of Bayesian belief updating. When a model reads a sequence of tokens, it places itself at a coordinate representing its "belief" about the hidden state of the world. The authors ask what determines the overarching shape of that belief space—and which shapes neural networks naturally prefer to learn.

Methods

To connect data distributions to geometry, the authors use Generalized Hidden Markov Models (GHMMs)—a unified linear-algebraic framework where observing a token applies a linear operator to update a latent belief vector. Depending on the mathematical constraints of the generator, reachable beliefs trace out three distinct convex shapes:

  • Classical (HMMs): Beliefs are probability distributions over discrete states, confined to a flat-sided simplex (like a triangle).
  • Quantum: Beliefs correspond to density matrices, forming smooth, continuous manifolds (like a Bloch sphere).
  • Post-Quantum: Generalized probabilistic theories that trace out even richer convex bodies with neither discrete corners nor smooth quantum manifolds.
Classical, Quantum, and Post-Quantum Belief Geometries

Crucially, some token sequences require infinitely many classical states to model, yet have tiny, compact quantum or post-quantum representations.

The authors train four standard, real-valued architectures (4-layer Transformers, LSTMs, GRUs, and vanilla RNNs) on standard next-token cross-entropy loss. The models never see the underlying generators. Afterward, the researchers fit a simple affine probe (a linear map plus a bias) from the networks' activations to see if they spontaneously recovered the analytic ground-truth geometry. They also design a clever "next-token-preserving shuffle" and run causal interventions (activation patching and erasure) to prove the models aren't just encoding immediate next-token probabilities, and to see how they actually use this geometry.

Experimental pipeline mapping neural activations to ground-truth beliefs

Datasets

Instead of messy natural language where the true "world model" is unknown, the authors use four synthetic, stationary stochastic processes whose minimal predictive geometries are known analytically:

  • Mess3 (3 tokens): Classical; traces out a fractal inside a 2D probability simplex.
  • Bloch Walk (4 tokens): Quantum-realizable; beliefs live on a circular slice of a Bloch ball, with no finite classical HMM equivalent.
  • Moon (3 tokens): Post-quantum; forms a curved 3D manifold with no finite-dimensional quantum or classical realization.
  • qRRXOR (2 tokens): A quantum process where 85% of the belief geometry's variance is completely invisible to immediate one-step prediction, serving as a strict control.

Key Insights and Ideas

  • Networks are native post-classical thinkers: Standard real-valued neural networks aren't restricted to classical probabilities. Rather than approximating a complex sequence with a massive, clunky classical Markov table, networks effortlessly discover compact quantum and post-quantum belief geometries.
  • Non-orthogonality isn't always a "bug": In interpretability, non-orthogonal feature directions are usually blamed on "superposition" (cramming too many independent features into a small space). Here, non-orthogonality is simply the correct geometry of prediction—you can't build a continuous Bloch circle out of mutually exclusive corners.
  • One geometry, two completely different causal engines: Every tested architecture learns the exact same belief geometry, including future-relevant components invisible to the immediate next token. However, how they use it diverges sharply: RNNs pass the full belief state forward through time like a baton, whereas Transformers throw it away and rebuild the entire belief geometry from scratch at every single token position, reading out only what is needed right now.

Key Results

  • Recovering non-classical shapes: Across all architectures, a single affine map recovers the minimal classical, quantum, and post-quantum geometries. Probe RMSEs drop 12–37× below random-initialization baselines (4× for Transformers on Bloch Walk).
  • Crushing classical approximations: On Bloch Walk, activations fit the compact quantum circle with $R^2 \ge 0.95$, vastly outperforming a 256-state (order-4) classical Markov approximation ($R^2 = 0.27\text{--}0.35$).
  • Looking beyond the next token: On qRRXOR (where immediate next-token probabilities cap $R^2$ at $0.15$), probes recover the true multi-step geometry with $R^2 = 0.99$ (LSTM/GRU) and $R^2 = 0.85$ (Transformer), while shuffled controls stay stuck near the ceiling ($R^2 = 0.14\text{--}0.18$).
  • Causal divergence: Patching the "next-token-invisible" belief subspace in RNNs leaves current logits completely untouched ($\text{KL} \le 10^{-13}$) while shifting future predictions 93–96% of the way toward analytic targets. In Transformers, erasing that exact same invisible subspace barely dents future predictions (costing just $0.0004$ nats/token at layer 3 vs. $0.026$ for the visible part), confirming that Transformers recompute beliefs at each step via first-layer attention.

Limitations and Future Work

The experiments rely on small, stationary, synthetic processes with tiny vocabularies (2–4 tokens) and short context windows (8–10 tokens), leaving open how these clean geometric principles scale, compose, and bend in messy natural language. Additionally, because the probes and interventions are strictly linear, they cannot rule out nonlinear ways the networks might use information. Finally, while the paper reveals what geometry emerges—and raises the fascinating puzzle of why Transformers bother learning invisible future-state geometry they never pass forward—pinpointing the exact weight-level circuits that execute these geometric updates is left for future work.

Summary updated

BibTeX
@inproceedings{shai2026what,
  author = {Adam Shai and Thomas Joseph Elliott and Paul M. Riechers},
  title = {{What Arranges Features in Activation Space? Non-Classical Predictive Geometry in Next-Token Predictors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ufZDbHJ06x},
}
Figure