Vishal Verma Labs
← All articles
Mechanistic Interpretability & Deep Architecture

Escaping Flatland: Weight-Space Regularization and Hyperbolic Geometry in Mechanistic Interpretability

/Vishal Verma14 min read

Abstract

Current work on AI alignment and safety depends heavily on Mechanistic Interpretability, the attempt to reverse-engineer the dense, superimposed activations of Large Language Models (LLMs) into discrete, human-understandable concepts. Its main tool is the Euclidean Sparse Autoencoder (SAE). As researchers scale SAEs to tens of millions of features, larger dictionaries give diminishing returns in feature purity, along with dead latents, feature-splitting and fast-growing compute costs.

The cause is geometric. Current SAE architectures implicitly assume that semantic latent space is flat (Euclidean), but human semantic concepts are hierarchical (ontological trees). The number of nodes in a tree grows exponentially with depth, while volume in Euclidean space grows only polynomially, so embedding the tree in Euclidean space forces unrelated concepts to interfere and violates sphere-packing limits.

Moving the interpretability framework from linear algebra to the differential geometry of Riemannian manifolds, we propose the Hyperbolic Sparse Autoencoder (HypSAE). A direct hyperbolic SAE runs into practical optimization problems, in particular the RMSNorm spherical trap, Algebraic Cancellation, and the Category Error of applying geometry to transient tokens. We avoid them by decoupling the geometry from the computation. The forward pass is Euclidean, and the Poincaré manifold is used only as a Weight-Space Regularizer, in which learned radial scalars, Momentum Contrast and Hyperbolic Entailment Cones group concepts hierarchically. This gives a mathematical route toward monosemanticity while keeping the SAE compatible with causal interventions.


1. The Dimensionality Crisis in Mechanistic Interpretability

Transformers must represent far more concepts than they have dimensions. They do this through superposition: packing unrelated concepts into the same active neurons as nearly orthogonal vectors in a high-dimensional continuous space [1].

To untangle this, the AI alignment community relies on Sparse Autoencoders (SAEs) [2, 3]. A standard Euclidean SAE maps the dense residual stream (x∈Rd\mathbf{x} \in \mathbb{R}^d) into a sparse, overcomplete dictionary (f∈RM\mathbf{f} \in \mathbb{R}^M, where M≫dM \gg d), optimizing:

LSAE=∥x−Wdecf∥22⏟Reconstruction (MSE)+λ∥f∥1⏟Sparsity\mathcal{L}_{\text{SAE}} = \underbrace{\left\| \mathbf{x} - \mathbf{W}_{\text{dec}} \mathbf{f} \right\|_2^2}_{\text{Reconstruction (MSE)}} + \underbrace{\lambda \|\mathbf{f}\|_1}_{\text{Sparsity}}

To achieve clean feature separation, labs train SAEs with tens of millions of features, at substantial computational cost [4]. Adding dimensions to a flat space is a brute-force fix that leaves the underlying geometry unchanged.


2. The Geometry of Thought: Trees vs. Flatland

Many semantic concepts are hierarchical. The concept of a Golden Retriever sits at the terminal leaf of a deeply nested ontological tree.

graph TD
    E["Entity (Root)"]
    E --> Ab["Abstract"]
    E --> LO["Living Organism"]
    LO --> Pl["Plant"]
    LO --> An["Animal"]
    An --> Ma["Mammal"]
    Ma --> Ca["Canine"]
    Ca --> Wo["Wolf"]
    Ca --> GR["Golden Retriever"]

In a discrete tree with a branching factor b>1b > 1, the number of nodes grows exponentially with depth rr: O(br)\mathcal{O}(b^r). However, in flat Euclidean space Rd\mathbb{R}^d, the volume of a hypersphere grows only polynomially: O(rd)\mathcal{O}(r^d).

An exponentially growing number of concepts cannot be packed into a polynomially growing volume without overlap [5, 6, 7]. When a Euclidean SAE runs short of dimensions, the hierarchy breaks apart. A single coherent high-level concept splits into redundant, overly specific latents (a failure known as feature-splitting), and the dictionary becomes an unstructured cloud that is hard to interpret.


3. The Hyperbolic Manifold: Continuous Trees

To get past this packing limit, we move from flat affine spaces to Riemannian manifolds with constant negative curvature.

In hyperbolic space (often modeled with the Poincaré disk), the circumference and volume of a sphere grow exponentially with its radius [8, 9, 10]:

VHyperbolic(r)∼O(e(d−1)c r)V_{\text{Hyperbolic}}(r) \sim \mathcal{O}\left(e^{(d-1)\sqrt{c}\,r}\right)

Because hyperbolic space expands exponentially in the transverse (angular) direction, it has room to pack many highly specific leaf nodes without them overlapping.

graph LR
    subgraph flat["EUCLIDEAN SAE — Flat Space"]
        direction TB
        FA["Feature A"] --- FB["Feature B"]
        FB --- FC["Feature C"]
        FC --- FD["Feature D"]
        FA --- FC
        FB --- FD
        FA -.-|"Feature Splits"| FD
    end
    subgraph hyper["HYPERBOLIC SAE — Poincaré Disk"]
        direction TB
        R["Root (Abstract)"]
        R --> C1["Category 1"]
        R --> C2["Category 2"]
        C1 --> L1["Leaf A"]
        C1 --> L2["Leaf B"]
        C2 --> L3["Leaf C"]
        C2 --> L4["Leaf D"]
    end
PropertyEuclidean SAE (Flat Space)Hyperbolic SAE (Poincaré Disk)
Volume GrowthPolynomial O(rd)\mathcal{O}(r^d)Exponential O(er)\mathcal{O}(e^r)
Hierarchy EncodingFlawed / Feature-splittingNative Radial Depth
Concept MappingDense, crowded gridsNative ontological trees

4. The Physics of Optimization: Escaping the Execution Traps

Hyperbolic space fits hierarchical data well, but mapping the SAE’s reconstruction objective directly into it fails under unsupervised GPU optimization, in four ways:

  1. The Category Error (Tokens vs. Concepts): Applying hyperbolic geometry to the transient token activations (x\mathbf{x}) organizes random sequence snippets in a batch into a tree. Concepts live in the Weights (Parameters), not the Token Activations [11].
  2. The RMSNorm Spherical Trap: Modern LLMs use RMSNorm, which projects every target residual token x\mathbf{x} onto a high-dimensional Euclidean hypersphere of fixed magnitude. Mapping x\mathbf{x} into a Poincaré cone therefore cannot produce a radially varying ontology: the map sends every token to the same thin spherical shell [12].
  3. The Algebraic Cancellation: If one maps the residual stream to the Poincaré ball (exp⁡oc\exp_\mathbf{o}^c) and then immediately back to the tangent space (log⁡oc\log_\mathbf{o}^c) to apply an ℓ1\ell_1 sparsity penalty, the two maps cancel (log⁡∘exp⁡=I\log \circ \exp = \mathbf{I}). The forward pass is then mathematically identical to a vanilla Euclidean SAE, and the GPU spends FLOPs computing the identity [14].
  4. The Collinear Rank-Collapse: If one attempts to build hierarchies by placing parent and leaf concepts on the same angular ray to save Euclidean dimensions, one violates the Linear Representation Hypothesis [13, 14, 15]. Collinear dictionary atoms are linearly dependent, and the ℓ1\ell_1 sparsity penalty will immediately prune one to zero [15]. By Gauss’s Lemma, radial geodesics are isometric to Euclidean lines; true exponential packing capacity exists only in transverse (angular) deviations [16].

5. The Solution: Weight-Space Regularization

To avoid all four problems, we decouple the geometry from the forward pass.

We do not map the transient token activations (x\mathbf{x}) to the manifold. Instead, we apply the Poincaré manifold only to the dictionary weights (wi\mathbf{w}_i), which represent the concepts, and use it as a structural regularizer.

5.1 The Pure Euclidean Forward Pass (The Interventional Territory)

The forward pass stays Euclidean. This respects the RMSNorm of the target data xnormed\mathbf{x}_{\text{normed}}, keeps GPU inference fast, avoids Algebraic Cancellation, and preserves the ability to perform causal Manifold Steering downstream [17, 18].

f=ReLU(Wencxnormed+benc)\mathbf{f} = \text{ReLU}(\mathbf{W}_{\text{enc}} \mathbf{x}_{\text{normed}} + \mathbf{b}_{\text{enc}})

x^=∑i=1Mfiwi\mathbf{\hat{x}} = \sum_{i=1}^M f_i \mathbf{w}_i

LRecon=∥xnormed−x^∥22\mathcal{L}_{\text{Recon}} = \left\| \mathbf{x}_{\text{normed}} - \mathbf{\hat{x}} \right\|_2^2

5.2 The Hyperbolic Concept Embeddings (The Unit-Norm Paradox)

The ontology lives in the columns of the Euclidean decoder weight matrix Wdec\mathbf{W}_{\text{dec}}. Let wi∈Rd\mathbf{w}_i \in \mathbb{R}^d be the dd-dimensional Euclidean dictionary atom for Feature ii.

To prevent the ℓ1\ell_1 solver from collapsing the activations to zero while inflating dictionary magnitudes to infinity, standard SAEs enforce a unit-norm constraint on the decoder columns: ∥wi∥2=1\|\mathbf{w}_i\|_2 = 1. But mapping unit vectors directly through the exponential map would put every concept on the same radial shell in hyperbolic space, flattening the ontological tree onto a single sphere.

We avoid this unit-norm paradox with Decoupled Radial Depth, which separates the interventional direction from the ontological depth. Each feature gets a learned 1D scalar parameter ri∈R+r_i \in \mathbb{R}^+ that encodes its hierarchical depth.

We map these scaled Feature Weights into the dd-dimensional Poincaré ball (Bcd,gx)(\mathbb{B}^d_c, g_x) via the Exponential Map at the origin [14, 19]:

hi=exp⁡oc(ri⋅wi)=tanh⁡(c ri)wic\mathbf{h}_i = \exp_\mathbf{o}^c(r_i \cdot \mathbf{w}_i) = \tanh(\sqrt{c} \, r_i) \frac{\mathbf{w}_i}{\sqrt{c}}

(Since ∥wi∥2=1\|\mathbf{w}_i\|_2 = 1, the norm cancels out of the denominator, yielding a simple, numerically stable projection).

The geometry is now computed in the model’s own dd dimensions (2,304 for the Gemma-2-2B layer in the companion study), which is computationally stable and uses the low-dimensional packing capacity. It acts on the structural relationships between static concepts. wi\mathbf{w}_i stays a flat Euclidean unit vector that sets the interventional direction, while rir_i sets ontological depth (Origin = Root, Boundary = Leaf), so the hierarchy is kept separate from the Euclidean ℓ1\ell_1 solver.

5.3 Asymmetric Entailment via Momentum Contrast (MoCo)

Tracking a dense feature co-activation graph would need O(M2)\mathcal{O}(M^2) memory, which runs to petabytes. To build the structural prior without it, we use a Momentum Contrast (MoCo) Queue [20].

When a batch of tokens causes Feature ii (Parent) and Feature jj (Child) to heavily co-activate across the Zipfian token distribution, we sample this relationship from the MoCo queue and pull their hyperbolic weight embeddings (hi\mathbf{h}_i and hj\mathbf{h}_j) into a Hyperbolic Entailment Cone [21]:

LEntailment=EMoCo Queue[∑i,j∈activeConePenalty(hi,hj)]\mathcal{L}_{\text{Entailment}} = \mathbb{E}_{\text{MoCo Queue}} \left[ \sum_{i,j \in \text{active}} \text{ConePenalty}(\mathbf{h}_i, \mathbf{h}_j) \right]

This asymmetric loss penalizes specific child concepts that fall outside the cone cast outward from their broader parents.

(Where the ConePenalty uses the standard isometric invariant geodesic distance scaled by 1/c1/\sqrt{c}):

dBc(u,v)=1carcosh(1+2c∥u−v∥2(1−c∥u∥2)(1−c∥v∥2))d_{\mathbb{B}_c}(\mathbf{u}, \mathbf{v}) = \frac{1}{\sqrt{c}} \text{arcosh} \left( 1 + 2c\frac{\|\mathbf{u} - \mathbf{v}\|^2}{(1 - c\|\mathbf{u}\|^2)(1 - c\|\mathbf{v}\|^2)} \right)

5.4 The Tri-Partite HypSAE Loss

The final objective combines the flat reconstruction and sparsity terms with the curved entailment term:

LHypSAE=∥xnormed−Wdecf∥22⏟Euclidean Recon+λ∥f∥1⏟Sparsity+βLEntailment⏟Weight-Space Map\mathcal{L}_{\text{HypSAE}} = \underbrace{\left\| \mathbf{x}_{\text{normed}} - \mathbf{W}_{\text{dec}} \mathbf{f} \right\|_2^2}_{\text{Euclidean Recon}} + \underbrace{\lambda \|\mathbf{f}\|_1}_{\text{Sparsity}} + \underbrace{\beta \mathcal{L}_{\text{Entailment}}}_{\text{Weight-Space Map}}


6. The Architectural Payoff: Monosemanticity at Scale

With the geometry confined to weight space, HypSAE acts as a structural regularizer.

Because Wdec\mathbf{W}_{\text{dec}} dictates how features superimpose in the LLM’s flat residual stream, the optimizer is pushed to organize the Euclidean dictionary weights into an ontological tree to reduce the structural penalty. Root concepts remain near the origin (ri≈0r_i \approx 0); distinct child concepts fan out transversely toward the boundary.

  1. Smaller Dictionaries: Because exponential volume handles packing within the structural prior, HypSAE should need far fewer dictionary dimensions (MH≪MEM_{\mathbb{H}} \ll M_{\mathbb{E}}) to reach the same feature separation.
  2. Less Feature-Splitting: The loss rewards grouping related concepts hierarchically rather than splitting a single concept into redundant Euclidean vectors to reduce MSE.
  3. Interventional Compatibility: Because the forward pass (Wencxnormed\mathbf{W}_{\text{enc}} \mathbf{x}_{\text{normed}}) and decoder (∑fiwi\sum f_i \mathbf{w}_i) remain flat matrix multiplications, there is no identity cancellation and causal linear steering is preserved.

6.1 HypSAE vs. Prior Art

Two recent architectures also address the ontological bottleneck: Hierarchical SAEs (Muchane et al., 2025) [22] and Matryoshka SAEs (M-SAE) [26], which build on Matryoshka Representation Learning [23]. Both simulate depth with discrete structure, nesting smaller Euclidean sub-spaces inside larger ones.

HypSAE replaces this discrete structure with a continuous geometry. Hyperbolic dictionary learning is already established in fields that need topological mapping, such as charting brain ventricles with hyperbolic Ricci flow in Alzheimer’s imaging [24]. We adapt these Riemannian methods and use Momentum Contrast to keep the computation within GPU memory, so that hierarchical extraction respects both the LLM’s geometry and the hardware’s limits.


7. Conclusion: Escaping Flatland

In 1884, Edwin A. Abbott published Flatland, a novella about two-dimensional shapes that cannot conceive of a three-dimensional world above them [25]. Interpretability research is in a similar position: it tries to decode the exponentially branching structure of model representations with the polynomial geometry of flat Euclidean space.

Euclidean space cannot capture the dense, hierarchical ontology of human knowledge without feature-splitting. But differential geometry on its own also fails if it is forced to reconstruct the RMSNorm hypersphere of modern foundation models or is applied directly to transient token activations.

Weight-Space Regularization with the learned depth scalar rir_i respects the linear representation structure of the model while using the exponential packing capacity of hyperbolic space. The aim is structured, monosemantic dictionaries that are organized as ontological trees.

Empirical Validation & Implementation: We tested HypSAE, released as HyperSAE, on Google Gemma-2-2B (Layer 13) with 20M FineWeb-Edu tokens, where it Pareto-dominates the flat SAEs it was compared with. Read the full empirical study: Hyperbolic Sparse Autoencoders: Empirical Validation of Poincaré Manifold Geometry on LLM Activations. The open-source PyTorch package is available at github.com/vishal-dehurdle/hypersae and PyPI (pip install hypersae).


References

  • [1] Elhage, N., Hume, T., Olsson, C., Schiefer, N., Henighan, T., Kravec, S., Hatfield-Dodds, Z., Lasenby, R., Drain, D., Chen, C., Grosse, R., McCandlish, S., Kaplan, J., Amodei, D., Wattenberg, M., & Olah, C. (2022). “Toy Models of Superposition.” Anthropic Transformer Circuits Thread.
  • [2] Bricken, T., Templeton, A., Batson, J., Chen, B., Jermyn, A., Conerly, T., Turner, N., Anil, C., Denison, C., Askell, A., … & Olah, C. (2023). “Towards Monosemanticity: Decomposing Language Models With Dictionary Learning.” Transformer Circuits Thread.
  • [3] Cunningham, H., Ewart, A., Riggs, L., Huben, R., & Sharkey, L. (2024). “Sparse Autoencoders Find Highly Interpretable Features in Language Models.” International Conference on Learning Representations (ICLR).
  • [4] Gao, L., Dupré la Tour, T., Tillman, H., Goh, G., Troll, R., Radford, A., Sutskever, I., Leike, J., & Wu, J. (2024). “Scaling and evaluating sparse autoencoders.” arXiv preprint arXiv:2406.04093.
  • [5] Gromov, M. (1987). “Hyperbolic groups.” In Essays in Group Theory, MSRI Publications, Vol. 8, 75–263. Springer-Verlag.
  • [6] Sarkar, R. (2011). “Low Distortion Delaunay Embedding of Trees in Hyperbolic Plane.” International Symposium on Graph Drawing (GD 2011), Lecture Notes in Computer Science, Vol. 7034, 355–366.
  • [7] Conway, J. H., & Sloane, N. J. A. (1999). Sphere Packings, Lattices and Groups. 3rd Edition, Springer-Verlag, New York.
  • [8] Nickel, M., & Kiela, D. (2017). “Poincaré Embeddings for Learning Hierarchical Representations.” Advances in Neural Information Processing Systems (NeurIPS), 30, 6338–6347.
  • [9] Poincaré, H. (1882). “Théorie des Groupes Fuchsiens.” Acta Mathematica, 1(1), 1–62.
  • [10] Cannon, J. W., Floyd, W. J., Kenyon, R., & Parry, W. R. (1997). “Hyperbolic Geometry.” In Flavors of Geometry, MSRI Publications, Vol. 31, 59–115. Cambridge University Press.
  • [11] Olah, C., Cammarata, N., Schubert, L., Goh, G., Petrov, M., & Carter, S. (2020). “Zoom In: An Introduction to Circuits.” Distill, 5(3), e00024.001.
  • [12] Zhang, B., & Sennrich, R. (2019). “Root Mean Square Layer Normalization.” Advances in Neural Information Processing Systems (NeurIPS), 32, 12360–12371.
  • [13] Park, K., Choe, Y. J., & Veitch, V. (2023). “The Linear Representation Hypothesis and the Geometry of Large Language Models.” arXiv preprint arXiv:2311.03658.
  • [14] Ganea, O., Bécigneul, G., & Hofmann, T. (2018). “Hyperbolic Neural Networks.” Advances in Neural Information Processing Systems (NeurIPS), 31, 5350–5360.
  • [15] Tropp, J. A. (2004). “Greed is good: Algorithmic results for sparse approximation.” IEEE Transactions on Information Theory, 50(10), 2231–2242.
  • [16] Lee, J. M. (2018). Introduction to Riemannian Manifolds. 2nd Edition, Graduate Texts in Mathematics, Vol. 176. Springer International Publishing.
  • [17] Turner, A., Thiergart, L., Udell, D., Leech, G., Mini, U., & MacDiarmid, M. (2023). “Activation Addition: Steering Language Models Without Optimization.” arXiv preprint arXiv:2308.10248.
  • [18] Wurgaft, D., et al. (2026). “Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behavior.” arXiv preprint arXiv:2605.05115.
  • [19] Ungar, A. A. (2008). Analytic Hyperbolic Geometry and Albert Einstein’s Special Theory of Relativity. World Scientific Publishing.
  • [20] He, K., Fan, H., Wu, Y., Xie, S., & Girshick, R. (2020). “Momentum Contrast for Unsupervised Visual Representation Learning.” Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 9729–9738.
  • [21] Ganea, O. E., Bécigneul, G., & Hofmann, T. (2018). “Hyperbolic Entailment Cones for Learning Hierarchical Embeddings.” International Conference on Machine Learning (ICML), 1646–1655.
  • [22] Muchane, M., Richardson, S., Park, K., & Veitch, V. (2025). “Incorporating Hierarchical Semantics in Sparse Autoencoder Architectures.” arXiv preprint arXiv:2506.01197.
  • [23] Kusupati, A., Bhatt, G., Rege, A., Wallingford, M., Sinha, A., Ramanujan, V., Howard-Snyder, W., Chen, K., Kakade, S., Jain, P., & Farhadi, A. (2022). “Matryoshka Representation Learning.” Advances in Neural Information Processing Systems (NeurIPS), 35, 30233–30249.
  • [24] Zhang, J., Dong, Q., Shi, J., Li, Q., Stonnington, C. M., Gutman, B. A., Chen, K., Reiman, E. M., Caselli, R. J., Thompson, P. M., Ye, J., & Wang, Y. (2021). “Predicting future cognitive decline with hyperbolic stochastic coding.” Medical Image Analysis, 70, 102009.
  • [25] Abbott, E. A. (1884). Flatland: A Romance of Many Dimensions. Seeley & Co., London.
  • [26] Bussmann, B., Nabeshima, N., Karvonen, A., & Nanda, N. (2025). “Learning Multi-Level Features with Matryoshka Sparse Autoencoders.” Proceedings of the 42nd International Conference on Machine Learning (ICML), PMLR 267, 6077–6101.
hyperbolic-geometrysparse-autoencodersai-alignmentdifferential-geometryrepresentation-learningoptimization
In this article