Route Sparse Autoencoder to Interpret Large Language Models

Wei Shi, Sihang Li, Tao Liang, Mingyang Wan, Guojun Ma, Xiang Wang, Xiangnan He

TL;DR

RouteSAE introduces a lightweight routing mechanism paired with a single, shared Sparse Autoencoder (SAE) to dynamically extract interpretable features across multiple layers of a Large Language Model. By avoiding the need for separate encoders and decoders for every layer, it achieves a 22.5% increase in extracted features and a 22.3% boost in interpretability scores with minimal parameter overhead.

What Problem Does This Paper Address?

To understand the inner workings of Large Language Models (LLMs)—a field known as mechanistic interpretability—researchers often use Sparse Autoencoders (SAEs). SAEs take the dense, messy internal activations of an LLM and disentangle them into sparse, human-comprehensible concepts (monosemantic features).

However, traditional SAEs suffer from a major limitation: they look at only a single layer at a time. In reality, features are distributed across the model. Low-level features (like word-level polysemy) tend to peak in early layers, while high-level features (like abstract concepts or long-range patterns) peak in deeper layers.

Figure 1: Layer-wise normalized activation values for two features extracted by Topk SAE in pythia-160m. The low-level feature (visual media terms) exhibits high activation in early layers that gradually decreases in deeper layers. In contrast, the high-level feature (tempo- ral expressions) shows increasing activation with depth, peaking in the later layers.

While recent architectures like "Crosscoders" attempt to bridge multiple layers, they scale poorly. For an $L$-layer model, a Crosscoder requires $L$ separate encoders and decoders, multiplying the parameter count and computational cost by $L$. Furthermore, Crosscoders blend hidden states in a way that makes targeted feature intervention difficult.

Methods

The authors propose Route Sparse Autoencoder (RouteSAE), which unifies multi-layer feature extraction into a single shared SAE space using a clever routing mechanism.

Figure 2: Comparison of vanilla single-layer SAE, Crosscoder, and RouteSAE. Most existing SAEs belong to the vanilla SAE category, where features are extracted from the activation of a single layer. Crosscoder relies on separate encoders and decoders for each layer. RouteSAE incorporates a lightweight router to dynamically integrate multi-layer residual stream activations.

The architecture operates as follows:

  1. Activation Aggregation: Residual stream activations from multiple layers are combined using sum pooling to create a condensed representation vector.
  2. Layer Weighting: A lightweight router projects this vector to calculate a probability distribution across the layers, identifying which layer's activation is most dominant for the current token.
  3. Hard Routing: The router selects the layer with the highest probability and scales its activation by its selection probability to maintain differentiability during training.
  4. Shared TopK SAE: This routed activation is passed into a single, shared TopK SAE. Because the SAE is shared, it forces the model to map features from all routed layers into a single, unified feature space.

Datasets

The authors evaluated RouteSAE using the following setup:

  • Model: Residual streams of Llama-3.2-1B-Instruct, specifically targeting the middle layers (layers 3 to 11) where token processing transitions from detokenization to next-token prediction.
  • Data: Trained on OpenWebText2, utilizing approximately 100 million randomly sampled tokens for training and an additional 10 million tokens for evaluation.

Key Insights and Ideas

  • The U-Shaped Distribution: When analyzing the router's behavior, the authors discovered that routing weights follow a U-shaped distribution across layers. This confirms that both shallow layers (capturing low-level features) and deep layers (capturing high-level features) contribute heavily to representation, while middle layers act as transitions.
  • Efficiency via Sharing: By routing activations to a shared SAE rather than dedicating separate networks to each layer, RouteSAE drastically cuts down parameter bloat, making multi-layer interpretability scalable to larger LLMs.
  • Dynamic Layer Substitution: Replacing activations at the dynamically routed layer during inference yields a lower downstream KL divergence than fixing the substitution at a single, predetermined layer. This proves that the router successfully tracks where features are truly active.

Key Results

RouteSAE was benchmarked against standard ReLU SAEs, Gated SAEs, TopK SAEs, and a Crosscoder replication:

  • Feature Quantity & Quality: Under a sparsity constraint of 64 active features ($L_0 = 64$), RouteSAE extracted 22.5% more interpretable features than baseline single-layer SAEs.
  • Interpretability Scores: Automated evaluation via GPT-4o (validated by human annotators) showed that RouteSAE achieved a 22.3% higher interpretability score (averaging above 4.4 out of 5) compared to baselines.
  • Feature Steering: The authors demonstrated precise model intervention. By manually scaling up ("clamping") specific features in the shared space, they could predictably steer the LLM's output behavior—such as forcing the model to adopt an enthusiastic, proactive tone or obsessively discuss the Olympics regardless of the prompt.
Figure 3: RouteSAE employs a lightweight router to dynamically integrate activations from multiple residual stream layers, effectively disentangling them into a shared feature space. It enables the model to capture features across different layers — low-level features such as “units of weight” and “Olympics” from shallow layers, and high-level features like “more [X] than [Y]” and “do everything [possible/in my power]” from deeper layers.

Limitations and Future Work

  • Simple Router Architecture: The current router relies on a basic linear projection. The authors note that more sophisticated router designs and activation aggregation methods could yield even cleaner feature separation.
  • Cross-Layer Feature Optimization: While RouteSAE successfully selects the best layer for a feature, it is not yet fully optimized for capturing features that are simultaneously distributed across multiple layers. The authors experimented with "Soft Routing" (blending layers continuously) to address this, but it did not show clear benefits over hard routing in its current iteration, marking an area for future exploration.

Summary updated

BibTeX
@misc{shi2025route,
  author = {Wei Shi and Sihang Li and Tao Liang and Mingyang Wan and Guojun Ma and Xiang Wang and Xiangnan He},
  title = {{Route Sparse Autoencoder to Interpret Large Language Models}},
  year = {2025},
  eprint = {2503.08200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08200},
}
Figure