Manuscript Offprint
arXiv:2610.27689Influence Is the Target-Response Jacobian Times Residuals
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We introduce the target-response Jacobian , which measures how model predictions respond to changes in individual training targets. complements training-data attribution (TDA) methods, which characterize sensitivity to the weights placed on training observations in the loss rather than to their targets, and can be computed matrix-free at the same cost as influence-based TDA methods. We show that sample-weight influence and follow from the same implicit differentiation argument and differ only by a per-example multiplier: for pointwise losses, exactly at any stationary point with an invertible Hessian. For canonical-link losses (squared error, logistic, Poisson) the multiplier is the training residual, , and softmax cross-entropy obeys a multiclass version. The identity predicts three ways in which influence fails when used in place of : small residuals shrink its predicted shift towards zero (interpolation collapse), residuals of mixed sign wash out its direction (direction washout), and under softmax cross-entropy it collapses a training point’s per-class sensitivities towards its own true class (true-class collapse). We score both operators against refitting with a per-prediction across target perturbations, with no rescaling. On tanh networks trained with squared error (Friedman #1) and logistic loss (MAGIC, HIGGS), with from 2,000 to , reaches between 0.99 and 1.00, whereas influence’s is negative on every dataset. On an MNIST softmax classifier, influence’s is again negative, while reaches 0.92. On HIGGS, one row of , holding all sensitivities of one prediction, takes under 0.2 seconds on an RTX 3090 after a one-time setup of under five minutes, whereas refitting would take refits.
1 Introduction
This paper introduces the target-response Jacobian
which measures how a model's predictions respond to changes in individual training targets without retraining. complements existing training-data attribution (TDA) methods, which measure how a prediction depends on the weight given to each training example in the loss. measures how it depends on the training targets themselves, which no existing method does for general differentiable learners. We show that can be computed matrix-free at scale. For predictions and training points, is an matrix whose row gives one prediction's sensitivity to every training target and whose column gives the effect of one training target on every prediction. At a fitted model, implicit differentiation of the stationarity condition splits into three standard factors,
parameters
loss gradient
targets where G stacks the gradients of the predictions with respect to the parameters, H is the Hessian of the training objective at the fitted parameters, and column j of C is the derivative of the training-loss gradient with respect to . Each factor is available matrix-free in any model trained by gradient methods: G costs a Jacobian-vector product, an iterative solve against Hessian-vector products, and each column of C one mixed gradient. J can therefore be computed for most models trained by gradient methods, and wherever influence functions can be computed. Throughout, a target change is a change in the training targets, and a shift is the resulting change in a prediction, either after refitting or as predicted by J or influence. A perturbation is a randomly drawn target change.
Sample-weight influence (Koh & Liang, 2017) runs the same pipeline with a different last factor. It uses B, the matrix of per-example loss gradients, in place of C, so that . For a pointwise scalar loss, column j of B is column j of C multiplied by a single number, and from this observation we prove a new identity: for canonical-link losses, sample-weight influence equals J times a diagonal matrix of training residuals (the canonical-link identity),
exactly, at any stationary point of the training objective with an invertible Hessian (Corollary 3.4). It follows that influence cannot stand in for J. As a model fits its training data more closely, the residuals shrink, so influence's predicted shift goes to zero even where J's does not.
The canonical-link identity (3) is a special case of a more general modulation identity,
where and are the first and mixed partial derivatives of the per-example loss (Theorem 3.3). For canonical-link losses (squared error, logistic, Poisson) the multiplier reduces to the residual , which recovers . Softmax cross-entropy obeys a multiclass version with one residual per class (Proposition 3.6). In terms of the factorisation (2), column of is times column of . For canonical-link losses, is therefore influence with the residual factor removed. Column of is then times the gradient of the model output at , so if an influence implementation uses these scaled output gradients in place of the per-example loss gradients, it computes . The identity also does not require the exact Hessian: it holds unchanged for any shared invertible surrogate, so the damped Gauss–Newton Hessian, which the experiments also report, inherits it (Remark 3.5).
In the absence of J, influence-type methods are the closest available proxy for applications that need target sensitivity, and they are used that way: Richardson et al. (2023), for example, rank training points by their sample-weight influence on a fairness metric and then flip the labels of the highest-ranked points. The modulation identity implies three distinct ways in which influence fails in that role. Small residuals shrink its predicted shift towards zero (interpolation collapse, Corollary 4.1); residuals of mixed sign wash out its predicted direction (direction washout, Corollary 4.2); and under softmax cross-entropy it collapses the per-class target sensitivities of a training point onto a single direction, towards that training point's own true class, whatever target change is asked about (true-class collapse, Corollary 4.3).
Figure 1 shows what this means for a concrete question: how would a house-price model's predictions change if the top-coded values in California Housing had been recorded 20% higher? J reproduces the refit, which concentrates the shift mainly in two regions, whereas influence spreads a smaller shift along the coast and predicts only a small part of the shift in the block groups that move most (Section 7). None of this is a flaw in influence as such. It correctly measures what it was built to measure, the sensitivity of a prediction to per-example loss weights, but that sensitivity is not target sensitivity, and the modulation identity explains why.
Testing J, and these predictions about influence, requires a metric that matches what a target-sensitivity estimator claims, namely that the shift it predicts in a prediction equals the shift that refitting produces.
A canonical-link loss has the form , with the model output. Squared error, logistic loss on logits and Poisson loss on log-rates are the common cases (Corollary 3.4).
Read in terms of targets, the identity says that upweighting training point j by has, to first order, the same effect as moving its target by , away from the model's fit, and that deleting the point corresponds to moving its target onto the fit. Used as a target sensitivity, influence therefore predicts the shift for the target change rather than for .

Figure 1: What if the top-coded house values in California Housing had been recorded 20% higher? Each dot is one of 5,160 held-out block groups, coloured by the shift in its prediction after the target change (one colour scale for all panels). The refit (left) concentrates the shift mainly around the San Francisco Bay Area and Los Angeles, and (centre), computed without refitting, reproduces it. Influence (right) spreads a smaller shift along the coast and predicts only a small part of the shift in the block groups that move most. Section 7 gives the details.
No standard metric in the data-attribution literature tests that claim directly. Pearson correlation tests direction; any affine-rescaled tests direction after a free rescaling; and rank-correlation scores, including the linear datamodelling score (Ilyas et al., 2022; Park et al., 2023), test only ordering. All three ignore scale and so cannot detect interpolation collapse, which acts on scale. The per-prediction coefficient of determination , which is exactly r2_score from scikit-learn, compares the predicted shift with the refit shift directly, scale included. What differs from textbook usage is what varies. There, is computed across the instances of a dataset; here, is computed across random target perturbations applied at a single prediction (Section 5). Its Mincer–Zarnowitz decomposition (Mincer & Zarnowitz, 1969) into direction , scale and bias then makes each of the three failure modes visible. Interpolation collapse lowers ; direction washout drives to zero; and true-class collapse lowers both. It lowers because influence points towards the training point’s own true class whichever class its label is moved to, and it shrinks as the probability the classifier assigns to that training point’s true class approaches one.
The experiments test these predictions against refitting. On tanh networks trained with squared error (Friedman #1, ) and with logistic loss (MAGIC, , and HIGGS, ), attains a per-prediction between 0.99 and 1.00, with direction and scale near one, whereas influence's is negative on every dataset (Section 6.1, Table 2). Each predicted failure appears where the identity predicts it. Influence's direction is washed out on all three datasets, with between -0.08 and 0.03, and on the two logistic datasets its scale is shrunk ( of 0.30 on MAGIC and 0.47 on HIGGS).
On a softmax classifier for MNIST, with as on Friedman, influence's is negative , with a weak direction and a shrunk scale , as true-class collapse predicts, while reaches of 0.92 (Section 6.2, Table 2).
As an application, Section 7 asks how the model’s predictions would change if the top-coded house values in California Housing had been recorded higher (Figure 1), and checks both answers against a refit. For increases from 5% to 50%, s lies between 0.98 and 1.00, while influence’s is at most 0.27 (Section 7, Table 3).
The implementation never forms . On HIGGS, with training points, one row of , which gives one prediction’s sensitivities to every training target, takes under 0.2 seconds on a single RTX 3090 after a one-time setup of under five minutes, whereas producing the same row by refitting would take refits, one per training target (Appendix G).
Table 1: Training-point attribution operators, grouped by what is differentiated. Panel A collects operators of sensitivity to targets, through which predictions are linear in the targets: exactly for the classical smoothers and AXIL, and to first order for general learners. Panel B covers sensitivity to sample weights. The modulation identity links the two panels.
| Panel A. Sensitivity to targets | |||
|---|---|---|---|
| Object | Identity | Source | Literature |
| Linear regression | exactly | Hoaglin & Welsch (1978) | Statistics |
| Kernel ridge regression | exactly | Saunders et al. (1998) | Smoothers |
| L2 gradient boosting, fixed trees | exactly | Geertsema & Lu (2026) | XAI |
| Target-response Jacobian | Eq. (8) | TDA | |
| Panel B. Sensitivity to sample weights | |||
| Sample-weight influence | Koh & Liang (2017) | TDA | |
| Canonical TRAK | projected, ensembled | Park et al. (2023) | TDA |
| Modulation identity | Thm. 3.3 | TDA | |
Panel B of Table 1 covers the other axis, sensitivity to sample weights. Sample-weight influence, which goes back to the influence curve of robust statistics (Hampel, 1974) and was brought to modern machine learning by Koh & Liang (2017), and canonical TRAK (Park et al., 2023) both compute . The work that comes closest to target sensitivity is on labels. Koh & Liang (2017) remark that analogous equations apply to label changes. Kong et al. (2022) derive how relabelling a training point changes a test loss, and use it to choose training points to relabel. Adebayo et al. (2023) derive the effect of label changes on a group fairness metric, and use it to find the label errors that most affect it. Other papers study particular label changes. Gong et al. (2022) compute the parameter change for one candidate label replacement in partial-label learning, Zhang et al. (2022) measure the test-loss effect of soft-label changes in programmatic weak supervision, and Warnecke et al. (2023) give a closed-form parameter update that unlearns a specified set of label changes. Each of these papers computes the effect of one kind of change on one downstream quantity. , by contrast, gives the first-order response of every prediction to every training target, and we check it against refits. Through the modulation identity, also links the two panels of Table 1, and so connects literatures that have developed separately. The Jacobian itself is standard mathematics. To our knowledge,
Other widely used methods also measure sensitivity to sample weights, and those built on per-example loss gradients contain the residual factor: for canonical-link losses the representer weight of training point (Yeh et al., 2018) is proportional to , and each checkpoint term of TracIn (Pruthi et al., 2020) contains the residual of point at that checkpoint. Datamodels (Ilyas et al., 2022) regress the output on subset inclusion, a 0/1 sample weight.
however, no prior work states J as the target-response operator for general learners at evaluation points, computes it at scale, checks it against refits, or relates it exactly to influence.
3 The target-response Jacobian and the modulation identity
This section defines J and sample-weight influence for a learner trained to a stationary point, and proves that for pointwise scalar losses the two operators differ only by a per-example factor, with a per-class analogue for softmax cross-entropy. Table 4 in Appendix A collects the notation.
Setup. Let be training inputs with targets and let be an evaluation set. Throughout, indexes evaluation predictions and indexes training points, where . is the Euclidean norm. The learner has parameters and minimises
with each twice continuously differentiable in and twice continuously differentiable in near . Write for the observed targets and for the fitted parameters. Assume is an interior stationary point of at which the Hessian is invertible. The implicit function theorem then gives a unique differentiable map near with and . Below, “trained model” means this locally defined solution , which need not be a global minimiser.
Definition 3.1 (Target-response map). The target-response map is
where is a differentiable scalar prediction at evaluation point , such as a logit or a predicted probability.
Definition 3.2 (Target-response Jacobian). The target-response Jacobian is .
Entry is the first-order change in prediction i when training target j moves by one unit,
Writing for the predictions and , the expansion reads
the local version of the smoother identity in Table 1. When exactly, and . Vector targets , such as one-hot or soft labels over classes, make a 3-tensor in (Proposition 3.6).
The attribution literature uses a different per-example sensitivity, the sample-weight influence of Koh & Liang (2017) (Appendix A relates its sign and scale to other conventions). To define it, give each example a weight, , let , so that , and set
The identity below holds for pointwise scalar losses with and twice continuously differentiable in . Write and let and be the partials of at . The modulation factor is
which requires at every training point.
Theorem 3.3 (Modulation identity). Under the conditions above, with for every , exactly at the trained model ,
Proof. Step 1 (implicit differentiation). Let and . Differentiating the stationarity condition in gives
so and . With ,
Differentiating instead in at gives with , so with ,
Step 2 (per-example chain rule). Write . The chain rule on gives and , so and . Both are multiples of , and because , with . Stacking the columns over gives
Step 3 (combine). Substituting (14) into (13) and using (12),
as required.
☐
Equation (12) is the pipeline (2) of the introduction, and influence runs the same pipeline with B in place of C.
Corollary 3.4 (Canonical-link losses). Suppose has the canonical exponential-family form , with and twice continuously differentiable. Then and , so the hypothesis of Theorem 3.3 holds for any fitted model,
is the training residual, and .
The residual is for squared error, for logistic loss and for Poisson regression. Influence is therefore zero for a point the model fits exactly, whatever that point's effect on the predictions when its target moves.
Remark 3.5 (Surrogate Hessians). Step 2 of the proof does not involve . The identity therefore also holds for and with any invertible used for both, .
Theorem 3.3 needs a scalar model output and a scalar target. For softmax cross-entropy the output is a vector of logits, , with probabilities and per-example loss on soft or one-hot targets with , and the identity takes a tensor form, with one residual per class.
Proposition 3.6 (Softmax cross-entropy). Let and let with . Then
The same holds when both operators share any invertible .
Proof. Appendix D.
6
☐
4 Implications for influence
Suppose influence is used to predict how predictions change when training targets change. The modulation identity then predicts three ways in which influence fails, even though it still measures sensitivity to sample weights correctly.
The first failure concerns scale. When the modulation factors shrink, as the residuals do when a model fits its training data more closely, influence shrinks with them even while J stays bounded.
Corollary 4.1 (Interpolation collapse). Under Theorem 3.3, with N and S fixed, suppose that along a sequence of fitted models while the entries of J stay bounded. Then every entry of I goes to zero, and so does influence's predicted shift for every bounded perturbation . As a target-sensitivity estimator, influence collapses to predicting no change. The same holds for any shared , with the bound imposed on the entries of .
Proof. , and is a sum of such entries times bounded factors.
Kernel ridge regression shows the collapse in closed form. As the ridge parameter goes to zero the model interpolates, the residuals vanish and influence goes to zero, while J converges to the interpolating smoother (Appendix C).
The second failure concerns direction. Draw a perturbation by choosing a training point uniformly from and moving its target by a random amount , . At prediction , influence then predicts the shift and predicts .
Corollary 4.2 (Direction washout). Under Corollary 3.4, fix a prediction with , and let be independent of with and . Weight training point by , and let and be the mean and variance of the residuals under these weights, with . Then the correlation between the shifts predicted by influence and by is
It is zero when the weighted mean residual is zero, and close to zero whenever that mean is small relative to the spread of the residuals.
Proof. Both shifts have mean zero because and is independent of . Their covariance is , and their variances are and . Dividing numerator and denominator by turns the expectations over into weighted means, and .
The third failure is specific to softmax cross-entropy.
Corollary 4.3 (True-class collapse). Under softmax cross-entropy with one-hot label , so that is the recorded class of training point , Proposition 3.6 gives
For the label change that moves mass from the true class to a class , and with influence scored as (Appendix D), the predicted shifts in prediction are
J's shift depends on the destination class a, whereas influence's does not.
Proof. Substitute the one-hot residuals and for into (17). 's shift is . depends on , and the fitted model but not on .
Softmax probabilities are positive, so in (19) the true class of training point receives the only positive weight, , and every other class a negative weight ; these sum to . Influence's column for a training point therefore always points towards that point's own true class, whatever target change is asked about. It gives the same prediction whichever class the label moves to, and so contains no information about where the label goes. Its size shrinks as well: the whole column is times a weighted difference of columns of (Appendix D), so as the probability the classifier assigns to approaches one, influence's shift goes to zero.
The same reasoning suggests a problem for canonical TRAK (Park et al., 2023), whose formula weights each training example by . For canonical-link losses this weight is . With its projection and ensembling held fixed, TRAK therefore contains the same residual factor, and we expect it to share the three failures. We do not test TRAK empirically: its reference implementation supports only multi-class tasks (image, text and CLIP classification), and applying it to the squared-error and single-logit models of our tabular experiments would require model-output code that does not yet exist.
5 Evaluating a target-sensitivity estimator
The experiments compare and influence with refits, and so need a score for how well a matrix predicts the effect of a target change. A target-sensitivity estimator is a matrix used to predict the refit shift, . Both and are scored this way, with no rescaling.
Definition 5.1 (Per-prediction ). For prediction and a perturbation distribution on ( for vector targets),
where is the refit shift. The reported score is the median of over the evaluation set.
Unlike the usual regression , which is taken across data points, this one is taken across perturbations at a single prediction. In practice we draw perturbations from and refit once for each, so every prediction has pairs of refit and predicted shifts, and is sklearn.metrics.r2_score (Pedregosa et al., 2011) on those pairs. Predicting the mean refit shift for every perturbation scores zero, and an estimator that gets the direction wrong scores below zero. We report the median over predictions rather than the mean, which a few failing predictions would otherwise dominate.
At prediction , let be the correlation between predicted and refit shifts over , the standard deviation of the predicted shift divided by that of the refit shift, and the difference of their means divided by the standard deviation of the refit shift. The Mincer–Zarnowitz identity (Mincer & Zarnowitz, 1969) splits the score into direction, scale and bias (Lemma B.1),
Among the failures of Section 4, interpolation collapse drives to zero, direction washout drives to zero, and true-class collapse lowers both. Pearson correlation and rank-correlation scores, including the linear datamodelling score (Ilyas et al., 2022; Park et al., 2023), ignore scale and so cannot detect interpolation collapse. We therefore report with its three components beside it.
6 Experiments
Every experiment follows the same design. It trains a base model to stationarity, draws K perturbations of training targets, refits each one by warm-started L-BFGS from the base parameters, and scores J and
For multi-class classification, as on MNIST, TRAK’s weight for training point is , the prefactor of Corollary 4.3, and it gives one score per pair of prediction and training point. Its predicted effect of a label change is therefore the same whichever class the label moves to, as for influence.
In the Mincer–Zarnowitz regression of refit shifts on predicted shifts, and usually denote the intercept and the slope. Here is a scale and a standardised bias, as defined above.
Table 2: Per-prediction (20) and its direction, scale and bias components (21) against refits. Medians over predictions, mean SD over five seeds. perturbations per seed, and on MNIST. Both operators use the exact Hessian. Random applies one shared permutation to the perturbation axis of the refit shifts, which breaks the pairing while keeping each prediction's distribution of shifts. Each column is summarised separately, so the entries need not satisfy (21) exactly. Bold marks the better of and influence.
| Dataset | Method | ||||
|---|---|---|---|---|---|
| Friedman #1 | |||||
| Influence | |||||
| Random | |||||
| MAGIC Gamma | |||||
| Influence | |||||
| Random | |||||
| HIGGS | |||||
| Influence | |||||
| Random | |||||
| MNIST | |||||
| Influence | |||||
| Random |
influence against the same refits. Warm-starting matters because it targets the locally defined solution that differentiates, whereas retraining from a fresh initialisation can reach a different minimum. Every fit, base or refit, stops on the same gradient-norm rule. Both operators use the exact Hessian of the training objective, so neither score includes the error of a surrogate Hessian. Tables 6 and 7 also report with the damped Gauss–Newton Hessian of Remark 3.5. Appendix E gives the architectures, perturbation distributions and the stopping rule. Kernel ridge regression, where is the smoother matrix and scores exactly, is in Appendix C (Table 5).
6.1 Tabular data
Table 2 reports one-hidden-layer tanh networks on Friedman #1 (Friedman, 1991) with squared error and , MAGIC Gamma (Bock et al., 2004) with logistic loss and , and HIGGS (Baldi et al., 2014) with logistic loss and . Entries are medians over evaluation predictions, averaged over five seeds. The random row gives a floor.
On the three tabular datasets of Table 2, reaches between 0.99 and 1.00, with direction of at least 0.99, scale between 1.00 and 1.02 and bias near zero. Influence's , by contrast, is negative on all three datasets, because its direction is washed out ( between and ; Appendix E covers the class-dependent perturbations of MAGIC and HIGGS). A model that fits well over-predicts about as much as it under-predicts, so its residuals average close to zero, and unless their sign is related to the weights of Corollary 4.2, the weighted mean is small relative to their spread. With near zero, (21) leaves , which is negative at any scale. On MAGIC and HIGGS the scale is also shrunk ( of 0.30 and 0.47), because logistic residuals lie between and . On Friedman the loss is squared error, whose residual has the units of the target. Measuring the target in units times smaller therefore multiplies influence's by , which means its value there (0.68) is not a measure of shrinkage. With the Gauss–Newton Hessian, 's is between 0.93 and 0.96 and influence's is still negative (Table 6).
6.2 Softmax classifier on MNIST
MNIST (LeCun et al., 1998) tests and true-class collapse on a softmax classifier. The design follows the tabular runs. Each seed draws training images, the same as on Friedman, and 2{,}000 test images. It fits the same one-hidden-layer tanh network of width 64 to the flattened images, so is about
Table 3: Increasing the top-coded house values of California Housing. and its components (21) are computed across the 5,160 held-out predictions of each target change. Seed 0.
| Increase | Method | ||||
|---|---|---|---|---|---|
| 5% | 1.000 | 1.000 | 1.002 | 0.000 | |
| Influence | 0.213 | 0.470 | 0.549 | ||
| 10% | 0.996 | 0.998 | 1.002 | 0.001 | |
| Influence | 0.215 | 0.471 | 0.549 | ||
| 20% | 0.994 | 0.997 | 1.009 | 0.000 | |
| Influence | 0.237 | 0.492 | 0.553 | ||
| 50% | 0.977 | 0.989 | 1.011 | 0.000 | |
| Influence | 0.274 | 0.525 | 0.554 |
41,000 (Table 7). The prediction is the logit of the base model's predicted class at test image . Each seed draws label changes , with uniform on , the training image's true class, a random other class and , the range used on MAGIC and HIGGS. is smaller than on the tabular data because each refit takes up to half a minute on average (Appendix E). With the Gauss–Newton Hessian, 's is 0.74 (Table 7).
In Table 2, reaches of 0.92 on MNIST, with direction of 0.97 and scale of 0.99. Influence's direction is weak ( of ), because its predicted shift is the same whichever class the label moves to, as true-class collapse predicts (Appendix D). Its scale is also shrunk ( of 0.10). The classifier assigns a training point's true class a probability close to one (median between 0.92 and 0.93 across seeds; Table 7), so the prefactor of Corollary 4.3 is small. Influence's predicted shifts are therefore close to zero, and its is negative .
7 Application: Censored house prices
California Housing (Pace & Barry, 1997) gives the median house value of 20,640 census block groups. Values above 500,001, so the 965 most expensive block groups share one recorded target. How a fitted model's predictions would change if the top-coded values were higher is a what-if about training targets. Increasing the top-coded targets by a fraction is the target change on the top-coded training points, with elsewhere. predicts the shift in the predictions as . Influence predicts , which weights the target change of each top-coded point by that point's residual. Each of the two predicted shifts costs one Hessian solve, for all held-out predictions at once.
We fit the squared-error network of Section 6.1 to a random three quarters of the rows (), increase the top-coded targets by 5%, 10%, 20% and 50%, refit, and compare the shift in the 5,160 held-out predictions with the shifts that and influence predict. Each increase is a single target change rather than random perturbations, so and its components are computed across the held-out predictions of that target change. Appendix F gives the protocol.
In Figure 2, follows the refit over the whole range of shifts, whereas influence misses most on the block groups whose predictions move the most. 's lies between 0.98 and 1.00 and influence's between 0.21 and 0.27 (Table 3). Influence's direction is only partly right, with between 0.47 and 0.53 (its depends on the unit of the target, as on Friedman).
Influence scores a label change as a change in sample weight (Appendix D), and the sign of that correspondence is a convention. Scoring influence with the opposite sign flips its , leaves its unchanged, and its stays negative on every seed.


Figure 2: Increasing the top-coded house values by 20% (California Housing, seed 0). Each point is one of 5,160 held-out block groups. The horizontal axis is the shift in its prediction after refitting, and the vertical axis is the shift predicted by J (left) and by influence (right). The grey line marks equality.
8 Limitations
J is a first-order sensitivity at a stationary point. How well it predicts the effect of a finite target change depends on how nonlinear the refit is in that change, which varies with the learner and the size of the change. This limit, like the need for white-box access and one Hessian solve per row or column, applies equally to influence. Any difficulty in computing the solve accurately also affects both operators alike, because the modulation identity holds for any shared Hessian or surrogate. On MNIST, replacing the exact Hessian by the Gauss–Newton surrogate lowers from 0.92 to 0.74 (Table 7). The modulation identity also needs a pointwise loss with , which every canonical-link loss satisfies. Where , as in the linear region of the Huber loss or almost everywhere for the loss, the modulation factor is undefined. The fit does not respond to that target to first order, so . Influence's column , however, is in general nonzero, and no factor can scale a zero column into a nonzero one.
References
Julius Adebayo, Melissa Hall, Bowen Yu, and Bobbie Chern. Quantifying and mitigating the impact of label errors on model disparity metrics. In International Conference on Learning Representations, 2023.
Pierre Baldi, Peter Sadowski, and Daniel Whiteson. Searching for exotic particles in high-energy physics with deep learning. Nature Communications, 5:4308, 2014. doi: 10.1038/ncomms5308.
R. K. Bock, A. Chilingarian, M. Gaug, F. Hakl, T. Hengstebeck, M. Jirina, J. Klaschka, E. Kotrč, P. Savicky, S. Towers, A. Vaiciulis, and W. Wittek. Methods for multidimensional event classification: a case study using images from a Cherenkov gamma-ray telescope. Nuclear Instruments and Methods in Physics Research Section A, 516(2–3):511–528, 2004. doi: 10.1016/j.nima.2003.08.157.
R. Dennis Cook and Sanford Weisberg. Residuals and Influence in Regression. Chapman and Hall, New York, 1982.
Jerome H. Friedman. Multivariate adaptive regression splines. The Annals of Statistics, 19(1):1–67, 1991. doi: 10.1214/aos/1176347963.
Paul Geertsema and Helen Lu. AXIL: Exact instance attribution for gradient boosting. arXiv preprint arXiv:2301.01864, 2026. doi: 10.48550/arXiv.2301.01864.
Xiuwen Gong, Dong Yuan, and Wei Bao. Partial label learning via label influence function. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of PMLR, pp. 7665–7678, 2022.
Frank R. Hampel. The influence curve and its role in robust estimation. Journal of the American Statistical Association, 69(346):383–393, 1974. doi: 10.1080/01621459.1974.10482962.
Trevor Hastie, Robert Tibshirani, and Jerome Friedman. The Elements of Statistical Learning. Springer Series in Statistics. Springer, 2 edition, 2009. doi: 10.1007/978-0-387-84858-7.
David C. Hoaglin and Roy E. Welsch. The hat matrix in regression and ANOVA. The American Statistician, 32(1):17–22, 1978. doi: 10.1080/00031305.1978.10479237.
Andrew Ilyas, Sung Min Park, Logan Engstrom, Guillaume Leclerc, and Aleksander Madry. Datamodels: Understanding predictions with data and data with predictions. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of PMLR, pp. 9525–9587, 2022.
Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of PMLR, pp. 1885–1894, 2017.
Shuming Kong, Yanyan Shen, and Linpeng Huang. Resolving training biases via influence-based data relabeling. In International Conference on Learning Representations, 2022.
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. doi: 10.1109/5.726791.
Jacob Mincer and Victor Zarnowitz. The evaluation of economic forecasts. In Jacob Mincer (ed.), Economic Forecasts and Expectations: Analysis of Forecasting Behavior and Performance, pp. 3–46. National Bureau of Economic Research, 1969. URL https://www.nber.org/system/files/chapters/c1214/c1214.pdf.
R. Kelley Pace and Ronald Barry. Sparse spatial autoregressions. Statistics & Probability Letters, 33(3):291–297, 1997. doi: 10.1016/S0167-7152(96)00140-X.
Sung Min Park, Kristian Georgiev, Andrew Ilyas, Guillaume Leclerc, and Aleksander Madry. TRAK: Attributing model behavior at scale. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of PMLR, pp. 27074–27113, 2023.
Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
Daryl Pregibon. Logistic regression diagnostics. The Annals of Statistics, 9(4):705–724, 1981. doi: 10.1214/aos/1176345513.
Garima Pruthi, Frederick Liu, Satyen Kale, and Mukund Sundararajan. Estimating training data influence by tracing gradient descent. In Advances in Neural Information Processing Systems, volume 33, pp. 19920–19930, 2020.
Brianna Richardson, Prasanna Sattigeri, Dennis Wei, Karthikeyan Natesan Ramamurthy, Kush R. Varshney, Amit Dhurandhar, and Juan E. Gilbert. Add-remove-or-relabel: Practitioner-friendly bias mitigation via influential fairness. In Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency, pp. 736–752, 2023. doi: 10.1145/3593013.3594039.
Craig Saunders, Alexander Gammerman, and Volodya Vovk. Ridge regression learning algorithm in dual variables. In Proceedings of the Fifteenth International Conference on Machine Learning, pp. 515–521. Morgan Kaufmann, 1998. URL https://dl.acm.org/doi/10.5555/645527.657464.
Roy T. St. Laurent and R. Dennis Cook. Leverage and superleverage in nonlinear regression. Journal of the American Statistical Association, 87(420):985–990, 1992. doi: 10.1080/01621459.1992.10476253.
Roy T. St. Laurent and R. Dennis Cook. Leverage, local influence and curvature in nonlinear regression. Biometrika, 80(1):99–106, 1993. doi: 10.1093/biomet/80.1.99.
Alexander Warnecke, Lukas Pirch, Christian Wressnegger, and Konrad Rieck. Machine unlearning of features and labels. In Network and Distributed System Security Symposium (NDSS), 2023. doi: 10.14722/ndss.2023.23087.
Bo-Cheng Wei, Yue-Qing Hu, and Wing-Kam Fung. Generalized leverage and its applications. Scandinavian Journal of Statistics, 25(1):25–37, 1998. doi: 10.1111/1467-9469.00086.
Chih-Kuan Yeh, Joon Kim, Ian En-Hsu Yen, and Pradeep K Ravikumar. Representer point selection for explaining deep neural networks. In Advances in Neural Information Processing Systems, volume 31, 2018.
Jieyu Zhang, Haonan Wang, Cheng-Yu Hsieh, and Alexander Ratner. Understanding programmatic weak supervision via source-aware influence function. In Advances in Neural Information Processing Systems, volume 35, pp. 2862–2875, 2022.
A Notation
Table 4 lists the symbols used across sections, including those defined inside a proof. Standard notation, and symbols used only within a single passage, proof or appendix, are defined where they are used.
Influence is the derivative with respect to upweighting training point j in the -normalised loss. Leave-one-out work uses the opposite sign, and the additive- form of Koh & Liang (2017) drops the . The modulation identity holds in those conventions up to the corresponding global sign or scale.
B Direction, scale and bias
Lemma B.1 (Mincer–Zarnowitz decomposition). Let , and be as in Section 5, with both standard deviations positive. Then .
Proof. Let and under , with means and standard deviations , so that and . Then . Dividing by and subtracting from one gives the result.
C Kernel ridge regression
For kernel ridge regression with training Gram matrix , evaluation kernel and ridge parameter , the fit is linear in (Saunders et al., 1998), and is the smoother matrix (Hastie et al., 2009, eq. 5.57) at every . Corollary 3.4 gives with . As with invertible, and , while stays finite. This is interpolation collapse in closed form.
Table 5 uses Friedman #1 (N = 2,000, S = 2,000) with an RBF kernel of bandwidth 1 on the raw features, and K = 100 perturbations drawn as on Friedman in Appendix E. The fit is linear in the targets, so equals the refit shift and s is 1.000 at every . Influence's approaches zero, the score of predicting no change, as .
D Softmax cross-entropy
Proof of Proposition 3.6. Let . For with , the target derivative in class is , so . The loss gradient is , so . Substituting into and using gives . The same steps with in place of give the surrogate version.
With and the single logit this reduces to the logistic case of Corollary 3.4.
Class probabilities sum to one, so only perturbations with give valid targets. The partials ignore this constraint, but (17) is unaffected: because the residuals also satisfy , any part of that is common to all classes drops out of the sum.
Scoring influence on label changes. is one vector per training point, while a label change is a vector in . Scoring influence therefore needs a convention for sign and magnitude. We use , which treats the label change as upweighting training point by , the same scalar mass that enters 's prediction , with no rescaling. Scaling by the norm of the label change instead would multiply influence's by and leave unchanged. Its would stay negative wherever , since for any .
Table 4: Global notation, grouped by topic, with the place where each symbol is defined or first used.
| Symbol | Meaning | Where |
|---|---|---|
| Data and indices | ||
| Numbers of training points, evaluation predictions and parameters | Sec. 3 | |
| Index of an evaluation prediction and of a training point; | Sec. 3 | |
| Training targets ; the observed targets | Sec. 3 | |
| Number of classes; class- entry of a vector target | Sec. 3 | |
| Model, loss and training | ||
| Parameters; the fitted parameters, a stationary point | Sec. 3 | |
| Locally defined solution for targets , with | Sec. 3 | |
| Training objective; the same with sample weights | Sec. 3 | |
| Per-example loss; regulariser | Sec. 3 | |
| Sample weights, at the trained model | Sec. 3 | |
| Hessian of at | Sec. 3 | |
| Model output; | Sec. 3 | |
| Scalar prediction at , such as a logit | Def. 3.1 | |
| Pointwise loss; its partial derivative in and mixed partial in and | Sec. 3 | |
| The functions in the canonical-link form | Cor. 3.4 | |
| Softmax probability of class ; at and | Sec. 3 | |
| Operators | ||
| Target-response map, the predictions as a function of the targets; the same with sample weights | Def. 3.1 | |
| Predictions, | Eq. (8) | |
| Target-response Jacobian at , in ( for vector targets) | Def. 3.2 | |
| Sample-weight influence at , in | Sec. 3 | |
| matrix with rows , where | Proof of Thm. 3.3 | |
| matrix with columns | Proof of Thm. 3.3 | |
| matrix with columns , the per-example loss gradients | Proof of Thm. 3.3 | |
| Output gradient | Proof of Thm. 3.3 | |
| Modulation factor at ; the vector of all | Eq. (10) | |
| Training residual ; the vector of all | Cor. 3.4 | |
| Class- residual | Prop. 3.6 | |
| Surrogate Hessian; and computed with it | Rem. 3.5 | |
| Gauss-Newton Hessian; damping, equal to the L2 penalty | Rem. 3.5 | |
| Smoother matrices, with exactly | Table 1 | |
| Perturbations and evaluation | ||
| Target change (perturbation, if random) | Eq. (7) | |
| True (recorded) class of training point ; destination class of a label change | Cor. 4.3 | |
| Number of perturbations | Sec. 5 | |
| Refit shift of prediction | Def. 5.1 | |
| Per-prediction coefficient of determination | Def. 5.1 | |
| Direction, scale and bias components of | Sec. 5 | |
Table 5: Kernel ridge regression on Friedman #1. Median per-prediction over 2,000 predictions.
| λ | (J) | (Influence) |
|---|---|---|
| +1.000 | +0.131 | |
| +1.000 | -0.062 | |
| +1.000 | -0.002 |
Why influence's direction is weak. Factoring out of (19),
with a probability-weighted average of the other-class columns. Write for the true-class term and for the destination term. Then 's shift is and influence's is , up to the sign convention above. Influence carries the true-class term but not the destination term . Treating as roughly constant across perturbations, and with uncorrelated with , as a random destination class makes plausible, the correlation between influence and has magnitude under either sign, where and are the standard deviations of and over the perturbations. It is well below one whenever the destination term varies as much as the true-class term. On MNIST, influence's against the refit, which tracks, is 0.37 (Table 2).
E Protocol
Tabular networks. Friedman #1, MAGIC Gamma and HIGGS use a one-hidden-layer tanh network of width 64 (Friedman, MAGIC) or 128 (HIGGS). The smooth activation makes the loss twice continuously differentiable in , as the theory requires. Training is full-batch Adam (, up to 4,000 steps on Friedman and MAGIC and 2,000 on HIGGS, with early exit once the training loss falls below ) followed by L-BFGS with strong-Wolfe line search until the stopping rule below is met. The objective includes the penalty with . On Friedman the per-example loss is , twice the canonical form , so there and . This leaves unchanged.
Friedman #1 has 10 features drawn uniformly on [0, 1] and Gaussian noise with standard deviation 0.5, and each seed draws a new sample. MAGIC uses the 19,020 rows of the OpenML copy, and each seed draws a new stratified split with a quarter of the rows held out for evaluation. The HIGGS split is deterministic in file order. The first rows of the UCI file form the training set and the next the evaluation set. MAGIC and HIGGS features are standardised with training-set statistics. The seed also sets the initialisation and the perturbations. On MAGIC and HIGGS the prediction is the logit of evaluation point , so all shifts are in logits.
Friedman and MAGIC run in float64 on the CPU, HIGGS in float64 on the GPU. Both operators use the exact Hessian of the regularised training objective (23). With (Friedman, MAGIC) or 3,841 (HIGGS) parameters, is formed as a dense matrix from Hessian-vector products, checked to be positive definite, and factorised by Cholesky, so every solve is direct. Influence is computed from its definition, with the loss gradients and its own solves, so it agrees with up to solver error. For comparison, both operators are also computed with the damped Gauss–Newton Hessian, in float32 by conjugate gradients to a relative solve error of . Table 6 gives the size of each run and its fit and solver diagnostics.
Gauss–Newton Hessian. can be indefinite for nonlinear models, and a common surrogate replaces the data term by the Gauss–Newton Hessian
Table 6: Tabular runs: sizes, stopping rules and solver checks, pooled over seeds. is the change in the training-loss gradient caused by one perturbation. The identity row is the relative error of the canonical-link identity on the computed loss gradients. The last three rows use the damped Gauss–Newton Hessian in place of .
| Friedman #1 | MAGIC Gamma | HIGGS | |
|---|---|---|---|
| Training points | |||
| Evaluation predictions | |||
| Parameters | |||
| Perturbations per seed | |||
| Seeds | |||
| Stopping tolerance on the gradient norm, smallest | |||
| Base fits: largest gradient norm | |||
| Refits at or above the tolerance | |||
| Refits: largest gradient norm | |||
| Exact Hessian: smallest eigenvalue | |||
| Direct solves: largest relative error | |||
| , largest | |||
| Gauss–Newton CG iterations, largest | |||
| , Gauss–Newton Hessian: | |||
| Influence, Gauss–Newton Hessian: |
with for squared error in the canonical form ( on Friedman) and for logistic loss. For softmax cross-entropy the scalar becomes the softmax Jacobian and becomes the Jacobian of the logits. Adding the penalty Hessian gives . For linear-in-parameters squared error this is the exact . In general, for a canonical-link loss with the L2 penalty, the exact Hessian is
so Gauss–Newton drops the residual-weighted curvature of the model output. For softmax cross-entropy the last term becomes . The dropped term is small when the residuals or the output curvature are small, but stationarity alone does not control it.
Tabular perturbations. Each perturbation moves one training target, , with uniform on . On Friedman , with sign uniform on , and the standard deviation of the training targets. On MAGIC and HIGGS the soft-target perturbation is with , which keeps in . This ties the sign of to the training point's class, so it is not the symmetric distribution of Corollary 4.2. Washout still applies because logistic residuals have class-dependent signs ( for positives, for negatives). Influence's near zero on both datasets (Table 2) confirms this.
Refits. Each perturbed problem is refit by warm-started L-BFGS from with the same L2 penalty and the same stopping rule, with an iteration cap. All estimators are scored against the same refits.
Stopping rule. A perturbation changes the training-loss gradient at by , which shrinks as . A fit that stops with a gradient norm of that size leaves a refit error as large as the response being measured. Every fit, base or refit, therefore runs until the gradient norm of the full objective is below
with the median over the perturbations of the seed (on California Housing, over its four target changes). On Friedman, MAGIC, MNIST and California Housing ; on HIGGS, where , it is smaller.
Tables 6 and 7 give the largest gradient norms and the largest remaining gradient of a refit as a fraction of its own . Both also count the refits that stop at the iteration cap above . Because is set from the median, a perturbation whose is far below the median, from a small or a training point with a small output gradient, can stop at a gradient of the same order as its own . This happens on MAGIC and HIGGS (Table 6). Such a refit meets the same absolute tolerance as every other refit, and its shift is correspondingly small, so it adds little to the variance of refit shifts in the denominator of . Refit error that is unrelated to 's own error lowers 's measured , so 's of 0.99 and above on these datasets also bounds how much the refit error can matter.
MNIST. Images are scaled to [0,1] and flattened, and pixels with zero variance in the training set are dropped, which leaves inputs (Table 7). The network is Linear, trained in float64 on the GPU by full-batch Adam (1,200 epochs, ), then L-BFGS until the stopping rule is met, with the same L2 penalty . Refits are warm-started L-BFGS on all parameters to the same tolerance. A refit takes 6 to 34 seconds, averaged over the perturbations of a seed, so each seed uses perturbations.
Both operators use the exact Hessian of the regularised training objective (23), which differs from by the residual-weighted curvature term. Each solve uses MINRES, since need not be positive definite for a nonconvex network, and is checked to reach a relative solve error below . Table 7 gives the largest such error and the smallest over the solutions for , which is positive. Influence is computed from its definition, with right-hand side built from the loss gradient and its own MINRES solve, and the identity is checked on the right-hand side. For comparison, is also computed with the Gauss–Newton Hessian, by conjugate gradients in float64 to a relative solve error of , on the same perturbations.
Table 7: MNIST: sizes, stopping tolerances and solver checks, pooled over the five seeds. is the change in the training-loss gradient caused by the label change, and is the exact-Hessian solution for one label change. The last row gives 's with the Gauss–Newton Hessian.
| Training points N | 2,000 |
|---|---|
| Evaluation predictions S | 2,000 |
| Retained pixels d | 629–640 |
| Parameters P | 40,970–41,674 |
| Perturbations K per seed | 20 |
| Seeds | 5 |
| Test accuracy | 0.906–0.919 |
| Training points: median | 0.920–0.931 |
| Base fits: largest gradient norm | |
| Refits at or above | 1 of 100 |
| Refits: largest gradient norm / | |
| Gauss–Newton CG iterations, largest | 86 |
| MINRES iterations, median per seed | 626–875 |
| MINRES relative solve error, largest | |
| , largest | |
| J, Gauss–Newton Hessian: |
F California Housing
We use the scikit-learn copy of California Housing (Pace & Barry, 1997), with 20,640 rows and 8 features. The target is the median house value in units of 500,001. A random quarter of the rows are held out for evaluation (seed 0). Features are standardised with training-set statistics, and the target keeps its units. The network, loss, penalty, training and refit rules are those of Friedman (Appendix E), in float64 on the CPU.
Both operators use the exact Hessian, formed and factorised as on Friedman (). For each increase , is one direct solve with right-hand side . Influence is computed from its definition, with right-hand side built from the loss gradients and its own solve. Each target change is refit from . , , and are those of (20) and (21), with the averages taken over the evaluation predictions of one target change instead of over perturbations at one prediction.
G Compute
is never formed. A column costs one Hessian solve, and a row costs one solve plus one Jacobian-vector product over the training set. On the tabular data and California Housing, the solve uses the Cholesky factor of the dense exact Hessian, which is formed once per fitted model from Hessian-vector products over the training set (Appendix E). On MNIST, where is about 41,000, the solve uses MINRES against Hessian-vector products, and is never formed. On HIGGS (, ), one row , which is one prediction's sensitivity to every training target, takes between 0.07 and 0.14 seconds (median 0.07) on one RTX 3090 across 30 rows, after a one-time setup of under five minutes that forms and factorises (last lines of Table 8). Computing the same row by refitting would take refits, one per training target.
All experiments run on one workstation with an Intel Core i9-14900K (PyTorch capped at four threads), 192 GB of RAM and an NVIDIA RTX 3090 (24 GB, CUDA 12.6). Friedman and MAGIC run on the CPU, and HIGGS and MNIST on the GPU. Base fits and refits run in float64, which the refits need to resolve small target changes. and influence with the exact Hessian also run in float64, and the Gauss–Newton comparison runs in float32 on the tabular data and in float64 on MNIST. The refits dominate the wall-clock in Table 8. The HIGGS row timing above comes from a separate run that times 10 rows on each of three trained HIGGS models.
Table 8: Wall-clock per seed in seconds, mean SD over five seeds. The last two lines time single rows of on HIGGS and the one-time setup before them. Base fit is one training run. columns covers forming and factorising the exact Hessian and the solves for the sampled columns. On MNIST it covers the MINRES solves for . refits covers the refits used as ground truth.
| Dataset | Base fit (s) | columns (s) | refits (s) | |
|---|---|---|---|---|
| Friedman #1 (CPU) | 2,000 | |||
| MAGIC Gamma (CPU) | 14,265 | |||
| HIGGS (GPU) | ||||
| MNIST (GPU) | 2,000 |
HIGGS (GPU), one row of : median 0.07 s, range 0.07–0.14 s, 30 rows
HIGGS (GPU), one-time setup per model: median 271.11 s, range 263.72–271.34 s