Manuscript Offprint
arXiv:2610.27393Correcting Attribution Patching with a Few Exact Measurements
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Mechanistic interpretability asks which language model components matter for a behavior, and activation patching answers by changing one component's activation and measuring its effect, at a cost growing with components and prompts. Attribution patching estimates these effects from one gradient pass, but its estimates can be far off, and verifying each one restores the cost. Can the structure of these errors reduce this cost? We propose GUIDED-AP, which uses a few exact measurements to reveal attribution patching's errors and correct unmeasured estimates. On a single prompt, many components' errors share one sign, so a small exact sample yields one correction for the rest. Over many prompts of one task, components are misestimated similarly, so a few measured prompts show what to verify and how to correct each component's average effect. Our analysis shows that choosing what to verify needs error size, while correction also needs sign. On a single prompt, the correction lowers error by up to 26% across three behaviors at the compute of verifying the largest estimates and also on larger models. Over many prompts, learned corrections cut the error of average effects on factual completion by 75% to 79%, repaying their cost in long analyses.
1 Introduction
Mechanistic interpretability seeks to explain how a language model's internal computations produce its behavior. To study behaviors such as resolving a reference or recalling a fact, researchers measure how internal components, such as attention heads or MLP neurons, influence the model's prediction. One widely used approach for measuring this influence is activation patching (AP) (Wang et al., 2023; Zhang and Nanda, 2024). It replaces a component's activation with one from a contrasting input and measures the resulting change in a prediction score, such as the logit difference between two answers.
However, AP is expensive across many components and prompts, because each measurement is a separate intervention. To reduce this cost, attribution patching (AtP) approximates the same effects using gradients from a single backward pass (Nanda, 2023; Syed et al., 2024). This efficiency comes at the cost of accuracy, because its estimates can be far from the measured effects (Zhang and Wang, 2026). Verifying every estimate with AP would remove the error but restore the original cost, so the challenge is to improve the estimates without exhaustive measurement. Under a limited budget, verifying the components with the largest estimated effects is a strong baseline, but a large effect does not mean a large error. Errors can concentrate in a few components and recur across prompts, as illustrated in Figure 2. Errors can also persist when estimates are averaged across prompts. The central question of this paper is whether knowing the structure of these errors makes attribution analysis more effective and more efficient.
Our answer builds on the fact that an exact measurement reveals both a component's true effect and the error of its cheap estimate. When such errors are similar across estimates, a few measurements can repair estimates that were never measured. Each measurement therefore improves more than one estimate. It replaces its own estimate with the true effect, and the error it reveals improves the estimates left unmeasured. Each error belongs to one component on one prompt, so we can look at the errors from two perspectives (Figure 1). Our method, GUIDED-AP, applies the same estimator in both settings. On a single prompt, the errors of many components share one sign, so one shift improves many estimates at once. We measure a small, representative sample and shift every unmeasured estimate by the median of the sampled errors, the shift with the lowest mean absolute error.
Equal contribution.

Figure 1: GUIDED-AP learns shared attribution errors. Within a prompt, a small exact sample corrects unmeasured estimates; across prompts, learned error profiles choose what to verify and correct remaining estimates and average effects. Final estimates are exact where verified and corrected elsewhere.
ror on the sample. The rest of the budget verifies the largest estimated effects. Over many prompts, each component’s error tends to recur. A few measured prompts give each component an error profile. Later prompts reuse it to choose verifications and correct each component’s average effect. GUIDED-AP learns from exact AP measurements.
On a single prompt, the correction needs summary statistics of the error distribution (e.g., its median), and a small exact sample on that prompt estimates them. Centering estimates without measuring their errors does not reproduce this gain. With the exact sample, the correction lowers error by up to 26% at the same compute. Over many prompts, the errors left after averaging mostly share one sign, so a few calibration prompts can estimate each component's average error. A correction learned from exact measurements cuts the error of these averages on factual completion by 75% to 79% relative to uncorrected averages, with no measurement on the analyzed prompts. Using the same measurements directly as average effects is 6 to 15 times worse, so the gain comes from modeling the errors. Choosing what to verify needs only the size of each error. In our cost projections, the correction pays for itself within a few thousand prompts, and learned selection needs longer analyses, up to tens of thousands of prompts. The single-prompt gains carry to larger models and finer components, up to a 32B model with tens of thousands of components per layer, and on some tasks the correction reaches a fixed accuracy target several times faster than verification alone.
We make three contributions.
• A framework of budgeted attribution analysis. We study attribution analysis under a fixed budget of exact measurements that must serve both verification and correction, and we compare methods by the error left at equal compute.
• Analysis of error structures. We show that attribution errors are shared within a single prompt and recur over many prompts, and which error statistic selection and correction each need.
• Scalability to finer components and larger models. We show that a fixed budget of exact measurements remains useful as models grow larger and their components finer, where each measurement must go further.
Correcting attribution estimates. Attribution patching linearizes the intervention (Nanda, 2023).
Existing methods correct estimates within a prompt. AtP* targets specific failure modes (Kramár et al., 2024), relevance patching replaces gradients with propagation coefficients (Jafari et al., 2025), interaction-aware backpropagation fixes gradient flow through softmax and normalization (Edin et al., 2025), path-based attribution integrates along the intervention (Sundararajan et al., 2017; Janizek et al., 2021), and second-order patching correction expands effects at the endpoint (Zhang and Wang, 2026). We learn error structure from exact measurements and reuse it across components within a prompt or across prompts for a component. Our base estimate is AtP.
Efficient error estimation. Randomized diagonal estimators approximate the diagonal of a matrix from matrix-vector products (Hutchinson, 1989; Bekas et al., 2007; Baston and Nakatsukasa, 2022; Epperly et al., 2024), and Hessian-vector products make this cheap for neural networks (Pearlmutter, 1994; Yao et al., 2021); we use such sketches only as a comparison label source. Allocating exact measurements to unreliable estimates follows active learning (Cohn et al., 1994; Lewis and Gale, 1994) and selective prediction (Geifman and El-Yaniv, 2017); influence estimation at scale similarly uses cheap curvature approximations (Koh and Liang, 2017; Grosse et al., 2023). We test whether reusing attribution errors within or across prompts improves accuracy after charging acquisition, fitting, and verification costs.
3 Proposed Method
3.1 Preliminaries
Consider a language model with candidate components, a clean prompt , and a contrasting prompt . Write and for component 's activations on the two prompts and for its patch direction. These activations may be scalars or vectors. Let , for , be the prediction metric on when each component receives the additive shift and later layers are recomputed; is the clean run.
To isolate the effect of each component, let denote the coordinate unit vector with ith entry 1 and 0 elsewhere, and define the isolated AP effect of component , denoted , and its AtP approximation as

Figure 2: AtP errors on GPT-2. (a) The top four components (▼) carry 80% of the test error. (b) Calibration versus test error for each component, with the top four highlighted. The two errors are strongly correlated and consistently biased away from zero.
We call the AtP residual, and evaluate an estimate of by its mean absolute error, .
Though accurate, exact AP requires N separate interventions per prompt, with a cost linear in both the number of components and the number of prompts. In comparison, AtP estimates all N effects from one backward pass, but its linear approximation misses the curvature of a finite patch, so its residuals can be large (Zhang and Wang, 2026).
3.2 Learning Shared Attribution Errors
Given these two limitations, we seek a framework that balances estimation accuracy and computation. Our key observation is that AtP residuals follow structured patterns. First, a few components carry most of the error. Second, on a single prompt, the residuals are biased away from zero. Third, each component's residual is consistent across prompts of the same task. Figure 2 demonstrates these patterns with a toy example on GPT-2.
Motivated by these patterns, we propose to measure only a few well-chosen components exactly, which removes most of the AtP error, and to use their residuals to correct the remaining unmeasured components. Specifically, given a budget of B exact AP measurements per prompt, we aim to find a subset S of the N components with and construct the estimator
where is learned from exact measurements. Since measured components are exact, choosing S and c to minimize the MAE of gives
(2)
Equation 2 requires the unknown residuals for . The patterns above, however, can make these residuals predictable from measured ones. Within a prompt, measured components reveal the shared offset of the rest; across prompts, a component's residual on earlier prompts predicts its residual on new ones. We therefore learn the corrections and the measured set from calibration data , the exact AP measurements and AtP estimates of component on prompt available for fitting, from earlier prompts or from the test prompt itself, with residuals . We fit the residual, and then the size of what the fitted correction leaves, by absolute loss over ,
where f and h are evaluated at and may belong to any model class, such as a constant, a linear regression, or a neural network; in this paper f is a constant and h a log-linear model (Appendix A). At test time, for a test prompt , each component i receives a correction and a selection score,
The budget goes to the components with the highest scores, and the rest receive corrections . We call this procedure GUIDED-AP.
The performance of GUIDED-AP depends on what can be learned from measured residuals, since a measured residual helps unmeasured components only insofar as it reveals an error pattern they share. The patterns in Figure 2 suggest two axes of sharing: across components within one prompt, and across prompts of the same task for a given component. These lead to two learning settings, which we call within-prompt learning and across-prompt learning, respectively. The former learns a prompt-specific offset from other components measured on that prompt; the latter learns component-specific error patterns from earlier prompts, informing both correction and verification on later prompts. Within-prompt learning needs no prior
Algorithm 1 GUIDED-AP
Require: test prompt , budget B, calibration data (possibly empty)
1: for all i
2: if then within-prompt learning
3: stratified sample by Eq. 5
4:
5: pilot median, Eq. 6
6: else across-prompt learning
7:
8: fit on Eq. 3
9: , for all i Eq. 4
10: top of outside
11:
12: return with estimated Eq. 1
labels, whereas across-prompt learning requires measurements from earlier prompts. We describe each setting’s labels, correction , and selection score s below; Algorithm 1 summarizes both.
Within-prompt learning. This setting learns a prompt-specific offset from a few components measured on the same prompt, so it needs no prior labels but pays for its own. The budget is split into a pilot set that supplies the labels and a verification set , with . The pilot should represent the typical component, since the offset it estimates will be applied to all unmeasured ones. Because residual size varies with attribution, we stratify by , dividing the components into equal groups by attribution rank and drawing the pilot equally from each,
giving labels . The correction is this offset, estimated by the pilot median, which minimizes the absolute error (Koenker and Bassett, 1978) and is insensitive to its few large residuals,
With at most one label per component, no component-specific size model can be fit, so the selection score is , the only available proxy for residual size, and the remaining budget verifies the highest scores outside . The pilot corrects the bulk; verification handles the tail.
Across-prompt learning. This setting learns from earlier prompts of the same task, so it needs labels but spends the whole test-time budget on verification. When a component’s residual recurs across prompts, as in Figure 2, its residual on a new prompt can be predicted from earlier ones. From these labels, in Equation 3 learns a per-component correction, and learns, from the component's attribution and identity, the size of the residual that correction leaves. Every component receives its correction and selection score , and the B components with the highest scores are measured exactly. The correction helps only when its labels are representative, meaning that each corrected component has enough labels measured uniformly across prompts. Otherwise the correction can mislead and raise the error, and we set in this case. For a component's average effect over many test prompts, we can correct the averaged AtP estimate by adding the component's mean labeled residual, with no exact measurement on these prompts. Further details are in Appendix A.
3.3 Theoretical Analysis
We ask when each setting beats verification alone and why selection needs its own model. All results assume exact AP measurements; proofs are in Appendix C. Within a prompt, the pilot buys a shared correction at the price of displaced verification. Let be the unmeasured components, their error after a shift , and their median, the best shift; let be the gain of that shift, the estimation cost of the pilot median , and the error removed by displaced verification.
Theorem 1 (Within-prompt gain). Let be the within-prompt estimate with a stratified pilot of n labels, n/K from each of K equal-size strata, and the estimate that spends the same budget verifying the largest with no correction (verify-more, Section 4.1). Then
and, over the pilot draw, for all , with probability at least , , where is the quantile function of all residuals.
The pilot pays when the unmeasured residuals share a sign, so is large, and cluster near their median, so is small, by more than C. We first analyze a component-specific median correction learned from representative calibration labels. This result concerns absolute error on individual prompts. Correcting dataset averages instead requires estimating the mean residual. For independent prompt residuals with quantile function q and median m, let and be the best shift's gain.
Theorem 2 (Median correction from representative labels). Let be the median of labels drawn independently from the component’s residual law, and assume . For any , with probability at least ,
where .
The bound explains when recurring residual bias makes a median correction useful. Magnitude-guided acquisition need not satisfy its sampling assumption. For dataset-average correction, an offset improves a component's estimate when it has the same sign as the average residual and less than twice its magnitude (Appendix C.4). Selection asks a different question. Equation 2 verifies the components whose error after correction is largest, so a score must predict that error's size. Fix the corrections and let be component i's expected remaining error given what is known before measurement.
Proposition 1 (Selection needs size). If , selecting the highest scores costs at most extra expected error over the highest .
Scores must track the expected size of the remaining error, not the size of the expected error. A component whose residual is large but changes sign has near zero and large . This is why is fit separately from in Equation 3, and why a single prompt, which cannot fit , falls back to .
4 Experiments
4.1 Experimental Setup
Models, tasks, and prompts. For within-prompt GUIDED-AP (Section 4.2), we study MLP neurons of Gemma-2-9B (Gemma Team, 2024), Qwen3-14B, and Qwen3-32B (Yang et al., 2025). For across-prompt GUIDED-AP (Section 4.3), we study attention heads of Qwen3-8B and Qwen2.5-7B-Instruct (Qwen et al., 2025). Tasks: indirect-object identification (IOI), factual completion, and subject-verb agreement (SVA). Score: logit difference between correct and counterfactual tokens. Evaluation prompts are held out; across-prompt calibration uses separate prompts in one prespecified evaluation. Figure 2 uses separate exact effects from GPT-2.
-
Guided-AP
-
AtP* + AP
-
Selective HVP
-
IG (4/8 points)
★ Exact AP
- Verify-more
.... No-pilot centering
- MS-HVP (4/5 steps)
AtP
(a) Gemma IOI

(b) Gemma factual
(c) Gemma SVA
(d) 32B SVA
Warm runtime (s / layer)
Figure 3: Warm runtime and relative AP error for within-prompt GUIDED-AP and the baselines. Square size denotes the measurement budget ; hollow derivative markers denote larger MS-HVP and IG settings. Appendix D.3 gives the timing details.
Methods and baselines. Within-prompt GUIDED-AP uses 256 exact measurements per layer. Across-prompt GUIDED-AP verifies heads per prompt and separately corrects dataset averages without measuring the evaluation prompts. Our main baseline, verify-more, spends the same cost on exact measurements of the components with the largest AtP magnitudes and leaves the rest uncorrected. Across-prompt labels are acquired on large attributions, so verification sets (Section 3.2) and its comparison with verify-more isolates selection. An alternative calibration signal, PROBECAL, replaces the exact calibration labels with curvature-probe sketches, randomized estimates of the Hessian diagonal (Bekas et al., 2007), and fits the size model and average correction from them (Appendix B). On Gemma-2-9B, we also compare with verify-more on AtP* estimates, selective HVP, MS-HVP, singleton IG, and exhaustive AP (Appendices D.3 and F). All costs include pilot, calibration, and fitting. We report measured warm runtime per layer within prompts, and calibration plus projected deployment cost across prompts.
Metrics and uncertainty. Primary: per-prompt effect-vector MAE against exact FP32 AP (Section 3.1). Additional metrics: relative AP error (summed absolute error over summed absolute effects), dataset-average error, and recall of the ten largest effects. Error reduction: one minus the ratio of mean errors. Intervals: paired group bootstraps, adjusted over the prespecified across-prompt comparison family and descriptive within prompts (Appendices D, F, and I).
4.2 Within-Prompt Learning
Within-prompt GUIDED-AP lowers Gemma-2-9B MAE by 17% to 26% across all three tasks at the same measured runtime as verify-more, without earlier calibration prompts (Table 1). Top-ten recall remains nearly perfect for both methods.
| Task | Groups | Lower MAE | Relative AP error | Warm time (s/layer) |
|---|---|---|---|---|
| Gemma-2-9B | ||||
| IOI | 100 | 17.4% | 0.94% | 2.08 |
| Factual | 100 | 26.2% | 1.20% | 1.30 |
| SVA | 100 | 19.9% | 0.71% | 1.25 |
| Qwen3-14B | ||||
| IOI | 52 | 24.0% | 1.34% | 2.95 |
| Factual | 56 | 12.3% | 0.57% | 1.67 |
| SVA | 53 | 10.9% | 0.58% | 1.64 |
| Qwen3-32B | ||||
| IOI | 10 | 17.3% | 1.09% | 6.52 |
| Factual | 31 | 17.5% | 1.09% | 3.54 |
| SVA | 40 | 13.7% | 0.66% | 3.55 |
Table 1: Within-prompt GUIDED-AP accuracy and warm runtime. MAE reductions compare with runtime-matched verify-more. Groups is the number of evaluation prompts scored on all three tested MLP layers (Appendix D).
Correction mechanism. Correcting unmeasured estimates drives the gain. The fitted shift captures 96% to 97% of the best common shift's benefit, outweighing displaced verification (Theorem 1;

Figure 4: Within-prompt GUIDED-AP ablations on Gemma-2-9B at 256 measurements: pilot size (left) and mean versus median (right). Values show MAE reductions versus verification alone. Cohorts: Appendix D.4.
Appendix D.5). Gains persist at equal measurement counts (Appendix D). FP64 readout rescoring of the same estimates retains 10% to 23% lower Gemma MAE and positive intervals on every larger-model task (Appendix D.5).
Controls and ablations. Measurements chosen for verification need not represent unmeasured errors. Shifting the remaining estimates by the median residual of those measurements raises MAE in eight of nine settings. The pilot lowers Gemma MAE by 17% to 24% relative to the better of this control and verification alone (Table 2).
| Task | Verify only | Verify + shift | GUIDED-AP |
|---|---|---|---|
| IOI | 1.00 | 1.93 | 0.83 |
| Factual | 1.00 | 0.97 | 0.74 |
| SVA | 1.00 | 1.80 | 0.81 |
Table 2: Within-prompt GUIDED-AP controls on Gemma-2-9B at the same 256-measurement budget. MAE is relative to verification alone; lower is better.
On Gemma, GUIDED-AP lowers group-averaged MAE against runtime-matched verify-more in 96 of 100 IOI groups, 97 of 100 factual groups, and 98 of 100 SVA groups (Appendix D.5).
A modest pilot captures most gains. Pilots of 32 or 64 improve on 16, and 128 adds no consistent gain (Figure 4a; Appendix Table 10). Every tested pilot size lowers MAE on all three Gemma tasks, leaving flexibility in how the budget is divided between pilot measurements and exact verification. The median beats the mean on identical labels in all nine settings; uniform and magnitude-stratified samples are similar on Gemma (Figure 4b; Appendix D.4).
4.3 Across-Prompt Learning
We compare across-prompt GUIDED-AP with PROBECAL (Section 4.1). We assess verification against verify-more at matched total cost, and dataset-average correction against uncorrected AtP, without evaluation measurements for the latter.
Verification allocation. Allocation needs transfer and reuse. On Qwen3 IOI, GUIDED-AP lowers MAE by 12% against verify-more at matched projected total cost, calibration included (Table 3).
| Task | Method | Qwen3-8B | Qwen2.5-7B | ||
|---|---|---|---|---|---|
| B = 16 | B = 128 | B = 16 | B = 128 | ||
| IOI | GUIDED-AP | 12% | 7% | -29% | 12% |
| PROBECAL | 17% | 19% | -39% | 15% | |
| Factual | GUIDED-AP | -20% | 2% | -18% | -2% |
| PROBECAL | -17% | 31% | -5% | 35% | |
| SVA | GUIDED-AP | 3% | 4% | 2% | 3% |
| PROBECAL | 2% | 12% | 1% | 19% | |
Table 3: Across-prompt MAE reductions relative to verify-more at matched projected total cost, calibration included, for 10,000 prompts. Bold and italic mark adjusted significant improvements and harms.
Where learning pays, projected break-even at the smallest budget ranges from 1,900 to 24,000 prompts across the two calibration signals. Shorter analyses favor additional verification; verify-more also remains strong on factual completion at small budgets and on Qwen2.5 IOI (Appendices G and I).
Dataset-average correction. Persistent average errors can be corrected without measuring each new prompt. On factual completion, GUIDED-AP lowers dataset-average MAE by 75% to 79% on both models relative to uncorrected AtP (Figure 5; Appendix Table 15). Post hoc cost comparisons give projected payback of 500 to 2,700 prompts where correction helps; shorter analyses favor verify-more (Appendix H).
Learning residuals makes better use of calibration measurements. Directly averaging the same AP effects produces 5.8 to 14.9 times more error than residual correction in every setting (Appendix H). On factual completion, GUIDED-AP labels cover 13% to 18% of heads; the rest retain their AtP averages.
Signed error transfer can fail. GUIDED-AP raises Qwen2.5 IOI dataset-average MAE by 52%, consistent with selection bias (Appendix C.4). SVA has no established correction gain, and neither correction establishes a dataset-average recall gain.
Guided-AP
ProbeCal
(a) Qwen3-8B
(b) Qwen2.5-7B

Figure 5: Dataset-average correction on the two models. Ratios are uncorrected over corrected MAE, with adjusted intervals; the dotted line denotes equality.
Calibration signals. PROBECAL helps allocation where exact-label learning is less effective, lowering factual MAE by 31% to 35% against verify-more at matched projected total cost (Table 3). Its factual average correction reduces MAE by 46% against uncorrected AtP, less than GUIDED-AP (Figure 5); it helps Qwen2.5 IOI averages where GUIDED-AP harms them (Appendix Table 15).
Error structure and recall. Verification and average correction require different error information. Factual errors recur (Appendix E), yet learned selection can lose at small budgets because magnitude ranking already captures the largest residuals. SVA improves verification without an established mean-correction gain. Lower MAE also need not improve top-ten recall (Appendix G).
4.4 Scalability and Efficiency
We separate accuracy gains at a fixed measurement budget from runtime savings at an error target.
Component count and accuracy. With the measurement budget fixed, the benefit persists at every tested component count across all three Gemma tasks, up to 14,336 neurons (Appendix D.6).
Runtime savings depend on the required accuracy. At a 1% mean relative AP error target, GUIDED-AP is 7.9 times faster than verify-more on Gemma IOI in measured warm runtime. This runtime includes attribution, pilot measurements, and fitting on the same prompt; the gain requires no reuse across prompts. Verification is cheaper on SVA, and GUIDED-AP misses the factual target (Table 4; Appendix D.2).
(a) Scaling

(b) 32B frontier

— Factual — SVA
Figure 6: Scaling of the fixed budget. Left, SVA MAE reductions at matched cost with descriptive intervals. Right, measured 32B verification curves for factual completion and SVA (lines), within-prompt GUIDED-AP (stars), and verification at the same error (open circles), on the same complete groups; IOI: Appendix Table 6.
| Task | GUIDED-AP | Verification to 1% | ||
|---|---|---|---|---|
| Error | s/layer | Checks | s/layer | |
| IOI | 0.94% | 2.08 | 2,416 | 16.37 |
| Factual | 1.20% | 1.30 | 5,664 | 21.84 |
| SVA | 0.71% | 1.25 | 32 | 0.43 |
Table 4: Warm cost at a 1% mean relative AP error target on Gemma-2-9B. Italic errors exceed the target; checks count magnitude-ranked AP measurements.
Model size. The same budget yields 11% to 24% lower MAE on Qwen3-14B and 14% to 18% on Qwen3-32B at matched runtime, measuring only 1% of the latter's neurons (Table 1; Figure 6a). At GUIDED-AP's achieved error, a post hoc comparison finds verify-more takes 5.9 to 14.7 times longer in warm runtime across the three 32B tasks (Figure 6b; Appendix Table 6). This frontier comparison uses the same prompts and matches the correction's observed error, separately from the prespecified targets.
Comparison with derivative corrections. On the 30-group Gemma comparison set, GUIDED-AP has lower MAE than selective HVP, MS-HVP, and singleton IG at their tested settings, taking about one to three warm seconds per layer (Figure 3; Appendix D.3). AtP remains fastest; exhaustive AP removes approximation error at greater cost.
5 Conclusion and Limitations
Attribution patching trades the accuracy of activation patching for speed. GUIDED-AP uses a few exact measurements to improve estimates beyond the ones it verifies. On a single prompt, the median error of a small exact sample corrects the unmeasured estimates, as long as enough budget remains to verify the largest ones. Over many prompts of one task, a few measured prompts reveal each component's recurring error. Its size guides verification on later prompts, and its direction corrects average effects, which repays the cost of learning in long analyses. Future work could combine the two settings and test them on sparse features, where activation patching is most costly.
Our evaluation focuses on transformer language models and controlled language tasks. Further evaluation on other architectures, component representations, and open-ended language behaviors would clarify its broader applicability. Accuracy and computational costs depend on the task, measurement budget, hardware, and implementation. Activation patching measures effects relative to a chosen intervention and output metric. These estimates describe individual components and can inform mechanistic explanations alongside tests of how components work together.
References
Dana Arad, Yonatan Belinkov, Hanjie Chen, Najoung Kim, Hosein Mohebbi, Aaron Mueller, Gabriele Sarti, and Martin Tutek. 2025. Findings of the Black-boxNLP 2025 shared task: Localizing circuits and causal variables in language models. In Proceedings of the 8th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pages 543–552, Suzhou, China. Association for Computational Linguistics.
Robert A. Baston and Yuji Nakatsukasa. 2022. Stochastic diagonal estimation: probabilistic bounds and an improved algorithm. Preprint, arXiv:2201.10684.
C. Bekas, E. Kokiopoulou, and Y. Saad. 2007. An estimator for the diagonal of a matrix. Applied Numerical Mathematics, 57(11-12):1214–1229.
David Cohn, Les Atlas, and Richard Ladner. 1994. Improving generalization with active learning. Machine Learning, 15(2):201–221.
Arthur Conmy, Augustine Mavor-Parker, Aengus Lynch, Stefan Heimersheim, and Adrià Garriga-Alonso. 2023. Towards automated circuit discovery for mechanistic interpretability. In Advances in Neural Information Processing Systems, volume 36, pages 16318–16352. Curran Associates, Inc.
Joakim Edin, Casper L. Christensen, Róbert Csordás, Tuukka Ruotsalo, Zhengxuan Wu, Maria Maistro, Jing Huang, and Lars Maaløe. 2025. Correcting
gradient-based circuit localization via interaction-aware backpropagation. Preprint, arXiv:2505.17630.
Ethan N. Epperly, Joel A. Tropp, and Robert J. Webber. 2024. XTrace: Making the most of every sample in stochastic trace estimation. SIAM Journal on Matrix Analysis and Applications, 45(1):1–23.
Yonatan Geifman and Ran El-Yaniv. 2017. Selective classification for deep neural networks. In Advances in Neural Information Processing Systems, volume 30, pages 4878–4887. Curran Associates, Inc.
Gemma Team. 2024. Gemma 2: Improving open language models at a practical size. Preprint, arXiv:2408.00118.
Roger Grosse, Juhan Bae, Cem Anil, Nelson Elhage, Alex Tamkin, Amirhossein Tajdini, Benoit Steiner, Dustin Li, Esin Durmus, Ethan Perez, Evan Hubinger, Kamilè Lukošičtė, Karina Nguyen, Nicholas Joseph, Sam McCandlish, Jared Kaplan, and Samuel R. Bowman. 2023. Studying large language model generalization with influence functions. Preprint, arXiv:2308.03296.
Michael Hanna, Sandro Pezzelle, and Yonatan Belinkov. 2024. Have faith in faithfulness: Going beyond circuit overlap when finding model mechanisms. In First Conference on Language Modeling.
Wassily Hoeffding. 1963. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30.
M.F. Hutchinson. 1989. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communications in Statistics - Simulation and Computation, 18(3):1059–1076.
Farnoush Rezaei Jafari, Oliver Eberle, Ashkan Khakzar, and Neel Nanda. 2025. RelP: Faithful and efficient circuit discovery in language models via relevance patching. Preprint, arXiv:2508.21258. NeurIPS 2025 Mechanistic Interpretability Workshop.
Joseph D. Janizek, Pascal Sturmfels, and Su-In Lee. 2021. Explaining explanations: Axiomatic feature interactions for deep networks. Journal of Machine Learning Research, 22(104):1–54.
Roger Koenker and Gilbert Bassett, Jr. 1978. Regression quantiles. Econometrica, 46(1):33–50.
Pang Wei Koh and Percy Liang. 2017. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1885–1894. PMLR.
János Kramár, Tom Lieberum, Rohin Shah, and Neel Nanda. 2024. AtP*: An efficient and scalable method for localizing LLM behaviour to components. Preprint, arXiv:2403.00745.
David D. Lewis and William A. Gale. 1994. A sequential algorithm for training text classifiers. In SIGIR '94: Proceedings of the Seventeenth Annual International ACM-SIGIR Conference on Research and Development in Information Retrieval, pages 3–12. Springer London.
Samuel Marks, Can Rager, Eric J Michaud, Yonatan Belinkov, David Bau, and Aaron Mueller. 2025. Sparse feature circuits: Discovering and editing interpretable causal graphs in language models. In The Thirteenth International Conference on Learning Representations, pages 23888–23923.
Aaron Mueller, Atticus Geiger, Sarah Wiegreffe, Dana Arad, Iván Arcuschin, Adam Belfki, Yik Siu Chan, Jaden Fried Fiotto-Kaufman, Tal Haklay, Michael Hanna, Jing Huang, Rohan Gupta, Yaniv Nikankin, Hadas Orgad, Nikhil Prakash, Anja Reusch, Aruna Sankaranarayanan, Shun Shao, Alessandro Stolfo, and 4 others. 2025. MIB: A mechanistic interpretability benchmark. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 45069–45108. PMLR.
Neel Nanda. 2023. Attribution patching: Activation patching at industrial scale. https://www.neelnanda.io/mechanistic-interpretability/attribution-patching.
Barak A. Pearlmutter. 1994. Fast exact multiplication by the Hessian. Neural Computation, 6(1):147–160.
Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, and 24 others. 2025. Qwen2.5 technical report. Preprint, arXiv:2412.15115.
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. 2017. Axiomatic attribution for deep networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3319–3328. PMLR.
Aaquib Syed, Can Rager, and Arthur Conmy. 2024. Attribution patching outperforms automated circuit discovery. In Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pages 407–416, Miami, Florida, US. Association for Computational Linguistics.
Kevin Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. 2023. Interpretability in the wild: a circuit for indirect object identification in GPT-2 small. In The Eleventh International Conference on Learning Representations.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao
Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
Zhewei Yao, Amir Gholami, Sheng Shen, Mustafa Mustafa, Kurt Keutzer, and Michael Mahoney. 2021. ADAHESSIAN: An adaptive second order optimizer for machine learning. Proceedings of the AAAI Conference on Artificial Intelligence, 35(12):10665–10673.
Fred Zhang and Neel Nanda. 2024. Towards best practices of activation patching in language models: Metrics and methods. In The Twelfth International Conference on Learning Representations.
Luyang Zhang and Jialu Wang. 2026. When attribution patching lies: Diagnosis and a second-order correction. In Advances in Neural Information Processing Systems.
A Label Acquisition and Fits
This appendix specifies label acquisition and the fitted correction and size model . Acquired AP values and residuals are written and . They equal the scoring reference and residual in the primary analysis; Appendix D.5 distinguishes them for FP64 rescoring.
A.1 Within-Prompt Learning
Pilot. Sort components by increasing , breaking ties by component order, and partition them into equal-sized rank strata. Independently permute each stratum and take one component per stratum in round-robin order until the pilot is full (Equation 5). All evaluated populations are divisible by eight.
Correction and selection. Fit one offset, the median acquired pilot residual (Equation 6). Set and use the remaining measurements on the largest magnitudes outside the pilot. Runtime includes both measurement sets, selection, fitting, and estimate assembly.
A.2 Across-Prompt Learning
Label acquisition. On each calibration prompt, sort components by decreasing . Visit prompts in fixed round-robin order, taking the next unacquired component until the label budget is exhausted.
Size model . Each acquired label supplies and with , where is the correction fit below; with , as in our experiments, . A pooled least-squares fit gives slope and intercept ; component then receives its own intercept with , where is its number of labels, and the pooled intercept when it has none. The score is
a log-linear model fit by least squares in log space as a surrogate for the absolute-loss objective of Equation 3. The score approximates expected remaining error , the target of Proposition 1.
Correction . Equation 3 restricted to one constant per component is minimized by the median of each component's acquired residuals. Our verification experiments set (Section 4.1).
Dataset averages. Let be the calibration prompts on which component was measured. Its average correction is the mean acquired residual,
with no shrinkage, and the corrected average is . The target is the average residual over prompts, so it is estimated by an average; Lemma 2 states when such a correction helps. For probes, Equation 10 plays the same role.
B Curvature-Probe Calibration
PROBECAL supplies an alternative learning signal through shared curvature probes. When is twice differentiable at the baseline, let be its Hessian in intervention coordinates for calibration prompt . With independent random sign vectors , its sketch is
The randomized diagonal estimator of Bekas et al. (2007) is computed with Hessian-vector products (Pearlmutter, 1994). Its expectation is baseline curvature; Equation 11 gives its interaction-dependent noise, and Equation 12 distinguishes curvature from the finite AP residual. For J calibration prompts with R probes each, the signed average correction is
and the corrected average is . Averaging retains the signs; a sketch estimates baseline curvature, not the complete finite-AP residual. PROBECAL uses the sketches as labels for the size model. Every component-prompt pair supplies and , where averages the signed probes before the magnitude is taken. A pooled least-squares fit gives ; a component with varying log attribution across prompts also receives its own pair , shrunk toward the pooled values, and its score is . A capacity-matched AP-only control, fit the same way on exact labels, separates the label source from the model class. Probes are computed only on calibration prompts; no probe is run on evaluation prompts.
Probe noise and the finite-intervention remainder. For a fixed Hessian G and independent sign vectors, , so conditional on G (Bekas et al., 2007)
and for . Interactions between components set the noise of each sketch and correlate sketches across components, so they are not independent samples. The sketch also targets only the curvature term of the residual. For a twice differentiable path , Taylor's theorem gives
(12)
Thus the sketches supply a curvature-based learning signal rather than exact finite-intervention residual labels.
C Mathematical Details
C.1 Proof of Theorem 1
We extend the identity to the runtime-matched baseline of the experiments, which may measure components, and acquired AP values that may differ from the reference . Fix and and let . The method measures with and shifts the unmeasured set by ; the baseline measures , the largest , and leaves the rest at . Let be the difference in acquisition error, and the verification opportunity cost. For the decomposition reported in Appendix D, splits into an allocation term and a count term,
which isolate the change in which B components are measured and the extra or fewer measurements affordable at matched runtime.
The identity. The summed errors of the two estimates are
Subtracting, , and adding and subtracting gives
Since is convex with a minimum at any median, . When acquired values equal the reference, and Equation 7 follows.
The estimation cost. The bound on uses one fact about convex functions.
Lemma 1. If , then .
Proof. is convex, and every point of is a convex combination of its endpoints.
Let be the quantile function of the residuals and the pilot size. The pilot is drawn without replacement, equally from equal-sized strata (Equation 5), with independent draws across strata, so the number of pilot residuals below is a sum over strata of independent without-replacement counts with mean at most . Hoeffding's inequality holds for sampling without replacement and for independent sums of such counts (Hoeffding, 1963), so the pilot median falls below with probability at most , and symmetrically above . On the complementary event, Lemma 1 with gives
the excess error of the worst shift in the band. The probability statement concerns only the pilot median against the quantiles of all N residuals; Lemma 1 then applies to whichever unmeasured set U the pilot and verification leave. □
C.2 Proof of Theorem 2
The theorem assumes independent labels from the component's residual law and . Labels acquired by attribution magnitude need not satisfy this, and the band is undefined for . Let be the labels and their median.
Step 1: sample median in the central band. If , at least labels fall below . Their number is binomial with success probability at most , so Hoeffding's inequality bounds this event by ; similarly for .
Step 2: excess error inside the band. is convex with derivative almost everywhere, where is the distribution function of , so for ,
since on the band. The case is symmetric.
Step 3. Since , the two steps give Equation 8. A union bound extends the event to all N components with probability at least .
C.3 Proof of Proposition 1
Let be the components with the largest and the with the largest scores . The expected error left by exceeds that left by by . Since on and on ,
because maximizes the score sum over sets of size .
The oracle knows expected remaining errors before measurement. A residual that changes sign can have a small fitted correction but large expected absolute error, so a correction alone need not provide a useful selection score.
C.4 Dataset Averages: Sign Condition and Selected Labels
Lemma 2 (Sign condition). For an averaged residual and correction , if and only if and .
Proof. Squaring, the inequality is equivalent to , which requires and then reduces to .
Dataset averages require the mean residual, whereas per-prompt absolute loss is minimized by a median. Acquisition can bias the mean. If indicates measurement of component , the acquired-label mean targets rather than . Section 4.3 evaluates whether the acquired residuals transfer to dataset averages.
D Within-Prompt Evaluation and Controls
D.1 Cohort, Acquisition, and Aggregation
Within-prompt evaluation comprises 1,662 layer evaluations and 542 complete model-task-prompt groups, with a fixed pilot inside measurements. We intervene on all MLP neurons in a layer. Gemma-2-9B has 14,336 neurons (layers 10, 20, 30), Qwen3-14B has 17,408 (9, 19, 29), and Qwen3-32B has 25,600 (15, 31, 47). Each task has 100 prompt groups. Summaries include groups with all three layers; Gemma is complete, and available Qwen counts appear in Table 1.
Relative AP error divides summed absolute estimation error by summed absolute reference effects for each vector. MAE, dataset-average error, and top-ten recall retain their definitions in Section 3.1.
We average three fixed pilot repetitions within each layer, then layers within each prompt group, then groups. Error reduction is one minus the ratio of mean MAEs. Descriptive 95% intervals use 20,000 paired group-bootstrap draws (seed 20261010), holding fits and measured costs fixed; across-prompt multiplicity adjustment is separate. Gemma intervals are 14.7% to 20.1% (IOI), 23.5% to 28.9% (factual), and 17.4% to 22.5% (SVA).
The method and baseline acquire separate AP measurements in the same allocation. Warm runtime includes attribution, acquisition, selection, fitting, and assembly, excluding loading, numerical validation, and reference collection. The baseline uses the largest executed magnitude-ranked batch prefix affordable at the method's runtime; equal-count comparisons are separate. Gemma, Qwen3-14B, and Qwen3-32B use one, two, and four L40S GPUs, respectively, with timings matched within each hardware configuration.
D.2 Measured Cost at Specified Accuracy
The prespecified targets are 0.5%, 1%, and 2% mean relative AP error. On the main cohorts (Table 1), each measured magnitude-ranked AP prefix retains its error and warm runtime, including attribution setup. At the exhaustive endpoint, we use the cheaper separately measured full-AP time, which omits attribution.
For each target, select the cheapest measured prefix whose group-averaged error meets it, applying the same count to all included layers and groups. Compare with fixed , GUIDED-AP only when both meet the target. Aggregation follows Appendix D; targets constrain the cohort mean rather than every prompt.
Table 5 reports every target and setting; a cost advantage requires both methods to meet the same target.
Fixed-estimate FP64 rescoring retains Gemma IOI error below 1% (0.95%); verify-more needs 2,064 checks and 14.05 seconds, giving a 6.74 time ratio with unchanged execution and timings.
Matching the correction’s achieved error. This post hoc comparison matches GUIDED-AP’s achieved mean relative AP error rather than a prespecified target. For each 32B task and reference, select the cheapest measured verification prefix attaining that error on the same complete groups, using one prefix count throughout (Table 6).
Each paired group-bootstrap draw recomputes the method’s mean error and the cheapest matching prefix (20,000 draws, seed 20261010). Descriptive time-ratio intervals are 7.9 to 19.5, 10.9 to 18.2, and 4.2 to 8.1 for IOI, factual completion, and SVA; fixed-estimate FP64 intervals are 9.1 to 21.3, 5.4 to 17.8, and 1.5 to 4.7. Cohorts match Table 1.
Relative error normalizes each vector before group averaging, so its prompt weighting differs from unnormalized MAE. Matching achieved relative error is distinct from matching runtime or a prespecified accuracy target.
D.3 Measured Comparisons with Other Correction Methods
The comparison with other correction methods uses 30 complete prompt groups per Gemma task, each scored on all three layers, totaling 270 layer comparisons. These groups overlap the main 100-group sets (Table 7).
All selective methods use 256 components or AP measurements; GUIDED-AP includes its 64-label pilot. AtP* verification includes gradient-drop ranking. HVP and MS-HVP correct magnitude-selected components; MS-HVP uses four or five steps. Singleton IG uses four or eight Gauss-Legendre points on isolated component paths. Unselected compo-
| Model | Task | Groups | GUIDED-AP | Cheapest measured verification prefix: checks / s per layer | |||
|---|---|---|---|---|---|---|---|
| Error | s/layer | 2% target | 1% target | 0.5% target | |||
| Gemma-2-9B | IOI | 100 | 0.94% | 2.08 | 0 / 0.27 | 2,416 / 16.37 | 8,128 / 54.16 |
| Gemma-2-9B | Factual | 100 | 1.20% | 1.30 | 0 / 0.25 | 5,664 / 21.84 | 9,904 / 38.00 |
| Gemma-2-9B | SVA | 100 | 0.71% | 1.25 | 0 / 0.25 | 32 / 0.43 | 5,472 / 20.25 |
| Qwen3-14B | IOI | 52 | 1.34% | 2.95 | 16 / 0.76 | 8,016 / 73.12 | 12,608 / 114.56 |
| Qwen3-14B | Factual | 56 | 0.57% | 1.67 | 0 / 0.42 | 0 / 0.42 | 2,144 / 10.29 |
| Qwen3-14B | SVA | 53 | 0.58% | 1.64 | 0 / 0.39 | 16 / 0.54 | 1,936 / 9.30 |
| Qwen3-32B | IOI | 10 | 1.09% | 6.52 | 0 / 0.87 | 6,016 / 126.55 | 15,552 / 324.93 |
| Qwen3-32B | Factual | 31 | 1.09% | 3.54 | 16 / 1.15 | 6,736 / 67.22 | 15,920 / 157.58 |
| Qwen3-32B | SVA | 40 | 0.66% | 3.55 | 0 / 0.84 | 16 / 1.16 | 6,672 / 66.88 |
Table 5: Warm cost at all specified targets. Zero checks denotes ordinary AtP.
nents retain AtP. No-pilot centering shifts them by the negative median attribution. Runtimes include ranking, operators, and assembly on the same hardware; reference collection is separate.
Against runtime-matched verify-more, GUIDED-AP lowers MAE by 16.0%, 26.3%, and 19.7% on IOI, factual completion, and SVA in this comparator cohort. Table 7 gives all methods' measured errors and runtimes.
Figure 3 uses fixed budget-frontier cohorts: nine IOI, eight factual, and nine SVA Gemma groups, plus 45 SVA groups for 32B. Gemma points reuse the first 512 measurements from sequences with the same pilot; time combines the measured acquisition time of those prefixes with the setup, fit, and assembly overhead. Derivative budgets are 64 and 256. Hollow Gemma markers denote five-step MS-HVP and eight-point IG; 32B uses endpoint HVP, four-step MS-HVP, and four-point IG.
D.4 Within-Prompt Controls and Ablations
Verification-plus-shift fits a median residual from the same 256 magnitude-ranked AP measurements as verification alone, then shifts unmeasured estimates. GUIDED-AP uses a 64-label representative pilot inside that budget. Mean-versus-median fits share labels. Uniform and stratified sampling are replayed from measured AP tables, counting all selected measurements. These controls use the main cohorts; the acquired pilot-size study uses a separate cohort.
Figure 7a and Table 10 use the acquired pilot-size cohort below. Panel (b) uses the measured pilot labels from 100 Gemma groups per task; panel (c) and Table 9 replay samples on those groups. All use the layer/group aggregation above and descriptive uncertainty.
The acquired pilot-size study uses 20 groups per task, all three layers, four pilot sizes, and three sampling seeds. The same complete groups enter every size. Pilots of 32 or 64 measurements capture most of the benefit (Table 10).
| Task | Groups | P = 16 | P = 32 | P = 64 | P = 128 |
|---|---|---|---|---|---|
| IOI | 20 | 17.0 | 18.2 | 18.0 | 15.8 |
| Factual | 20 | 25.4 | 26.7 | 27.3 | 27.1 |
| SVA | 20 | 19.4 | 20.2 | 20.1 | 18.5 |
Table 10: Acquired pilot-size ablation on Gemma-2-9B. Entries are MAE reductions relative to verification alone, in percent, at 256 total measurements. The same complete groups enter each pilot size.
At , 10,000 paired group-bootstrap draws give descriptive intervals of to (IOI), to (factual), and to (SVA). Group wins are 19/20, 20/20, and 19/20; the main results use the separate 100-group cohorts.
Figure 7d pools factual residuals on their original RMS scale. Fractions within 0.5, 1, and 2 RMS use exact histogram bin boundaries. The shifted distribution applies the pilot offset before exact replacements. At least three quarters of residuals share a strict sign in , , and of Gemma IOI, factual, and SVA prompt-layer cases, respectively, measured from their quartiles.
D.5 Mechanism and Precision Checks
After predictions and selected sets are fixed, reference residuals supply the diagnostic best common shift on the unmeasured set. Its realized correction benefit is . compares the method with the equal-count magnitude prefix ; accounts for the runtime-matched prefix . Table 11 normalizes terms by mean matched-baseline MAE.
Primary acquisition discrepancy is .
| Task | Groups | Primary reference | FP64 reference | ||||
|---|---|---|---|---|---|---|---|
| Error | GUIDED-AP (s/layer) | Verify-more (s/layer) | Ratio | Error | Ratio | ||
| IOI | 10 | 1.093% | 6.52 | 91.16 | 14.0 | 1.110% | 16.3 |
| Factual | 31 | 1.088% | 3.54 | 51.95 | 14.7 | 1.099% | 11.8 |
| SVA | 40 | 0.664% | 3.55 | 21.06 | 5.9 | 0.658% | 2.6 |
Table 6: Post hoc 32B accuracy and warm runtime at GUIDED-AP's achieved error. Ratios divide verify-more time by GUIDED-AP time. FP64 rescoring keeps the estimates and measured runtimes fixed.
The fitted median retains 96.4%, 97.0%, and 96.1% of the best shift's benefit on IOI, factual completion, and SVA. On SVA, runtime matching contributes 1.04 percentage points and displaced verification costs 1.36; the equal-count gain is 19.1%. Group-averaged wins are 96/100, 97/100, and 98/100.
FP64 readout checks retain the FP32 model body, hidden states, attribution vector, and runtime match. Fixed scores deployed FP32 estimates against the FP64 reference; refit also uses FP64 acquired values for the pilot shift and measured coordinates. Neither runs a full-FP64 model (Table 12).
Fixed-estimate 95% intervals are 7.2% to 13.1%, 20.5% to 26.3%, and 12.6% to 18.3% on Gemma IOI, factual, and SVA. Qwen3-14B SVA is 4.1% (0.5% to 8.1%). For 32B, fixed-estimate intervals are 8.1% to 17.7%, 3.2% to 13.1%, and 4.4% to 11.8%; primary intervals are 11.6% to 22.7%, 13.6% to 21.2%, and 10.7% to 16.7%. Primary group wins are 9/10, 30/31, and 39/40, on the same cohorts as Table 1.
D.6 Fixed Budget across Component Populations
Nested populations contain 1,024, 4,096, or all neurons in a predetermined random order. Each receives , on the same groups, layers, and seeds as the full-population study, with its own runtime-matched verification prefix. Population sizes are dependent views of each prompt group (Table 13).
E Error-Structure Diagnostics
Probe noise grows with interactions. Define , the ratio of off-diagonal to diagonal curvature that sets the sketch noise in Equation 11. Its median rises from 5.8 to 77.2 over to 1,152 heads in Qwen3-8B IOI (Figure 8). Separately, 41 settings on ten held-out IOI prompts give a median observed-to-predicted sketch-MSE ratio of 1.003 (range 0.945 to 1.042). Each point averages row-level MSE ratios, and settings are dependent.
Table 14 compares fixed calibration halves. AP error correlations use heads measured in both halves; probe correlations use all heads. Top-16 overlap scores the model fitted on all 50 calibration groups separately on each half. These describe calibration stability rather than held-out allocation performance.
For the dataset-average effects, the absolute mean signed error across heads is 81% to 96% of the mean absolute error. Equivalently, with and denoting the estimated and reference mean effects, the diagnostic is . It describes agreement in error sign across heads after averaging prompts.
F Confirmation Protocol
Across-prompt evaluation uses 50 calibration and 100 evaluation groups in each of six model-task cells. All 1,152 Qwen3-8B heads (revision b968826d) and 784 Qwen2.5-7B-Instruct heads (a09a3545) are included (Yang et al., 2025; Qwen et al., 2025). Collection uses H100, PyTorch 2.9.1, Transformers 4.57.1, CUDA 12.6, FP32 eager attention, and disabled TF32. Groups shared across models remain linked. IOI equally mixes matched and template/entity-shifted groups; exact and reversed contrasts do not overlap across splits.
Arms comprise AtP ranking (verify-more), random ranking, GUIDED-AP, a cost-matched guided prefix, PROBECAL, and a capacity-matched AP-only learner. The reference-error oracle is a diagnostic ceiling. The five nonbaseline arms, six cells, four budgets, and three horizons define 360 comparisons. AtP* is evaluated within prompts (Appendix D.3); all across-prompt arms use AtP estimates.
GUIDED-AP acquires 1,600 labels per cell by magnitude-guided round robin. PROBECAL uses eight Rademacher probes per calibration group,
| Method | IOI | Factual | SVA | |||
|---|---|---|---|---|---|---|
| Error | Seconds | Error | Seconds | Error | Seconds | |
| AtP | 1.474% | 0.29 | 1.828% | 0.28 | 1.404% | 0.29 |
| Verify-more | 1.292% | 2.61 | 1.725% | 1.29 | 0.909% | 1.67 |
| AtP* + AP | 1.286% | 3.46 | 1.721% | 2.69 | 0.898% | 2.62 |
| No-pilot centering | 1.320% | 2.61 | 1.722% | 1.29 | 0.942% | 1.67 |
| Selective HVP | 1.321% | 18.69 | 1.758% | 18.70 | 1.029% | 18.76 |
| MS-HVP (4) | 1.314% | 131.52 | 1.757% | 131.57 | 0.930% | 132.01 |
| MS-HVP (5) | 1.313% | 169.23 | 1.757% | 169.15 | 0.928% | 169.68 |
| Singleton IG (4) | 1.313% | 73.76 | 1.757% | 73.31 | 0.924% | 73.33 |
| Singleton IG (8) | 1.313% | 147.10 | 1.757% | 146.56 | 0.924% | 146.10 |
| GUIDED-AP | 0.952% | 2.69 | 1.230% | 1.30 | 0.723% | 1.64 |
| Exhaustive AP | 0.000% | 125.24 | 0.000% | 53.43 | 0.000% | 69.23 |
Table 7: Measured comparator accuracy and warm seconds per layer on the complete Gemma comparator groups. Error is relative AP error. Parentheses identify MS-HVP steps or IG quadrature points.
totaling 400 HVPs. Fits and the capacity-matched control follow Appendices A and B.
The output metric is the final-position logit difference between correct and counterfactual tokens, relative to the clean baseline. Per-prompt MAE is computed after verifications. Dataset-mean error averages effects over the 100 held-out groups before taking absolute error; it is not average per-prompt MAE. Recall uses the ten largest absolute reference effects.
Primary verification and scoring share a measured full AP table; separately acquired AP checks at and , with their cost included, confirm this shared table. Total costs include calibration, fitting, transfer, model loading, attribution, and verification. Analysis lengths of 100, 1,000, and 10,000 prompts project measured costs and observed errors; they are not additional evaluation samples.
We use 20,000 paired group-bootstrap draws with the prescribed groups and strata. Two-sided Bonferroni percentile intervals use tail probability , about 1.39 draws per tail, and condition on the fitted calibration and measured costs.
F.1 Across-Prompt Result Summaries
Table 3 reports allocation at matched projected total cost, including calibration. Table 15 gives dataset-average error ratios against uncorrected AtP and calibration coverage.
G Cost Frontiers for All Cells
Figures 9, 10, and 11 cover all six across-prompt cells, budgets, and projected analysis lengths.
Calibration cost favors verify-more at 100 prompts throughout the grid. At 1,000 prompts, 108 of 120 adjusted comparisons favor verify-more and none favors learning. At 10,000 prompts, the useful cells and budgets depend on the signal. GUIDED-AP improves Qwen3 IOI and both SVA cells at ; PROBECAL also improves factual allocation at . The figures retain the remaining comparisons and controls.
Lower MAE need not improve recall. One Qwen3 IOI PROBECAL setting reduces MAE by 11% while top-ten recall falls from 99.2% to 97.0%.
Projected break-even ranges from 1,900 to 24,000 prompts at and 900 to 15,500 at . Recall intervals usually include no change; some IOI settings reduce recall by 0.03 to 0.07.
H Additional Controls on the Confirmation Cells
These post hoc controls use the same six cells and 20,000 paired bootstrap draws, with their analysis protocol fixed before computation.
Dataset correction at matched total cost. Verify-more uses the largest affordable magnitude-ranked AP prefix. It wins in all settings at 100 prompts and in ten of twelve at 1,000 prompts. At 10,000 prompts it affords no additional checks, so the comparison is with uncorrected AtP. Where correction improves that baseline, projected break-even is 527 to 2,744 prompts. The IOI exceptions appear in Table 15.
Learning residuals versus averaging measurements. Using the same 1,600 queries directly as component-average effects produces 5.8 to 14.9 times more error than residual correction (Equa-
Same total budget: 256 exact measurements

Figure 7: Within-prompt GUIDED-AP ablations on Gemma-2-9B at 256 measurements. Panels (a) to (c) report MAE reductions relative to verification alone. Panel (d) shows factual absolute-error distributions before and after the common shift, scaled by the original root mean square error.
(a) Coupling
(b) Sketch MSE

Qwen3 IOI
Llama3.1 IOI
Qwen2.5 IOI
Llama3.2 IOI
Gemma2 IOI
Qwen3 factual
Figure 8: Sketch-noise diagnostics. Left: median coupling across six model-task settings. Right: 41 N/R means on Qwen3-8B IOI; dashed line denotes equality and red line the median. Points are dependent, not confidence intervals.
tion 9) in all six cells, with every adjusted interval above one, and is worse than uncorrected AtP.
Independently acquired verification. Separate AP forwards at B = 16 and B = 32 reproduce the primary values exactly in all six cells and six arms; all 75 testable prespecified comparisons retain their direction.
I Cost Accounting and Numerical Scope
For method m under a fixed loading and batching schedule, projected total cost is
where includes calibration, fitting, and the specified initialization costs. The per-prompt term includes attribution, ranking, activation handling, transfer, and verification. T is a projected analysis length, not the number of evaluation prompts over which dataset averages are measured. The prespecified analysis lengths are 100, 1,000, and 10,000 prompts, and the allocation budgets are .
For an across-prompt policy with B verifications, the matched verify-more budget is
Here includes attribution and magnitude-ranked verification. Measured batch padding and overhead determine the integer budget; unused compute is retained. Within-prompt matching uses measured runtime without prior calibration. Dense curves are descriptive; adjusted inference uses the prespecified budgets and horizons.
Equation 13 assumes one initialization. Break-even horizons project measured cost components.
On Qwen3 factual completion, 1,600 AP labels at batch size 16 took 13.98 seconds (0.009 seconds/check); 400 serial HVPs took 51.77 seconds (0.13 seconds/HVP). At these rates, one HVP costs about 15 exact checks. Full calibration costs, including probes, fitting, transfer, and model loading, range from 384 to 1,050 seconds per cell and are included in the comparisons.
| Model | Task | Groups | GUIDED-AP vs verification (%) | GUIDED-AP vs verification + shift (%) | FP64: GUIDED-AP vs verification + shift (%) |
|---|---|---|---|---|---|
| Gemma-9B | IOI | 100 | 17.3 [14.7, 20.0] | 57.2 [53.9, 60.1] | 56.4 [53.0, 59.6] |
| Gemma-9B | Factual | 100 | 26.2 [23.4, 28.9] | 23.6 [17.4, 30.3] | 22.9 [16.4, 30.0] |
| Gemma-9B | SVA | 100 | 19.1 [16.7, 21.5] | 55.1 [48.0, 61.8] | 55.1 [47.9, 61.8] |
| Qwen3-14B | IOI | 52 | 24.0 [19.2, 28.5] | 45.8 [40.7, 50.3] | 45.4 [40.1, 50.1] |
| Qwen3-14B | Factual | 56 | 12.2 [9.6, 15.0] | 75.9 [71.0, 79.3] | 75.7 [70.7, 79.2] |
| Qwen3-14B | SVA | 53 | 10.9 [7.9, 14.1] | 75.3 [70.9, 78.8] | 75.2 [70.8, 78.6] |
| Qwen3-32B | IOI | 10 | 16.8 [10.8, 22.3] | 71.6 [60.2, 78.1] | 71.1 [59.6, 77.6] |
| Qwen3-32B | Factual | 31 | 17.5 [13.7, 21.3] | 70.1 [62.2, 75.5] | 70.1 [62.1, 75.4] |
| Qwen3-32B | SVA | 40 | 13.7 [10.6, 16.6] | 78.0 [73.4, 81.2] | 78.4 [73.9, 81.5] |
Table 8: Within-prompt GUIDED-AP MAE reductions at equal measurement counts. Intervals are descriptive paired-group 95% intervals. FP64 scoring keeps the deployed FP32 estimates fixed.
| Task | Pilot | Stratified median | Uniform median | Stratified mean |
|---|---|---|---|---|
| IOI | 16 | 16.7 | 16.5 | 7.0 |
| IOI | 32 | 17.6 | 17.5 | 8.2 |
| IOI | 64 | 17.3 | 17.3 | 5.0 |
| IOI | 128 | 15.3 | 15.3 | 5.9 |
| Factual | 16 | 24.2 | 24.1 | 23.9 |
| Factual | 32 | 25.6 | 25.7 | 25.3 |
| Factual | 64 | 26.2 | 26.2 | 25.6 |
| Factual | 128 | 26.1 | 26.1 | 25.7 |
| SVA | 16 | 18.1 | 17.7 | 1.8 |
| SVA | 32 | 19.2 | 19.1 | 9.8 |
| SVA | 64 | 19.2 | 19.2 | 10.4 |
| SVA | 128 | 17.4 | 17.4 | 9.7 |
Table 9: Gemma GUIDED-AP pilot ablations with replayed samples. Entries give percent lower MAE than verification alone at 256 total measurements.
| Task | Gain | ||||
|---|---|---|---|---|---|
| IOI | 19.76 | 0.72 | 1.74 | -0.13 | 17.42 |
| Factual | 27.37 | 0.83 | 0.36 | -0.02 | 26.21 |
| SVA | 21.07 | 0.82 | 1.36 | -1.04 | 19.92 |
Table 11: Theorem 1's decomposition on Gemma, in percentage points of matched-baseline MAE. Negative count cost means fewer baseline checks.
Deployment includes initialization, calibration, fitting, model loading, gradients, activation handling, transfer, and verification; reference collection is separate. Rates are specific to the measured hardware configuration.
Interventions add directions to live activations, preserving upstream propagation. Derivatives and references use FP32 eager execution; same-hidden-state FP64 readouts assess numerical sensitivity.
| Model | Task | Primary | Fixed | Refit |
|---|---|---|---|---|
| Gemma-9B | IOI | 17.4 | 10.1 | 16.3 |
| Factual | 26.2 | 23.4 | 25.4 | |
| SVA | 19.9 | 15.4 | 20.4 | |
| Qwen3-14B | IOI | 24.0 | 21.0 | 24.5 |
| Factual | 12.3 | 10.4 | 12.8 | |
| SVA | 10.9 | 4.1 | 9.5 | |
| Qwen3-32B | IOI | 17.3 | 13.6 | 16.9 |
| Factual | 17.5 | 8.2 | 14.2 | |
| SVA | 13.7 | 8.0 | 14.2 |
Table 12: Percent lower MAE under the primary reference and two FP64 sensitivity checks. Fixed estimates and FP64-acquired refits keep the budget match.
| Model | Task | Full | ||
|---|---|---|---|---|
| Gemma-9B | IOI | 22.7% | 19.4% | 17.4% |
| Factual | 27.8% | 26.8% | 26.2% | |
| SVA | 22.6% | 20.9% | 19.9% | |
| Qwen3-14B | IOI | 27.4% | 25.7% | 24.0% |
| Factual | 16.2% | 13.9% | 12.3% | |
| SVA | 19.2% | 14.4% | 10.9% | |
| Qwen3-32B | IOI | 23.7% | 20.1% | 17.3% |
| Factual | 22.4% | 19.6% | 17.5% | |
| SVA | 19.6% | 16.7% | 13.7% |
Table 13: MAE reduction against runtime-matched verify-more at three predetermined component populations. Full populations are 14,336, 17,408, and 25,600 neurons for the three models.
| Model | Task | AP error | Probe | Top-16 kept |
|---|---|---|---|---|
| Qwen3 | IOI | 0.69 | 0.97 | 16 / 16 |
| Qwen3 | Factual | 0.80 | 0.97 | 15 / 16 |
| Qwen3 | SVA | 0.57 | 0.95 | 14 / 16 |
| Qwen2.5 | IOI | 0.69 | 0.95 | 13 / 14 |
| Qwen2.5 | Factual | 0.81 | 0.97 | 15 / 15 |
| Qwen2.5 | SVA | 0.62 | 0.95 | 12 / 15 |
Table 14: Stability between fixed calibration halves. AP error uses heads measured in both halves (87 to 137 per setting); probe uses all heads. Top-16 kept reports overlap for the GUIDED-AP / PROBECAL model fitted on all 50 calibration groups, scored on each half.
(a) 100 prompts

Projected total cost ( s)
(b) 1,000 prompts
(c) 10,000 prompts

(d) Dataset means

Qwen3-8B Qwen2.5-7B
Guided-AP
ProbeCal
AP capacity control
.....
Verify-more (dotted)
Figure 9: Across-prompt evaluation on Qwen3 IOI. Error against projected total cost at three analysis lengths, with markers for verification budgets and dotted curves for verify-more, followed by the dataset-mean correction ratios for all six cells with adjusted intervals.
| Model | Task | Error ratio | GUIDED-AP labels | ||
|---|---|---|---|---|---|
| GUIDED-AP | PROBECAL | Heads | Coverage | ||
| Qwen3 | IOI | 0.95 | 1.49 | 121/1,152 | 10.5% |
| Qwen3 | Factual | 3.98 | 1.87 | 145/1,152 | 12.6% |
| Qwen3 | SVA | 1.23 | 1.14 | 265/1,152 | 23.0% |
| Qwen2.5 | IOI | 0.66 | 1.09 | 163/784 | 20.8% |
| Qwen2.5 | Factual | 4.78 | 1.86 | 141/784 | 18.0% |
| Qwen2.5 | SVA | 1.34 | 0.99 | 217/784 | 27.7% |
Table 15: Dataset-average correction. Error ratio is uncorrected divided by corrected MAE. Bold and italic mark adjusted significant improvements and harms. Heads and coverage refer to GUIDED-AP calibration.

Guided-AP ProbeCal
Qwen3 factual
Matched-guided AP capacity control
Random … Verify-more
Qwen3 SVA

Guided-AP ProbeCal
Matched-guided AP capacity control
Random … Verify-more
Qwen2.5 IOI

Guided-AP ProbeCal
Matched-guided AP capacity control

Projected total cost ( s)
Random … Verify-more
Figure 10: Cost-error frontiers for three more cells at 100, 1,000, and 10,000 prompts. Conventions follow Figure 9.

Guided-AP ProbeCal Matched-guided AP capacity control Random … Verify-more
Qwen2.5 SVA

Guided-AP ProbeCal Matched-guided AP capacity control Random … Verify-more
Projected total cost ( s)
Projected total cost ( s)
Figure 11: Cost-error frontiers for the remaining two cells. Conventions as in Figure 9.