When a trained network is unsure about a test input, the reason matters. The input might be inherently ambiguous: overlapping classes, noisy labels, an honest coin flip. That is aleatoric uncertainty, and more data will not remove it. Or the model might have seen too few relevant examples: that is epistemic uncertainty, and more data will reduce it. Existing tools answer only half of the useful question. Uncertainty-decomposition methods split a test prediction's uncertainty into these two parts but say nothing about which training examples caused each part. Training-data attribution methods, which trace a prediction back to the training points responsible for it, attribute the test loss and treat all of its sources alike. We propose to attribute each uncertainty component separately. The epistemic part should be traced to the training points whose absence would make the model less certain, and the aleatoric part to the training points whose labels make the model think the input is inherently ambiguous.
The core observation is simple and, as far as the file shows, unused. In a linearized model, removing a training point raises epistemic variance at a test input by an amount that depends only on how strongly the two inputs share gradient directions, and not at all on the removed point's label or residual. Standard influence scores are proportional to the training point's residual. They are therefore dominated by mislabeled and hard examples, which are aleatoric drivers, precisely the points that should not rank highly when one asks which data the model's confidence rests on. A label-free, single-model score derived from a rank-one update of the linearized posterior should separate the two, and this can be checked against retraining.
Core Claim
Work in the regime used by TRAK: Attributing Model Behavior at Scale, which treats the trained network as a linear model on randomly projected per-example gradient features. Let $\phi_z$ be the projected output-Jacobian feature of a training example $z$. Let $\Lambda_z$ be its output-space curvature weight; in classification this is the softmax covariance $\mathrm{diag}(p)-pp^\top$. Let $G=\sum_i \phi_i\Lambda_i\phi_i^\top+\delta I$ be the damped Gauss–Newton matrix, which is positive semi-definite even where the true Hessian is indefinite. Under the linearized Laplace view, the posterior covariance of the weights is $G^{-1}$. Removing $z$ downdates it by the Sherman–Morrison formula. The epistemic variance of the prediction at test input $x$ then grows by
$$ E(z\to x)=\mathrm{tr}\!\left[\phi_x^\top G^{-1}\phi_z\,\Lambda_z^{1/2}\,(I-\Lambda_z^{1/2}\phi_z^\top G^{-1}\phi_z\Lambda_z^{1/2})^{-1}\,\Lambda_z^{1/2}\phi_z^\top G^{-1}\phi_x\right], $$
which reduces to $\sigma^2(\phi_x^\top G^{-1}\phi_z)^2/(1-h_z)$ in scalar Gaussian regression, with $h_z$ the leverage of $z$. Compare the classical influence on test loss, $-(r_x\phi_x)^\top G^{-1}(r_z\phi_z)$, where $r_z$ is the residual of $z$. That score scales linearly with the training point's error. $E$ is quadratic in the cross-leverage, contains no residual, and is non-negative.
The aleatoric component is handled differently, and here we reuse existing machinery. We target the expected per-model conditional entropy (the "expected entropy" half of the mutual-information decomposition used by BALD), or, in regression, a fitted residual-scale model like the one in CLEAR. We attribute this target with ordinary residual-weighted linearized influence. The claim to be tested is that these two scores pick out different training points: $E$ selects coverage anchors and the aleatoric score selects noisy or ambiguous labels. Each should predict the retraining-measured change in its own component better than any loss-targeted attribution method does.
Relation to Prior Work
Two papers come closest, and both supply pieces we reuse. Daunce shows that in linear regimes influence is tied to bootstrap variance. It attributes by the covariance of training and test losses across $K$ LoRA models fine-tuned on random subsets. It attributes total loss fluctuation and never separates aleatoric from epistemic causes, so noisy high-loss points can inflate its scores. We adopt its random-subset perturbation design as a baseline, and as the ground-truth generator. Distributional Training Data Attribution shows that influence functions describe shifts in the distribution of models produced by stochastic training. It also distinguishes mean-influential from variance-influential examples. Our epistemic score is a variance-influence on the predictive distribution, and our aleatoric score is a mean-influence on per-model entropy. d-TDA never asks whether its variance-influential points are label-noise carriers or coverage anchors, and that question is exactly what our label-flip test answers. Frequentist Uncertainty in RNNs via Blockwise Influence Functions runs the influence-to-uncertainty connection forward to build prediction intervals. It reaches 94.4% coverage against a 90% target on MIMIC-III, where dropout gives 49.2%. Its intervals mix the two uncertainty sources and are never attributed back to data. We invert its direction.
Two lines of work constrain the design. Rethinking Aleatoric and Epistemic Uncertainty argues that the information-theoretic split is conceptually overloaded and that a model's internal "aleatoric" estimate can absorb parameter error when data is scarce. We therefore define our targets operationally, as ensemble mutual information and expected entropy, and do not claim they are the true environmental quantities. We also test explicitly whether label flips, which change only data dispersion, move the measured epistemic target. DEUP shows that disagreement-based epistemic estimates miss misspecification, since a misspecified model can be confidently wrong. Our score inherits this blind spot, because it attributes disagreement-based epistemic variance. We state that scope rather than claim to attribute generalization error. Finally, On the Accuracy of Newton Step and Influence Function Data Attributions and Better Training Data Attribution via Better Inverse Hessian-Vector Products supply the solver choices and the accuracy theory for the $G^{-1}$ products.
Research Program
The work proceeds in three stages. The first stage checks the theory where it is exact. On small regression problems from the CLEAR benchmark suite (Airfoil, Energy Efficiency, Ames Housing) and UCI Concrete, we use a Bayesian linear model and then small MLPs. We verify that $E$ matches the measured change in ensemble variance after removing points and groups. We also derive the classification form with the softmax curvature weight and confirm it on logistic regression. That is where dattri reports classical influence achieving leave-one-out correlation of about 0.88.
The second stage moves to non-convex networks. We implement $E$ inside dattri on top of TRAK's projected features, ensembled over a handful of checkpoints as TRAK does. We use damping to handle the Gauss–Newton matrix's spiked spectrum. We study where the local downdate breaks down: as the removed group grows, retraining may land in a different basin. That is the known local-versus-global failure of influence functions, and d-TDA's distributional framing predicts that averaging over seeds partly repairs it.
The third stage tests usefulness on two diagnostic tasks. The aleatoric score should find injected mislabeled training points. The epistemic score should find the training subpopulation whose removal causes a held-out region to become uncertain. The point of the second task is to separate "collect more of this" from "relabel this."
Baselines
The naive reference points are random ranking and nearest neighbours in penultimate-layer feature space. The nearest-neighbour ranking is the honest "do nothing clever" answer to the question of which training points support confidence at $x$, and we expect it to be competitive on the epistemic target.
The strongest existing loss-targeted method is TRAK, run through dattri with the same projection dimension and checkpoint count as our score. We run it in two ways: on the test loss as published, and with its target swapped to ensemble mutual information computed over its checkpoints.
The strongest perturbation-based competitor is Daunce, which on CIFAR-10 is reported to reach a Linear Datamodeling Score (LDS) of 0.130, "nearly doubling the performance of TRAK and LoGra." That figure is for the loss target. We also run a decomposed variant: the covariance of training loss with test mutual information, and separately with test expected entropy, across the same $K$ subset models. This variant is the most serious threat. For fairness, every method receives the same training set, architecture, and checkpoints. Ensemble-based methods are compared at matched GPU-hours, with $K$ chosen so that their cost equals the single-model projection cost of our score, and also at their published $K$. Each method gets the same hyperparameter search budget on a held-out split.
The decisive ablation keeps our formula fixed but replaces the label-free Jacobian feature $\phi_z$ with the residual-weighted loss gradient $r_z\phi_z$. A second ablation replaces the squared cross-leverage with the linear one. If the residual-weighted variant does as well on the epistemic target, the central claim is wrong.
To beat the baselines, our epistemic score must achieve a decomposed LDS higher than both TRAK and decomposed Daunce at matched compute, on the epistemic target, by a margin outside seed-to-seed spread. It must also beat Mahalanobis-free nearest neighbours. No reported result was found on Lacuna for any method attributing decomposed uncertainty, so all numbers on the new targets will be produced in this study.
Why not just…?
Why not just plug mutual information into TRAK or a standard influence function as the target? At a single checkpoint, mutual information is identically zero, so its gradient carries no signal. Across checkpoints it becomes a function of the model ensemble rather than of one parameter vector, which is exactly the distributional object d-TDA describes. Even when computed that way, the score still multiplies by the residual-weighted gradient of each training point. Noisy labels should therefore leak into the epistemic ranking. We run this baseline directly, and the label-flip test below shows whether the leakage happens.
Why not just run Daunce's loss covariance against the decomposed targets? This is a real threat. It needs no Hessian, and in linear models it estimates the same quantity we derive. Its cost is $K$ retrained or fine-tuned models, and in a non-convex network its estimate mixes subset effects with seed noise unless $K$ is large. Our score needs one trained model plus projected features. The matched-compute comparison decides the question. If decomposed Daunce matches us at equal cost, we will report that the useful contribution is the decomposition of the target, not the estimator.
Why not just take nearest neighbours in feature space? Our cross-leverage $\phi_x^\top G^{-1}\phi_z$ is a curvature-weighted similarity, so in an isotropic feature space it reduces to something like nearest neighbours. The two should come apart when the Gauss–Newton spectrum is spiked, which the dattri and Hessian-stability literature say is typical in deep networks. They should also come apart when many near-duplicate neighbours make any single one redundant, which only the $G^{-1}$ downdate captures. If nearest neighbours matches us on CIFAR-10, that is a publishable negative result and we will say so.
Why not just use BALD or CLEAR and skip attribution entirely? Both tell you where the model is uncertain and how large the two components are. CLEAR narrows intervals by 28.3% relative to aleatoric-only baselines on its 17 datasets. Neither tells you which training data to collect more of or to relabel. The diagnostic experiments test whether attribution changes that decision relative to acting on forward uncertainty alone.
Proposed Experiments
The ground truth is a decomposed version of the Linear Datamodeling Score. We train models on many random 50% subsets of the training data. On CIFAR-10 with ResNet-9, this means 100 subsets with 5 seeds each. On the regression suites it means 1,000 subsets with 10 seeds each. For every test input we compute the ensemble mutual information and expected entropy under each subset. We then report the Spearman correlation between the change predicted by each attribution method, summed over the subset, and the measured change in each component. CIFAR-10 carries injected symmetric label noise (20%) and one deliberately undersampled class-region, so that both uncertainty sources are present and their training-side causes are known.
The first decisive check is label flipping. Re-randomizing the labels of a set of training points should change the measured aleatoric target near those points much more than the epistemic target. By construction it leaves $E$ unchanged. If retraining shows that the epistemic target moves substantially under label flips, the decomposition premise fails in non-convex networks and we stop claiming separability.
The second check is a sanity reference in the regime where the theory should be near-exact. d-TDA reports correlation between predicted and actual distributional shift reaching roughly 90% as seeds increase on UCI Concrete, and our epistemic score should reach comparable agreement there before we trust it on CIFAR-10.
The third check is diagnostic and applies to the noisy-label CIFAR-10 setup. Recall of injected mislabeled points should be higher under the aleatoric score than under the epistemic score, and the reverse should hold for the removed subpopulation.
The final check is interventional. Adding fresh samples similar to the top epistemic-scored points should reduce held-out mutual information more than adding samples similar to the top Daunce- or TRAK-scored points, at an equal acquisition budget.
References
- TRAK: Attributing Model Behavior at Scale
- CLEAR: Calibrated Learning for Epistemic and Aleatoric Risk
- Daunce: Data Attribution through Uncertainty Estimation
- Distributional Training Data Attribution: What do Influence Functions Sample?
- Frequentist Uncertainty in Recurrent Neural Networks via Blockwise Influence Functions
- Rethinking Aleatoric and Epistemic Uncertainty
- DEUP: Direct Epistemic Uncertainty Prediction
- On the Accuracy of Newton Step and Influence Function Data Attributions
- Better Training Data Attribution via Better Inverse Hessian-Vector Products
- dattri: A Library for Efficient Data Attribution