Skip to content

Can sparse autoencoders generalize? A case study on answerabilityDo Sparse Autoencoders Generalize? A Case Study of Answerability

arXiv· arXiv:2502.19964· Lovis Heindrich, Philip Torr, Fazl Barez, Veronika ThostUniversity of Oxford; WhiteBox; MIT-IBM Watson AI LabIndexed by this site · 2026-10-15· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

The authors compare SAE and linear probes on Gemma 2: Layer 31, SQUAD in-domain probe 0.9, SAE OOD transfer unstable.

Questions
SAEs are used to unsupervisedly extract language model features, but abstract concepts can behave differently across contexts. The authors ask with answerability: can these features generalize across datasets, rather than being only in-domain separable.
Methods
On Gemma Scope (layers 20, 31, width 131k) of instruction-tuned Gemma 2, train a 1-sparse probe on last-token activations from 2000 SQUAD examples, then compare accuracy against a residual stream linear probe on four OOD sets.
Experiments and results
The Layer 31 SQUAD in-domain linear probe is 0.9, and the top SAE is about 0.8. The authors report out-of-domain results ranging from near random on BoolQ to exceeding the probe on Equation. When trained separately on each set, SAE probing exceeds 80%. Increasing the number of features did not improve OOD.
Limitations and future work
The authors note that high-quality instruction-tuned SAEs can only be evaluated on Gemma 2; preliminary Llama 3 tests found no usable answerability features. The probe technique is relatively simple, and they believe feature splitting may break apart abstract concepts. Experiments include layers 20/31, 1 to 5 features, Spanish SQUAD, and prompt variants.
Experimental setupGemma 2、Gemma 2 2B et al. · SQUAD、BoolQ et al. · accuracy、probing accuracy et al.
Evaluated models
Gemma 2Gemma 2 2BGemma 2 base models
Benchmarks
SQUADBoolQIDKEquationCelebritySpanish SQUAD
Metrics
accuracyprobing accuracycosine similarity
AI summaryThe paper evaluates the generalization of Gemma 2 sparse autoencoder (SAE) features. The authors construct and test multiple datasets around answerability to examine whether the model recognizes the abstract feature of answerable questions. Results show that residual stream probes outperform SAE features within a single domain, but the two differ markedly in generalization. SAE feature out-of-domain transfer is unstable, ranging from near-random to better than residual stream probes. The authors conclude that SAE-based interpretability needs more robust evaluation methods and tools that can quantitatively predict feature generalization.

The paper evaluates the generalization of Gemma 2 sparse autoencoder (SAE) features. The authors construct and test multiple datasets around answerability to examine whether the model recognizes the abstract feature of answerable questions. Results show that residual stream probes outperform SAE features within a single domain, but the two differ markedly in generalization. SAE feature out-of-domain transfer is unstable, ranging from near-random to better than residual stream probes. The authors conclude that SAE-based interpretability needs more robust evaluation methods and tools that can quantitatively predict feature generalization.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors use answerability to test whether SAE features generalize across datasets.

    Whether SAE can extract abstract features that remain valid across datasets is unclear. The authors test this using answerability (identifying whether a question can be answered).

    • Motivating scenario: Language models are increasingly used in real applications, and their black-box nature hinders deployment. The authors state that for interpretability to succeed, abstract features must be identified across domains, and these features often behave differently across contexts; answerability exists across tasks and often depends on background knowledge such as math or facts.
    • Existing shortcomings: The authors state that SAE training effectiveness is often measured by reconstruction quality, disconnected from downstream use; downstream probing is mostly simple tasks like sentiment or language identification, or limited to multilingual and syntactic variation, with insufficient examination of more complex concepts that behave differently across contexts.
    • Core hypothesis: If SAEs capture meaningful abstractions, they should be able to extract features representing answerability, and features selected in-domain should continue to detect that capability on out-of-distribution data.
    • This paper's analysis: On Gemma Scope SAEs of instruction-tuned Gemma 2, train a 1-sparse probe on SQUAD, compare against a residual stream linear probe, and evaluate generalization on four OOD datasets (including two self-constructed sets).
  2. What related research exists?

    Previous work mostly stops at reconstruction, syntax, or multilingual variation, with less evaluation of generalization of more complex concepts.

    Section 3 is organized by training, downstream evaluation, and comparison with linear probes; the introduction additionally gives the feature types SAEs have been shown to capture.

    SAE training

    • Reconstruction quality: Rajamanoharan et al. (2024) and Lieberum et al. (2024) improve dictionary learning or SAE training. The authors state their effectiveness is usually measured by reconstruction quality, thus disconnected from downstream scenarios.
    • Simple downstream tasks: Gao et al. (2024) do downstream probing; the authors consider the tasks very simple (e.g., sentiment, language identification), likely not testing generalization. Makelov et al. (2024) use downstream data but do not consider generalization.

    Downstream feature evaluation

    • Syntactic or not assessing generality: Yun et al. (2021), Bricken et al. (2023), Kissane et al. (2024) evaluate SAE features, including downstream settings. The authors state the research often focuses on simple syntactic features or does not assess how general the features are.
    • Still close to syntax: Cunningham et al. (2023) study indirect object identification, and Marks et al. (2024b) study subject-verb agreement; the authors state these are still directly related to syntax. Demircan et al. (2024) examine quality estimation in reinforcement learning, but focus on task-specific rather than generalizable SAEs.

    Comparison with linear probes

    • Bioweapon classification: Bricken et al. (2024) compare SAE features with linear probes. The authors paraphrase that paper: SAE probes are competitive but more complex and fragile; mismatches in the format of transformer, SAE, and probe training data can reduce performance. On OOD with different languages, SAE features can generalize in specific settings, and the task is largely lexical.
    • Sparse probing: Kantamneni et al. (2024; 2025) compare SAEs with traditional probing on activations. The authors state SAEs seem usable in cases like very small datasets or corrupted data, and their OOD focuses more on multilingual and syntactic variation; results are mixed, with no clear winner, and SAEs are generally not better than conventional probing.

    Clues from the introduction

    • Reported features: Templeton et al. (2024) report SAEs can capture code errors, sycophancy, and gender bias; Lan et al. (2024) and Marks et al. (2024a) involve syntactic patterns and sentiment.
    • Circuits and safety: Elhage et al. (2021), Olsson et al. (2022), Marks et al. (2024b) do circuit analysis. Barez et al. (2025) propose that more advanced interpretability methods may also have fundamental limits for ensuring AI safety.

    The baseline method is the residual stream linear probe. Benchmarks/datasets are SQUAD, IDK, BoolQ 3L, Equation, Celebrity, plus SQUAD prompt variants and Spanish SQUAD.

    The authors state that prior work largely ignores generalization beyond multilingual/syntactic, and state this study fills that gap: placing the comparison on the more complex answerability and more distributions. The authors consider this concept likely to behave differently across contexts.

  3. How does the paper address this problem?

    Train a 1-sparse probe with SQUAD on Gemma Scope, then test on four OOD sets.

    The authors do not train new SAEs, but probe on pretrained dictionaries. The core is the 1-sparse SAE probe (referred to interchangeably with SAE features in the paper): select a single feature on SQUAD that predicts answerability well, fit a scale and bias, then test the same feature on OOD sets. The baseline is a residual stream linear probe on the same in-domain data. Figure 2 shows the simplified pipeline. The authors state they do not compare with other answerability detection methods such as Chuang et al. (2024), because the goal is to evaluate SAE generalization, not to build a new detector.

    Models and SAEs

    • Models and layers: instruction-tuned Gemma 2 (Team et al., 2024). The authors assume high-level concepts like answerability reside in middle and later layers, so they use the layer 20 and layer 31 SAEs provided by Lieberum et al. (2024).
    • Dictionary: the widest available SAE, with 131k dimensions. Activations are taken at the last token.
    • Sampling points: these SAEs use JumpReLU. Sampling can be done pre-activation (pre-relu) or post-activation (post-relu). Main figures use pre-relu because more features can be found; post-relu is in the appendix.
    • Standard form given in the paper: Section 2 writes the common encoder–decoder SAE and the reconstruction plus L1 loss (equations (1)–(3), where the encoder includes ReLU). The authors also note that recent work has shifted to designing other sparsification methods, and Gemma Scope belongs to this line.

    How probes are trained

    • 1-sparse: collect activations of a single feature on contrastive examples, fit slope and intercept with linear regression to predict answerable/unanswerable labels (Gurnee et al., 2023). Appendix A describes the steps. The paper does not state how regression outputs are thresholded into classes.
    • Feature selection: search with 2000 balanced SQUAD examples, hold out 1800 for testing. 5-fold cross-validation finds features that predict answerability. Top features are selected by training-set performance, then final probes are trained for these features and used for OOD.
    • Residual stream probes: same in-domain training set, 5-fold cross-validation; regularization takes 26 log-spaced values between 0.0001 and 1. Repeated 10 times with different random training subsets. The authors state that because this probe has more parameters and is optimized for that data, it is an upper bound for SAE probes on in-domain data.
    • Multi-feature: exhaustive combination is infeasible. When finding k features, take the 50 best-performing groups of size k−1 and combine with the 500 best-performing single features. The regularization constant is fixed at 1.

    Data

    English, context-based question answering; unless otherwise noted, SQUAD is in-domain and the rest are OOD. Answerable and unanswerable are balanced within each set. Sizes are in Table 1.

    • SQUAD (Rajpurkar et al., 2018): short passages with related questions. Splits and prompt templates come from Slobodkin et al. (2023). Training 2000, test 1800, variants 1800.
    • IDK (Sulem et al., 2021): SQUAD-style, using the non-competitive and unanswerable subsets of ACE-whQA, 484 examples.
    • BoolQ 3L (Sulem et al., 2022): yes/no questions. Listed as BoolQ in tables, training and test 2000 each. The authors state its unanswerable examples are constructed from contexts and questions of similar examples, covering only one type of unanswerability.
    • Equation: self-built, solvable equations contrasted with equations containing unknown variables, 2000 examples.
    • Celebrity: self-built, 600 examples. Uses IMDB actor and movie data, taking 1000 actors by total rating count for movies after 1990; non-celebrity names are random combinations of common North American names. Questions require celebrity knowledge.

    There are also five SQUAD prompt templates (Table 3), and Spanish SQUAD in Appendix B.6 (Carrino et al., 2019).

    Similarity

    Compare encoder weights within the same SAE, and slope coefficients of residual stream probes at the same model position, using cosine similarity. For groups of 1 to 5 features, take the 10 best-performing groups at that size and compute average absolute cosine similarity with residual stream probes over 10 training subsets.

  4. What experiments did the paper conduct?

    Layer 31 in-domain linear probe 0.9, top SAE about 0.8, out-of-domain transfer diverges across datasets.

    Experimental setup

    • Model under test: The main experiment is instruction-tuned Gemma 2, layers 20 and 31, Gemma Scope width 131k. The appendix additionally analyzes Gemma 2 2B and the base model, and does preliminary testing on SAEs for Llama 3 and an unofficial instruction-tuned Llama. The paper does not state whether the latter two are from the same experiment.
    • Data: Table 1 lists SQUAD train 2000, test 1800, variants 1800; BoolQ train and test 2000 each; IDK 484; Equation 2000; Celebrity 600. Spanish SQUAD is not listed in Table 1, and the paper does not give the number of examples.
    • Baselines and repeats: Residual stream linear probe, 10 training splits. Figure 9 reports the median and first and third quartiles across these 10 runs.
    • Metrics and determination: Probe accuracy; feature comparison uses cosine similarity. The paper does not mention LLM evaluation, nor a threshold derived by regressing to labels.
    • Feature setup: last token; main text pre-ReLU; 5-fold cross-validation; top features selected by training-set performance. Another in-domain training set uses 2000 BoolQ examples.
    • Explicitly not compared: No comparison with other answerability detection methods such as Chuang et al. (2024).

    Main results

    The transcript does not have exact readings for the OOD bars in Figure 3; the table below lists only the in-domain accuracies stated in the text.

    ProbeConditionAccuracy
    Residual stream linear probeLayer 31, SQUAD in-domain0.9
    Top SAE featureLayer 31, SQUAD in-domain, pre-ReLUabout 0.8
    Residual stream probeIn-domain SQUAD (layer not stated in that sentence)85-90%

    Per the text on Figure 3 and Section 4. Figure 3 left is SQUAD training, right is BoolQ training, with the remaining sets as OOD.

    • OOD divergence: The authors report that on Equation, several SAE features and the probe are all high; only for features selected on Layer 31 and SQUAD does the best SAE transfer to Equation better than the residual stream probe, while Layer 20 is much worse (Figure 7). The authors suggest this seems to indicate that mathematical contexts make answerability easier to detect and that the internal representations of the two sets are compatible. A few top features match the linear probe on IDK and exceed it on Celebrity; BoolQ generalization is poor, with the Figure 1 caption calling it near random. The linear probe performs poorly on Celebrity.
    • Not difficulty itself: When a 1-sparse probe is trained separately on each dataset, features with probe accuracy above 80% can be found for each comparison set (Figure 11, pre-activation). The authors suggest the internal representation varies with the dataset, and neither type of probe represents the concept in a fully generalizable way. The authors state that the standard feature-selection process may fail to select generalizable features even if they exist; they also state that good features exist while the linear probe also fails, indicating SAEs still have some potential, but finding generalizable features remains an open problem.
    • Top features and changing the training set: The authors state that the top three in-domain features on SQUAD also generalize better here; some OOD performance exceeds the probe's generalization and also exceeds in-domain performance, which the authors suggest indicates some SAE features represent more general concepts. This phenomenon does not hold generally beyond top-1 (Appendix B.1). The authors state that for BoolQ, result variability makes the conclusion unclear. When trained with BoolQ, generalization can be much worse; the authors describe its unanswerable samples as capturing only one type of unanswerability.

    Feature combinations

    Figure 4 is Layer 31, pre-activation, feature counts 1 to 5, with error bars as the median and quartiles across top feature groups. The authors originally speculated that since OOD sets are domain-specific, combinations would be better general probes. The result is that increasing feature count improves in-domain performance, and OOD does not exceed the best single feature. Appendix B.4 shows a similar trend, or even a decline (Figures 12, 13). The authors suggest OOD needs better feature search and possibly new training methods that encourage general features.

    Similarity and Layer 20

    • Whether directions coincide: Figure 5 compares ten residual stream probes, top SAE features against each other, and top SAE features against linear probes on each training seed. The authors report that residual stream probes have an average similarity of 0.7, with very similar directions; high-performing SAE features differ greatly from each other and from the linear probes. The best-generalizing SAE features have the highest similarity to the probes, but overall it is still low. In Figure 14, averaging multiple high-performing SAE features makes them more similar to the linear probe. The authors state this provides weak evidence that the linear probe may learn a more specialized direction and can be written as a linear combination of more general SAE features.
    • Layer 20: Figure 7 and Appendix B.1 show overall worse performance. The authors state that Celebrity is worse than all other datasets for both SAE and linear probes, with only one SAE feature above random. The authors speculate there are features encoding celebrity knowledge, but they are not among the top features selected by answerability. On Layer 20, features that perform well on BoolQ, Equation, and Celebrity exist (Figure 11), but they are not the same set as those found by training on SQuAD.
    • Training splits: The authors state that OOD performance in Figure 9 varies greatly, and generalization depends heavily on small differences in training data; SAE features that are part of the pretrained autoencoder depend less on the probing dataset. The authors state the figure generally correlates with performance.

    Other ablations and analyses

    • Prompt variants: Table 3, five templates, Figure 10 (Layer 31, pre-activation). The authors state that SAE and linear probes are insensitive to these variants and generalize, while they often fail on true OOD sets.
    • post-activation: Figures 6, 8. Sampling after activation reduces the relevant features found, because many features are not activated; the authors state the overall results are unchanged, and features that generalize well can still be found.
    • Spanish: Appendix B.6, Figure 15. Probes trained on English SQUAD transfer to Spanish SQUAD. The authors state that each top probe and the residual stream probe are roughly equally good, with a gap slightly below 10%, and no large differences among features.
    • Smaller models: On Gemma 2 2B and the base model, the best SAE feature is about 70%.
    • Llama: Preliminary testing on Llama 3 did not find answerability features usable for probe comparison; the unofficial instruction-tuned Llama SAE also did not find features with sufficient in-domain probe accuracy.
    • Setup check: The authors state they searched for bias-related features per related work to check the setup; the paper does not give the accuracy of this check.
  5. What are some points that can be further explored?

    The authors note that only Gemma 2 open-source SAEs can be evaluated, and believe feature splitting may hinder applications.

    Limitations and future directions noted by the authors

    • SAE availability (Limitations): The authors state that the evaluation bottleneck is whether high-quality SAEs trained on instruction-tuned LLMs are available, so generalization can only be evaluated on Gemma 2, which has open-source SAEs.
    • Other open-source SAEs (Limitations): SAEs for models like Llama 3 are generally trained on base models, or their quality is uncertain. The authors state that preliminary tests on Llama 3 found no answerability features usable for probe comparison.
    • Hyperparameters and data (Limitations): SAE features depend heavily on training hyperparameters and training data. The authors still expect that if such SAEs are to be used in practice, certain features should exist.
    • Probe technique (Limitations): The SAE probe training technique used is relatively simple, and the authors state it did not achieve the best results. The authors state this is precisely the point: existing techniques are insufficient to detect generalizable SAE features.
    • Feature splitting (Limitations): The authors believe a key issue may be feature splitting: SAEs of different sizes learn features at different granularities, often splitting more general features into multiple more specialized features. If answerability is split apart, this could pose problems for feature-based applications.
    • Training and evaluation (Conclusions): The authors believe fully general features may not be learnable, thus limiting steering and probing; they speculate reasons include suboptimal training objectives and feature splitting on complex concepts (Bricken et al., 2023; Chanin et al., 2024). The authors believe better feature evaluation techniques are needed before SAEs can be robustly used in practice, and future applications require comprehensive OOD evaluation.

    Experimental coverage

    • The main experiment is Gemma Scope on instruction-tuned Gemma 2, width 131k, layers 20 and 31, activations taken at the last token.
    • Also analyzed Gemma 2 2B and the base model, and conducted preliminary tests on Llama 3 and an unofficial instruction-tuned Llama SAE.
    • Data are English contextual question answering: SQUAD, IDK (non-competitive and unanswerable subsets of ACE-whQA), BoolQ 3L, self-built Equation and Celebrity, sizes in Table 1; also five prompt variants in Table 3 and Spanish SQUAD in Appendix B.6.
    • Baselines are residual stream linear probes (10 training splits, 26 regularization levels). The SAE side includes 1-sparse and up to 5 features, as well as pre-ReLU and post-ReLU. In-domain training includes SQUAD and BoolQ, 2000 examples each.
    • The paper states it does not compare with other answerability detection methods such as Chuang et al. (2024). The paper does not report statistical significance tests, does not report the decision threshold from regression outputs to labels, and does not give the number of examples for Spanish SQUAD.
  6. Summarize the main content of the paper

    Answerability features can be found for each dataset, but cross-domain transfer from standard search is unstable.

    The authors use answerability as a case study to examine whether features extracted by sparse autoencoders can represent the same abstract capability across datasets.

    • Question: The authors argue that interpretability must hold across domains; features cannot be separable only on a single distribution. Answerability depends on domain knowledge and appears across different tasks, making it suitable for this test.
    • Method: On Gemma Scope (layers 20, 31, width 131k) of instruction-tuned Gemma 2, select features using last-token activations from 2000 SQUAD examples, train a 1-sparse probe, and compare with a residual stream linear probe. OOD sets are IDK, BoolQ 3L, and self-constructed Equation and Celebrity.
    • In-domain: On Layer 31, the linear probe accuracy is 0.9, and the top SAE feature is about 0.8. Section 4 also states the residual stream probe is 85-90% on in-domain SQUAD. The authors state the probe has more parameters, so higher in-domain performance is unsurprising, and call it an upper bound for in-domain SAE probing.
    • Out-of-domain: The authors report transfer diverges by dataset. On Equation, top SAE features selected on Layer 31 and SQUAD can exceed the residual stream probe; on IDK, a few features match the probe; on Celebrity, a few features exceed the probe, but the linear probe itself is poor; BoolQ is near random (Figure 1). When trained separately on each set, features above 80% can be found (Figure 11). Training with BoolQ worsens generalization.
    • Other observations: Increasing features from 1 to 5 improves in-domain but not OOD (Figure 4). Residual stream probes have an average cosine similarity of 0.7 to each other, while high-performing SAE features are not similar to each other (Figure 5). On Spanish SQUAD, each top probe and the residual stream probe differ by slightly less than 10% (Figure 15). On Gemma 2 2B and the base model, the best SAE feature is about 70%; preliminary testing on Llama 3 found no usable features.
    • Authors' conclusion: SAE features for answerability can be found in each domain, but standard search may fail to find generalizable features even if they exist. The authors suggest fully general features may not be learned by standard training, and speculate this relates to the training objective and feature splitting; future work needs better feature evaluation and comprehensive OOD assessment.
Read originalarxiv.org