Causal Localization of Evidence Effects in Transformers
Abstract
Can controlled symbolic inputs reveal attention heads that influence a language model's decisions from natural language evidence? We introduce controlled evidence aggregation (CEA), which varies the counts and order of two symbols in otherwise fixed prompts and measures changes in a frozen Transformer's preference between two answer tokens. The preference is measured by their logit difference; the prompts prescribe no correct answer. Balanced utility causal selection (BUC) identifies compact head sets by jointly evaluating how much ablating their outputs removes the count effect and how closely patching mean outputs between count conditions recovers the effect in both directions. We derive conditional bounds linking head attribution to intervention effects and specifying when the attribution shortlist can be recovered from finite samples. In Pythia-410M, ablating sets of 1-12 heads selected separately for four ordering regimes removes 65.5-91.6% of the count effect. The sets retain their influence on count comparisons not used for selection. To test relevance beyond symbolic inputs, we evaluate a natural language task asking which state is supported by more reports. Ablating eight heads selected only on symbolic yes/no prompts lowers mean accuracy by 8.2 percentage points, versus 0.8 for random sets matched by size and layer. Our results demonstrate that controlled symbolic probes can identify compact attention head sets whose causal influence extends to natural language decisions.
Figures & tables
| Regime | Size | BUC shrink / mean match | BUC HL match | Random shrink / HL match | |
| Front | 0.239 | 1 | 0.906 / 0.974 | 0.998 | 0.020 / 0.048 |
| Back | 1.965 | 12 | 0.655 / 0.759 | 0.765 | 0.043 / 0.075 |
| Interleave | 1.659 | 3 | 0.916 / 0.914 | 0.937 | 0.061 / 0.051 |
| Random | 0.813 | 0.069 / 0.061 |
| Regime | BUC shrink / match | Sens. shrink / match | ActPatch sum |
| Front | 0.906 / 0.974 | 0.920 / 0.960 | 1.865 |
| Back | 0.655 / 0.759 | 0.704 / 0.648 | 1.285 |
| Interleave | 0.916 / 0.914 | 0.934 / 0.831 | 1.695 |
| Random | 0.866 / 0.823 | 0.895 / 0.716 | 1.520 |
| Regime | Spearman | Linear | Slope reduction | Unseen-gap shrink / match |
| Front | 0.986 | 0.948 | 0.880 | 0.832 / 0.874 |
| Back | 0.972 | 0.931 | 0.646 | 0.612 / 0.689 |
| Interleave | 0.979 | 0.944 | 0.896 | 0.839 / 0.855 |
| Random | 0.958 | 0.906 | 0.845 | 0.786 / 0.811 |
| Target pair | Reselected shrink / match | Fixed-set shrink / match | Jaccard |
| yes/no | 0.812 / 0.846 | 0.772 / 0.810 | 0.610 |
| A/B | 0.861 / 0.884 | 0.704 / 0.741 | 0.390 |
| cat/dog | 0.642 / 0.701 | 0.382 / 0.431 | 0.240 |
| Condition | Accuracy | PairAcc | MinPairAcc | Shrink / match | Slope reduction | Acc. drop |
| Base behavior | 0.772 | 0.604 | 0.583 | – | – | – |
| NL set NL | – | – | – | 0.734 / 0.766 | 0.721 | 15.2 |
| CEA set NL | – | – | – | 0.428 / 0.463 | 0.411 | 8.2 |
| Layer-matched random | – | – | – | 0.059 / 0.072 | 0.051 | 0.8 |
| Model | Accuracy | PairAcc | MinPairAcc | CEA NL shrink | CEA NL match | TR | Acc. drop (pp) | ||
| Pythia-410M | 0.752 | 0.566 | 0.541 | 0.401 | 0.442 | 0.520 | 11/12 | 1 | 7.4 |
| Pythia-1B | 0.805 | 0.651 | 0.611 | 0.462 | 0.501 | 0.557 | 12/12 | 0 | 8.6 |
| GPT-2 | 0.681 | 0.458 | 0.414 | 0.306 | 0.348 | 0.438 | 9/12 | 3 | 4.9 |
| Regime | Minimum shrink | Minimum match | Negative marginals (%) | Minimum | Maximum selection regret |
| Front | 0.81 | 0.84 | 31 | 0.021 | |
| Back | 0.52 | 0.57 | 17 | 0.043 | |
| Interleave | 0.80 | 0.81 | 28 | 0.027 | |
| Random | 0.71 | 0.68 | 22 | 0.035 |
Appendix figures & tables44 assets
Supplementary material from the paper’s appendix.
Appendix
| Layers | Heads per layer | Hook tensor | |
| Value | attn.hook_z | ||
| Notes | no fine-tuning | total heads | projected through before logit-direction projection |
| Evaluation dtype | Prefix token length | Symbolic sequence token length | |
| Value | bfloat16 | ||
| Notes | inference only | tokenizer audit | one token per symbol in the tested tokenizer |
| Suffix token length | Seq token slice | Answer candidates |
| Model | Single token | Notes | ||
| EleutherAI/pythia-70m-deduped | yes | various | successful | audited |
| EleutherAI/pythia-160m-deduped | yes | various | successful | audited |
| EleutherAI/pythia-410m-deduped | yes | various | successful | main model |
| EleutherAI/pythia-1b-deduped | yes | various | successful | audited |
| gpt2 | yes | various | successful | out-of-family baseline |
| Qwen/Qwen3-4B-Base | yes | various | successful | modern open-weight baseline |
| Configuration item | Value |
| Evidence setting | MIXED |
| Ordering regimes | Front , Back , Interleave , Random |
| Seeds | |
| Selection prompts per evidence level | |
| Evaluation prompts per evidence level | |
| Audit prompts per evidence level |
| Regime | Notes | |
| Front | fixed deterministic input | |
| Back | large shift | |
| Interleave | large shift | |
| Random | largest and seed-dependent |
| Regime | |||
| Front | |||
| Back | |||
| Interleave | |||
| Random |
| Regime | BUC shrink | BUC match | Random shrink | Random HL match | |
| Front | |||||
| Back | |||||
| Interleave | |||||
| Random |
| Regime | Seed(s) | |
| Front | 0–4 | |
| Back | 0–4 | |
| Interleave | 0–4 | |
| Random | 0 | |
| Random | 1 | |
| Random | 2 |
| Regime | Minimum pairwise Jaccard | Interpretation |
| Front | identical selected set | |
| Back | identical selected set | |
| Interleave | identical selected set | |
| Random | listed seeds 0–2 only |
| Regime | Head(s) | Main routed region | Patch comparison |
| Front | Larger OV patch match | ||
| Back | -side routing shift | Positive QK and OV matches | |
| Interleave | Broad over | Larger OV patch match | |
| Random | Broad over | Larger OV patch match |
| Regime | Last shrink | Seq shrink | Seq match | |
| Front | ||||
| Back | ||||
| Interleave | ||||
| Random |
| Source Target | Front | Back | Interleave | Random |
| Front | – | |||
| Back | – | |||
| Interleave | – | |||
| Random | – |
| Source Target | Front | Back | Interleave | Random |
| Front | – | |||
| Back | – | |||
| Interleave | – | |||
| Random | – |
| Regime | Sets | Pearson | Pearson | Pearson | Spearman | Spearman |
| Front | ||||||
| Back | ||||||
| Interleave | ||||||
| Random |
| Regime | BUC | Sens.-only | ActPatch | Top-norm | Layer-rand (HL) |
| Front | |||||
| Back | |||||
| Interleave | |||||
| Random |
| Selection emphasis | Mean | Mean shrink | Mean match | Mean Jaccard to | |
| recovery only | |||||
| recovery weighted | |||||
| balanced | |||||
| removal weighted | |||||
| removal only |
| Regime | Metric | |||||||
| Front | shrink | |||||||
| Front | match | |||||||
| Back | shrink | |||||||
| Back | match | |||||||
| Interleave | shrink | |||||||
| Interleave | match |
| Regime | Subset family | BB shrink | BB recovery | Random shrink | Random recovery | |
| Front | Greedy Occlusion | |||||
| Back | Greedy Occlusion | |||||
| Interleave | Greedy Occlusion | |||||
| Random | Greedy Occlusion |
| Subset family | Description | Status |
| Contiguous spans | Evaluated | |
| Union of spans | is a union of several disjoint contiguous spans | Evaluated |
| Prefix/suffix evidence spans | Spans anchored at the beginning or end of the evidence region | Low performance |
| White-box-informed positions | Positions scored from internal signals; diagnostic only | Not strict black-box |
| Matched random subsets | Same size or same span length as | Baseline |
| Regime change | ||
| Front Back | ||
| Front Interleave | ||
| Back Interleave | ||
| Interleave Random |
| Setting | Mean | Mean shrink | Mean match | Notes | |
| MIXED | main configuration | ||||
| EXTREME | larger contrast | ||||
| SMALL-GAP | lower signal-to-noise | ||||
| COUNT-SWEEP | multiple | increments of |
| Tail length | Mean | Mean | Mean shrink | Mean match |
| Surface | Example evidence tokens | Model | Mean | Mean shrink | Mean match |
| ABC symbolic | pythia-410m-deduped | ||||
| Word-symbolic | blue , red , gray | pythia-410m-deduped | |||
| Signal-token | signal-x , signal-y , neutral | pythia-410m-deduped | |||
| Sentence-template | short evidence sentences | pythia-410m-deduped |
| Model | Token pair | Mean | BUC shrink | BUC match | Random shrink | Random HL match | LAST effect |
| EleutherAI/pythia-70m-deduped | yes | yes | |||||
| EleutherAI/pythia-160m-deduped | yes | yes | |||||
| EleutherAI/pythia-410m-deduped | yes | yes | |||||
| EleutherAI/pythia-1b-deduped | yes | yes | |||||
| gpt2 | yes | yes | |||||
| Qwen/Qwen3-4B-Base | yes | yes |
| Model | Regime | Token pair | BUC shrink | BUC match | Random shrink | Random HL match | |
| pythia-70m | Front | yes | |||||
| pythia-70m | Back | yes | |||||
| pythia-70m | Interleave | yes | |||||
| pythia-70m | Random | yes | |||||
| pythia-160m | Front | yes | |||||
| pythia-160m | Back | yes |
| Model | Regime | Token pair | BUC shrink | BUC match | Random shrink | Random HL match | |
| gpt2 | Front | yes | |||||
| gpt2 | Back | yes | |||||
| gpt2 | Interleave | yes | |||||
| gpt2 | Random | yes | |||||
| Qwen/Qwen3-4B-Base | Front | yes | |||||
| Qwen/Qwen3-4B-Base | Back | yes |
| Item | Value |
| Hardware | NVIDIA A100 GPU |
| Software environment | Python / PyTorch / Transformers / TransformerLens; the BF16 environment records are separate from the supplied FP32 package (Appendix F.5 ) |
| Primary model | EleutherAI/pythia-410m-deduped |
| Evaluation precision | bfloat16 inference |
| Training or fine-tuning | none |
| Main seeds |
| Target pair | Reselected shrink / match | Fixed-set shrink / match | Mean Jaccard |
| yes/no | 0.812 / 0.846 | 0.772 / 0.810 | 0.610 |
| A/B | 0.861 / 0.884 | 0.704 / 0.741 | 0.390 |
| cat/dog | 0.642 / 0.701 | 0.382 / 0.431 | 0.240 |
| Regime | Spearman | Linear | Slope reduction | Gap shrink / match |
| Front | 0.986 | 0.948 | 0.880 | 0.832 / 0.874 |
| Back | 0.972 | 0.931 | 0.646 | 0.612 / 0.689 |
| Interleave | 0.979 | 0.944 | 0.896 | 0.839 / 0.855 |
| Random | 0.958 | 0.906 | 0.845 | 0.786 / 0.811 |
| Regime | Shrink difference | Mean-match difference | difference |
| Front | |||
| Back | |||
| Interleave | |||
| Random |
| Regime | Accuracy | PairAcc | MinPairAcc | Spearman | Linear | Mean |
| FRONT | ||||||
| BACK | ||||||
| INTERLEAVE | ||||||
| RANDOM | ||||||
| Mean |
| Gap | Semantic gap | Accuracy | PairAcc | Mean |
| Regime | shrink/match | shrink/match | Random shrink/match | CEA-transfer SlopeRed | CEA-transfer AccDrop |
| FRONT | |||||
| BACK | |||||
| INTERLEAVE | |||||
| RANDOM | |||||
| Mean |
| Source set target | Target shrink | Target match | SlopeRed | |
| Layer-matched random | ||||
| Layer-matched random |
| Module | Comparison | Relation to the BF16 study |
| Operators | Fixed selected set under eight ablation/patch combinations | Operator-dependence audit |
| T3 | Exhaustive local subsets, sampled larger subsets, greedy versus exact selection | Tests objective conditions, separately from the many-set T1 correlation |
| Baselines | Five methods and three random-control families at five common budgets | Extends the original budget-matched comparison |
| Generalization | Count, unseen gaps, cue wording, equal-budget regime transfer, order, and seeds | Tests count, order, cue, and seed dependence |
| Readouts | Random token-pair registry, fixed-prompt scan, and two reselection protocols | Extends the seven targeted readout pairs |
| Selection null | Full adaptive search under paired label swaps | Controls for adaptive selection |
| Setting | Value |
| Master seed | 1729 |
| Symbolic evidence and tail lengths | , |
| Primary low/high counts | |
| Selection / evaluation / calibration rows | 48 / 96 / 48 per count and regime |
| Attribution shortlist / single-head pool | 192 / 48 heads |
| Greedy maximum budget / weight | , |
| Ablation | Directional patch | Donor dependence |
| Zero | Donor mean | Marginal means of calibration donors |
| Pooled mean | Donor mean | Pooled calibration ablation mean |
| Zero | Matched example | Corresponding opposite-side evaluation partner |
| Zero | Joint resampling | One donor row for all selected heads |
| Zero | Independent-head resampling | Separate donor row for each head |
| Zero | Empirical joint Gaussian | Joint mean and full empirical covariance |
| Split | Ordered state pairs |
| Selection | local/remote; legal/illegal; stable/unstable; known/unknown |
| Validation | inside/outside; positive/negative; enabled/disabled; above/below |
| Test | valid/invalid; safe/unsafe; alive/dead; connected/disconnected; hot/cold; approved/rejected; ready/unready; secure/insecure |
| Bank | Direct support for | Support for by negating |
| A | Report : the item is . | Report : the item is not . |
| B | Record describes the item as . | Record rules out the item being . |
| C | Witness says that the item remains . | Witness says that the item is not . |
| D | Statement : is the reported condition. | Statement : is not the reported condition. |
| Use | Domains / banks | Rows and seed convention |
| NL selection | 4 / A | 24 per count/regime; causal seed 1729 |
| NL validation | 4 / A | 24 per count/regime; not used to choose heads |
| Behavior, original prompts | 8 / B–D | 9,216 per model/behavioral seed; three seeds |
| Behavior, four shortcut controls | 8 / B–D | 9,216 additional rows per model; main gap, first seed only |
| Causal target | 8 / one of B–D | 96 per count/regime/bank; causal seed 1729 |
| Causal calibration | 8 / matching bank | 48 per count/regime/bank; separate generation key |
| Setting | A100 | L4 | T4 |
| Initial intervention branches per prompt | 64 | 32 | 8 |
| Logits-only NL behavior microbatch | 16 | 8 | 2 |
| Model precision | FP32 | FP32 | FP32 |
| Shared execution and validation settings | |||
| Metric set block | 256 sets | ||
| Prefix CPU cache budget | 768 MiB | ||
| Files in the run’s tables/ directory | Recorded content |
| primary_buc.csv | Current-cohort reference sets and primary scores |
| operator_audit_summary.csv , operator_audit_draws.csv | Operator summaries and Monte Carlo draws |
| t3_local_summary.csv , t3_local_subsets.csv | Local conditions and complete subset values |
| t3_greedy_vs_exact.csv , t3_full_shortlist_sampled.csv | Selection/evaluation comparisons and larger-pool samples |
| fixed_budget_baselines.csv , fixed_budget_random_controls.csv | Five methods and three control families |
| paired_baseline_differences.csv | Matched method differences and uncertainty |
| Work line | Model setting | Behavioral target | Causal criterion |
| Indirect-object identification and factual recall | Frozen pretrained models | Semantic task behavior | Study-specific interventions |
| Synthetic algorithm studies | Often task-trained models | Designed algorithm | Study-specific mechanism tests |
| Patching, ACDC, EAP | Model- and target-dependent | Researcher-supplied target | General localization machinery |
| CEA/BUC | Frozen pretrained models | Controlled count/order readout; controlled NL bridge | Same set tested by ablation and two-way patching |
| Quantity | Point estimate or span | 95% bootstrap CI |
| BUC sensitivity, Front | – | |
| BUC sensitivity, Back | – | |
| BUC sensitivity, Interleave | – | |
| BUC sensitivity, Random | ||
| Off-diagonal match: observed span | to | – |
| Cue-change shrink: observed span | 0.64–0.93 | – |
Transformer Interpretability
Transformer interpretability studies how attention, feed-forward layers, and hidden representations support model predictions and behavior.
See all 339 papers