arXiv:2610.27393cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27393

Correcting Attribution Patching with a Few Exact Measurements

Luyang Zhang, Minxing Zheng, Jialu Wang

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

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.

References (55)