Introduction
In the field of mechanistic interpretability, researchers increasingly rely on Sparse Autoencoders (SAEs) to decompose the complex, polysemantic activations of Large Language Models (LLMs) into millions of clean, human-understandable features. However, reliably characterizing what these features actually do remains a significant challenge.
The standard tool for this task, Logit Lens, projects a feature vector directly into the vocabulary space to observe which tokens it promotes. This approach suffers from two major flaws:
- Incompleteness: It only examines the output (what the feature does), ignoring the input (what triggers the feature).
- Unfaithfulness: It captures only the "direct effect" of a feature on the output. In reality, a feature written into the residual stream in an early layer is processed and transformed by all subsequent layers before reaching the final output. Ignoring these "indirect effects" often makes features—especially in early layers—appear as uninterpretable tokenizer gibberish.
To address these shortcomings, researchers introduce Query Lens, a novel framework that accounts for indirect effects mediated by downstream layers, providing significantly more coherent and faithful descriptions of SAE features.
Methodology: The Query Lens Framework
Query Lens treats SAE features as active components of a dynamic system rather than static vectors.
Key-Value Duality and Residual Stream Dynamics
Borrowing from the "key-value memory" perspective of neural networks, Query Lens treats SAE encoders as Keys (representing input sensitivity) and decoders as Values (representing output influence). Instead of a simple linear projection, the framework uses first-order Taylor expansions (Jacobians) to track how a feature perturbation propagates through the network:
- Value Variant ($QL_{VALUE}$): Scores tokens by transporting the value feature to the output endpoint through all downstream Attention and MLP blocks.
- Key Variant ($QL_{KEY}$): Scores tokens by back-propagating the key feature to the input embedding to identify which token substitutions would most strongly activate the feature.
To avoid the massive computational cost of calculating full Jacobian matrices, Query Lens utilizes Jacobian-Vector Products (JVPs) and Vector-Jacobian Products (VJPs), reducing the overhead to roughly one extra forward and backward pass.
Experimental Setup
The framework was evaluated across several modern LLM families, including GPT-2 Small, Gemma-3 (270M and 1B), and Qwen-3-1.7B, using their corresponding SAEs (OpenAI Top-K, Gemma Scope 2 JumpReLU, and Qwen-Scope Top-K). Evaluation data included subsets of The Pile for hidden states, WikiText-103 for baseline training, and Neuronpedia for qualitative grounding.
Key Insights
The Subspace Channel Hypothesis
A major theoretical contribution of this work is the Subspace Channel Hypothesis. The authors propose that downstream modules do not "read" the entire feature vector. Instead, each module extracts information through a specific, low-dimensional "channel" or subspace. Experiments demonstrate that these channels are layer-specific, meaning different layers interpret the same feature differently.
Features as Queries and the Signal-Variance Trade-off
Query Lens shifts the conceptual paradigm by viewing a feature as a "query" sent to downstream modules, which then "respond" by writing back to the residual stream.
However, modeling these indirect effects introduces a trade-off between signal and variance. While it adds "signal" (faithfulness to the model's true mechanics), it also adds "variance" because Jacobians depend on the specific context of the prompt. The study found that for features near the end of the model, the direct effect is strong enough that the extra noise from modeling indirect effects isn't beneficial. Conversely, for early and middle layers, modeling indirect effects is essential.
Results
- Superior Interpretability: In qualitative tests, an automated judge (GPT-5-nano) assigned Query Lens significantly higher interpretability scores than Logit Lens. Features previously dismissed as random fragments by Logit Lens were correctly identified by Query Lens as having coherent semantic meanings (e.g., "Adventure/Exploration" or "Forestry").
- Quantitative Gains: Query Lens consistently outperformed baselines like Logit Lens, Tuned Lens, and ablation-based methods (e.g., Zero-Out). It achieved higher Input Scores (matching predicted tokens to actual activating tokens) and Output Scores (matching predicted tokens to actual produced tokens when the feature is manually steered).
- Impact of Layer Depth: The relative advantage of Query Lens over Logit Lens was most pronounced in early and middle layers, confirming that modeling the "long road" to the output is critical for these stages.
Limitations and Future Work
While Query Lens represents a significant step forward, it relies on a first-order (linear) approximation of the model's dynamics, potentially missing complex, non-linear interactions between multiple features. Additionally, because indirect effects depend on current hidden states, a feature's interpretation can exhibit context sensitivity, changing slightly depending on the probing prompt.
Future work may explore an "adaptive" version of Query Lens that automatically determines the optimal number of downstream layers to model for a specific feature, thereby maximizing the signal-to-noise ratio.
Summary updated