Equivariant Sparse Autoencoders: Mechanistic Interpretability of Neural Networks on Symmetric Data

Ege Erdogan, Ana LucicarXiv 2025

TL;DR

Standard Sparse Autoencoders (SAEs) struggle to interpret neural networks trained on symmetric data (like rotated images or molecules), often duplicating features for every orientation. By explicitly incorporating group theory, Equivariant SAEs cleanly separate semantic features from their spatial transformations. Crucially, this work reveals that standard reconstruction metrics can be highly deceptive: Equivariant SAEs yield far more meaningful and useful features for downstream tasks despite producing worse data reconstructions than vanilla baselines.

What Problem Does This Paper Address?

Mechanistic interpretability aims to crack open neural networks by decomposing their dense internal activations into sparse, human-understandable concepts—a framework driven by the Linear Representation Hypothesis (LRH). The go-to tool for this is the Sparse Autoencoder (SAE).

However, SAEs suffer from an "unidentifiability" problem: many different feature dictionaries can explain the data equally well. The authors show that this problem worsens when dealing with data symmetries (e.g., rotations or flips), which are ubiquitous in scientific domains like structural biology, chemistry, and astronomy.

If an image contains a specific object, a vanilla SAE requires entirely separate feature directions for every single orientation of that object. This drastically inflates the number of required features, dilutes interpretability, and forces the autoencoder to waste capacity disentangling the concept from its transformation.

Methods

The authors introduce Equivariant Sparse Autoencoders, extending the LRH to account for group symmetries. They assume that if a group action (like a rotation $g$) is applied to an input, the network's internal activations transform linearly via an input-independent transformation matrix $\rho(g)$.

Instead of forcing a single network to learn every orientation, the Equivariant SAE architecture splits the labor into two independent components:

  1. An Invariant SAE: The encoder maps all symmetric variations of an input (its "orbit") to the exact same hidden latents, effectively finding a "canonical" representation of the feature.
  2. Activation-Space Transformation Matrices ($M, R$): A separate set of linear layers explicitly learns how the base model's activations shift under input transformations.

Training happens in two decoupled, parallelizable steps:

  • Step 1: The SAE is optimized using a standard reconstruction loss combined with an invariance penalty (testing three variants: penalizing differences in canonical reconstruction, latent space, or output space).
  • Step 2: The transformation matrices are optimized purely to predict how the base model's activations change when the input is transformed.

Datasets

The approach was validated across a mix of synthetic benchmarks and real-world scientific datasets:

  • Toy Model: A synthetic setup with known ground-truth equivariant features to rigorously test feature recovery under varying levels of feature overlap (superposition).
  • Shapes Dataset: A custom synthetic dataset containing geometric shapes in various positions and orientations, evaluated under $C_4$ (90° rotations) and $D_4$ (rotations + flips) symmetries.
  • GalaxyMNIST: 10,000 real-world galaxy images classified into 4 morphology types, where orientation does not change the underlying class.
  • MLL23: A massive real-world dataset of 41,906 peripheral blood single-cell images spanning 18 distinct cell types.

Key Insights and Ideas

  • Reconstruction Quality is a Deceptive Metric: In the SAE literature, Mean Squared Error (MSE) reconstruction is universally treated as the gold standard for quality. This paper delivers a major "aha moment": reconstruction quality can be inversely correlated with feature usefulness. Vanilla SAEs achieve lower MSE by "cheating"—learning non-orthogonal, uninterpretable combinations of features to minimize pixel-level error rather than capturing the true underlying concepts.
  • Linearity of Activation Symmetries: The authors confirm that input-independent linear transformations ($M$) can explain over 97% of the variance in how activations change under input rotations, validating their core architectural assumption across MLPs, CNNs, and Vision Transformers (ViTs).

Key Results

  • Superior Feature Recovery: On the toy dataset, Equivariant SAEs dramatically outperformed vanilla and archetypal baselines in both feature recovery (Mean Cosine Similarity) and feature detection, especially in highly overcomplete settings where features are forced into tight superposition.
Toy Model Results
  • Downstream Probing Success: When training downstream classifiers (probes) on the learned features of the Shapes dataset, Equivariant SAEs consistently achieved the highest F1 scores across all tested architectures (MLP, CNN, and ViT).
Probing Results on Shapes
  • Real-World Scientific Data: On GalaxyMNIST and MLL23, Equivariant SAEs delivered the most accurate downstream classification features, occasionally matching the performance of probes trained on the raw, uncompressed base activations. They achieved this despite showing noticeably worse reconstruction MSE than vanilla baselines, cementing the danger of relying solely on MSE for interpretability metrics.
Probing Results on Real-World Data

Limitations and Future Work

While promising, the current method is limited to discrete, cyclic groups and their direct products (like $C_4$ and $D_4$). It cannot yet handle continuous symmetries, such as arbitrary 3D rotations ($SO(3)$), which are vital for molecular and physical simulations.

Additionally, the framework currently relies on choosing a fixed canonical representative for each symmetry orbit. Future work aims to scale this approach to continuous groups, automate feature labeling using the learned transformation matrices, and explore how these symmetry-aware features interact across different layers of a deep network.

Summary updated

BibTeX
@misc{erdogan2025equivariant,
  author = {Ege Erdogan and Ana Lucic},
  title = {{Equivariant Sparse Autoencoders: Mechanistic Interpretability of Neural Networks on Symmetric Data}},
  year = {2025},
  eprint = {2511.09432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.09432},
}
Figure