arXiv:2610.27689cs.LGOct 2026

Manuscript Offprint

arXiv:2610.27689

Influence Is the Target-Response Jacobian Times Residuals

Paul Geertsema, Simon Geertsema

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce the target-response Jacobian J=[∂y^i/∂yj]J = [\partial \hat{y}_i / \partial y_j], which measures how model predictions respond to changes in individual training targets. JJ 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 I\mathcal{I} and JJ follow from the same implicit differentiation argument and differ only by a per-example multiplier: for pointwise losses, I=Jdiag⁡(m)\mathcal{I} = J \operatorname{diag}(m) exactly at any stationary point with an invertible Hessian. For canonical-link losses (squared error, logistic, Poisson) the multiplier is the training residual, I=Jdiag⁡(r)\mathcal{I} = J \operatorname{diag}(r), and softmax cross-entropy obeys a multiclass version. The identity predicts three ways in which influence fails when used in place of JJ: 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 R2R^2 across target perturbations, with no rescaling. On tanh networks trained with squared error (Friedman #1) and logistic loss (MAGIC, HIGGS), with NN from 2,000 to 10610^6, JJ reaches R2R^2 between 0.99 and 1.00, whereas influence’s R2R^2 is negative on every dataset. On an MNIST softmax classifier, influence’s R2R^2 is again negative, while JJ reaches 0.92. On HIGGS, one row of JJ, holding all 10610^6 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 10610^6 refits.

1 Introduction

This paper introduces the target-response Jacobian

J=[∂y^i/∂yj],(1)J=\left[\partial\hat{y}_{i}/\partial y_{j}\right], \tag{1}

which measures how a model's predictions respond to changes in individual training targets without retraining. JJ complements existing training-data attribution (TDA) methods, which measure how a prediction depends on the weight given to each training example in the loss. JJ measures how it depends on the training targets themselves, which no existing method does for general differentiable learners. We show that JJ can be computed matrix-free at scale. For SS predictions and NN training points, JJ is an S×NS \times N matrix whose row ii gives one prediction's sensitivity to every training target and whose column jj gives the effect of one training target on every prediction. At a fitted model, implicit differentiation of the stationarity condition splits JJ into three standard factors,

J=G⏟predictions(−H−1)⏟parametersC⏟loss gradient,(2)J=\underbrace{G}_{\mathrm{p r e d i c t i o n s}}\quad\underbrace{(-H^{-1})}_{\mathrm{p a r a m e t e r s}}\quad\underbrace{C}_{\mathrm{l o s s~g r a d i e n t}}, \tag{2}

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 yjy_j. Each factor is available matrix-free in any model trained by gradient methods: G costs a Jacobian-vector product, H−1H^{-1} 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 Δy\Delta y 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 I=−GH−1B\mathcal{I} = -GH^{-1}B. 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, 1^{1} sample-weight influence equals J times a diagonal matrix of training residuals (the canonical-link identity),

I=Jdiag⁡(r),(3)\mathcal{I}=J\operatorname{d i a g}(r), \tag{3}

exactly, at any stationary point of the training objective with an invertible Hessian (Corollary 3.4). 2^{2} It follows that influence cannot stand in for J. As a model fits its training data more closely, the residuals rjr_{j} 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,

I=Jdiag⁡(m),mj=ℓf/ℓfy,(4)\mathcal{I}=J\operatorname{d i a g}(m),\qquad m_{j}=\ell_{f}/\ell_{f y}, \tag{4}

where ℓf\ell_f and ℓfy\ell_{fy} 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 mjm_j reduces to the residual rjr_j, which recovers I=Jdiag⁡(r)\mathcal{I} = J \operatorname{diag}(r). Softmax cross-entropy obeys a multiclass version with one residual per class (Proposition 3.6). In terms of the factorisation (2), column jj of BB is mjm_j times column jj of CC. For canonical-link losses, JJ is therefore influence with the residual factor removed. Column jj of CC is then −1/N-1/N times the gradient of the model output at xjx_j, so if an influence implementation uses these scaled output gradients in place of the per-example loss gradients, it computes JJ. 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.

1^{1}A canonical-link loss has the form ℓ(f,y)=h(f)−yf+g(y)\ell(f,y)=h(f)-yf+g(y), with ff the model output. Squared error, logistic loss on logits and Poisson loss on log-rates are the common cases (Corollary 3.4).

2^{2}Read in terms of targets, the identity says that upweighting training point j by ϵ\epsilon has, to first order, the same effect as moving its target by ϵrj\epsilon r_j, 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 diag(r)Δy\text{diag}(r)\Delta\mathbf{y} rather than for Δy\Delta\mathbf{y}.

Figure

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 JΔyJ\Delta y (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 R2R^2 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 Ri2R_i^2, 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, R2R^2 is computed across the instances of a dataset; here, Ri2R_i^2 is computed across random target perturbations applied at a single prediction ii (Section 5). Its Mincer–Zarnowitz decomposition (Mincer & Zarnowitz, 1969) into direction ρi\rho_i, scale αi\alpha_i and bias βi\beta_i then makes each of the three failure modes visible. Interpolation collapse lowers αi\alpha_i; direction washout drives ρi\rho_i to zero; and true-class collapse lowers both. It lowers ρi\rho_i because influence points towards the training point’s own true class whichever class its label is moved to, and it shrinks αi\alpha_i 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, N=2,000N = 2,000) and with logistic loss (MAGIC, N=14,265N = 14,265, and HIGGS, N=106N = 10^6), JJ attains a per-prediction R2R^2 between 0.99 and 1.00, with direction and scale near one, whereas influence's R2R^2 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 ρ\rho between -0.08 and 0.03, and on the two logistic datasets its scale is shrunk ( α\alpha of 0.30 on MAGIC and 0.47 on HIGGS).

On a softmax classifier for MNIST, with N=2,000N = 2,000 as on Friedman, influence's R2R^2 is negative (−0.20)(-0.20), with a weak direction (ρ of −0.37)(\rho \text{ of } -0.37) and a shrunk scale (α of 0.10)(\alpha \text{ of } 0.10), as true-class collapse predicts, while JJ reaches R2R^2 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%, J′J's R2R^2 lies between 0.98 and 1.00, while influence’s is at most 0.27 (Section 7, Table 3).

The implementation never forms JJ. On HIGGS, with N=106N = 10^6 training points, one row of JJ, 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 10610^6 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
ObjectIdentitySourceLiterature
Linear regressiony^=KOLSy\hat{\mathbf{y}}=K_{\mathrm{OLS}}\mathbf{y} exactlyHoaglin & Welsch (1978)Statistics
Kernel ridge regressiony^=KKRRy\hat{\mathbf{y}}=K_{\mathrm{KRR}}\mathbf{y} exactlySaunders et al. (1998)Smoothers
L2 gradient boosting, fixed treesy^=KAXILy\hat{\mathbf{y}}=K_{\mathrm{AXIL}}\mathbf{y} exactlyGeertsema & Lu (2026)XAI
Target-response Jacobiany^≈Jy+a⋆ locally\hat{\mathbf{y}}\approx J\mathbf{y}+a^\star\text{ locally}Eq. (8)TDA
Panel B. Sensitivity to sample weights
Sample-weight influence I\mathcal{I}∂y^i/∂wj at w=1\partial \hat{y}_i/\partial w_j\text{ at }\mathbf{w}=\mathbf{1}Koh & Liang (2017)TDA
Canonical TRAKprojected, ensembled ∂y^i/∂wj\partial \hat{y}_i/\partial w_jPark et al. (2023)TDA
Modulation identityI=Jdiag⁡(m)\mathcal{I}=J\operatorname{diag}(m)Thm. 3.3TDA

References (41)