Finding Belief Geometries with Sparse Autoencoders
Organizations: Independent Researcher
Abstract
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 probabilistic belief states as simplex-shaped geometries in their residual stream, with vertices corresponding to latent generative states. Whether large language models trained on naturalistic text develop analogous geometric representations remains an open question. We introduce a pipeline for discovering candidate simplex-structured subspaces in transformer representations, combining sparse autoencoders (SAEs), -subspace clustering of SAE features, and simplex fitting using AANet. We validate the pipeline on a transformer trained on a multipartite hidden Markov model with known belief-state geometry. Applied to Gemma-2-9B, we identify 13 priority clusters exhibiting candidate simplex geometry (). A key challenge is distinguishing genuine belief-state encoding from tiling artifacts: latents can span a simplex-shaped subspace without the mixture coordinates carrying predictive signal beyond any individual feature. We therefore adopt barycentric prediction as our primary discriminating test. Among the 13 priority clusters, 3 exhibit a highly significant advantage on near-vertex samples (Wilcoxon ) and 4 on simplex-interior samples. Together 5 distinct real clusters pass at least one split, while no null cluster passes either. One cluster, 768_596, additionally achieves the highest causal steering score in the dataset. This is the only case where passive prediction and active intervention converge. We present these findings as preliminary evidence that genuine belief-like geometry exists in Gemma-2-9B's representation space, and identify the structured evaluation that would be required to confirm this interpretation.
Figures & tables
| Cluster | Semantic Confidence | Vertex interpretation (summary) | |
| 512_17 | 15 | HIGH | Text register (instructional / promotional / metadata) |
| 512_229 | 22 | MEDIUM | Syntactic complexity (simple / formal-specific / complex-embedded) |
| 512_261 | 18 | MEDIUM | Grammatical function (content words / function words / technical register) |
| 512_504 | 22 | MEDIUM | Syntactic role (function words / content nouns / predicates) |
| 768_140 | 26 | MEDIUM | Referential specificity (generic / specific / anaphoric) |
| 768_210 | 4 | MEDIUM | Syntactic complexity (complex NP / simple / intermediate) |
| Near-vertex (NV) | Simplex-interior (SI) | ||||
| Cluster | Frac. wins | Frac. wins | |||
| 512_17 | 15 | 0.00 | 1.00 | 0.04 | 1.00 |
| 512_22 | 6 | 0.00 | 1.00 | 0.04 | 1.00 |
| 512_67 | 25 | 0.00 | 1.00 | 0.00 | 1.00 |
| 512_181 | 26 | 1.00 | 1.00 | ||
| 512_229 | 22 | 1.00 | 0.58 | ||
| Cluster | Steering score | Best type | Best scale |
| 768_596 | 0.419 | type2 | 20 |
| 512_22 | 0.356 | type1 | 20 |
| 768_210 | 0.336 | type2 | 1 |
| 768_140 | 0.289 | type1 | 20 |
| 512_67 | 0.250 | type1 | 20 |
| 512_261 | 0.242 | type1 | 1 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Cluster | Assigned component | |
|---|---|---|
| 0 | tom_quantum | 0.551 |
| 1 | mess3_2 | 0.314 |
| 2 | tom_quantum_1 | 0.577 |
| 3 | mess3_1 | 0.719 |
| 4 | mess3 | 0.893 |
| 5 | (noise) | — |
| Cluster | KL ratio | Bary wins | Steering | Interp. | |
|---|---|---|---|---|---|
| 512_17 | 15 | 1.054 | 0.00 | 0.118 | HIGH |
| 512_22 | 6 | 1.058 | 0.00 | 0.356 | LOW |
| 512_67 | 25 | 1.229 | 0.00 | 0.250 | LOW |
| 512_181 | 26 | 1.037 | 1.00 (sig.) | — | LOW |
| 512_229 | 22 | 1.166 | 1.00 (sig.) | — | MED |
| 512_261 | 18 | 1.032 | 0.00 | 0.242 | MED |
| Latent | Neuronpedia interp (GPT-4o-mini) | Active at (pie%) |
|---|---|---|
| L2149 | Occurrences of research methodologies and results in scientific texts | V1 (19%) |
| L2318 | Instances of error logging and debugging messages in code | — |
| L2759 | Programming constructs and function calls associated with database management | — |
| L3510 | Mathematical expressions related to derivatives | — |
| L3954 | Mathematical concepts related to derivatives and calculus | — |
| L4321 | References to privilege and inequality in social contexts | V1 (73%) |
| Latent | Neuronpedia interp (GPT-4o-mini) | Active at (pie%) |
|---|---|---|
| L449 | Special characters, particularly underscores and certain punctuation marks | — |
| L1234 | Various forms of punctuation and mathematical symbols | — |
| L1367 | References to academic papers and their citation formats | — |
| L1462 | Quotes or dialogue from characters or people | V0 (5%) |
| L1575 | References to experimental findings and numerical data | — |
| L1993 | Punctuations and metadata references within the text | — |
| Latent | Neuronpedia interp (GPT-4o-mini) | Active at (pie%) |
|---|---|---|
| L4269 | Code-related syntax and structures | — |
| L7398 | Conversational expressions and phrases | V1 (2%), V2 (100%) |
| L9729 | Punctuation marks and their contexts within sentences | — |
| L12076 | Questions related to religious practices and their origins | V1 (2%) |
| L13939 | References to non-profit organizations and charitable donations | V1 (97%) |
| L14895 | Code-related terms and programming concepts | V0 (99%) |
| Latent | Neuronpedia interp (GPT-4o-mini) | Active at (pie%) |
|---|---|---|
| L1189 | Snippets of mathematical or programming expressions and logical statements | — |
| L1277 | References to individuals in positions of authority or influence | — |
| L1425 | References to historical events and their impacts on society | — |
| L1481 | References to educational institutions and their operational details | V1 (16%) |
| L1540 | Words indicative of financial or economic conditions and events | V1 (2%) |
| L1818 | Punctuation and markup elements in text | — |
Representation Geometry in Language Models
Representation geometry in language models studies how embeddings and hidden states organize concepts, computation, and behavior.
See all 417 papers