Skip to content

Evaluating sparse autoencoders on targeted concept erasure tasksEvaluating Sparse Autoencoders on Targeted Concept Erasure Tasks

arXiv· arXiv:2411.18895· Adam Karvonen, Can Rager, Samuel Marks, Neel NandaAnthropicIndexed by this site · 2026-10-14· Originally publishedAlignment

Quick read

Evaluation and benchmarks

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

The authors evaluate SAEs with SCR and TPP; they claim that TopK, JumpReLU, and Standard are distinguished on Gemma-2-2B.

Questions
SAE evaluation lacks trustworthy metrics. The authors claim sparsity and fidelity do not always correspond to interpretability, so they use downstream concept erasure to measure whether an SAE can causally separate concepts.
Methods
Automated SHIFT yields SCR: probe attribution selects latents, optionally LLM-filtered, then zero-ablation, scored by normalized accuracy change. TPP is used for multi-class classification, comparing the accuracy difference between the ablated class's probe and probes for other classes after ablating one class.
Experiments and results
The authors claim that on layer 19 of Gemma-2-2B, SCR and TPP can separate Standard, TopK, and JumpReLU. The first 10% of training corresponds on average to 85% of the SHIFT score. In Table 4, Pythia-70M single TopK is 90%, and no intervention is 59%.
Limitations and future work
The authors note that the optimal sparsity varies by metric, hyperparameters are not settled, and it depends on human concept assumptions. The experiments use two open-source models and Bias in Bios; Amazon SCR is explicitly stated to be done only on Gemma-2-2B, not evaluated on Pythia-70M.
Experimental setupPythia-70M、Gemma-2-2B · Bias in Bios、Amazon reviews et al. · S_SHIFT、S_TPP et al.
Evaluated models
Pythia-70MGemma-2-2B
Benchmarks
Bias in BiosAmazon reviewsThe Pile
Metrics
S_SHIFTS_TPPL0loss recoveredGround Truth Accprobe accuracy
AI summaryThe paper proposes SHIFT-based automated evaluation metrics and a Targeted Probe Perturbation (TPP) metric for measuring the quality of sparse autoencoders (SAEs) on targeted concept erasure tasks. SHIFT comes from downstream tasks in Sparse Feature Circuits by Marks et al., where features of the SAE judged by human annotators through ablation as task-irrelevant were originally removed from the classifier to eliminate spurious cues; the paper instead replaces human annotation with an LLM. TPP quantifies the SAE's ability to distinguish similar concepts, extending SHIFT to more datasets. The authors apply both metrics to several open-source models, and the results show that they can distinguish different SAE training hyperparameters and architectures.

The paper proposes SHIFT-based automated evaluation metrics and a Targeted Probe Perturbation (TPP) metric for measuring the quality of sparse autoencoders (SAEs) on targeted concept erasure tasks. SHIFT comes from downstream tasks in Sparse Feature Circuits by Marks et al., where features of the SAE judged by human annotators through ablation as task-irrelevant were originally removed from the classifier to eliminate spurious cues; the paper instead replaces human annotation with an LLM. TPP quantifies the SAE's ability to distinguish similar concepts, extending SHIFT to more datasets. The authors apply both metrics to several open-source models, and the results show that they can distinguish different SAE training hyperparameters and architectures.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    SAE lacks metrics aligned with interpretability; the authors use automated SHIFT and TPP as downstream tests.

    SAE development lacks trusted metrics aligned with interpretability; common sparsity and fidelity do not always correspond to interpretability.

    • Scenario: The authors believe SAE should decompose activations into interpretable units, but dictionary learning has no clear ground truth. The authors claim that by the time of writing, multiple architectures like TopK, Gated, BatchTopK, p-Annealing, JumpReLU had appeared, yet it is hard to tell whether improvements advance interpretability or only optimize proxy objectives.
    • Existing shortcomings: The authors claim that sparsity and fidelity used by Cunningham et al. 2023, Lieberum et al. 2024, Marks et al. 2024 do not always correlate with interpretability (Jermyn et al. 2024; Braun et al. 2024).
    • Claim: The authors advocate directly measuring SAE with downstream tasks, focusing on whether concepts can be causally isolated: ablating a feature for one concept should change classification of that concept, but not others.
    • This paper's approach: Automate SHIFT from Marks et al. 2024 into Spurious Correlation Removal (SCR), using an LLM to replace human judgment of irrelevant features; then propose Targeted Probe Perturbation (TPP), extending the same test to text classification data that does not require label correlation. The authors claim both can distinguish SAE training hyperparameters and architectures.
  2. What related research exists?

    Related work is divided into SAE architectures, unsupervised proxies, concept erasure, and SHIFT; the authors turn the erasure task into an evaluation.

    SAE and Dictionary Learning

    • Feature basis: Sharkey et al. 2022, Bricken et al. 2023, Elhage et al. 2022 use SAEs to find overcomplete, sparse, interpretable features from internal representations. The authors split quality into faithfulness to internal computation, and decouple related and causal types.
    • Architectures: The introduction lists TopK from Gao et al. 2024, Gated from Rajamanoharan et al. 2024a, BatchTopK from Bussmann et al. 2024, p-Annealing from Karvonen et al. 2024, and JumpReLU from Rajamanoharan et al. 2024b. This is only a listing, not a paper-by-paper comparison.

    Existing SAE Evaluation

    • Unsupervised proxies: Rajamanoharan et al. 2024a, Team 2024, Cunningham et al. 2023 use reconstructed cross-entropy loss recovered and feature activation L0 as criteria. The authors claim they do not always correlate with interpretability.
    • Other tasks: Karvonen et al. 2024 evaluate on chess models, Makelov et al. 2024 look at human-identified circuits, Gao et al. 2024 detect predefined natural language concepts. The paper only describes these approaches here, without naming criticism.

    Concept Erasure

    • Method lineage: Bolukbasi et al. 2016 use PCA; Ravfogel et al. 2020 iteratively train linear classifiers to remove unwanted concepts. This is followed by Hard Debias (Wang et al. 2020), R-LACE (Ravfogel et al. 2022a), LEACE (Belrose et al. 2023), and nonlinear methods from Iskander et al. 2023 and Ravfogel et al. 2022b.
    • Relation to this paper: The authors state the goal is not to advance the state of the art in concept erasure, but to turn the erasure task into an SAE progress metric.

    SHIFT

    • Marks et al. 2024: They manually inspect concepts that causally affect a classifier and delete SAE features that appear unrelated to the target task, thereby removing spurious correlations. The authors replace their manual step with an automatic metric, and state in the results that the original setup relies on multiple Standard SAEs and attribution patching.

    • Baseline methods: The authors train their own Standard (called Vanilla in Appendix A.2) and TopK, and compare against Gemma-Scope's JumpReLU; they also compare with L0 and loss recovered. Benchmarks/datasets: Bias in Bios (De-Arteaga et al. 2019), Amazon reviews (Hou et al. 2024); SAEs are trained on The Pile.

    The authors position this paper on downstream causal isolation metrics, rather than a new erasure algorithm or another set of unsupervised proxies.

  3. How does the paper address this problem?

    Use probe attribution to select latents and ablate, scoring SAE with SHIFT normalized gain and TPP's inter-class isolation.

    Overall, it measures causal isolation: train a binary classification head for each concept, select the corresponding SAE latent, and then see whether ablation affects only that concept's classifier. SCR is automated SHIFT; TPP applies the same idea to multi-class data.

    Probe and latent selection

    • Probe: Train binary linear probes on model activations. The classification head is added directly on the SAE output; the direct effect of a single latent is the dot product of the decoder vector and the probe weight. If the probe layer differs from the SAE layer, attribution patching can approximate it, with extra forward/backward passes roughly equal to the number of classes times the batch size.
    • Attribution: This dot product is then multiplied by the difference in average activation between target concept inputs and unrelated inputs, to downweight high-frequency latents that activate similarly on both classes. Take the top N by attribution. The authors claim the required N increases with model size, and the optimal N remains an open question; Gemma-2-2B main experiments use top 50, TPP uses at most 50.
    • Optional filtering: Claude-3.5 Sonnet scores 0 to 4 based on relation to the concept. Input includes the top 5 activated context segments from 10,000 random web texts, 5 promoted tokens from direct logit attribution, and 4 few-shot examples. The authors claim the judge is prone to false negatives, so they keep latents with scores not below 1. After manually annotating 60 examples and adjusting the prompt, inter-rater Cohen's κ is 0.44 for gender and 0.58 for profession; the authors claim κ>0.4 is reasonable agreement. Appendix A.7 gives the full prompt.

    SHIFT and SCR

    • Data: One text has two binary labels. Bias in Bios uses profession and gender; Amazon reviews use product category and rating. Example: professor/nurse and male/female, split into a balanced set containing all combinations, and a biased set containing only male professors and female nurses.
    • Classifier: Train a linear classifier C_b on the biased set. One selection method takes top n by absolute attribution to the biased probe, then uses an LLM to keep only latents judged unrelated to the target concept. Another is spurious-feature-informed: use a probe specifically predicting the spurious signal, take top n by absolute attribution, no LLM needed; the authors claim it corresponds to Marks et al.'s feature skyline. Section 4.1 also calls the LLM-free approach noise-informed and claims it is a fast proxy for original SHIFT.
    • Scoring: Zero-ablate the selected latents and measure target class accuracy on the balanced set. Normalized score is SSHIFT=(Aabl−Abase)/(Aoracle−Abase), i.e., the proportion of the maximum possible improvement from baseline to oracle achieved by ablation. A_abl is accuracy after ablation, A_base is accuracy before ablation, A_oracle is accuracy of a probe trained directly on the target concept.

    TPP

    • Setup: Text corresponds to exactly one of m mutually exclusive concepts, so labels are not required to be related. For each class, take the set of latents with highest signed importance that positively contribute to that class.
    • Measurement: Split data into target class and a random mix of the remaining classes, train probes for each class. After ablating latents of class i, measure the accuracy of the probe for class j.
    • Score: STPP=meani=j(Ai,j−Aj)−meani≠ j(Ai,j−Aj). The authors hope accuracy drops only when i=j, and remains roughly unchanged when i≠j.

    Training and class pairs

    • Probe: Context 128, input 4000 examples, 5 epochs, Adam, betas (0.9, 0.999), batch 16, learning rate 1e-3 (Table 1).
    • SAE: Train Vanilla/Standard and TopK on pythia-70m-deduped and Gemma-2-2B, using 200M tokens from The Pile; expansion factor 8, and 32 for Pythia only. Also evaluate Gemma-Scope's JumpReLU. Training context 128, Adam, betas (0.9, 0.999), linear warmup 1000 steps, batch 4096, learning rate 3e-4 (Table 3).
    • Class pairs: Scores are averaged over multiple class pairs. Bias in Bios uses (professor, nurse) and (architect, journalist). The four Amazon pairs listed in Appendix A.1 include Books and CDs and Vinyl, Software and Electronics, Pet Supplies and Office Products, Industrial and Scientific and Toys and Games. Inclusion condition is C_b accuracy at least 0.6 on both classes of the pair.
    • Signal direction: The authors claim the direction of spurious correlation varies with the underlying LLM, and strength is affected by probe hyperparameters. On Gemma-2-2B, large batch makes gender spurious correlation weaker, accuracy below 55%; reducing batch makes the two signals more balanced. High learning rate changes direction and strength. Pythia-70M probes mainly use gender signal, Gemma-2-2B mainly use profession signal, so the two sides do not ablate the same signal.
  4. What experiments did the paper conduct?

    The authors claim the two metrics can separate architectures; the highest SHIFT in Table 2 changes gender or profession accuracy.

    Experimental Setup

    • Models: pythia-70m-deduped (called Pythia-70M in the main text) and Gemma-2-2B. The Gemma SAEs in Figure 1 and Figure 2 are at layer 19.
    • SAEs: The authors train Vanilla/Standard and TopK; JumpReLU comes from Gemma-Scope. Expansion factors 8 and 32 (32 only for Pythia), trained on 200M tokens.
    • Data: Bias in Bios for occupation/gender; Amazon reviews for product class/sentiment. The authors claim Pythia-70M's probe scores for identifying product class are poor, so they do not evaluate Amazon SCR or TPP on that model.
    • Metrics: S_SHIFT, often labeled SCR in appendix figures; and S_TPP. Comparison quantities are L0 and loss recovered. Table 4 additionally uses Ground Truth Acc.
    • Review: Optional Claude-3.5 Sonnet, keeping latents scored at least 1. 60 cases are human-annotated. The authors claim that when selecting N, one must see statistically separable differences; the paper does not report the test method or p-values.
    • Scale: Probe input is 4000 items. Training curve checkpoints are 0%, 1%, 10%, 31%, 100%; the right panel of Figure 2 has 6 TopK and 6 Standard. The paper does not report the total number of SAEs in the full set, nor the number of random repetitions. The main text and captions of Figure 1 and Figure 2 do not state the dataset.

    Main Results

    Table 2 shows biased probe accuracy on balanced gender and occupation sets, both Clean and after SHIFT modification. Mod. is the highest accuracy obtained by SHIFT on any SAE. Gen. is gender, Prof. is occupation.

    Swipe horizontally to read the table

    ModelClass pairClean Gen.Clean Prof.Mod. Gen.Mod. Prof.
    Pythia-70MProf./Nurse0.770.720.520.91
    Pythia-70MArch./Journ.0.860.630.530.88
    Gemma-2-2BProf./Nurse0.640.860.830.65
    Gemma-2-2BArch./Journ.0.690.800.940.55

    Per Table 2.

    • For both Pythia rows, after ablation the occupation column rises and the gender column falls; for both Gemma rows, the opposite. The authors state in Appendix A.1 that this is related to the different signals primarily used by the two probes.
    • Mod. is not an average over one architecture, but the highest value across all SAEs.
    • The authors claim a biased probe's average accuracy on a balanced set is at most 75%, because the probe must trade off between two signals.

    Architecture, Sparsity, and Training Progress

    • SHIFT: Figure 1 is Gemma-2-2B layer 19, taking the top 50 spurious latents after LLM filtering. The authors claim TopK and JumpReLU outperform Standard, and the relationship with relative sparsity is unimodal, peaking in the L0 interval [20, 100]. The caption says the left panel is loss recovered vs. L0 with color as coverage score; the main text says the metric in the figure is S_SHIFT. The paper does not define coverage score.
    • Training: The authors claim that on average, the first 10% of training (20M tokens) corresponds to 85% of the SHIFT score, and SHIFT scores increase with training. The authors claim this finding repeats across models, datasets, and latent selections, see Appendix A.4 and A.5; these two sections do not give the same numerical values as Figure 1 in the main text.
    • TPP: Figure 2 is also layer 19, ablating at most 50 latents. The authors claim the left panel separates TopK, JumpReLU, and Standard, but do not claim the latter two outperform Standard. TopK and JumpReLU reach 80% of the final TPP at 10% of training, while Standard needs 31%. The right panel has checkpoints 0%, 1%, 10%, 31%, 100%, containing 6 TopK and 6 Standard; the caption does not list JumpReLU. The authors claim average TPP increases with training.

    Single SAE and Multi-Position Intervention

    • Setup: Table 5 states the class pair is professor/nurse, ablating gender-related features to improve occupation classification. The authors claim Marks et al. use 16 Standard SAEs covering MLP outputs, attention outputs, and resid_post for layers 0–4, plus embedding.
    • Table 4: Ground Truth Acc is 59% with no intervention; Standard SAE is 88% with embedding plus layers 0–4, 86% with embedding only, 84% with layers 0–4, 81% with layers 3–4, 79% with layers 3–4 residual only; a single TopK SAE at Layer 4 residual only is 90%.
    • Author interpretation: A single TopK SAE exceeds that multi-position Standard setup. The paper does not give the accuracy from the original Marks et al. paper.

    LLM Filtering and Amazon

    • Correlations: Section 4.1 reports r=0.81 before and after SHIFT filtering, and Section 4.2 reports r=0.88 before and after TPP filtering. The paper does not state which model each r belongs to. Figure 7 and Figure 8 plot the before/after correlations for SHIFT and TPP on the two models, with the red region as the 95% confidence interval; the main text does not give the correlation coefficients in the figures.
    • Interpretable proportion: The authors claim most latents selected by spurious-feature-informed criteria are judged interpretable by the LLM, especially at L0 [20, 100]. The paper does not give this proportion.
    • Amazon: Figure 6 reports only Gemma-2-2B SCR, with class pairs Books/CDs_and_Vinyl, Software/Electronics, Pet_Supplies/Office_Products. The caption is still loss recovered vs. L0 with color as coverage score. The main text gives no numbers.

    Other Ablations and Analyses

    • Without an LLM judge, the authors consider a randomly initialized Standard SAE relatively good in Figure 3, because its L0 is 9000, larger than Gemma-2-2B's d_model of 2304; as it becomes sparser, results with and without a judge begin to correlate. The main text says Figure 3 is TPP without a judge; the caption says SCR scores without auto-interp.
    • Figure 4's caption is TPP without auto-interp; the left panel contains Standard, JumpReLU, and TopK; the right panel has 6 TopK and 6 Standard. The main text gives no numbers.
    • Figure 5 is four scatter plots of Pythia-70M SCR/TPP with and without auto-interp, with color as coverage score. The caption does not state the SAE layer, and the main text gives no numbers.
    • With a large batch on Gemma-2-2B, gender spurious-correlation accuracy is below 55%. Appendix A.1 gives an example: if two classes have accuracies of 50% and 95%, after ablation one class is hard to improve; this is an example in the method description, not a measurement result.
  5. What are some points that can be further explored?

    The authors claim hyperparameters are not settled and concept selection is subjective; the metrics should only be used as supplementary evidence in a broader evaluation.

    Limitations and future directions noted by the authors

    • Sparsity: The optimal sparsity differs between the two metrics; the correlation between TPP and L0 needs further investigation (Section 5).
    • Judge standard: The LLM judge in this paper only scores concept relevance, with a threshold lower than approaches like Juang et al. 2024 that require generating short descriptions that predict activation (Section 5).
    • Whether to use judge: Without the judge, the authors claim it can be computed in seconds, suitable for training-time evaluation; adding the judge increases confidence in latent interpretability, with a trade-off (Section 5, Section 6).
    • Concept assumption: The metrics depend on subjective assumptions about what human-understandable concepts an SAE should learn; the authors believe this may not match the model's true internal representations, may miss important latents, and limits the evaluation scope (Section 5).
    • Usage: Especially with the LLM judge, it is complex and hyperparameters are not yet determined; it should only be supplementary evidence in a broader SAE evaluation suite (Section 6).
    • Coverage: Lack of ground truth features and high variability across model scales make hyperparameter and latent selection difficult. The authors believe that beyond causal isolation, coverage of sparsity, natural language concept disentanglement, human interpretability, and correlation with natural language concepts is needed, and covering all these simultaneously remains an open problem (Section 6).

    Experimental coverage

    • Language models are pythia-70m-deduped and Gemma-2-2B; the authors train Vanilla/Standard and TopK, and evaluate Gemma-Scope's JumpReLU (Appendix A.2, Section 4).
    • SHIFT/SCR and TPP are used on Bias in Bios. Amazon SCR is specified on Gemma-2-2B, with class pairs in Appendix A.5. The paper states that SCR or TPP on Amazon was not evaluated on Pythia-70M.
    • Gemma-2-2B main figures are layer 19, at most 50 latents; training checkpoints are 0%, 1%, 10%, 31%, 100%; Figure 2 right shows 6 TopK and 6 Standard. Figure 1 and Figure 2 do not specify the dataset.
    • SAE is trained on The Pile with 200M tokens, expansion factor 8 and 32 for Pythia only, hyperparameters in Table 3. Table 4 also gives Ground Truth Acc for different intervention positions on Pythia.
    • LLM judge is Claude-3.5 Sonnet, 60 manually annotated examples, and reports Cohen's κ for gender and profession. The paper does not specify which model r=0.81 and r=0.88 belong to, nor does it report the full set of SAE counts and repetition numbers.
  6. Summarize the main content of the paper

    SCR and TPP evaluate SAEs using post-ablation probe changes; the authors claim they can distinguish architectures but should only be used as supplementary evidence.

    This work turns "whether only one concept can be changed" into an SAE quality metric, rather than proposing a new concept erasure algorithm.

    • Problem: The authors believe unsupervised sparsity and fidelity do not always align with interpretability, and dictionary learning has no ground truth, so they instead test with downstream tasks.
    • Method: SCR automates SHIFT from Marks et al. 2024. A biased probe is trained on data with paired labels, latents are selected by attribution, optionally filtered by Claude-3.5 Sonnet, then zero-ablated, and scored by normalized accuracy change relative to an oracle. TPP does not require label relevance: after ablating latents for one class, it compares the accuracy change of that class's probe against probes for other classes.
    • Implementation: The authors train Vanilla/Standard and TopK on pythia-70m-deduped and Gemma-2-2B, and evaluate Gemma-Scope's JumpReLU. The main figures are on Gemma layer 19, taking at most 50 latents.
    • Results: In Table 2, for Pythia-70M Prof./Nurse at the highest SHIFT of any SAE, occupation accuracy goes from 0.72 to 0.91 and gender from 0.77 to 0.52; for Gemma-2-2B on the same pair, gender goes from 0.64 to 0.83 and occupation from 0.86 to 0.65. The authors claim that in Figure 1, TopK and JumpReLU outperform Standard, with L0 peaking in [20, 100]; the first 10% of training corresponds on average to 85% of the SHIFT score. For TPP, the first two reach 80% of the final score at 10% of training, while Standard reaches 31%. The correlations before and after filtering are r=0.81 and r=0.88; the paper does not state which model they belong to. In Table 4, no intervention is 59%, and single TopK (Layer 4 residual) is 90%.
    • Conclusion: The authors claim the two metrics can be used on multiple data types, increase during training, and can be computed in seconds when activations are precomputed; but hyperparameters are not settled, they depend on human concept assumptions, and they should only be used as supplementary evidence in a broader evaluation.
Read originalarxiv.org