HyperSAE: How Hyperbolic Geometry Solves the Dead Latent Problem in Sparse Autoencoders

HyperSAE uses hyperbolic geometry to nearly eliminate dead latents in sparse autoencoders at zero inference cost.
HyperSAE is an open-source PyTorch library that addresses the dead latent collapse problem in Sparse Autoencoders (SAEs) by projecting dictionary weights into the Poincaré ball during training. By leveraging the exponential spatial expansion of hyperbolic geometry, it reduces dead latents from 3.8% to 0.2% on Gemma-2-2B while improving reconstruction error by 9.8% and CE recovery by 3.4pp—all with zero additional inference cost.
The Scaling Bottleneck of Sparse Autoencoders
Sparse Autoencoders (SAEs) have become one of the core tools in large model interpretability research in recent years. An SAE is an unsupervised learning model whose core idea is to encode high-dimensional input data into a sparse, overcomplete representation, then reconstruct the original input from that representation. In the field of large model interpretability, SAEs are used to decompose activation vectors in Transformer intermediate layers—breaking down a d-dimensional activation vector into a sparse linear combination of dictionary features with dimensionality far exceeding d. "Sparse" here means that for any given input, only a handful of dictionary features are activated (non-zero), making it easier for each feature to correspond to a human-understandable semantic concept. Research published by Anthropic in 2023 demonstrated that SAEs could extract unit features corresponding to specific concepts like "Golden Gate Bridge" and "code bugs" from the Claude model, greatly advancing mechanistic interpretability.
By decomposing model activations into a set of sparse, interpretable features, researchers can peer into the "thinking" process inside neural networks. However, as dictionary size continues to expand, a long-standing problem has become increasingly prominent—dead latent collapse.
Recently, an open-source PyTorch library called HyperSAE attracted attention on Reddit. It proposes an ingenious solution: replacing traditional Euclidean space with hyperbolic geometry to fundamentally alleviate the feature crowding problem under large-scale dictionaries.
What Are Dead Latents?
In SAE training, each "latent" in the dictionary corresponds to an interpretable feature. Ideally, all latents should be activated and contribute to encoding tasks. But when dictionary size scales to 16K or more, a large number of latents remain perpetually inactive—they become "dead" neurons.
The "dictionary" in SAEs is similar to an overcomplete basis in signal processing. Suppose the model activation dimension is d=2048; a 16K dictionary means 16,384 basis vectors representing signals in a 2048-dimensional space—an 8x overcomplete representation. Overcompleteness is necessary because the number of concepts encoded inside neural networks far exceeds their dimensionality (this is precisely the phenomenon described by Anthropic's "superposition hypothesis"). However, training overcomplete dictionaries is inherently a non-convex optimization problem prone to degenerate solutions: certain dictionary atoms accumulate near-zero gradients throughout training, are never selected for reconstruction, and thus "die." This is similar to the ReLU dead neuron phenomenon in deep networks, but its impact in SAEs is more direct—every dead latent represents a wasted interpretable feature that could have been discovered.
According to data disclosed by the HyperSAE authors, on the Gemma-2-2B model, the dead latent ratio for traditional Euclidean SAEs reaches as high as 3.8%. This not only wastes model capacity but directly leads to degraded reconstruction quality and impaired feature expressiveness.
Root Cause: Insufficient Geometric Capacity of Euclidean Space
The authors' diagnosis of this problem is highly intuitive: at dictionary sizes above 16K, the "geometric capacity" of Euclidean space is exhausted.
In standard SAEs, dictionary weights are constrained on (or near) the unit sphere. Uniformly distributing N points on a sphere to maximize their minimum angular distance is the classic spherical code problem, also known as the Tammes problem. For a d-dimensional sphere, the number of "nearly orthogonal" directions that can theoretically be placed grows polynomially with dimension (approximately on the order of d²), while SAE dictionaries demand feature counts that are 8-64x or more the dimensionality. When dictionary size exceeds this geometric limit, cosine similarity between features inevitably increases, making it difficult for the encoder to distinguish similar dictionary atoms, and some atoms are consequently never preferentially selected.
When the number of features explodes, these feature vectors are forced to squeeze together in the limited spherical space. The result: features collide at the boundaries, some latents "die" because they cannot find independent representation space, and overall reconstruction error rises accordingly.
This is essentially a variant of the geometric curse of dimensionality—the volume of Euclidean space grows polynomially with radius and cannot accommodate exponentially growing feature demands.
HyperSAE's Solution: The Poincaré Ball Model
Exponential Expansion Property of Hyperbolic Space
HyperSAE's core innovation lies in projecting dictionary weights into the Poincaré ball for training.
The Poincaré ball is one of five classical models of hyperbolic geometry, defined as the n-dimensional open unit ball B^n = {x ∈ R^n : ||x|| < 1}, equipped with the Riemannian metric ds² = 4/(1-||x||²)² · ||dx||². The key property of this metric lies in the conformal factor 2/(1-||x||²): as a point approaches the ball's boundary (||x||→1), the metric inflates to infinity, meaning that tiny Euclidean distances near the boundary correspond to enormous hyperbolic distances. Intuitively, the "internal space" of the Poincaré ball is far larger than it appears—the area of a hyperbolic disk of radius r grows at the e^r level, rather than πr² as in Euclidean space.
The most fascinating property of hyperbolic geometry is: space expands exponentially as it approaches the boundary. This means the closer to the boundary, the more "geometric space" is available. Features that were crowded together in Euclidean space gain exponentially more room in hyperbolic space. This perfectly matches the greedy demand for representation space in large-scale dictionaries—like replacing a flat map with a hyperbolic plane that can extend infinitely.
Machine learning applications of hyperbolic space embeddings began with the pioneering work of Nickel and Kiela in 2017, who embedded hierarchical structures like WordNet in the Poincaré ball and found that just 5 dimensions of hyperbolic space could achieve embedding quality comparable to 200-dimensional Euclidean space. Subsequently, hyperbolic neural networks, hyperbolic attention mechanisms, and hyperbolic graph neural networks emerged. The common intuition behind these works is that hierarchical relationships prevalent in natural language and knowledge structures are naturally suited to the tree-like geometric structure of hyperbolic space. HyperSAE extends this idea to SAE dictionary training, leveraging not the hierarchical modeling capability of hyperbolic space, but its exponential spatial capacity—a novel application angle.
Hyperbolic During Training, Euclidean During Inference
A clever engineering design worth emphasizing: HyperSAE only projects weights into the Poincaré ball during training, while the forward pass remains Euclidean.
This brings a key advantage—zero inference cost. Developers don't need to bear additional computational overhead during deployment to benefit from hyperbolic geometry. This "constrain during training, restore during inference" approach significantly lowers the barrier to practical adoption. From a technical implementation perspective, this means hyperbolic geometry serves as a form of regularization—by constraining weights to the Poincaré ball manifold during training, the optimizer is guided toward more dispersed, more uniform dictionary configurations, while the final deployed model weights remain standard Euclidean vectors.
Experimental Results: Dead Latents Drop from 3.8% to 0.2%
The authors conducted controlled experiments on Layer 13 of Gemma-2-2B, with compelling results:
| Metric | Traditional Euclidean SAE | HyperSAE | Change |
|---|---|---|---|
| MSE (reconstruction error) | 4.57 | 4.12 | -9.8% |
| Dead latent ratio | 3.8% | 0.2% | Dramatically reduced |
| CE recovery | 75.5% | 78.9% | +3.4pp |
The most striking result is dead latents plummeting from 3.8% to 0.2%, virtually eliminating this persistent problem. This directly confirms the authors' core hypothesis: the geometric space capacity bottleneck is the root cause of dead latents, not training hyperparameters or sparsity constraints themselves.
Regarding cross-entropy recovery rate, it's worth further explaining its meaning. CE recovery is calculated by substituting SAE-reconstructed activations for original activations as input to the model's subsequent layers, then comparing the change in the model's output cross-entropy loss. 100% means the SAE reconstruction perfectly preserves the model's computational capability; 0% means information is completely lost. This metric is more meaningful than pure MSE reconstruction error because it measures whether the SAE preserves information truly important for the model's downstream computation, rather than all noise details. A 78.9% recovery rate means that after passing through the SAE's information bottleneck, the model still retains nearly 80% of its language modeling capability.
That said, the 9.8% reduction in reconstruction error and 3.4 percentage point improvement in CE recovery also demonstrate that the benefits of hyperbolic geometry are comprehensive—not trading off one metric for another.
Installation and Usage: Get Started with One Command
HyperSAE has been released as an open-source project with extremely simple installation:
pip install hypersae
The project code is hosted on GitHub (vishal-dehurdle/hypersae), accompanied by the paper "Empirical Validation of HyperSAE: Poincaré Geometry." For teams working on mechanistic interpretability research, this is a tool that can be immediately integrated into existing SAE training pipelines.
Mechanistic interpretability is one of the core research directions in AI safety, aiming to reverse-engineer the internal algorithms and representations of models from neural network weights and activations. Unlike traditional "behavioral interpretability" (understanding models through input-output relationships), mechanistic interpretability attempts to open the black box and understand "why" a model makes specific decisions. Important milestones in this field include: Anthropic's "superposition hypothesis" (which posits that models encode far more features than dimensions by superimposing them in the same vector space), the discovery of computational circuits like "induction heads," and the widespread application of SAEs as a de-superposition tool. Scaling SAEs directly relates to whether we can understand the internal working mechanisms of frontier models, making the dead latent problem an issue of significant research importance.
Observations and Reflections
HyperSAE's value lies not only in solving a specific engineering problem but also in demonstrating the application potential of non-Euclidean geometry in deep learning representations. Previously, hyperbolic embeddings were mainly applied to hierarchical structure modeling (such as knowledge graphs and tree-structured taxonomies), and introducing them to SAE dictionary training represents a novel cross-disciplinary attempt.
Of course, current validation remains limited to a single layer of a single model (Gemma-2-2B). How this method performs on larger-scale models, different architectures, and higher dictionary dimensions still awaits further community verification. Notable follow-up questions include: Does hyperbolic geometry remain effective when dictionary size scales further to 64K or 256K? How do different curvature parameters (the curvature of the Poincaré ball can be adjusted) affect results? And can this method be used synergistically with other SAE improvement techniques (such as TopK activation, JumpReLU, etc.)? The authors position this as "empirical validation" rather than a complete theory, maintaining a cautious stance.
For researchers and engineers focused on large model interpretability, HyperSAE provides a low-cost, accessible experimental starting point—after all, an innovation you can try with a single pip install is always worth hands-on experimentation.
Related articles

PPT Master: AI One-Click Generation of Native Editable PowerPoint Presentations
PPT Master is an open-source project with over 45K GitHub Stars that generates native editable .pptx files via AI, featuring data charts, animations, voice narration, and custom templates.

Delphi 13 Community Edition Free Download: The Classic RAD Tool for Cross-Platform Native Development Returns
Delphi 13 Community Edition is now available for free download. Explore its cross-platform native compilation, features, licensing, and Object Pascal's unique value in modern development.

GPT-5.6 Free Unlimited Conversations, Kimi K3 Officially Joins GitHub Copilot
OpenAI announces GPT-5.6 Luna unlimited free conversations, Kimi K3 becomes the first Chinese model in GitHub Copilot. Google releases WeatherNext, NVIDIA advances Physical AI infrastructure.