Strength Controls Change How Interventions Compare Across Sparse Autoencoder Codes
Organizations: University of Notre Dame
Abstract
Changing sparse autoencoder (SAE) codes can alter both intervention direction and magnitude, so comparing intervention effects requires a strength control specifying what is held equal. Norm matching and output calibration provide different controls, but whether interventions yield different effects across codes after strength matching remains unclear. We compare intervention effects under these controls for fixed feature groups in Gemma and Llama and observe: (1) Whole-patch scaling. With one coefficient per input, full-output Kullback-Leibler (KL) calibration leaves smaller mean effect gaps from the encoder-based reference intervention than total-norm matching for nonnegative least-squares (NNLS) refits. On new Llama inputs, total-norm matching loses 11 reference transfers, whereas full-output calibration preserves every transfer decision. (2) Positionwise scaling. On a small matched gender-agreement subset, positionwise norm matching leaves smaller observed mean gaps than full-output calibration. (3) Answer exclusion. Compared with unscaled NNLS, answer-excluded calibration reduces gaps in the measured subject-verb agreement comparisons but increases them for gender refits. Full-output KL calibration also reduces larger gaps for norm-matched constructed candidates, although matching coverage is incomplete in several settings. Since calibration uses the evaluated input's outputs, it serves as a diagnostic of residual disagreement.
Figures & tables
| Configuration | Width | Layer | NNLS | Cand. | |
|---|---|---|---|---|---|
| Gemma-9B-it SVA | 131,072 | 20 | 6 | 166 | 504 |
| Gemma-2B SVA | 131,072 | 12 | 6 | 62 | 64 |
| Llama-8B SVA | 131,072 | 15 | 12 | 188 | 124 |
| New material | 131,072 | 15 | 12 | 304 | — |
| Llama-8B SVA | 32,768 | 15 | 12 | 112 | 106 |
| Gemma-2B gender | 131,072 | 12 | 12 | 42 | 40 |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Mean gap (logit) | Paired difference (logit) | Lost/gained | ||||||
| Cohort | Weighting | Total norm | Q1 | Estimate | 95% interval | Total norm | Q1 | |
| Earlier panels (follow-up controls) | ||||||||
| 9B SVA | 165 | pooled | 0.056 | 0.015 | unavailable | 1/2 | 1/0 | |
| 2B SVA | 62 | balanced | 0.033 | 0.008 | 0/0 | 0/0 | ||
| Llama-128K | 188 | balanced | 0.160 | 0.017 | 10/1 | 0/1 | ||
| Llama-32K | 112 | balanced | 0.127 | 0.012 | 3/1 | 0/1 | ||
| Cohort | Estimate | 95% interval | |
| 9B SVA | 150 | unavailable | |
| 2B SVA | 62 | ||
| Llama-128K | 188 | ||
| Llama-32K | 109 | ||
| 2B gender | 24 | unavailable | |
| Prospective confirmation | |||
| Cohort | Median | Encoder transfers | |
|---|---|---|---|
| 9B SVA | 165 | 3.92 | 85 |
| 2B SVA | 62 | 4.61 | 55 |
| Llama-128K | 188 | 3.33 | 126 |
| Llama-32K | 112 | 4.05 | 96 |
| 2B gender | 42 | 4.47 | 42 |
| Code | Inputs | Q2 matches | Before | Final | Reduction and 95% interval |
|---|---|---|---|---|---|
| NNLS | 40 | 40 | 0.089 | 0.139 | |
| Candidate | 40 | 13 | 0.754 | 0.401 |
| Configuration | Code | Quantity | Estimate | Lower | Upper | |
|---|---|---|---|---|---|---|
| 9B SVA | Candidate | Q1 reduction | 478 | 0.7239 | 0.3241 | 1.1236 |
| 9B SVA | Candidate | Q1 gap | 478 | 0.0284 | 0.0223 | 0.0344 |
| 9B SVA | Candidate | Q2 gap Q1 gap | 504 | 0.0071 | 0.0042 | 0.0100 |
| 2B SVA | Candidate | Q1 reduction | 64 | 0.5459 | 0.3637 | 0.7485 |
| 2B SVA | Candidate | Q1 gap | 64 | 0.0149 | 0.0106 | 0.0201 |
| 2B SVA | Candidate | Q2 reduction | 64 | 0.5410 | 0.3590 | 0.7446 |
| Balanced mean absolute gap (logit) | |||
|---|---|---|---|
| Panel | Before | After | |
| 9B: all attempts | 504 | 0.816 | 0.076 |
| 9B: matched | 478 | 0.752 | 0.028 |
| 2B: all, matched | 64 | 0.561 | 0.015 |
| Subject–attractor | Matched | Before | After |
|---|---|---|---|
| Plural–plural | 118/124 | 0.643 | 0.020 |
| Plural–singular | 117/124 | 0.702 | 0.036 |
| Singular–plural | 130/136 | 0.740 | 0.025 |
| Singular–singular | 113/120 | 0.923 | 0.033 |
| Matched inputs | All-attempt gap | Matched gap | Rescued | Lost | |||||
|---|---|---|---|---|---|---|---|---|---|
| Setting | Sel. | original | rescued | median | |||||
| 9B SVA | Q1 | 478/504 | 498/504 | 0.076 | 0.047 | 0.028 | 0.392 | 3.03 | 11 6 |
| Llama-128K | Q1 | 92/124 † | 116/124 | 0.270 | 0.193 | 0.130 | 0.241 | 2.53 | 13 7 |
| Llama-128K | Q2 | 91/124 † | 117/124 | 0.302 | 0.234 | 0.174 | 0.274 | 2.39 | 14 9 |
| Llama-32K | Q1 | 75/106 † | 92/106 † | 0.197 | 0.144 | 0.041 | 0.087 | 2.38 | 10 10 |
| Llama-32K | Q2 | 76/106 † | 94/106 | 0.205 | 0.173 | 0.051 | 0.112 | 2.47 | 10 10 |
| 9B: pooled | 2B: balanced | |||
|---|---|---|---|---|
| Matched | Gap | Matched | Gap | |
| 0.25 | 339/346 | 0.074 | 64/64 | 0.019 |
| 0.50 | 343/346 | 0.056 | 64/64 | 0.017 |
| 0.75 | 343/346 | 0.043 | 64/64 | 0.019 |
| 1.00 | 334/346 | 0.037 | 64/64 | 0.020 |
| 1.25 | 303/346 | 0.038 | 56/64 | 0.027 |
| NNLS matched | Gap | Candidate | |
|---|---|---|---|
| 0.25 | 62/62 | 0.00782 | 0.01927 |
| 0.50 | 62/62 | 0.00798 | 0.01679 |
| 0.75 | 62/62 | 0.00986 | 0.01902 |
| 1.00 | 62/62 | 0.00821 | 0.01977 |
| 1.25 | 62/62 | 0.01217 | 0.04455 |
| 1.50 | 50/62 | 0.01225 | 0.13646 |
| Balanced mean absolute gap (logit) | |||
|---|---|---|---|
| Setting | Before | Shared | Per-input |
| 9B ( ) | 0.876 | 0.704 | 0.046 |
| 2B ( ) | 0.561 | 0.313 | 0.015 |
| Pooled mean absolute gap (logit) | |||||||
| Config. / code | Selector | Matched / attempted | Matched only | All attempts | Coverage | ||
| Before | After | Before | Final | ||||
| 128K / NNLS | Q1 | 188/188 | 0.166 | 0.016 | 0.166 | 0.016 | Pass |
| Q2 | 188/188 | 0.166 | 0.023 | 0.166 | 0.023 | Pass | |
| 32K / NNLS | Q1 | 112/112 | 0.159 | 0.012 | 0.159 | 0.012 | Pass |
| Q2 | 112/112 | 0.159 | 0.014 | 0.159 | 0.014 | Pass | |
| Intervention | Inputs | Balanced gap | Pooled gap | Transfers | Lost | Gained |
| Reference | 304 | 0.000 | 0.000 | 175 | 0 | 0 |
| Unscaled NNLS | 304 | 0.213 | 0.207 | 181 | 3 | 9 |
| Total-norm matching | 304 | 0.181 | 0.176 | 165 | 11 | 1 |
| Positionwise norm matching | 304 | 0.134 | 0.130 | 167 | 10 | 2 |
| Full-output KL (Q1) | 304 | 0.021 | 0.020 | 175 | 0 | 0 |
| Follow-up after inspection of the confirmation results | ||||||
| Case | Contrast | |
|---|---|---|
| Singular / singular | 65 | 0.195 |
| Singular / plural | 87 | 0.122 |
| Plural / singular | 65 | 0.185 |
| Plural / plural | 87 | 0.138 |
| Effect-gap contrast | Mean | 95% interval |
|---|---|---|
| Unscaled NNLS Q2 | ||
| Q2 Q1 | ||
| Total norm Q2 |
| Comparison | Evidence status | Inferential scope |
|---|---|---|
| 9B lexical candidate | Prespecified primary; effects unmeasured when specified | Coverage passes; planned precision unmet |
| 2B and Llama SVA extensions | Specified after group qualification, before alternative effects | 2B matches fully; Llama candidate coverage fails |
| Gender | Selected group validated before code comparison | Partial extension; Q2 reverses the NNLS pattern |
| Single-scale controls | Prespecified follow-ups on exposed panels | Paired comparisons, with unavailable intervals reported |
| New Llama-128K NNLS panel | Materials and analysis specified before tokenization or group effects | Prospective material confirmation; all support, coverage and precision requirements pass |
| Q2 on the new Llama panel | Specified after inspection of the original confirmation results | Follow-up reduction; larger residual gap and transfer losses than Q1 on the same inputs |
Transformer Interpretability
Transformer interpretability studies how attention, feed-forward layers, and hidden representations support model predictions and behavior.
See all 336 papers