Tracing sources of epistemic uncertainty in deep learning predictions: homo- and hetero-scedastic linearized estimators

arXiv cs.LG Papers

Summary

The paper adapts classical statistical estimators to deep learning for tracing epistemic uncertainty into aleatoric and data-scarcity sources, leveraging approximate Fisher Information Matrices for scalability.

arXiv:2608.07630v1 Announce Type: new Abstract: We adapt two classical statistical estimators for quantifying uncertainty to modern deep learning, in order to provide clearer insights into uncertainty attributable to two sources : aleatoric uncertainty, or locally scarce data. Our approach leverages recent advances in approximate Fisher Information Matrices, to enable scaling to actual architectures. Experimental results demonstrate how each test points is differentially impacted by both sources, highlighting the practical utility of our estimators in improving the robustness of real-world applications.
Original Article
View Cached Full Text

Cached at: 08/11/26, 08:05 AM

# Tracing sources of epistemic uncertainty in deep learning predictions: homo- and hetero-scedastic linearized estimators
Source: [https://arxiv.org/html/2608.07630](https://arxiv.org/html/2608.07630)
###### Abstract

We adapt two classical statistical estimators for quantifying uncertainty to modern deep learning, in order to provide clearer insights into uncertainty attributable to two sources : aleatoric uncertainty, or locally scarce data\. Our approach leverages recent advances in approximate Fisher Information Matrices, to enable scaling to actual architectures\. Experimental results demonstrate how each test points is differentially impacted by both sources, highlighting the practical utility of our estimators in improving the robustness of real\-world applications\.

## 1Introduction

AI systems deployed in high\-stakes real\-world applications require accurately assessing uncertainty associated with a given prediction, for example to fall back to human monitoring if too uncertain\. In supervised machine learning, this uncertainty arises from the fact that we observe a target function that we want to estimate only through a given finite training sample \(the training dataset\)\. If we suppose this process to be noisy \(some labels are unreliable\), and the function to estimate to be complex enough \(requiring generalization to unseen test instances\), then the learning problem is misspecified, so there are test instances where we can confidently give a prediction, and others where our estimation is merely unreliable\. The key question is then,*how to predict the uncertainty associated to a prediction on a given test instance*\.

More formally, we suppose that there is a true underlying modelp​\(x,y\)p\\left\(x,y\\right\)on an instance space𝒳\\mathcal\{X\}and response space𝒴\\mathcal\{Y\}, that we observe through a finite training dataset𝒟n:=\{\(𝒙i,yi\)\}1≤i≤n\\mathcal\{D\}\_\{n\}:=\\left\\\{\\left\(\\bm\{x\}\_\{i\},y\_\{i\}\\right\)\\right\\\}\_\{1\\leq i\\leq n\}, and we want to estimatep​\(y\|xtest\)p\\left\(y\|x\_\{\\text\{test\}\}\\right\)for future, held\-out, test pointsxtestx\_\{\\text\{test\}\}\. Here, uncertainty comes both from the randomnessp​\(y\|x\)p\\left\(y\|x\\right\)of the process that we are trying to estimate \(termed aleatoric uncertainty\), as well as uncertainty resulting from our*finite\-sample knowledge*of this process, both contributing to increasing the epistemic uncertainty of the learned model\(Hüllermeier and Waegeman[2021](https://arxiv.org/html/2608.07630#bib.bib91)\)\.

![Refer to caption](https://arxiv.org/html/2608.07630v1/x1.png)Figure 1:Regression on the California Housing dataset\. The circle size corresponds to the prediction error of a MLP\. Districts are colored in blue if the model isHeC3\-uncertain \(regions with higher aleatoric uncertainty\) or in red ifHo\-uncertain \(regions far from training data\)\.Focusing on epistemic uncertainty, we seek to identify contributions from 2 different sources to the variance of the prediction for fixed test points: the training dataset is a finite sample of the true generating process, which cannot comprehensively capture its structure in general: instances\{𝒙i\}1≤i≤n\\left\\\{\\bm\{x\}\_\{i\}\\right\\\}\_\{1\\leq i\\leq n\}only partially cover the instance space, and responses\{yi\}1≤i≤n\\left\\\{y\_\{i\}\\right\\\}\_\{1\\leq i\\leq n\}are a single realization of a random process\. A machine learning algorithm trained on this dataset inherits this limited knowledge, which translates into uncertainty in future test predictions\. Ultimately, we would like to be able to answer the question:*how much epistemic uncertainty is there for given test points and what is it attributable to?*In particular, if we want to reduce it, should we preferably*collect more training points in scarce regions*or should we*reduce aleatoric uncertainty*\(e\.g\., by adding informative features, or reducing label noise\) ?

Our perspective is inspired by insights from linear regression, which is well\-studied with theoretical results in textbooks in statistics, that we apply to deep learning using the \(empirical\) tangent kernel/features framework\(Jacotet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib27); Fortet al\.[2020](https://arxiv.org/html/2608.07630#bib.bib43); Grosse[2021](https://arxiv.org/html/2608.07630#bib.bib97)\)\. The originality of our approach is that we not only seek a method to more accurately estimate uncertainty in general, but rather show that the proposed estimators account for different sources of uncertainty\. Ourcontributionsare:

- •a frequentist perspective on the family of Laplace uncertainty estimators as local solution to a linearized model of the training dynamics of deep networks, allowing us to derive a ridge estimator, and a sandwich estimator in deep learning ;
- •algorithmsHo\-EKFAC andHeC3\-EKFAC that enable to scale estimators to actual deep architectures ;
- •experiments evaluating the proposed estimators, characterizing the different types of uncertainty that they measure on toy models and actual tasks\.

### 1\.1Related works

This work draws on textbook statistical concepts that have not yet been widely adopted in modern deep learning practices\. We argue that this is partly due to the initial misconception that these concepts would be impractical to scale to modern architectures with a large number of parameters\. The closest works that we are aware of areRivals and Personnaz \([2000](https://arxiv.org/html/2608.07630#bib.bib64)\)andTibshirani \([1996](https://arxiv.org/html/2608.07630#bib.bib93)\)who give confidence intervals estimators for non\-linear models by linearization\. Two main differences are that they were limited to the smaller architectures that were used at that time, and they did not use their tools to explicitly disentangle sources of uncertainty\. More recently, delta estimators have also been shown to scale to million\-parameter architectures and give useful estimators even using crude diagonal approximations\(Schmittet al\.[2025](https://arxiv.org/html/2608.07630#bib.bib96)\), or the Lanczos iterative method for estimating the top spectrum\(Nilsenet al\.[2022](https://arxiv.org/html/2608.07630#bib.bib98)\)of the Fisher Information Matrix, an object central to most variance estimators\.

From a practical standpoint, these estimators require computing inverse Hessian or inverse Fisher Information Matrix of deep networks, which can be found in influence functions\(Koh and Liang[2017](https://arxiv.org/html/2608.07630#bib.bib76); Grosseet al\.[2023](https://arxiv.org/html/2608.07630#bib.bib37)\), efficient optimization\(Amari[1998](https://arxiv.org/html/2608.07630#bib.bib94)\), and continual learning\(Liuet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib95)\)to cite a few\. All of these works face the same scaling challenge for over\-parametrized methods that they handle by resorting to approximate methods\(Schraudolph[2002](https://arxiv.org/html/2608.07630#bib.bib49); Martens and Grosse[2015](https://arxiv.org/html/2608.07630#bib.bib29); Georgeet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib28); Wanget al\.[2025](https://arxiv.org/html/2608.07630#bib.bib92)\)\.

Quantifying epistemic uncertainty in deep learning is active research, with popular methods such as ensembles of deep networks trained using different bootstrapped training subsets\(Breiman[1996](https://arxiv.org/html/2608.07630#bib.bib63)\), from different initial parameters\(Lakshminarayananet al\.[2017](https://arxiv.org/html/2608.07630#bib.bib78)\), using Monte\-Carlo estimates based on successive randomly dropped\-out neurons\(Gal and Ghahramani[2016](https://arxiv.org/html/2608.07630#bib.bib99)\), or inspired by Bayesian methods\(Ritteret al\.[2018](https://arxiv.org/html/2608.07630#bib.bib100); Immeret al\.[2021](https://arxiv.org/html/2608.07630#bib.bib102)\)\. In contrast, our approach is based on a single trained model, and it is able to disentangle uncertainty attributable to noise, from uncertainty attributable to the finite size of the training set\.

## 2Background

Letp​\(x,y\)p\\left\(x,y\\right\)represent a true unknown process on an instance space𝒳\\mathcal\{X\}and response space𝒴\\mathcal\{Y\}, that we observe through a finite training dataset𝒟n:=\{\(𝒙i,yi\)\}1≤i≤n\\mathcal\{D\}\_\{n\}:=\\left\\\{\\left\(\\bm\{x\}\_\{i\},y\_\{i\}\\right\)\\right\\\}\_\{1\\leq i\\leq n\}with independent and identically distributed \(IID\) samples, and we want to learn a parametric predictorf^​\(𝒙;𝒘^​\(𝒟n\)\)\\hat\{f\}\\left\(\\bm\{x\};\\hat\{\\bm\{w\}\}\\left\(\\mathcal\{D\}\_\{n\}\\right\)\\right\)in order to estimate the Bayes\-optimal predictory∗​\(𝒙\)=𝔼y\|𝒙​\[y\]y^\{\*\}\\left\(\\bm\{x\}\\right\)=\\mathbb\{E\}\_\{y\|\\bm\{x\}\}\\left\[y\\right\], where we made explicit that parameters𝒘^​\(𝒟n\)\\hat\{\\bm\{w\}\}\\left\(\\mathcal\{D\}\_\{n\}\\right\)are learned from the training dataset𝒟n\\mathcal\{D\}\_\{n\}\. We restrict our study to the case of regression:𝒴\\mathcal\{Y\}is assimilated toℝ\\mathbb\{R\}, and parameters𝒘^​\(𝒟n\)\\hat\{\\bm\{w\}\}\\left\(\\mathcal\{D\}\_\{n\}\\right\)are learned by seeking a minimizer of the mean squared error \(MSE\) with a ridge penaltyλ≥0\\lambda\\geq 0:

𝒘^​\(𝒟n\)∈arg​min𝒘​∑i=1n\(f^​\(𝒙i;𝒘\)−yi\)2\+λ​‖𝒘‖22\\displaystyle\\hat\{\\bm\{w\}\}\\left\(\\mathcal\{D\}\_\{n\}\\right\)\\in\\underset\{\\bm\{w\}\}\{\\operatorname\*\{arg\\,min\}\}\\sum\_\{i=1\}^\{n\}\\left\(\\hat\{f\}\\left\(\\bm\{x\}\_\{i\};\\bm\{w\}\\right\)\-y\_\{i\}\\right\)^\{2\}\+\\lambda\\left\\\|\\bm\{w\}\\right\\\|\_\{2\}^\{2\}\(1\)
##### Uncertainty and variance

Our goal is to quantify the reliability of predictions on future test points𝒙te\\bm\{x\}\_\{\\text\{te\}\}, by obtaining properties on their squared loss to the Bayes predictor\(f^​\(𝒙te;𝒘^​\(𝒟n\)\)−y∗​\(𝒙te\)\)2\\left\(\\hat\{f\}\\left\(\\bm\{x\}\_\{\\text\{te\}\};\\hat\{\\bm\{w\}\}\\left\(\\mathcal\{D\}\_\{n\}\\right\)\\right\)\-y^\{\*\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)^\{2\}\. A classical quantity is to compute the expected value of this loss, had we obtained a different training set, now treated as a random variableDn∼p​\(x,y\)nD\_\{n\}\\sim p\\left\(x,y\\right\)^\{n\}\. This quantity naturally decomposes into*bias*and*variance*terms, here written for a*single*prediction:

𝔼Dn​\[\(f^​\(𝒙te;𝒘^​\(Dn\)\)−y∗​\(𝒙te\)\)2\]=\\displaystyle\\mathbb\{E\}\_\{D\_\{n\}\}\\left\[\\left\(\\hat\{f\}\\left\(\\bm\{x\}\_\{\\text\{te\}\};\\hat\{\\bm\{w\}\}\\left\(D\_\{n\}\\right\)\\right\)\-y^\{\*\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)^\{2\}\\right\]=𝔼Dn​\[\(f^​\(𝒙te;𝒘^​\(Dn\)\)−𝔼Dn​\[f^​\(𝒙te;𝒘^​\(Dn\)\)\]\)2\]⏟variance\\displaystyle\\mathbb\{E\}\_\{D\_\{n\}\}\\underbrace\{\\left\[\\left\(\{\\color\[rgb\]\{0\.5,0\.5,0\}\\hat\{f\}\\left\(\\bm\{x\}\_\{\\text\{te\}\};\\hat\{\\bm\{w\}\}\\left\(D\_\{n\}\\right\)\\right\)\-\\mathbb\{E\}\_\{D\_\{n\}\}\\left\[\\hat\{f\}\\left\(\\bm\{x\}\_\{\\text\{te\}\};\\hat\{\\bm\{w\}\}\\left\(D\_\{n\}\\right\)\\right\)\\right\]\}\\right\)^\{2\}\\right\]\}\_\{\\text\{variance\}\}\+\(y∗​\(𝒙te\)−𝔼Dn​\[f^​\(𝒙te;𝒘^​\(Dn\)\)\]\)2⏟bias\\displaystyle\+\\underbrace\{\\left\(\{\\color\[rgb\]\{\.5,0,\.5\}y^\{\*\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\mathbb\{E\}\_\{D\_\{n\}\}\\left\[\\hat\{f\}\\left\(\\bm\{x\}\_\{\\text\{te\}\};\\hat\{\\bm\{w\}\}\\left\(D\_\{n\}\\right\)\\right\)\\right\]\}\\right\)^\{2\}\}\_\{\\text\{bias\}\}
The bias involves the Bayes predictory∗y^\{\*\}, which is unknown in general\. The variance measures fluctuations of the estimatorf^\\hat\{f\}around its expected value, which, in contrast to the bias, involves only quantities calculated using the data\. In the remainder, we focus on estimating this variance term\.

### 2\.1Linear regression: dependence on finite samples and resulting heteroscedasticity

We start with the simpler setup of linear regression, where our parametric estimator of the prediction function takes the formf​\(𝒙;𝒘\)=𝒙⊤​𝒘f\\left\(\\bm\{x\};\\bm\{w\}\\right\)=\\bm\{x\}^\{\\top\}\\bm\{w\}\. The training data𝒟n:=\(X,𝒚\)\\mathcal\{D\}\_\{n\}:=\\left\(X,\\bm\{y\}\\right\)consists of input space observations\{𝒙i\}1≤i≤n\\left\\\{\\bm\{x\}\_\{i\}\\right\\\}\_\{1\\leq i\\leq n\}stacked in then×dn\\times ddesign matrixXX, and corresponding responsesyi∼p​\(y\|𝒙i\)y\_\{i\}\\sim p\\left\(y\|\\bm\{x\}\_\{i\}\\right\)grouped in thenn\-vector𝒚\\bm\{y\}\. We also define𝜺\\bm\{\\varepsilon\}as thenn\-vector of noise, i\.e\. the difference between the Bayes predictor, and the observed \(potentially noisy\) labelεi≔yi−y∗​\(xi\)\\varepsilon\_\{i\}\\coloneqq y\_\{i\}\-y^\{\*\}\\left\(x\_\{i\}\\right\)\. We denote by𝒘∗\\bm\{w\}^\{\*\}the \(ideal\) parameters of the best linear model that we would obtain if we minimized the squared error on the population𝒘∗∈arg​min𝒘​𝔼p​\(𝒙,y\)​\[\(𝒙⊤​𝒘−y\)2\]\\bm\{w\}^\{\*\}\\in\\underset\{\\bm\{w\}\}\{\\operatorname\*\{arg\\,min\}\}\\,\\mathbb\{E\}\_\{p\\left\(\\bm\{x\},y\\right\)\}\\left\[\\left\(\\bm\{x\}^\{\\top\}\\bm\{w\}\-y\\right\)^\{2\}\\right\]111Except in degenerate cases, this is uniquely defined since we are here dealing with the population risk\.\. Recall that we made no assumption on the true generating processp​\(𝒙,y\)p\\left\(\\bm\{x\},y\\right\), in particular it might not be well approximated by its linear estimator, in which case we say that our model \(linear\) is*misspecified*\.

We denote byΣ^λ:=X⊤​X\+λ​I\\hat\{\\Sigma\}\_\{\\lambda\}:=X^\{\\top\}X\+\\lambda Ithe ridge regularized uncentered sample covariance, andΣ^:=Σ^0\\hat\{\\Sigma\}:=\\hat\{\\Sigma\}\_\{0\}the unregularized one\. As a classical textbook result of the linear MSE problem, we obtain a closed\-form solution to the estimator of the prediction for a test pointf​\(𝒙te;𝒘^​\(𝒟n\)\)f\\left\(\\bm\{x\}\_\{\\text\{te\}\};\\hat\{\\bm\{w\}\}\\left\(\\mathcal\{D\}\_\{n\}\\right\)\\right\), assumingλ\>0\\lambda\>0orΣ^\\hat\{\\Sigma\}is full rank \(or both\):

y^​\(𝒙te,X,𝜺\)=𝒙te⊤​Σ^λ−1​X⊤​𝒚\\displaystyle\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\},X,\\bm\{\\varepsilon\}\\right\)=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\bm\{y\}\(2\)We write𝒚=y∗​\(X\)−X​𝒘∗\+X​𝒘∗\+𝜺\\bm\{y\}=y^\{\*\}\\left\(X\\right\)\-X\\bm\{w\}^\{\*\}\+X\\bm\{w\}^\{\*\}\+\\bm\{\\varepsilon\}to explicitly show the effect of misspecification, denoted𝜹​\(X\):=y∗​\(X\)−X​𝒘∗\\bm\{\\delta\}\(X\):=y^\{\*\}\(X\)\-X\\bm\{w\}^\{\*\}\. The test prediction further decomposes as:

y^​\(𝒙te,X,𝜺\)=𝒙te⊤​𝒘∗\+𝒙te⊤​Σ^λ−1​X⊤​𝜺⏟random error\+𝒙te⊤​Σ^λ−1​X⊤​𝜹​\(X\)⏟misspecification error−λ​𝒙te⊤​Σ^λ−1​𝒘∗⏟ridge shrinkage\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\},X,\\bm\{\\varepsilon\}\\right\)=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\bm\{w\}^\{\*\}\+\\underbrace\{\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\bm\{\\varepsilon\}\}\_\{\\text\{random error\}\}\\\\ \+\\underbrace\{\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\bm\{\\delta\}\(X\)\}\_\{\\text\{misspecification error\}\}\-\\underbrace\{\\lambda\\,\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{w\}^\{\*\}\}\_\{\\text\{ridge shrinkage\}\}\(3\)This form highlights the dependence of the estimator on the particular samplesXXand𝜺\\bm\{\\varepsilon\}\. Different samples would provide different predictors, and the link between \(XX,𝜺\\bm\{\\varepsilon\}\), and the estimator is here made explicit\. This also involves the query instance𝒙te\\bm\{x\}\_\{\\text\{te\}\}, and a direct consequence of the choice of linear model as hypothesis class is this particular functional dependence between\(X,𝜺,𝒙te\)\\left\(X,\\bm\{\\varepsilon\},\\bm\{x\}\_\{\\text\{te\}\}\\right\)and the prediction at a given test point, suggesting that prediction variance will similarly depend on the test instance\.

In the following, we will stop explicitly writing the dependency on random variablesXXand𝜺\\bm\{\\varepsilon\}to lighten the notations\.

#### Fixed design variance

In fixed design, the set of instancesXXis considered fixed, and the only random quantity is the response noise𝜺\\bm\{\\varepsilon\}\. The variance of the estimated prediction,

var𝜺​\(y^​\(𝒙te\)\|X\)=var𝜺​\(𝒙te⊤​Σ^λ−1​X⊤​𝜺\|X\)\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)\(4\)involves an expectation over the random variable𝜺\\bm\{\\varepsilon\}\. It captures the effect of randomness iny\|𝒙y\|\\bm\{x\}on the variance of a test prediction\. In practice, it covers effects like sensor fluctuations or labeling errors\.

#### Random design variance

In random design, we assume that the design matrixXX\(and as a consequence, the sample covarianceΣ^λ\\hat\{\\Sigma\}\_\{\\lambda\}\) are also random\. Using the law of total variance, we obtain

varX,𝜺​\(y^​\(𝒙te\)\)=\\displaystyle\\text\{var\}\_\{X,\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=𝔼X​\(var𝜺​\(y^​\(𝒙te\)\|X\)\)\\displaystyle\\;\\mathbb\{E\}\_\{X\}\\left\(\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)\\right\)\+varX​\(𝔼𝜺​\(y^​\(𝒙te\)\|X\)\)\\displaystyle\+\\text\{var\}\_\{X\}\\left\(\\mathbb\{E\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)\\right\)\(5\)which additionally involves computing expectations overXX: had we collected different training examples, we would have obtained a different predictor\.

##### Effect of misspecification and regularization

By construction,𝔼𝜺​\[𝜺\]=0\\mathbb\{E\}\_\{\\bm\{\\varepsilon\}\}\\left\[\\bm\{\\varepsilon\}\\right\]=0, thus the second term of Eq\.[5](https://arxiv.org/html/2608.07630#S2.E5)simplifies in:

𝔼𝜺​\(y^​\(𝒙te\)\|X\)=𝒙te⊤​Σ^λ−1​\(X⊤​𝜹​\(X\)−λ​𝒘∗\)\+𝒙te⊤​𝒘∗\\displaystyle\\mathbb\{E\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(X^\{\\top\}\\bm\{\\delta\}\\left\(X\\right\)\-\\lambda\\bm\{w\}^\{\*\}\\right\)\+\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\bm\{w\}^\{\*\}\(6\)
The impact of a random design on the prediction variance therefore arises as a result of attempting to perform linear regression on a misspecified task\(Bujaet al\.[2019](https://arxiv.org/html/2608.07630#bib.bib6)\), and as a result of ridge regularization\. To the contrary, in well\-specified, unregularized \(λ=0\\lambda=0\) problems, Eq\.[6](https://arxiv.org/html/2608.07630#S2.E6)cancels out and the variance is similar to that of the fixed design\.

In the general case, the random design variance thus reads:

varX,𝜺​\(y^​\(𝒙te\)\)=𝔼X​\(var𝜺​\(𝒙te⊤​Σ^λ−1​X⊤​𝜺\|X\)\)\\displaystyle\\text\{var\}\_\{X,\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=\\;\\mathbb\{E\}\_\{X\}\\left\(\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)\\right\)\+varX​\(𝒙te⊤​Σ^λ−1​\(X⊤​𝜹​\(X\)−λ​𝒘∗\)\)\\displaystyle\+\\text\{var\}\_\{X\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(X^\{\\top\}\\bm\{\\delta\}\\left\(X\\right\)\-\\lambda\\bm\{w\}^\{\*\}\\right\)\\right\)\(7\)

##### Heteroscedasticity in prediction variance

Interestingly, both variance terms \(Eq\.[4](https://arxiv.org/html/2608.07630#S2.E4)and Eq\.[7](https://arxiv.org/html/2608.07630#S2.E7)\) depend on the choice of test point𝒙te\\bm\{x\}\_\{\\text\{te\}\}\. For example, even in a setup with homoscedastic noise in the data\-generating process \(ε\\varepsilonis independent of𝒙\\bm\{x\}\), the modeling choice of linear models as hypothesis class shapes how uncertainty differently affects test points\.

### 2\.2Variance estimators for linear regression

In practice, we do not have access to the true data\-generating process\. Our goal is thus to provide estimators of both variance terms using only quantities computed on a given sample ofnnexamples\.

##### Fixed design and homoscedastic noise

For fixedXX, assuming homoscedastic noise with varianceσ2\\sigma^\{2\}, the variance of the prediction admits a closed\-form expression:

var𝜺​\(y^​\(𝒙te\)\|X\)=σ2​𝒙te⊤​Σ^λ−1​Σ^​Σ^λ−1​𝒙te\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=\\sigma^\{2\}\\,\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\hat\{\\Sigma\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(8\)
When the true noise varianceσ2\\sigma^\{2\}is unknown, we use the estimatorσ^2=1n​∑i=1n\(yi−y^​\(𝒙i\)\)2\\hat\{\\sigma\}^\{2\}=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\left\(y\_\{i\}\-\\hat\{y\}\\left\(\\bm\{x\}\_\{i\}\\right\)\\right\)^\{2\}, which gives the uncertainty under the hypothesis of homoscedastic response noise, henceforth designated asHo\.

var^Ho​\(y^​\(𝒙te\)\|X\)=σ^2​𝒙te⊤​Σ^λ−1​Σ^​Σ^λ−1​𝒙te\\hat\{\\text\{var\}\}\_\{\\text\{\{Ho\}\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=\\\\ \\hat\{\\sigma\}^\{2\}\\,\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\hat\{\\Sigma\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(9\)

##### Random design and general noise

In order to provide an estimator for a random design and heteroscedastic noise, without relying on asymptotic assumptions\(White[1980](https://arxiv.org/html/2608.07630#bib.bib4)\), we resort to the jackknife estimator\(Quenouille[1956](https://arxiv.org/html/2608.07630#bib.bib39); Tukey[1958](https://arxiv.org/html/2608.07630#bib.bib47)\)which is valid for finite samples and non\-parametric \(free of any assumptions\)\. It relies on the variance of the leave\-one\-out predictions \(denotedy^\(−i\)​\(𝒙te\)\\hat\{y\}^\{\(\-i\)\}\(\\bm\{x\}\_\{\\text\{te\}\}\)when exampleiiis left out\) aroundy^​\(𝒙te\)\\hat\{y\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\.

var^JK​\(y^​\(𝒙te\)\)=∑i=1n\(y^​\(𝒙te\)−y^\(−i\)​\(𝒙te\)\)2\\hat\{\\text\{var\}\}\_\{\\text\{JK\}\}\\left\(\\hat\{y\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)=\\sum\_\{i=1\}^\{n\}\\left\(\\hat\{y\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\-\\hat\{y\}^\{\(\-i\)\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)^\{2\}\(10\)
This definition has the advantage of proposing a simple closed\-form formula for linear regression using the Sherman\-Morrison formula\(Sherman and Morrison[1950](https://arxiv.org/html/2608.07630#bib.bib59)\):

y^​\(𝒙te\)−y^\(−i\)​\(𝒙te\)=11−hi​i​𝒙te⊤​Σ^λ−1​𝒙i​e^i\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\hat\{y\}^\{\\left\(\-i\\right\)\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)=\\frac\{1\}\{1\-h\_\{ii\}\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}\\hat\{e\}\_\{i\}
wherehi​i:=𝒙i⊤​Σ^λ−1​𝒙ih\_\{ii\}:=\\bm\{x\}\_\{i\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}is called the*leverage*ande^i=yi−y^​\(𝒙i\)\\hat\{e\}\_\{i\}=y\_\{i\}\-\\hat\{y\}\(\\bm\{x\}\_\{i\}\)is the residual of the model at\(𝒙i,yi\)\(\\bm\{x\}\_\{i\},y\_\{i\}\)\.

We defineu^i:=e^i1−hi​i\\hat\{u\}\_\{i\}:=\\frac\{\\hat\{e\}\_\{i\}\}\{1\-h\_\{ii\}\}as the jackknife residuals\. Substituting in Eq\.[10](https://arxiv.org/html/2608.07630#S2.E10), we get an estimator of the variance of the prediction at a test point𝒙te\\bm\{x\}\_\{\\text\{te\}\}that stems from randomness of\(X,𝜺\)\(X,\\bm\{\\varepsilon\}\), henceforth denoted asHeC3for heteroscedastic consistency\(HC3 in MacKinnon and White[1985](https://arxiv.org/html/2608.07630#bib.bib50)\):

var^HeC3​\(y^​\(𝒙te\)\)=𝒙te⊤​Σ^λ−1​X⊤​diag​\(𝒖^2\)​X​Σ^λ−1​𝒙te\\hat\{\\text\{var\}\}\_\{\\text\{\{HeC3\}\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)X\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(11\)
This estimator has the form of a sandwich estimator where the covarianceΣ^λ−1\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}is the*bread*, enclosing the middle termX⊤​diag​\(𝒖^2\)​XX^\{\\top\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)Xknown as the*meat*\.

##### Relation to Laplace approximations

These estimators closely resemble the closed\-form Laplace uncertainty estimators\(Ritteret al\.[2018](https://arxiv.org/html/2608.07630#bib.bib100); Daxbergeret al\.[2021](https://arxiv.org/html/2608.07630#bib.bib103)\), but come from a frequentist perspective\.HoandHeC3are reminiscent of a posterior with covariance matrices that capture more specific effects\.

### 2\.3Variance estimators in deep learning

We now turn to parametrized estimatorsf𝒘​\(𝒙\)f\_\{\\bm\{w\}\}\(\\bm\{x\}\), where the functional𝒘↦f𝒘\\bm\{w\}\\mapsto f\_\{\\bm\{w\}\}is non\-linear\. This setup comprises neural networks, where parameters𝒘\\bm\{w\}are weights and biases of all layers, arranged as add\-vector\. Given a training dataset𝒟n:=\{\(𝒙i,yi\)\}1≤i≤n\\mathcal\{D\}\_\{n\}:=\\left\\\{\\left\(\\bm\{x\}\_\{i\},y\_\{i\}\\right\)\\right\\\}\_\{1\\leq i\\leq n\}of IID samples fromp​\(𝒙,y\)p\\left\(\\bm\{x\},y\\right\), similar to linear regression, we estimate our parameters𝒘\\bm\{w\}by minimizing the MSE, but contrary to linear regression, it does not admit a closed\-form solution in general, and needs to be solved by iterative algorithms like stochastic gradient descent\(SGD Robbins and Monro[1951](https://arxiv.org/html/2608.07630#bib.bib58)\)\. We suppose that we have access to a minimizer of the ridge regularized MSE as our estimator on parameters, which we denote𝒘^\\hat\{\\bm\{w\}\}\. In order to derive estimators of both variance terms Eq\.[4](https://arxiv.org/html/2608.07630#S2.E4)and[5](https://arxiv.org/html/2608.07630#S2.E5), we will linearize the functional𝒘↦f𝒘\\bm\{w\}\\mapsto f\_\{\\bm\{w\}\}in𝒘=𝒘^\+𝚫​𝒘\\bm\{w\}=\\hat\{\\bm\{w\}\}\+\\bm\{\\Delta\}\\bm\{w\}:

f𝒘​\(⋅\)=f𝒘^​\(⋅\)\+𝚫​𝒘⊤​ϕ𝒘^​\(⋅\)\+H\.O\.T\.f\_\{\\bm\{w\}\}\\left\(\\cdot\\right\)=f\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\cdot\\right\)\+\\bm\{\\Delta\}\\bm\{w\}^\{\\top\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\cdot\\right\)\+\\text\{H\.O\.T\.\}\(12\)whereϕ𝒘^​\(⋅\)=∂f𝒘​\(⋅\)∂𝒘\|𝒘=𝒘^\\phi\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\cdot\\right\)=\\frac\{\\partial f\_\{\\bm\{w\}\}\\left\(\\cdot\\right\)\}\{\\partial\\bm\{w\}\}\\Bigr\|\_\{\\bm\{w\}=\\hat\{\\bm\{w\}\}\}are called the tangent features\(Jacotet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib27); Chizatet al\.[2019](https://arxiv.org/html/2608.07630#bib.bib42)\)\. During training of a neural network, it has been empirically shown\(Fortet al\.[2020](https://arxiv.org/html/2608.07630#bib.bib43)\)that after a short initial phase of representation learning where tangent features rotated and stretched to adapt to the particular task being learned\(Baratinet al\.[2021](https://arxiv.org/html/2608.07630#bib.bib46)\), training stabilized in linearly connected modes where the linearization in Eq\.[12](https://arxiv.org/html/2608.07630#S2.E12)essentially captured the actual training dynamics \(higher orders vanish\)\. We thus build our estimators by leveraging the analogy with linear models applied on top of tangent featuresϕ𝒘^​\(⋅\)\\phi\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\cdot\\right\), considered fixed in the vicinity of𝒘^\\hat\{\\bm\{w\}\}, used as an anchor\. This is equivalent to making the assumption that orders greater than11are negligible when considering different samplesXXand𝜺\\bm\{\\varepsilon\}\.

![Refer to caption](https://arxiv.org/html/2608.07630v1/x2.png)Figure 2:Estimated confidence interval of neural networks with different estimators\. Ground truth is computed using Monte Carlo \(100 trials\), by resampling a full new dataset, or by adding label noise to a fixed dataset\.For training examplesXXand corresponding responses𝒚\\bm\{y\}, we recover the MSE problem with linearized predictor in order to obtain an estimator for𝚫​𝒘\\bm\{\\Delta\}\\bm\{w\}:

‖𝒚−f𝒘​\(X\)‖2\+λ​‖𝒘‖2=‖𝒚−f𝒘^​\(X\)⏟:=pseudo\-responses​𝒓−Φ𝒘^​𝚫​𝒘\+o​\(‖𝚫​𝒘‖\)‖2\+λ​‖𝒘^\+𝚫​𝒘‖2\\left\\\|\\bm\{y\}\-f\_\{\\bm\{w\}\}\\left\(X\\right\)\\right\\\|^\{2\}\+\\lambda\\left\\\|\\bm\{w\}\\right\\\|^\{2\}=\\\\ \\left\\\|\\underbrace\{\\bm\{y\}\-f\_\{\\hat\{\\bm\{w\}\}\}\\left\(X\\right\)\}\_\{:=\\text\{ pseudo\-responses \}\\bm\{r\}\}\-\\Phi\_\{\\bm\{\\hat\{w\}\}\}\\bm\{\\Delta\}\\bm\{w\}\+o\\left\(\\left\\\|\\bm\{\\Delta\}\\bm\{w\}\\right\\\|\\right\)\\right\\\|^\{2\}\+\\lambda\\left\\\|\\bm\{\\hat\{w\}\}\+\\bm\{\\Delta w\}\\right\\\|^\{2\}\(13\)whereΦ𝒘^:=\(−ϕ𝒘^​\(𝒙1\)⊤−⋮−ϕ𝒘^​\(𝒙n\)⊤−\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}:=\\left\(\\begin\{array\}\[\]\{ccc\}\-&\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{1\}\\right\)^\{\\top\}&\-\\\\ &\\vdots\\\\ \-&\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{n\}\\right\)^\{\\top\}&\-\\end\{array\}\\right\)are then×dn\\times dstacked tangent features, andf𝒘​\(X\):=\(f𝒘​\(𝒙1\),…,f𝒘​\(𝒙n\)\)⊤f\_\{\\bm\{w\}\}\\left\(X\\right\):=\\left\(f\_\{\\bm\{w\}\}\\left\(\\bm\{x\}\_\{1\}\\right\),\\ldots,f\_\{\\bm\{w\}\}\\left\(\\bm\{x\}\_\{n\}\\right\)\\right\)^\{\\top\}denotesf𝒘f\_\{\\bm\{w\}\}applied to every row ofXX\. This MSE problem for estimating𝚫​𝒘\\bm\{\\Delta\}\\bm\{w\}involves pseudo\-responses𝒓\\bm\{r\}and transformed design matrixΦ𝒘\\Phi\_\{\\bm\{w\}\}\. It admits the closed\-form solution:

y^​\(𝒙te\)=f𝒘^​\(𝒙te\)\+ϕ𝒘^​\(𝒙te\)⊤​F𝒘^​λ−1​\(Φ𝒘^⊤​𝒓−λ​𝒘^\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)=f\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\+\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\left\(\\Phi\_\{\\bm\{\\hat\{w\}\}\}^\{\\top\}\\bm\{r\}\-\\lambda\\bm\{\\hat\{w\}\}\\right\)\(14\)where we definedF𝒘^​λ:=Φ𝒘^⊤​Φ𝒘^\+λ​IF\_\{\\bm\{\\hat\{w\}\}\\lambda\}:=\\Phi\_\{\\bm\{\\hat\{w\}\}\}^\{\\top\}\\Phi\_\{\\bm\{\\hat\{w\}\}\}\+\\lambda Ithe uncentered covariance of the tangent features\. This is similar to Eq\.[2](https://arxiv.org/html/2608.07630#S2.E2)in linear regression, allowing directly adapting linear estimators by replacingXXbyΦ𝒘\\Phi\_\{\\bm\{w\}\},Σ^λ\\hat\{\\Sigma\}\_\{\\lambda\}byF𝒘^​λF\_\{\\bm\{\\hat\{w\}\}\\lambda\}, and𝜺\\bm\{\\varepsilon\}by𝒓\\bm\{r\}\.

##### Fixed design and homoscedastic noise in deep learning

We apply the linear estimator of Eq\.[9](https://arxiv.org/html/2608.07630#S2.E9), we obtain:

var^𝜺​\(f𝒘^​\(𝒙te\)\|X\)=σ2​ϕ𝒘^​\(𝒙te\)​F𝒘^​λ−1⊤​F𝒘^​F𝒘^​λ−1​ϕ𝒘^​\(𝒙te\)\\hat\{\\text\{var\}\}\_\{\\bm\{\\varepsilon\}\}\\left\(f\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=\\sigma^\{2\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\{\}^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}F\_\{\\bm\{\\hat\{w\}\}\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\(15\)
and we estimateσ\\sigmawithσ^2=1n​∑i=1n\(yi−y^​\(𝒙i\)\)2\\hat\{\\sigma\}^\{2\}=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\left\(y\_\{i\}\-\\hat\{y\}\\left\(\\bm\{x\}\_\{i\}\\right\)\\right\)^\{2\}giving theHoestimator for deep learning:

var^Ho​\(f𝒘^​\(𝒙te\)\|X\)=σ^2​ϕ𝒘^​\(𝒙te\)​F𝒘^​λ−1⊤​F𝒘^​F𝒘^​λ−1​ϕ𝒘^​\(𝒙te\)\\hat\{\\text\{var\}\}\_\{\\text\{\{Ho\}\}\}\\left\(f\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=\\hat\{\\sigma\}^\{2\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\{\}^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}F\_\{\\bm\{\\hat\{w\}\}\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\(16\)

##### Random design and general noise in deep learning

Similarly, we directly apply theHeC3estimator derived in linear regression \(Eq\.[11](https://arxiv.org/html/2608.07630#S2.E11)\):

var^HeC3​\(f𝒘^​\(𝒙te\)\)=ϕ𝒘^​\(𝒙te\)​F𝒘^​λ−1⊤​Φ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^​F𝒘^​λ−1​ϕ𝒘^​\(𝒙te\)\\hat\{\\text\{var\}\}\_\{\\text\{\{HeC3\}\}\}\\left\(f\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=\\\\ \\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\{\}^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\\top\}\\text\{diag\}\\left\(\\hat\{\\bm\{u\}\}^\{2\}\\right\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\(17\)wherehi​i=ϕ𝒘^​\(𝒙i\)​F𝒘^​λ−1⊤​ϕ𝒘^​\(𝒙i\)h\_\{ii\}=\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{i\}\\right\)\{\}^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{i\}\\right\)plays a similar role as the leverage in linear regression,e^i=yi−y^​\(𝒙i\)\\hat\{e\}\_\{i\}=y\_\{i\}\-\\hat\{y\}\(\\bm\{x\}\_\{i\}\)is the residual at\(𝒙i,yi\)\(\\bm\{x\}\_\{i\},y\_\{i\}\), andu^i=e^i/\(1−hi​i\)\\hat\{u\}\_\{i\}=\\hat\{e\}\_\{i\}/\(1\-h\_\{ii\}\)\.

Eq\.[16](https://arxiv.org/html/2608.07630#S2.E16)and Eq\.[17](https://arxiv.org/html/2608.07630#S2.E17)serve at our estimators of uncertainty that stems from response noise𝜺\\bm\{\\varepsilon\}and finite sampling of\(X,𝜺\)\(X,\\bm\{\\varepsilon\}\), respectively, which we now apply in non\-linear experiments\.

##### Note on linearization

The use of tangent features is not the only way to linearize deep networks\(Misiakiewicz and Montanari[2023](https://arxiv.org/html/2608.07630#bib.bib20)\)\. Another reasonable alternative would be to use latent representations computed at the last layer, and only consider parameters of the last layer, practically considering a linear model on top of these representations\.

![Refer to caption](https://arxiv.org/html/2608.07630v1/x3.png)

![Refer to caption](https://arxiv.org/html/2608.07630v1/x4.png)

Figure 3:\(left\)Log\-variance estimated usingHoandHeC3\. Ground truth variances are estimated using Monte Carlo \(100 trials\), by resampling a full new dataset or by adding homoscedastic label noise on a fixed dataset\.\(right\)Disagreements between the log\-variance computed usingHoandHeC3\. Regions of the feature space are colored in blue if the model is uncertain because of the sampling of\(X,𝜺\)\(X,\\bm\{\\varepsilon\}\)or in red because of𝜺\\bm\{\\varepsilon\}\.

## 3Illustrative Experiments

### 3\.11D nonlinear regression

We first conduct an illustrative experiment on a toy 1D nonlinear regression taskx↦sin⁡\(x\)xx\\mapsto\\frac\{\\sin\(x\)\}\{x\}to highlight two scenarios in which theHoestimator theoretically breaks down relative to theHeC3estimator: heteroscedasticity and the presence of rare training samples, using 3 distinct scenarios:

1. 1\.normally distributed data, homoscedastic response noise ;
2. 2\.normally distributed data, heteroscedastic response noise concentrated aroundx=0x=0;
3. 3\.non\-normally distributed data \(scarce samples nearx=0x=0\), homoscedastic response noise\.

As the dataset is synthetic, we estimate the variance using Monte Carlo sampling\(Metropolis and Ulam[1949](https://arxiv.org/html/2608.07630#bib.bib69)\)\. We employ two procedures: one in which we fully resample the dataset\(X,𝒚\)\(X,\\bm\{y\}\)to estimate the total variance, and the other in which the samplesXXare fixed, and we randomly change the labels for some examples to estimate the variance due to response noise\.

Figure[2](https://arxiv.org/html/2608.07630#S2.F2)shows the comparisons\. In the first scenario, where theHoestimator’s assumptions hold, both estimators agree well with their respective Monte Carlo estimates\. In the second scenario with heteroscedasticity, as expected, theHoestimator underestimates the variance when the response noise is higher than the average and overestimates elsewhere, whereas theHeC3estimator closely matches its Monte Carlo estimator\. For the third scenario with rare samples, again, both estimators agree well with their respective Monte Carlo estimates, but we can clearly see that theHoestimator \(and also the label\-noise Monte Carlo\) does not capture the total uncertainty of the model, as it severely underestimates the total uncertainty in the regions where samples are rarer\.

### 3\.22D nonlinear classification

We conduct illustrative experiments on a toy nonlinear binary classification task composed of two spirals that slightly overlap near the center of the dataset\.

These experiments are meant to see how both uncertainty estimators behave in two different cases of interest:

- •On class\-overlapping regions \(near the center of the dataset\), where uncertainty is high because of the intrinsic difficulty of the dataset\.
- •On data\-sparse regions \(on the tail of the spirals\), where uncertainty is high because of the lack of training data\.

Figure[3](https://arxiv.org/html/2608.07630#S2.F3)\(right\) emphasizes the regions whereHoandHeC3estimators most disagree: First, in class overlapping regions, in blue, where the model locally more frequently makes mistakes on training examples \(high jackknife residuals𝒖^\\hat\{\\bm\{u\}\}\)\. Second, they disagree in the tails of the spirals near training datapoints, in red, where the model is sensitive to the label of the few and rare examples\.

### 3\.3Experiment: California housing dataset

On the*california\-housing*regression dataset, we train a multi\-layer MLP with ReLU activations with Adam\(Kingma[2014](https://arxiv.org/html/2608.07630#bib.bib72)\)\.

We compare the rankings of the most uncertain test samples fromHoandHeC3in Figure[1](https://arxiv.org/html/2608.07630#S1.F1)\. The model is less certain about its predictions \(Ho\-uncertainty\) in regions with few districts or in regions with only poor districts, which are underrepresented in training data\. On the contrary, in dense regions, but with districts with high value disparities, the model uncertainty is attributable to the intrinsic difficulty of the task \(HeC3\-uncertainty\)\.

## 4Scaling to deep networks

Until this point, we have avoided addressing practical considerations, especially questioning whether the estimators we derived theoretically would scale to modern architectures\.

The main bottleneck in computing the variance estimators lies in \(inverse\) matrix\-vector products in high dimensions\. Indeed, bread and meat matrices of the estimators ared×dd\\times dsquare matrices,ddbeing the parameter count which can scale to101010^\{10\}in recent architectures\. These objects are computationally intensive and impossible to store entirely in memory\.

### 4\.1Eigenvalue\-corrected Kronecker Factorization \(EKFAC\)

We resort to using the EKFAC\(Georgeet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib28)\)sparse block approximation of the matrices\. We approximate the Fisher information MatrixΦ𝒘^⊤​Φ𝒘^\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\\top\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}by a block\-diagonal matrix, where each block corresponds to a single layer\(l\)\(l\)\. This block\-diagonal approximation ignores cross\-layer interactions and only stores, for each layer\(l\)\(l\), the blockΦ𝒘^⊤​Φ𝒘^\(l\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\\top\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\(l\)\}\. Each block is then approximated with a Kronecker Factorization \(KFAC\)\(Martens and Grosse[2015](https://arxiv.org/html/2608.07630#bib.bib29); Grosse and Martens[2016](https://arxiv.org/html/2608.07630#bib.bib65)\):Φ𝒘^⊤​Φ𝒘^\(l\)≈A⊗B\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\\top\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\(l\)\}\\approx A\\otimes BwhereAAandBBare empirical covariance matrices of layer activations and backpropagated gradients, respectively\. This Kronecker structure is computationally convenient, since\(A⊗B\)−1=A−1⊗B−1\\left\(A\\otimes B\\right\)^\{\-1\}=A^\{\-1\}\\otimes B^\{\-1\}, which makes inverse Hessian vector products \(iHVPs\) efficient\.

EKFAC\(Georgeet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib28)\)additionally improves over KFAC by adjusting the eigenvalues of the Kronecker approximation in its eigenbasis\. We first perform the eigendecompositions ofA=UA​diag​\(𝒔A\)​UA⊤A=U\_\{A\}\\text\{diag\}\(\\bm\{s\}\_\{A\}\)U\_\{A\}^\{\\top\}andB=UB​diag​\(𝒔B\)​UB⊤B=U\_\{B\}\\text\{diag\}\(\\bm\{s\}\_\{B\}\)U\_\{B\}^\{\\top\}and defineU=UA⊗UBU=U\_\{A\}\\otimes U\_\{B\}as the Kronecker Factored Eigenbasis \(KFE\)\. While KFAC implicitly approximates the eigenvalues of the diagonal block as𝒔A⊗𝒔B\\bm\{s\}\_\{A\}\\otimes\\bm\{s\}\_\{B\}, EKFAC used corrected eigenvalues𝒔∗\\bm\{s\}^\{\*\}chosen to minimize the Frobenius norm error relative to the true diagonal block:

𝒔∗=arg​min𝒔⁡‖Φ𝒘^⊤​Φ𝒘^\(l\)−U​diag​\(𝒔\)​U⊤‖F\\bm\{s\}^\{\*\}=\\operatorname\*\{arg\\,min\}\_\{\\bm\{s\}\}\\\|\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\(l\)\}\-U\\text\{diag\}\(\\bm\{s\}\)U^\{\\top\}\\\|\_\{F\}

### 4\.2EKFAC forHeC3

TheHeC3estimator in Section[2\.2](https://arxiv.org/html/2608.07630#S2.SS2),

ϕ𝒘^​\(𝒙te\)​F𝒘^​λ−1⊤​Φ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^​F𝒘^​λ−1​ϕ𝒘^​\(𝒙te\)\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\{\}^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}^\{\\top\}\\text\{diag\}\\left\(\\hat\{\\bm\{u\}\}^\{2\}\\right\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\bm\{\\phi\}\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)involves twod×dd\\times dmatrices:F𝒘^​λF\_\{\\bm\{\\hat\{w\}\}\\lambda\}andΦ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}that we both approximate as EKFAC matrices\.

Appendix[A\.4](https://arxiv.org/html/2608.07630#A1.SS4)shows that we can further simplify the estimators as the norm of the tangent features projected in the rescaled KFE of both FIMs allowing for efficient evaluation\. In a real\-world scenario where we seek to estimate the uncertainty of a deployed model with theHeC3andHoestimators, we can additionally cache the two EKFAC matrices, avoiding the most computationally demanding step \(constructing the matrices\), and efficiently computing uncertainty estimators\.

## 5Experiments: deep networks

Our original motivation was to be able to answer: Do we need to*collect more training points in scarce regions*or should we*reduce aleatoric uncertainty*\(e\.g\., by adding informative features, or reducing label noise\) to most effectively reduce epistemic uncertainty for given test points?

In control experiments on the MNIST\(LeCun and Cortes[2005](https://arxiv.org/html/2608.07630#bib.bib15)\)and Fashion\-MNIST\(Xiaoet al\.[2017](https://arxiv.org/html/2608.07630#bib.bib12)\)datasets, we create random binary meta\-classes for which we can control subpopulations: for example, on Fashion\-MNIST, one of the generated meta\-tasks would be to distinguish between top and bottom garments, rather than the original fine\-grained garment recognition task\. We create subpopulations of the original data, for which we either remove an original class from the training dataset \(rendering the data locally scarce\) or corrupt their labels \(locally increasing aleatoric uncertainty\): for example, in one of the generated runs for Fashion\-MNIST, all trousers are randomly labeled, and the bags are missing from the training data\. We expect a model trained on this data to be uncertain on test points from noisy or missing subpopulations, but for different reasons\. For the noisy subpopulation, the main source of uncertainty should come from heteroscedastic label noise in the training data, captured by theHeC3estimator\. By contrast, for missing data, the main source of uncertainty comes as a result of missing representative examples in the training data, captured by both estimators\. Comparing estimators thus informs us about the source of uncertainty\.

![Refer to caption](https://arxiv.org/html/2608.07630v1/x5.png)Figure 4:We rank test examples on MNIST using theHoestimator \(xx\-axis\) and theHeC3estimator \(yy\-axis\) of the uncertainty of the neural network predictions\. We highlight the missing subpopulation \(in orange∙\\bullet\) and the noisy subpopulation \(in blue∙\\bullet\)\. Even though both estimators are correlated, a clear pattern emerges to distinguish the two subpopulations\.Table 1:Corrupted subpopulation detection AUROC, that indicates whether the estimators identify test points from the noisy or missing subpopulations\. Average over 5 runs\.Table[1](https://arxiv.org/html/2608.07630#S5.T1)shows that theHoandHeC3estimators capture different sources of uncertainty as their behavior differs on the two subpopulations of interest\. TheHeC3variance is significantly higher for the noisy subpopulation than for the rest of the dataset, capturing the local task difficulty, whereas theHovariance is indeed blind to the heteroscedastic noise\. We can see that by computing the ratio of theHeC3variance to theHovariance, we can almost perfectly identify the noisy subpopulation\. For the missing subpopulation, both variances are equally high\. Figure[4](https://arxiv.org/html/2608.07630#S5.F4)shows this behavior quantitatively in one of the runs on the MNIST dataset\.

We also conducted further experiments to assess whether theHeC3andHovariances predicted improvements in the model when training on cleaned training examples or with additional training data\. For that, we continue training the neural network on the original training data, either with the still\-missing subpopulation \(to look at improvements when cleaning the training data\) or with the noisy subpopulation \(to look at improvements when adding training data\)\. We consider that a model has improved on a test point if it goes from wrong to correct prediction\. Table[2](https://arxiv.org/html/2608.07630#S5.T2)shows that, to improve the model on test points with highHeC3variance and lowHovariance, we should clean the training data, and to improve the model on test points with highHoandHeC3variance, we should add more training data\.

Table 2:Retraining improvement prediction AUROC\. Measures whether the uncertainty ranking identifies test points whose predictions improve after cleaning noisy data or adding missing data and then retraining the model\. Averaged over 5 runs\.##### Uncertainty quantification

We train a ResNet\(Heet al\.[2016](https://arxiv.org/html/2608.07630#bib.bib10)\)and a ViT\(Wanget al\.[2021](https://arxiv.org/html/2608.07630#bib.bib22)\)on the more realistic CIFAR\-10 classification task\. We compare theHoandHeC3estimators against a Deep Ensemble\(Lakshminarayananet al\.[2017](https://arxiv.org/html/2608.07630#bib.bib78)\)of 10 models\. We rank test examples by their estimated uncertainty and measure how well this ranking predicts whether an example is well\-classified by the model, akin to evaluating top\-level calibration\(Perez\-Lebelet al\.[2023](https://arxiv.org/html/2608.07630#bib.bib61)\)\. We also report the performance of theHoandHeC3estimators computed only from the last layer, avoiding recourse to EKFAC approximations\. For a fraction of the cost of Deep Ensemble \(which takes hours for a ViT on CIFAR\-10, and much more for deeper models and larger datasets\),HoandHeC3are quite competitive as uncertainty quantifiers \(which takes minutes to compute, and rely on techniques shown to scale to LLMs\(Grosseet al\.[2023](https://arxiv.org/html/2608.07630#bib.bib37)\)\)\. We also found thatHeC3is more robust thanHowhen computed solely on the last layer\.

Table 3:Misclassification detection AUROC on test set\. Measures whether the uncertainty ranking identifies test points incorrectly predicted\. Average over 5 runs\.In the supplementary materials \(Appendix[D](https://arxiv.org/html/2608.07630#A4)\), we provide an analysis of the impact of the choice of the regularization parameterλ\\lambdaonHoandHeC3in the supplementary materials \(Appendix[D](https://arxiv.org/html/2608.07630#A4), Figure[6](https://arxiv.org/html/2608.07630#A4.F6)\)\. On small\-scale datasets \(MNIST and Fashion\-MNIST\), choosing a value close to the weight decay value used during the optimization was a good heuristic\.

Finally, in the supplementary materials \(Appendix[E](https://arxiv.org/html/2608.07630#A5), we provide qualitative results on a range of neural network architectures, from MLPs to BERT models, on image classification datasets such as CIFAR\-10 and on the IMDB\(Maaset al\.[2011](https://arxiv.org/html/2608.07630#bib.bib57)\)dataset for sentiment analysis\.

## 6Conclusion

In this work, we highlighted the effect of two different sources of randomness on the uncertainty of machine learning models trained from finite samples, by adapting linear regression estimators to a nonlinear setup \(deep learning\)\. These estimators quantify how uncertainty from these 2 different sources differently affects each test point𝒙te\\bm\{x\}\_\{\\text\{te\}\}of the instance space, which is a direct consequence of the modeling choice of hypothesis class \(linear models, or the deep learning architecture\)\.

Traditionally, statistical approaches focus on estimators of model parameters, but the approach using linearization applied to non\-linear models only provides estimates of parameter deltas, which are not directly interpretable\. Our approach of uncertainty quantification in deep learning is instead to directly estimate the uncertainty in predictions on test points\. Furthermore, in structured data, each input dimension typically carries a specific, interpretable meaning, whereas deep learning models excel at handling unstructured data\. Individual parameters are not directly associated with input features as opposed to e\.g\. linear models or regression trees\. This distinction underscores the importance of developing estimators of the predictions, not of the parameters\.

This work calls for further study along the following lines: First, we aim at more carefully quantifying the practical inaccuracies that result from the assumptions made along the way, and in particular, we should more carefully estimate the quality of linearized estimators, as well as the effect of using approximate inverses\. Second, we would like to further break down the variance due to sampling, in order to isolate the effect ofXXand that of the noise, whereas here theHeC3estimator accounts for both effects simultaneously \(both the instance and the response are left out in jackknife estimates\)\. Finally, we plan to derive equivalent estimators in classification settings by adapting logistic regression diagnostics\(Pregibon[1981](https://arxiv.org/html/2608.07630#bib.bib73)\), which would notably cover large generative transformers\.

## References

- S\. Amari \(1998\)Natural Gradient Works Efficiently in Learning\.Neural Computation10\(2\),pp\. 251–276\.External Links:ISSN 0899\-7667,[Link](https://ieeexplore.ieee.org/abstract/document/6790500),[Document](https://dx.doi.org/10.1162/089976698300017746)Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1)\.
- A\. Baratin, T\. George, C\. Laurent, R\. D\. Hjelm, G\. Lajoie, P\. Vincent, and S\. Lacoste\-Julien \(2021\)Implicit regularization via neural feature alignment\.InInternational Conference on Artificial Intelligence and Statistics,pp\. 2269–2277\.Cited by:[§2\.3](https://arxiv.org/html/2608.07630#S2.SS3.p2.6)\.
- A\. Botev, H\. Ritter, and D\. Barber \(2017\)Practical Gauss\-Newton Optimisation for Deep Learning\.InProceedings of the 34th International Conference on Machine Learning,pp\. 557–565\(en\)\.External Links:ISSN 2640\-3498,[Link](https://proceedings.mlr.press/v70/botev17a.html)Cited by:[Appendix C](https://arxiv.org/html/2608.07630#A3.SS0.SSS0.Px1.p1.1)\.
- L\. Breiman \(1996\)Bagging predictors\.Machine learning24\(2\),pp\. 123–140\.Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p3.1)\.
- A\. Buja, L\. Brown, R\. Berk, E\. George, E\. Pitkin, M\. Traskin, K\. Zhang, and L\. Zhao \(2019\)Models as approximations i\.Statistical Science34\(4\),pp\. 523–544\.Cited by:[§2\.1](https://arxiv.org/html/2608.07630#S2.SS1.SSSx2.Px1.p2.1)\.
- L\. Chizat, E\. Oyallon, and F\. Bach \(2019\)On lazy training in differentiable programming\.Advances in neural information processing systems32\.Cited by:[§2\.3](https://arxiv.org/html/2608.07630#S2.SS3.p2.6)\.
- C\. Cox and G\. Ma \(1995\)Asymptotic confidence bands for generalized nonlinear regression models\.Biometrics,pp\. 142–150\.Cited by:[§B\.1](https://arxiv.org/html/2608.07630#A2.SS1.p8.1)\.
- E\. Daxberger, A\. Kristiadi, A\. Immer, R\. Eschenhagen, M\. Bauer, and P\. Hennig \(2021\)Laplace Redux \- Effortless Bayesian Deep Learning\.\(en\)\.External Links:[Link](https://openreview.net/forum?id=gDcaUj4Myhn)Cited by:[Appendix C](https://arxiv.org/html/2608.07630#A3.SS0.SSS0.Px3),[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px3.p1.1)\.
- J\. Devlin, M\. Chang, K\. Lee, and K\. Toutanova \(2019\)Bert: pre\-training of deep bidirectional transformers for language understanding\.InProceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 \(long and short papers\),pp\. 4171–4186\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p7.4)\.
- A\. Dosovitskiy, L\. Beyer, A\. Kolesnikov, D\. Weissenborn, X\. Zhai, T\. Unterthiner, M\. Dehghani, M\. Minderer, G\. Heigold, S\. Gelly, J\. Uszkoreit, and N\. Houlsby \(2021\)An image is worth 16x16 words: transformers for image recognition at scale\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=YicbFdNTTy)Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p6.5)\.
- J\. Fan and Q\. Yao \(1998\)Efficient estimation of conditional variance functions in stochastic regression\.Biometrika85\(3\),pp\. 645–660\.Cited by:[§A\.5](https://arxiv.org/html/2608.07630#A1.SS5.p7.3)\.
- S\. Fort, G\. K\. Dziugaite, M\. Paul, S\. Kharaghani, D\. M\. Roy, and S\. Ganguli \(2020\)Deep learning versus kernel learning: an empirical study of loss landscape geometry and the time evolution of the neural tangent kernel\.Advances in Neural Information Processing Systems33,pp\. 5850–5861\.Cited by:[§1](https://arxiv.org/html/2608.07630#S1.p4.1),[§2\.3](https://arxiv.org/html/2608.07630#S2.SS3.p2.6)\.
- J\. Fox and R\. Andersen \(2006\)Effect displays for multinomial and proportional\-odds logit models\.Sociological Methodology36\(1\),pp\. 225–255\.Cited by:[§B\.1](https://arxiv.org/html/2608.07630#A2.SS1.p8.1)\.
- Y\. Gal and Z\. Ghahramani \(2016\)Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning\.InProceedings of The 33rd International Conference on Machine Learning,pp\. 1050–1059\(en\)\.External Links:ISSN 1938\-7228,[Link](https://proceedings.mlr.press/v48/gal16.html)Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p3.1)\.
- T\. George, C\. Laurent, X\. Bouthillier, N\. Ballas, and P\. Vincent \(2018\)Fast approximate natural gradient descent in a kronecker factored eigenbasis\.Advances in neural information processing systems31\.Cited by:[§A\.4](https://arxiv.org/html/2608.07630#A5.EGx14.12.6),[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1),[§4\.1](https://arxiv.org/html/2608.07630#S4.SS1.p1.8),[§4\.1](https://arxiv.org/html/2608.07630#S4.SS1.p2.5)\.
- R\. Grosse, J\. Bae, C\. Anil, N\. Elhage, A\. Tamkin, A\. Tajdini, B\. Steiner, D\. Li, E\. Durmus, E\. Perez,et al\.\(2023\)Studying large language model generalization with influence functions\.arXiv preprint arXiv:2308\.03296\.Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1),[§5](https://arxiv.org/html/2608.07630#S5.SS0.SSS0.Px1.p1.1)\.
- R\. Grosse and J\. Martens \(2016\)A kronecker\-factored approximate fisher matrix for convolution layers\.InInternational Conference on Machine Learning,pp\. 573–582\.Cited by:[§B\.5](https://arxiv.org/html/2608.07630#A2.SS5.p1.1),[§4\.1](https://arxiv.org/html/2608.07630#S4.SS1.p1.8)\.
- R\. Grosse \(2021\)Taylor approximations\.Cited by:[§1](https://arxiv.org/html/2608.07630#S1.p4.1)\.
- P\. Hall and R\. J\. Carroll \(1989\)Variance function estimation in regression: the effect of estimating the mean\.Journal of the Royal Statistical Society Series B: Statistical Methodology51\(1\),pp\. 3–14\.Cited by:[§A\.5](https://arxiv.org/html/2608.07630#A1.SS5.p7.3)\.
- K\. He, X\. Zhang, S\. Ren, and J\. Sun \(2016\)Deep residual learning for image recognition\.InProceedings of the IEEE conference on computer vision and pattern recognition,pp\. 770–778\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p6.5),[§5](https://arxiv.org/html/2608.07630#S5.SS0.SSS0.Px1.p1.1)\.
- T\. Heskes \(2000\)On “natural” learning and pruning in multilayered perceptrons\.Neural Computation12\(4\),pp\. 881–901\.Cited by:[§B\.5](https://arxiv.org/html/2608.07630#A2.SS5.p1.1)\.
- E\. Hüllermeier and W\. Waegeman \(2021\)Aleatoric and epistemic uncertainty in machine learning: an introduction to concepts and methods\.Machine learning110\(3\),pp\. 457–506\.Cited by:[§1](https://arxiv.org/html/2608.07630#S1.p2.7)\.
- A\. Immer, M\. Korzepa, and M\. Bauer \(2021\)Improving predictions of Bayesian neural nets via local linearization\.arXiv\.Note:arXiv:2008\.08400 \[stat\.ML\]External Links:[Link](http://arxiv.org/abs/2008.08400),[Document](https://dx.doi.org/10.48550/arXiv.2008.08400)Cited by:[Appendix C](https://arxiv.org/html/2608.07630#A3.SS0.SSS0.Px2),[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p3.1)\.
- A\. Jacot, F\. Gabriel, and C\. Hongler \(2018\)Neural tangent kernel: convergence and generalization in neural networks\.Advances in neural information processing systems31\.Cited by:[§1](https://arxiv.org/html/2608.07630#S1.p4.1),[§2\.3](https://arxiv.org/html/2608.07630#S2.SS3.p2.6)\.
- L\. A\. Jaeckel \(1972\)The infinitesimal jackknife\.Bell Telephone Laboratories\.Cited by:[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.SSSx1.p17.1)\.
- D\. P\. Kingma \(2014\)Adam: a method for stochastic optimization\.arXiv preprint arXiv:1412\.6980\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p3.3),[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p4.5),[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p5.9),[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p6.5),[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p7.4),[§3\.3](https://arxiv.org/html/2608.07630#S3.SS3.p1.1)\.
- P\. W\. Koh and P\. Liang \(2017\)Understanding black\-box predictions via influence functions\.InInternational conference on machine learning,pp\. 1885–1894\.Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1)\.
- A\. Krizhevsky, G\. Hinton,et al\.\(2009\)Learning multiple layers of features from tiny images\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p6.5)\.
- B\. Lakshminarayanan, A\. Pritzel, and C\. Blundell \(2017\)Simple and scalable predictive uncertainty estimation using deep ensembles\.Advances in neural information processing systems30\.Cited by:[§B\.4](https://arxiv.org/html/2608.07630#A2.SS4.p1.1),[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p3.1),[§5](https://arxiv.org/html/2608.07630#S5.SS0.SSS0.Px1.p1.1)\.
- Y\. LeCun and C\. Cortes \(2005\)The mnist database of handwritten digits\.External Links:[Link](https://api.semanticscholar.org/CorpusID:60282629)Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p4.5),[§5](https://arxiv.org/html/2608.07630#S5.p2.1)\.
- D\. C\. Liu and J\. Nocedal \(1989\)On the limited memory bfgs method for large scale optimization\.Mathematical programming45\(1\),pp\. 503–528\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p1.3),[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p2.3)\.
- X\. Liu, M\. Masana, L\. Herranz, J\. Van de Weijer, A\. M\. López, and A\. D\. Bagdanov \(2018\)Rotate your Networks: Better Weight Consolidation and Less Catastrophic Forgetting\.In2018 24th International Conference on Pattern Recognition \(ICPR\),pp\. 2262–2268\.External Links:[Document](https://dx.doi.org/10.1109/ICPR.2018.8545895)Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1)\.
- A\. Maas, R\. E\. Daly, P\. T\. Pham, D\. Huang, A\. Y\. Ng, and C\. Potts \(2011\)Learning word vectors for sentiment analysis\.InProceedings of the 49th annual meeting of the association for computational linguistics: Human language technologies,pp\. 142–150\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p7.4),[§5](https://arxiv.org/html/2608.07630#S5.SS0.SSS0.Px1.p3.1)\.
- J\. G\. MacKinnon and H\. White \(1985\)Some heteroskedasticity\-consistent covariance matrix estimators with improved finite sample properties\.Journal of econometrics29\(3\),pp\. 305–325\.Cited by:[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.SSSx1.p13.1),[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.SSSx1.p14.3),[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.SSSx1.p17.1),[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px2.p4.3)\.
- J\. Martens and R\. Grosse \(2015\)Optimizing neural networks with kronecker\-factored approximate curvature\.InInternational conference on machine learning,pp\. 2408–2417\.Cited by:[Appendix C](https://arxiv.org/html/2608.07630#A3.SS0.SSS0.Px1.p1.1),[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1),[§4\.1](https://arxiv.org/html/2608.07630#S4.SS1.p1.8)\.
- L\. McInnes, J\. Healy, and J\. Melville \(2018\)Umap: uniform manifold approximation and projection for dimension reduction\.arXiv preprint arXiv:1802\.03426\.Cited by:[Figure 8](https://arxiv.org/html/2608.07630#A5.F8)\.
- N\. Metropolis and S\. Ulam \(1949\)The monte carlo method\.Journal of the American statistical association44\(247\),pp\. 335–341\.Cited by:[§3\.1](https://arxiv.org/html/2608.07630#S3.SS1.p2.2)\.
- T\. Misiakiewicz and A\. Montanari \(2023\)Six lectures on linearized neural networks\.arXiv preprint arXiv:2308\.13431\.Cited by:[§2\.3](https://arxiv.org/html/2608.07630#S2.SS3.SSS0.Px3.p1.1)\.
- S\. Moro, P\. Cortez, and P\. Rita \(2014\)A data\-driven approach to predict the success of bank telemarketing\.Decision Support Systems62,pp\. 22–31\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p3.3)\.
- H\. Müller and U\. Stadtmüller \(1987\)Estimation of heteroscedasticity in regression analysis\.The Annals of Statistics,pp\. 610–625\.Cited by:[§A\.5](https://arxiv.org/html/2608.07630#A1.SS5.p1.1),[§A\.5](https://arxiv.org/html/2608.07630#A1.SS5.p7.3)\.
- G\. K\. Nilsen, A\. Z\. Munthe\-Kaas, H\. J\. Skaug, and M\. Brun \(2022\)Epistemic uncertainty quantification in deep learning classification by the Delta method\.Neural Networks145,pp\. 164–176\.External Links:ISSN 0893\-6080,[Link](https://www.sciencedirect.com/science/article/pii/S0893608021004056),[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.neunet.2021.10.014)Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p1.1)\.
- J\. Nocedal \(1980\)Updating quasi\-newton matrices with limited storage\.Mathematics of computation35\(151\),pp\. 773–782\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p1.3),[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p2.3)\.
- R\. K\. Pace and R\. Barry \(1997\)Sparse spatial autoregressions\.Statistics & Probability Letters33\(3\),pp\. 291–297\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p3.3)\.
- A\. Perez\-Lebel, M\. L\. Morvan, and G\. Varoquaux \(2023\)Beyond calibration: estimating the grouping loss of modern neural networks\.InThe Eleventh International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=6w1k-IixnL8)Cited by:[§5](https://arxiv.org/html/2608.07630#S5.SS0.SSS0.Px1.p1.1)\.
- D\. Pregibon \(1981\)Logistic regression diagnostics\.The annals of statistics9\(4\),pp\. 705–724\.Cited by:[§6](https://arxiv.org/html/2608.07630#S6.p3.1)\.
- M\. H\. Quenouille \(1956\)Notes on bias in estimation\.Biometrika43\(3/4\),pp\. 353–360\.Cited by:[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px2.p1.3)\.
- H\. Ritter, A\. Botev, and D\. Barber \(2018\)A Scalable Laplace Approximation for Neural Networks\.\(en\)\.External Links:[Link](https://openreview.net/forum?id=Skdvd2xAZ)Cited by:[Appendix C](https://arxiv.org/html/2608.07630#A3.SS0.SSS0.Px1),[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p3.1),[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px3.p1.1)\.
- I\. Rivals and L\. Personnaz \(2000\)Construction of confidence intervals for neural networks based on least squares estimation\.Neural Networks13\(4\-5\),pp\. 463–484\.Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p1.1)\.
- H\. Robbins and S\. Monro \(1951\)A stochastic approximation method\.The annals of mathematical statistics,pp\. 400–407\.Cited by:[§2\.3](https://arxiv.org/html/2608.07630#S2.SS3.p1.10)\.
- S\. Schmitt, J\. Shawe\-Taylor, and H\. v\. Hasselt \(2025\)General Uncertainty Estimation with Delta Variances\.Proceedings of the AAAI Conference on Artificial Intelligence39\(19\),pp\. 20318–20328\(en\)\.External Links:ISSN 2374\-3468,[Link](https://ojs.aaai.org/index.php/AAAI/article/view/34238),[Document](https://dx.doi.org/10.1609/aaai.v39i19.34238)Cited by:[Appendix C](https://arxiv.org/html/2608.07630#A3.SS0.SSS0.Px4),[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p1.1)\.
- N\. N\. Schraudolph \(2002\)Fast Curvature Matrix\-Vector Products for Second\-Order Gradient Descent\.Neural Computation14\(7\),pp\. 1723–1738\.External Links:ISSN 0899\-7667,[Link](https://ieeexplore.ieee.org/abstract/document/6788902),[Document](https://dx.doi.org/10.1162/08997660260028683)Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1)\.
- J\. Sherman and W\. J\. Morrison \(1950\)Adjustment of an inverse matrix corresponding to a change in one element of a given matrix\.The Annals of Mathematical Statistics21\(1\),pp\. 124–127\.Cited by:[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.SSSx1.p1.1),[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px2.p2.1)\.
- J\. A\. Suykens and J\. Vandewalle \(1999\)Least squares support vector machine classifiers\.Neural processing letters9\(3\),pp\. 293–300\.Cited by:[§B\.1](https://arxiv.org/html/2608.07630#A2.SS1.p1.2)\.
- R\. Tibshirani \(1996\)A comparison of some error estimates for neural network models\.Neural Comput\.8\(1\),pp\. 152–163\.External Links:ISSN 0899\-7667,[Link](https://doi.org/10.1162/neco.1996.8.1.152),[Document](https://dx.doi.org/10.1162/neco.1996.8.1.152)Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p1.1)\.
- J\. W\. Tukey \(1958\)Bias and confidence in not\-quite large samples \(preliminary report\)\.Annals of Mathematical Statistics29\(2\),pp\. 614\.Cited by:[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.p4.2),[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px2.p1.3)\.
- A\. Wang, E\. Nguyen, R\. Yang, J\. Bae, S\. A\. McIlraith, and R\. B\. Grosse \(2025\)Better training data attribution via better inverse hessian\-vector products\.InThe Thirty\-ninth Annual Conference on Neural Information Processing Systems,Cited by:[§1\.1](https://arxiv.org/html/2608.07630#S1.SS1.p2.1)\.
- Y\. Wang, R\. Huang, S\. Song, Z\. Huang, and G\. Huang \(2021\)Not all images are worth 16x16 words: dynamic transformers for efficient image recognition\.Advances in neural information processing systems34,pp\. 11960–11973\.Cited by:[§5](https://arxiv.org/html/2608.07630#S5.SS0.SSS0.Px1.p1.1)\.
- H\. White \(1980\)A heteroskedasticity\-consistent covariance matrix estimator and a direct test for heteroskedasticity\.Econometrica: journal of the Econometric Society,pp\. 817–838\.Cited by:[§A\.2](https://arxiv.org/html/2608.07630#A1.SS2.SSSx1.p17.1),[§2\.2](https://arxiv.org/html/2608.07630#S2.SS2.SSS0.Px2.p1.3)\.
- H\. Xiao, K\. Rasul, and R\. Vollgraf \(2017\)Fashion\-mnist: a novel image dataset for benchmarking machine learning algorithms\.arXiv preprint arXiv:1708\.07747\.Cited by:[§B\.3](https://arxiv.org/html/2608.07630#A2.SS3.p5.9),[§5](https://arxiv.org/html/2608.07630#S5.p2.1)\.

## Appendix AProofs

### A\.1Fixed design variance with homoscedastic noise

var𝜺​\(y^​\(𝒙te\)\|X\)\\displaystyle\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\|X\\right\)=var𝜺​\(𝒙te⊤​Σ^λ−1​X⊤​𝜺\|X\)\\displaystyle=\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)\(18\)=𝒙te⊤​Σ^λ−1​X⊤​var𝜺​\(𝜺\)​X​Σ^λ−1​𝒙te\\displaystyle=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\bm\{\\varepsilon\}\\right\)X\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}asXXand𝒙te\\bm\{x\}\_\{\\text\{te\}\}are independent of𝜺\\bm\{\\varepsilon\}\(19\)=σ2​𝒙te⊤​Σ^λ−1​Σ^​Σ^λ−1​𝒙te\\displaystyle=\\sigma^\{2\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\hat\{\\Sigma\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}as𝜺∼𝒩​\(0,σ2\)\\bm\{\\varepsilon\}\\sim\\mathcal\{N\}\(0,\\sigma^\{2\}\)\(20\)

### A\.2Non\-parametric estimator of the variance

The JackKnife \(JK\) estimator of the variance ofy^​\(𝒙te\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)uses leave\-one\-out estimates of the target quantityy^​\(𝒙te\)\(−i\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}, which denotes the test prediction, had we trained the model on all training examples except theithi^\{\\text\{th\}\}one\. It builds upon the intuition that the distribution of samplesy^​\(𝒙te\)\(−i\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}for differentiis resembles the distribution ofy^​\(𝒙te,X,𝜺\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\},X,\\bm\{\\varepsilon\}\\right\)for different samples\(X,𝜺\)\\left\(X,\\bm\{\\varepsilon\}\\right\)\(i\.e\. different training sets\)\. It is non\-parametric as it does not require one to specify a particular parametric form for the distribution\.

The estimator of the variance ofy^​\(𝒙te\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)is given by:

var^JK​\(y^​\(𝒙te\)\)=1n​\(n−1\)​∑i=1n\(y¯​\(𝒙te\)−y¯​\(𝒙te\)\(−i\)\)2\\hat\{\\text\{var\}\}\_\{\\text\{JK\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=\\frac\{1\}\{n\(n\-1\)\}\\sum\_\{i=1\}^\{n\}\\left\(\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\\right\)^\{2\}\(21\)
wherey¯​\(𝒙te\)\(−i\)=n​y^​\(𝒙te\)−\(n−1\)​y^​\(𝒙te\)\(−i\)\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}=n\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}are called the jackknife pseudo\-values andy¯​\(𝒙te\)=1n​∑i=1ny¯​\(𝒙te\)\(−i\)\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}is their average\(Tukey[1958](https://arxiv.org/html/2608.07630#bib.bib47)\)\.

#### Case 1: linear regression

In linear regression, there exists a simple closed\-form formula for𝒘^\(−i\)\\hat\{\\bm\{w\}\}^\{\(\-i\)\}using the Sherman\-Morrison formula\(Sherman and Morrison[1950](https://arxiv.org/html/2608.07630#bib.bib59)\):

𝒘^\(−i\)=𝒘^−11−hi​i​Σ^λ−1​𝒙i​e^i\\hat\{\\bm\{w\}\}^\{\(\-i\)\}=\\hat\{\\bm\{w\}\}\-\\frac\{1\}\{1\-h\_\{ii\}\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}\\hat\{e\}\_\{i\}
wheree^i=yi−y^​\(𝒙i\)\\hat\{e\}\_\{i\}=y\_\{i\}\-\\hat\{y\}\(\\bm\{x\}\_\{i\}\)is the residual at the training point\(𝒙i,yi\)\(\\bm\{x\}\_\{i\},y\_\{i\}\)andhi​i=𝒙i⊤​Σ^λ−1​𝒙ih\_\{ii\}=\\bm\{x\}\_\{i\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}is the leverage of the training point𝒙i\\bm\{x\}\_\{i\}, we noteu^i=e^i1−hi​i\\hat\{u\}\_\{i\}=\\frac\{\\hat\{e\}\_\{i\}\}\{1\-h\_\{ii\}\}\.

This leads to the following leave\-one\-out change of the test prediction:

y^​\(𝒙te\)−y^\(−i\)​\(𝒙te\)=11−hi​i​𝒙te⊤​Σ^λ−1​𝒙i​e^i=𝒙te⊤​Σ^λ−1​𝒙i​u^i\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\hat\{y\}^\{\\left\(\-i\\right\)\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)=\\frac\{1\}\{1\-h\_\{ii\}\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}\\hat\{e\}\_\{i\}=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\(22\)
In order to compute Eq\.[21](https://arxiv.org/html/2608.07630#A1.E21), we first simplify the pseudo\-values average:

y¯​\(𝒙te\)\\displaystyle\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)=1n​∑i=1ny¯​\(𝒙te\)\(−i\)\\displaystyle=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\(23\)=1n​∑i=1n\(n​y^​\(𝒙te\)−\(n−1\)​y^​\(𝒙te\)\(−i\)\)\\displaystyle=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\left\(n\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\\right\)\(24\)=1n​∑i=1n\(y^​\(𝒙te\)\+\(n−1\)​y^​\(𝒙te\)−\(n−1\)​y^​\(𝒙te\)\(−i\)\)\\displaystyle=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\+\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\\right\)\(25\)=y^​\(𝒙te\)−n−1n​∑i=1n\(y^​\(𝒙te\)−y^​\(𝒙te\)\(−i\)\)\\displaystyle=\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\frac\{n\-1\}\{n\}\\sum\_\{i=1\}^\{n\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\\right\)\(26\)using Eq\.[22](https://arxiv.org/html/2608.07630#A1.E22):=y^​\(𝒙te\)−n−1n​𝒙te⊤​Σ^λ−1​∑i=1n𝒙i​u^i\\displaystyle=\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\frac\{n\-1\}\{n\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\sum\_\{i=1\}^\{n\}\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\(27\)=y^​\(𝒙te\)−n−1n​𝒙te⊤​Σ^λ−1​X⊤​𝒖^\\displaystyle=\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\frac\{n\-1\}\{n\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\hat\{\\bm\{u\}\}\(28\)
Similarly for the individual pseudo\-values:

y¯​\(𝒙te\)\(−i\)\\displaystyle\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}=n​y^​\(𝒙te\)−\(n−1\)​y^​\(𝒙te\)\(−i\)\\displaystyle=n\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\(29\)=y^​\(𝒙te\)\+\(n−1\)​y^​\(𝒙te\)−\(n−1\)​y^​\(𝒙te\)\(−i\)\\displaystyle=\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\+\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\(n\-1\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\(30\)=y^​\(𝒙te\)\+\(n−1\)​\(y^​\(𝒙te\)−y^​\(𝒙te\)\(−i\)\)\\displaystyle=\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\+\(n\-1\)\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}\\right\)\(31\)using Eq\.[22](https://arxiv.org/html/2608.07630#A1.E22):=y^​\(𝒙te\)\+\(n−1\)​𝒙te⊤​Σ^λ−1​𝒙i​u^i\\displaystyle=\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\+\(n\-1\)\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\(32\)
Finally, the difference between the pseudo\-values and their average is:

y¯​\(𝒙te\)−y¯​\(𝒙te\)\(−i\)\\displaystyle\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\-\\bar\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)^\{\(\-i\)\}=\(n−1\)​𝒙te⊤​Σ^λ−1​\(𝒙i​u^i−1n​∑i=1n𝒙i​u^i\)\\displaystyle=\(n\-1\)\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\-\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\\right\)\(33\)=\(n−1\)​𝒙te⊤​Σ^λ−1​\(𝒙i​u^i−1n​X⊤​𝒖^\)\\displaystyle=\(n\-1\)\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\-\\frac\{1\}\{n\}X^\{\\top\}\\hat\{\\bm\{u\}\}\\right\)\(34\)
Thus, getting back to Eq\.[21](https://arxiv.org/html/2608.07630#A1.E21), the jackknife estimator of the variance ofy^​\(𝒙te\)\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)gives:

var^JK​\(y^​\(𝒙te\)\)\\displaystyle\\hat\{\\text\{var\}\}\_\{\\text\{JK\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=\(n−1\)2n​\(n−1\)​𝒙te⊤​Σ^λ−1​\(∑i=1n\(𝒙i​u^i−1n​X⊤​𝒖^\)​\(𝒙i​u^i−1n​X⊤​𝒖^\)⊤\)​Σ^λ−1​𝒙te\\displaystyle=\\frac\{\(n\-1\)^\{2\}\}\{n\(n\-1\)\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(\\sum\_\{i=1\}^\{n\}\\left\(\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\-\\frac\{1\}\{n\}X^\{\\top\}\\hat\{\\bm\{u\}\}\\right\)\\left\(\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}\-\\frac\{1\}\{n\}X^\{\\top\}\\hat\{\\bm\{u\}\}\\right\)^\{\\top\}\\right\)\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(35\)=n−1n​𝒙te⊤​Σ^λ−1​\(∑i=1n𝒙i​u^i2​𝒙i⊤−1n2​∑i=1nX⊤​𝒖^​𝒖^⊤​X\)​Σ^λ−1​𝒙te\\displaystyle=\\frac\{n\-1\}\{n\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(\\sum\_\{i=1\}^\{n\}\\bm\{x\}\_\{i\}\\hat\{u\}\_\{i\}^\{2\}\\bm\{x\}\_\{i\}^\{\\top\}\-\\frac\{1\}\{n^\{2\}\}\\sum\_\{i=1\}^\{n\}X^\{\\top\}\\hat\{\\bm\{u\}\}\\hat\{\\bm\{u\}\}^\{\\top\}X\\right\)\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(36\)=n−1n​𝒙te⊤​Σ^λ−1​\(X⊤​diag​\(𝒖^2\)​X−1n​X⊤′​𝒖^​𝒖^⊤​X\)​Σ^λ−1​𝒙te\\displaystyle=\\frac\{n\-1\}\{n\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\left\(X^\{\\top\}\\text\{diag\}\\left\(\\hat\{\\bm\{u\}\}^\{2\}\\right\)X\-\\frac\{1\}\{n\}X^\{\\top^\{\\prime\}\}\\hat\{\\bm\{u\}\}\\hat\{\\bm\{u\}\}^\{\\top\}X\\right\)\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(37\)=n−1n​𝒙te⊤​Σ^λ−1​X⊤​\(diag​\(𝒖^2\)−1n​𝒖^​𝒖^⊤\)​X​Σ^λ−1​𝒙te\\displaystyle=\\frac\{n\-1\}\{n\}\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\left\(\\text\{diag\}\\left\(\\hat\{\\bm\{u\}\}^\{2\}\\right\)\-\\frac\{1\}\{n\}\\hat\{\\bm\{u\}\}\\hat\{\\bm\{u\}\}^\{\\top\}\\right\)X\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(38\)
This closely resembles the estimator of the mean variance of the risk ofMacKinnon and White \([1985](https://arxiv.org/html/2608.07630#bib.bib50)\), but here applied to a single test prediction𝒙te\\bm\{x\}\_\{\\text\{te\}\}\.

We additionnally drop the term1n​𝒖^​𝒖^⊤\\frac\{1\}\{n\}\\hat\{\\bm\{u\}\}\\hat\{\\bm\{u\}\}^\{\\top\}which shrinks as1n\\frac\{1\}\{n\}\. This estimator, named HC3, is equivalent to assuming that there is no bias in the jackknife estimator𝒘¯=𝒘^\\bar\{\\bm\{w\}\}=\\hat\{\\bm\{w\}\}\(MacKinnon and White[1985](https://arxiv.org/html/2608.07630#bib.bib50)\)\.

Finally, dropping the constantn−1n\\frac\{n\-1\}\{n\}, the jackknife estimator of the variance at a test point𝒙te\\bm\{x\}\_\{\\text\{te\}\}is:

var^JK​\(y^​\(𝒙te\)\)=𝒙te⊤​Σ^λ−1​X⊤​diag​\(𝒖^2\)​X​Σ^λ−1​𝒙te\\hat\{\\text\{var\}\}\_\{\\text\{JK\}\}\\left\(\\hat\{y\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)X\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(39\)
As an aside, we can equivalently use the infinitesimal jackknife\(Jaeckel[1972](https://arxiv.org/html/2608.07630#bib.bib26)\)which recovers the usual SandWich \(SW\) estimator\(White[1980](https://arxiv.org/html/2608.07630#bib.bib4)\)or HC estimator\(MacKinnon and White[1985](https://arxiv.org/html/2608.07630#bib.bib50)\):

var^SW​\(y^​\(𝒙te\)\)=𝒙te⊤​Σ^λ−1​X⊤​diag​\(𝒆^2\)​X​Σ^λ−1​𝒙te\\hat\{\\text\{var\}\}\_\{\\text\{SW\}\}\\left\(\\hat\{y\}\\left\(\\bm\{x\}\_\{\\text\{te\}\}\\right\)\\right\)=\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}X^\{\\top\}\\text\{diag\}\(\\hat\{\\bm\{e\}\}^\{2\}\)X\\hat\{\\Sigma\}\_\{\\lambda\}^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\(40\)

#### Case 2: non\-linear regression \(deep learning\)

This is similar to the case of linear regression, by replacingXXbyΦ𝒘\\Phi\_\{\\bm\{w\}\},Σ^λ\\hat\{\\Sigma\}\_\{\\lambda\}byF𝒘^​λF\_\{\\bm\{\\hat\{w\}\}\\lambda\}, and𝜺\\bm\{\\varepsilon\}by𝒓\\bm\{r\}\.

### A\.3Linearization

‖𝒚−f𝒘​\(X\)‖2\+λ​‖𝒘‖2\\displaystyle\\left\\\|\\bm\{y\}\-f\_\{\\bm\{w\}\}\\left\(X\\right\)\\right\\\|^\{2\}\+\\lambda\\left\\\|\\bm\{w\}\\right\\\|^\{2\}=‖𝒚−f𝒘^​\(X\)⏟:=pseudo\-responses​𝒓−Φ𝒘^​𝚫​𝒘\+o​\(‖𝚫​𝒘‖\)‖2\+λ​‖𝒘^\+𝚫​𝒘‖2\\displaystyle=\\left\\\|\\underbrace\{\\bm\{y\}\-f\_\{\\hat\{\\bm\{w\}\}\}\\left\(X\\right\)\}\_\{:=\\text\{ pseudo\-responses \}\\bm\{r\}\}\-\\Phi\_\{\\bm\{\\hat\{w\}\}\}\\bm\{\\Delta\}\\bm\{w\}\+o\\left\(\\left\\\|\\bm\{\\Delta\}\\bm\{w\}\\right\\\|\\right\)\\right\\\|^\{2\}\+\\lambda\\left\\\|\\bm\{\\hat\{w\}\}\+\\bm\{\\Delta w\}\\right\\\|^\{2\}\(41\)=‖𝒓−Φ𝒘^​𝚫​𝒘\+o​\(‖𝚫​𝒘‖\)‖2\+λ​‖𝒘^\+𝚫​𝒘‖2\\displaystyle=\\left\\\|\\bm\{r\}\-\\Phi\_\{\\bm\{\\hat\{w\}\}\}\\bm\{\\Delta\}\\bm\{w\}\+o\\left\(\\left\\\|\\bm\{\\Delta\}\\bm\{w\}\\right\\\|\\right\)\\right\\\|^\{2\}\+\\lambda\\left\\\|\\bm\{\\hat\{w\}\}\+\\bm\{\\Delta w\}\\right\\\|^\{2\}\(42\)=‖𝒓−Φ𝒘^​𝚫​𝒘‖2\+o​\(‖𝚫​𝒘‖\)\+λ​‖𝚫​𝒘‖2\+λ​‖𝒘^‖2\+2​λ​𝒘^⊤​𝚫​𝒘\\displaystyle=\\left\\\|\\bm\{r\}\-\\Phi\_\{\\bm\{\\hat\{w\}\}\}\\bm\{\\Delta\}\\bm\{w\}\\right\\\|^\{2\}\+o\\left\(\\left\\\|\\bm\{\\Delta\}\\bm\{w\}\\right\\\|\\right\)\+\\lambda\\left\\\|\\bm\{\\Delta w\}\\right\\\|^\{2\}\+\\lambda\\left\\\|\\bm\{\\hat\{w\}\}\\right\\\|^\{2\}\+2\\lambda\\bm\{\\hat\{w\}\}^\{\\top\}\\bm\{\\Delta w\}\(43\)=𝚫​𝒘⊤​\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)​𝚫​𝒘\+2​\(λ​𝒘^−𝒓⊤​Φ𝒘^\)​𝚫​𝒘\+o​\(‖𝚫​𝒘‖\)\+C\\displaystyle=\\bm\{\\Delta\}\\bm\{w\}^\{\\top\}\\left\(\\Phi\_\{\\bm\{\\hat\{w\}\}\}^\{\\top\}\\Phi\_\{\\bm\{\\hat\{w\}\}\}\+\\lambda I\\right\)\\bm\{\\Delta\}\\bm\{w\}\+2\\left\(\\lambda\\bm\{\\hat\{w\}\}\-\\bm\{r\}^\{\\top\}\\Phi\_\{\\bm\{\\hat\{w\}\}\}\\right\)\\bm\{\\Delta\}\\bm\{w\}\+o\\left\(\\left\\\|\\bm\{\\Delta\}\\bm\{w\}\\right\\\|\\right\)\+C\(44\)
takes it minimum \(up too\(∥𝚫𝒘∥\)\)o\\left\(\\left\\\|\\bm\{\\Delta\}\\bm\{w\}\\right\\\|\\right\)\)for

𝚫​𝒘\\displaystyle\\bm\{\\Delta\}\\bm\{w\}=\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)−1​\(Φ𝒘^⊤​𝒓−λ​𝒘^\)\\displaystyle=\\left\(\\Phi\_\{\\bm\{\\hat\{w\}\}\}^\{\\top\}\\Phi\_\{\\bm\{\\hat\{w\}\}\}\+\\lambda I\\right\)^\{\-1\}\\left\(\\Phi\_\{\\bm\{\\hat\{w\}\}\}^\{\\top\}\\bm\{r\}\-\\lambda\\bm\{\\hat\{w\}\}\\right\)\(45\)

### A\.4EKFAC

##### HeC3estimator with EKFAC:

var^JK​\(f𝒘^​\(𝒙te\)\)\\displaystyle\\hat\{\\text\{var\}\}\_\{\\text\{JK\}\}\\left\(f\_\{\\hat\{\\bm\{w\}\}\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)=ϕ​\(𝒙te\)⊤​\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)−1​\(Φ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^\)​\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)−1​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}\+\\lambda I\\right\)^\{\-1\}\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}\\right\)\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(46\)We estimateΦ𝒘^⊤​Φ𝒘^\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}with EKFAC: letUUbe an orthogonal matrix such thatU⊤=U−1U^\{\\top\}=U^\{\-1\}, andS∗S^\{\*\}a diagonal matrix such thatS∗=diag​\(𝒔∗\)S^\{\*\}=\\text\{diag\}\(\\bm\{s\}^\{\*\}\), we have:\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)=U​\(S∗\+λ​I\)​U⊤\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}\+\\lambda I\\right\)=U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}so:=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)​U⊤\)−1​\(Φ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^\)​\(U​\(S∗\+λ​I\)​U⊤\)−1​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}\\right\)^\{\-1\}\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}\\right\)\\left\(U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(47\)YetΦ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}is not simultaneously diagonalisable withΦ𝒘^⊤​Φ𝒘^\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}, meaning diagonalisable in the same eigen basisUU, as both matrices do not commute\. We approximateΦ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}withU​D∗​UTUD^\{\*\}U^\{T\}with the best diagonal matrixD∗=diag​\(𝒅∗\)D^\{\*\}=\\text\{diag\}\\left\(\\bm\{d\}^\{\*\}\\right\)that minimized the frobenius norm of the difference of the approximated matrix and the original matrix\(Georgeet al\.[2018](https://arxiv.org/html/2608.07630#bib.bib28)\):=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)​U⊤\)−1​\(U​D∗​U⊤\)​\(U​\(S∗\+λ​I\)​U⊤\)−1​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}\\right\)^\{\-1\}\\left\(UD^\{\*\}U^\{\\top\}\\right\)\\left\(U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(48\)=ϕ​\(𝒙te\)⊤​\(U−⊤​\(S∗\+λ​I\)−1​U−1\)​\(U​D∗​U⊤\)​\(U−⊤​\(S∗\+λ​I\)−1​U−1\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U^\{\-\\top\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\-1\}\\right\)\\left\(UD^\{\*\}U^\{\\top\}\\right\)\\left\(U^\{\-\\top\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\-1\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(49\)AsU−⊤=\(U⊤\)−1=UU^\{\-\\top\}=\\left\(U^\{\\top\}\\right\)^\{\-1\}=U:=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)−1​U−1​U​D∗​U⊤​U−⊤​\(S∗\+λ​I\)−1​U⊤\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\-1\}UD^\{\*\}U^\{\\top\}U^\{\-\\top\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\\top\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(50\)=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)−1​D∗​\(S∗\+λ​I\)−1​U⊤\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)^\{\-1\}D^\{\*\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\\top\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(51\)=ϕ​\(𝒙te\)⊤​\(U​diag​\(𝒅∗\(𝒔∗\+λ\)2\)​U⊤\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\\text\{diag\}\\left\(\\frac\{\\bm\{d\}^\{\*\}\}\{\(\\bm\{s\}^\{\*\}\+\\lambda\)^\{2\}\}\\right\)U^\{\\top\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(52\)=‖\(𝒅∗\(𝒔∗\+λ\)2\)12​U⊤​ϕ​\(𝒙te\)‖22\\displaystyle=\\left\\\|\\left\(\\frac\{\\bm\{d\}^\{\*\}\}\{\(\\bm\{s\}^\{\*\}\+\\lambda\)^\{2\}\}\\right\)^\{\\frac\{1\}\{2\}\}U^\{\\top\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\\\|\_\{2\}^\{2\}\(53\)If we don’t assume that both covariances are simultaneously diagonalizable, we can still leverage that for EKFAC,U=UA⊗UBU=U\_\{A\}\\otimes U\_\{B\}\. We note asV​D∗​V⊤VD^\{\*\}V^\{\\top\}the EKFAC approximation ofΦ𝒘^⊤​diag​\(𝒖^2\)​Φ𝒘^\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\text\{diag\}\(\\hat\{\\bm\{u\}\}^\{2\}\)\\Phi\_\{\\hat\{\\bm\{w\}\}\}withV=VA⊗VBV=V\_\{A\}\\otimes V\_\{B\}:=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)​U⊤\)−1​\(V​D∗​V⊤\)​\(U​\(S∗\+λ​I\)​U⊤\)−1​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}\\right\)^\{\-1\}\\left\(VD^\{\*\}V^\{\\top\}\\right\)\\left\(U\(S^\{\*\}\+\\lambda I\)U^\{\\top\}\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(54\)=ϕ​\(𝒙te\)⊤​\(U−⊤​\(S∗\+λ​I\)−1​U−1\)​\(V​D∗​V⊤\)​\(U−⊤​\(S∗\+λ​I\)−1​U−1\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U^\{\-\\top\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\-1\}\\right\)\\left\(VD^\{\*\}V^\{\\top\}\\right\)\\left\(U^\{\-\\top\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\-1\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(55\)=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)−1​U−1​V​D∗​V⊤​U−⊤​\(S∗\+λ​I\)−1​U⊤\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\-1\}VD^\{\*\}V^\{\\top\}U^\{\-\\top\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\\top\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(56\)As\(A⊗B\)​\(C⊗D\)=\(A​B\)⊗\(C​D\)\(A\\otimes B\)\(C\\otimes D\)=\(AB\)\\otimes\(CD\)and\(A⊗B\)⊤=\(A⊤⊗B⊤\)\(A\\otimes B\)^\{\\top\}=\(A^\{\\top\}\\otimes B^\{\\top\}\)=ϕ​\(𝒙te\)⊤​\(U​\(S∗\+λ​I\)−1​\(\(UA⊤​VA\)⊗\(UB⊤​VB\)\)​D∗​\(\(VA⊤​UA\)⊗\(VB⊤​UB\)\)​\(S∗\+λ​I\)−1​U⊤\)​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(U\(S^\{\*\}\+\\lambda I\)^\{\-1\}\\left\(\(U\_\{A\}^\{\\top\}V\_\{A\}\)\\otimes\(U\_\{B\}^\{\\top\}V\_\{B\}\)\\right\)D^\{\*\}\\left\(\(V\_\{A\}^\{\\top\}U\_\{A\}\)\\otimes\(V\_\{B\}^\{\\top\}U\_\{B\}\)\\right\)\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\\top\}\\right\)\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(57\)=‖D∗12​\(\(VA⊤​UA\)⊗\(VB⊤​UB\)\)​\(S∗\+λ​I\)−1​U⊤​ϕ​\(𝒙te\)‖22\\displaystyle=\\left\\\|\{D^\{\*\}\}^\{\\frac\{1\}\{2\}\}\\left\(\(V\_\{A\}^\{\\top\}U\_\{A\}\)\\otimes\(V\_\{B\}^\{\\top\}U\_\{B\}\)\\right\)\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\\top\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\\\|\_\{2\}^\{2\}\(58\)
Note that we can do similar derivations for the infinitesimal jackknife, using𝒆^\\hat\{\\bm\{e\}\}instead of𝒖^\\hat\{\\bm\{u\}\}\.

##### MLE estimator with EKFAC:

var^MLE​\(f𝒘^​\(𝒙te\)\)\\displaystyle\\hat\{\\text\{var\}\}\_\{\\text\{MLE\}\}\\left\(f\_\{\\hat\{\\bm\{w\}\}\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)=ϕ​\(𝒙te\)⊤​\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)−1​Φ𝒘^⊤​Φ𝒘^​\(Φ𝒘^⊤​Φ𝒘^\+λ​I\)−1​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}\+\\lambda I\\right\)^\{\-1\}\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}\\left\(\\Phi^\{\\top\}\_\{\\hat\{\\bm\{w\}\}\}\\Phi\_\{\\hat\{\\bm\{w\}\}\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(59\)=ϕ​\(𝒙te\)⊤​U​\(S∗\+λ​I\)−1​S∗​\(S∗\+λ​I\)−1​U⊤​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}U\(S^\{\*\}\+\\lambda I\)^\{\-1\}S^\{\*\}\(S^\{\*\}\+\\lambda I\)^\{\-1\}U^\{\\top\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(60\)=ϕ​\(𝒙te\)⊤​U​diag​\(𝒔∗\(𝒔∗\+λ\)2\)​U⊤​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}U\\text\{diag\}\\left\(\\frac\{\\bm\{s\}^\{\*\}\}\{\(\\bm\{s\}^\{\*\}\+\\lambda\)^\{2\}\}\\right\)U^\{\\top\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\(61\)=‖\(𝒔∗\(𝒔∗\+λ\)2\)12​U⊤​ϕ​\(𝒙te\)‖22\\displaystyle=\\left\\\|\\left\(\\frac\{\\bm\{s\}^\{\*\}\}\{\(\\bm\{s\}^\{\*\}\+\\lambda\)^\{2\}\}\\right\)^\{\\frac\{1\}\{2\}\}U^\{\\top\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\\\|\_\{2\}^\{2\}\(62\)

### A\.5HeC3/Hoas a linear smoother of Leave\-One\-Out Residuals

To gain theoretical intuition into the behavior of the ratioHeC3/Ho\\texttt\{HeC3\}/\\texttt\{Ho\}, we show that it can be expressed as a linear smoother of leave\-one\-out residuals\. This reformulation reveals that the ratio has the same algebraic structure as classical non\-parametric estimators of conditional variance \(a term used for aleatoric uncertainty in the econometrics literature\(Müller and Stadtmüller[1987](https://arxiv.org/html/2608.07630#bib.bib54)\)\), although the notion of locality is induced by the geometry of the linearized model rather than by the input space\.

For clarity, we present the derivation for theHeC0/Ho\\texttt\{HeC0\}/\\texttt\{Ho\}, which is more in line with the econometrics literature\.

Letai​\(𝒙te\)=ϕ​\(𝒙i\)⊤​F𝒘^​λ−1​ϕ​\(𝒙te\)a\_\{i\}\(\{\\bm\{x\}\_\{\\text\{te\}\}\}\)=\\phi\(\\bm\{x\}\_\{i\}\)^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\phi\(\\bm\{x\}\_\{\\text\{te\}\}\)be the alignment between the tangent features ofxix\_\{i\}andxtex\_\{\\mathrm\{te\}\}after rescaling by the inverse regularized Fisher Information Matrix\. In particular, it defines a similarity in the geometry induced by the linearized model rather than in the original input space\.

The homoscedastic estimatorHo​\(𝒙te\)\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)assumes a global noise varianceσ^2=1n​∑j=1ne^j2\\hat\{\\sigma\}^\{2\}=\\frac\{1\}\{n\}\\sum\_\{j=1\}^\{n\}\\hat\{e\}\_\{j\}^\{2\}and expands as:

Ho​\(𝒙te\)=σ^2​ϕ​\(𝒙te\)⊤​F𝒘^​λ−1​Φ⊤​Φ​F𝒘^​λ−1​ϕ​\(𝒙te\)=σ^2​∑i=1nai​\(𝒙te\)2\.\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)=\\hat\{\\sigma\}^\{2\}\\phi\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\Phi^\{\\top\}\\Phi F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\phi\(\\bm\{x\}\_\{\\text\{te\}\}\)=\\hat\{\\sigma\}^\{2\}\\sum\_\{i=1\}^\{n\}a\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{2\}\.
Similarly, the uncorrected heteroscedastic estimatorHeC0​\(𝒙te\)\\texttt\{HeC0\}\(\\bm\{x\}\_\{\\text\{te\}\}\)uses sample residualse^i=yi−f^​\(𝒙i\)\\hat\{e\}\_\{i\}=y\_\{i\}\-\\hat\{f\}\(\\bm\{x\}\_\{i\}\):

HeC0​\(𝒙te\)=ϕ​\(𝒙te\)⊤​F𝒘^​λ−1​Φ⊤​diag​\(e^2\)​Φ​F𝒘^​λ−1​ϕ​\(𝒙te\)=∑i=1nai​\(𝒙te\)2​e^i2\.\\texttt\{HeC0\}\(\\bm\{x\}\_\{\\text\{te\}\}\)=\\phi\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\Phi^\{\\top\}\\text\{diag\}\(\\hat\{e\}^\{2\}\)\\Phi F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\phi\(\\bm\{x\}\_\{\\text\{te\}\}\)=\\sum\_\{i=1\}^\{n\}a\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{2\}\\hat\{e\}\_\{i\}^\{2\}\.
By taking the ratio ofHeC0​\(𝒙te\)\\texttt\{HeC0\}\(\\bm\{x\}\_\{\\text\{te\}\}\)toHo​\(𝒙te\)\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)scaled by the global varianceσ^2\\hat\{\\sigma\}^\{2\}, we obtain:

σ^2​HeC0​\(𝒙te\)Ho​\(𝒙te\)=∑i=1nωi​\(𝒙te\)​e^i2,where​ωi​\(𝒙te\)=ai​\(𝒙te\)2∑j=1naj​\(𝒙te\)2\.\\hat\{\\sigma\}^\{2\}\\frac\{\\texttt\{HeC0\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\}\{\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\}=\\sum\_\{i=1\}^\{n\}\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\hat\{e\}\_\{i\}^\{2\},\\quad\\text\{where \}\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)=\\frac\{a\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{2\}\}\{\\sum\_\{j=1\}^\{n\}a\_\{j\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{2\}\}\.
Sinceωi​\(𝒙te\)≥0\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\geq 0and∑i=1nωi​\(𝒙te\)=1\\sum\_\{i=1\}^\{n\}\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)=1, the ratio takes the form of a linear smoother of squared residuals\. The weights are induced by the squared alignment:

K​\(𝒙i,𝒙te\)=ai​\(𝒙te\)2K\(\\bm\{x\}\_\{i\},\\bm\{x\}\_\{\\text\{te\}\}\)=a\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{2\}The ratio has the same structure as a kernel smoother of squared residuals, where similarity is measured in tangent\-feature space rather than input feature space\. It is an estimator commonly used in econometrics for the conditional variance\(Müller and Stadtmüller[1987](https://arxiv.org/html/2608.07630#bib.bib54); Hall and Carroll[1989](https://arxiv.org/html/2608.07630#bib.bib53); Fan and Yao[1998](https://arxiv.org/html/2608.07630#bib.bib52)\)\.

It can also be seen as a influence weighted expectation, the normalized weightsωi​\(𝒙te\)\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)define a local empirical probability measureℙ𝒙te=∑i=1nωi​\(𝒙te\)​δ\(𝒙i,yi\)\\mathbb\{P\}\_\{\\bm\{x\}\_\{\\text\{te\}\}\}=\\sum\_\{i=1\}^\{n\}\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\delta\_\{\(\\bm\{x\}\_\{i\},y\_\{i\}\)\}\. The ratio is therefore the expected squared residual under a training distribution re\-weighted by each sample’s influence on𝒙te\\bm\{x\}\_\{\\text\{te\}\}:

σ^2​HeC0​\(𝒙te\)Ho​\(𝒙te\)=𝔼\(X,Y\)∼ℙ𝒙te​\(\(Y−f^​\(X\)\)2\)\.\\hat\{\\sigma\}^\{2\}\\frac\{\\texttt\{HeC0\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\}\{\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\}=\\mathbb\{E\}\_\{\(X,Y\)\\sim\\mathbb\{P\}\_\{\\bm\{x\}\_\{\\text\{te\}\}\}\}\\left\(\(Y\-\\hat\{f\}\(X\)\)^\{2\}\\right\)\.
For deep neural networks, training residuals are often overly optimistic due to overfitting\. TheHeC3estimator preserves the same weighting while replacing the residuals by their jackknife \(leave\-one\-out\) correctionsu^i=e^i1−hi​i\\hat\{u\}\_\{i\}=\\frac\{\\hat\{e\}\_\{i\}\}\{1\-h\_\{ii\}\}, wherehi​i=ϕ​\(𝒙i\)⊤​F𝒘^​λ−1​ϕ​\(𝒙i\)h\_\{ii\}=\\phi\(\\bm\{x\}\_\{i\}\)^\{\\top\}F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\phi\(\\bm\{x\}\_\{i\}\)is the leverage\. Therefore:

σ^2​HeC3​\(𝒙te\)Ho​\(𝒙te\)=∑i=1nωi​\(𝒙te\)​u^i2\.\\hat\{\\sigma\}^\{2\}\\frac\{\\texttt\{HeC3\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\}\{\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\}=\\sum\_\{i=1\}^\{n\}\\omega\_\{i\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\hat\{u\}\_\{i\}^\{2\}\.
Thus,HeC3​\(𝒙te\)/Ho​\(𝒙te\)\\texttt\{HeC3\}\(\\bm\{x\}\_\{\\text\{te\}\}\)/\\texttt\{Ho\}\(\\bm\{x\}\_\{\\text\{te\}\}\)directly measures the local, loo residual variance around𝒙te\\bm\{x\}\_\{\\text\{te\}\}relative to the global varianceσ^2\\hat\{\\sigma\}^\{2\}\.

## Appendix BTechnical Appendices

### B\.1Multiclass Classification as Regression

In all classification experiments, we reformulate the problem as a regression task, akin to the training Least Squares Support Vector Machines\(Suykens and Vandewalle[1999](https://arxiv.org/html/2608.07630#bib.bib67)\)\. For binary and multi\-class classification, we one\-hot encode the target variables𝒚\\bm\{y\}asYYwhere:

Yi​j=\{1,if​yi=j−1,otherwiseY\_\{ij\}=\\begin\{cases\}1,&\\text\{if\}\\ y\_\{i\}=j\\\\ \-1,&\\text\{otherwise\}\\end\{cases\}\(63\)Then we train the neural network to minimize the mean\-squared error between the outputs of the last layer and the targetsYY\.

Forkk\-output linear regression:Y=X​W∗Y=XW^\{\*\}withXXof sizen×dn\\times dandW∗W^\{\*\}of sized×kd\\times k, the estimated ridge weights areW^=\(X⊤​X\+λ​I\)−1​X⊤​Y\\hat\{W\}=\\left\(X^\{\\top\}X\+\\lambda I\\right\)^\{\-1\}X^\{\\top\}Yand residualsE=Y−X​W^E=Y\-X\\hat\{W\}\. To better match formulas from the linear regression with one output, we adopt a stacked notation where𝒚\\bm\{y\}is then​knkvector of targets with𝒚=vec​\(Y\)=\(Ik⊗X\)​vec​\(W∗\)=\(Ik⊗X\)​𝒘∗\\bm\{y\}=\\text\{vec\}\(Y\)=\(I\_\{k\}\\otimes X\)\\text\{vec\}\(W^\{\*\}\)=\(I\_\{k\}\\otimes X\)\\bm\{w\}^\{\*\}with𝒘∗\\bm\{w\}^\{\*\}the stackedk​dkdvector of weights\. Assuming homoscedastic noise, the covariance of the residualsvec​\(E\)=𝜺\\text\{vec\}\(E\)=\\bm\{\\varepsilon\}takes the following formΣE⊗In\\Sigma\_\{E\}\\otimes I\_\{n\}, withn​ΣE=E⊤​En\\Sigma\_\{E\}=E^\{\\top\}E, leading to the following maximum likelihood estimator of the variance:

var𝜺​\(𝒚^​\(𝒙te\)\|X\)\\displaystyle\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{\\bm\{y\}\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\|X\\right\)=var𝜺​\(\(Ik⊗𝒙te⊤\)​\(\(Ik⊗X\)⊤​\(Ik⊗X\)\+λ​Ik​d\)−1​\(Ik⊗X\)⊤​𝜺\|X\)\\displaystyle=\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\(I\_\{k\}\\otimes\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\)\\left\(\(I\_\{k\}\\otimes X\)^\{\\top\}\(I\_\{k\}\\otimes X\)\+\\lambda I\_\{kd\}\\right\)^\{\-1\}\(I\_\{k\}\\otimes X\)^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)=var𝜺​\(\(Ik⊗𝒙te⊤\)​\(Ik⊗\(X⊤​X\+λ​Id\)\)−1​\(Ik⊗X\)⊤​𝜺\|X\)\\displaystyle=\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\(I\_\{k\}\\otimes\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\)\\left\(I\_\{k\}\\otimes\\left\(X^\{\\top\}X\+\\lambda I\_\{d\}\\right\)\\right\)^\{\-1\}\(I\_\{k\}\\otimes X\)^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)=var𝜺​\(Ik⊗𝒙te⊤​\(X⊤​X\+λ​Id\)−1​X⊤​𝜺\|X\)\\displaystyle=\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(I\_\{k\}\\otimes\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}X^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)=\(Ik⊗𝒙te⊤​\(X⊤​X\+λ​Id\)−1​X⊤\)​var𝜺​\(𝜺\)​\(Ik⊗X​\(X⊤​X\+λ​Id\)−1​𝒙te\)\\displaystyle=\\left\(I\_\{k\}\\otimes\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}X^\{\\top\}\\right\)\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\(\\bm\{\\varepsilon\}\)\\left\(I\_\{k\}\\otimes X\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\\right\)=\(Ik⊗𝒙te⊤​\(X⊤​X\+λ​Id\)−1​X⊤\)​\(ΣE⊗In\)​\(Ik⊗X​\(X⊤​X\+λ​Id\)−1​𝒙te\)\\displaystyle=\\left\(I\_\{k\}\\otimes\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}X^\{\\top\}\\right\)\\left\(\\Sigma\_\{E\}\\otimes I\_\{n\}\\right\)\\left\(I\_\{k\}\\otimes X\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}\\right\)=ΣE⊗𝒙te⊤​\(X⊤​X\+λ​Id\)−1​X⊤​X​\(X⊤​X\+λ​Id\)−1​𝒙te\\displaystyle=\\Sigma\_\{E\}\\otimes\\bm\{x\}\_\{\\text\{te\}\}^\{\\top\}\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}X^\{\\top\}X\(X^\{\\top\}X\+\\lambda I\_\{d\}\)^\{\-1\}\\bm\{x\}\_\{\\text\{te\}\}
The derivation of the maximum likelihood estimator is simplified in the previous case because the inputs of the linear modelXXare constant across classes\. However, in the case of linearized networks with tangent features, the inputs correspond to the Jacobian of the output of the neural network for the corresponding class:Ik⊗XI\_\{k\}\\otimes Xbecomes𝚽\\bm\{\\Phi\}the stackedn​k×dnk\\times dtangent features, withϕ​\(𝒙\)\\bm\{\\phi\}\(\\bm\{x\}\)is thek×dk\\times dtangent features of example𝒙\\bm\{x\}\. Thus, the sandwich form never simplifies:

var𝜺​\(𝒇^​\(𝒙te\)\|X\)\\displaystyle\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\hat\{\\bm\{f\}\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\|X\\right\)=var𝜺​\(ϕ​\(𝒙te\)⊤​\(𝚽⊤​𝚽\+λ​I\)−1​𝚽⊤​𝜺\|X\)\\displaystyle=\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\\left\(\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\Phi\}^\{\\top\}\\bm\{\\varepsilon\}\|X\\right\)=\(ϕ​\(𝒙te\)⊤​\(𝚽⊤​𝚽\+λ​I\)−1​𝚽⊤\)​var𝜺​\(𝜺\)​\(𝚽​\(𝚽⊤​𝚽\+λ​I\)−1​ϕ​\(𝒙te\)\)\\displaystyle=\\left\(\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\Phi\}^\{\\top\}\\right\)\\text\{var\}\_\{\\bm\{\\varepsilon\}\}\(\\bm\{\\varepsilon\}\)\\left\(\\bm\{\\Phi\}\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)=\(ϕ​\(𝒙te\)⊤​\(𝚽⊤​𝚽\+λ​I\)−1​𝚽⊤\)​\(ΣE⊗In\)​\(𝚽​\(𝚽⊤​𝚽\+λ​I\)−1​ϕ​\(𝒙te\)\)\\displaystyle=\\left\(\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\Phi\}^\{\\top\}\\right\)\\left\(\\Sigma\_\{E\}\\otimes I\_\{n\}\\right\)\\left\(\\bm\{\\Phi\}\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)\\right\)=ϕ​\(𝒙te\)⊤​\(𝚽⊤​𝚽\+λ​I\)−1​\(\(\(ΣE12⊗In\)​𝚽\)⊤​\(\(ΣE12⊗In\)​𝚽\)\)​\(𝚽⊤​𝚽\+λ​I\)−1​ϕ​\(𝒙te\)\\displaystyle=\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)^\{\\top\}\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\left\(\\left\(\\left\(\\Sigma\_\{E\}^\{\\frac\{1\}\{2\}\}\\otimes I\_\{n\}\\right\)\\bm\{\\Phi\}\\right\)^\{\\top\}\\left\(\\left\(\\Sigma\_\{E\}^\{\\frac\{1\}\{2\}\}\\otimes I\_\{n\}\\right\)\\bm\{\\Phi\}\\right\)\\right\)\\left\(\\bm\{\\Phi\}^\{\\top\}\\bm\{\\Phi\}\+\\lambda I\\right\)^\{\-1\}\\bm\{\\phi\}\(\\bm\{x\}\_\{\\text\{te\}\}\)
whereΣE12\\Sigma\_\{E\}^\{\\frac\{1\}\{2\}\}is computed from the Cholesky decomposition ofΣE\\Sigma\_\{E\}\.

In a multi\-class scenario, the predicted uncertainty will be a square matrix with the same size as the number of classes\. To get a scalar variance, we compute the sum of the per\-class variances, akin to using the trace of the covariance matrix as a generalized variance\.

Even though deriving estimators to quantify the uncertainty of the predictions of a neural network after a softmax layer is possible, using, for example, the Delta method\(Cox and Ma[1995](https://arxiv.org/html/2608.07630#bib.bib44)\)or the double Delta method\(Fox and Andersen[2006](https://arxiv.org/html/2608.07630#bib.bib68)\), we expect to do that in future work\.

### B\.2Meta\-Classes

For image classification datasets, constructing meaningful subpopulations of the total training population is not straightforward: unlike in tabular data, there is no obvious categorical feature we could use to achieve such a split\. That’s why, for MNIST and Fashion\-MNIST, we use the original class labels as the categorical feature to create subpopulations\. As the original class labels are no longer available, we construct a new binary classification task, by merging the original classes completely at random\. Then we pick one of the original classes at random that we remove from the training set to create our missing subpopulation, and another one \(different\) where we assign random labels to create our noisy subpopulation\.

### B\.3Hyperparameters

For the nonlinear regression dataset, we used a one\-layer MLP with 100 hidden neurons andtanh\\tanhactivation\. It was trained with the L\-BFGS\(Nocedal[1980](https://arxiv.org/html/2608.07630#bib.bib36); Liu and Nocedal[1989](https://arxiv.org/html/2608.07630#bib.bib33)\)optimizer at a learning rate of0\.10\.1for100100steps\.

For the*spirals*dataset, we used a one\-layer MLP with 20 hidden neurons andtanh\\tanhactivation\. It was trained with the L\-BFGS\(Nocedal[1980](https://arxiv.org/html/2608.07630#bib.bib36); Liu and Nocedal[1989](https://arxiv.org/html/2608.07630#bib.bib33)\)optimizer at a learning rate of0\.10\.1for200200steps\.

For the two tabular datasets*bank\-marketing*\(Moroet al\.[2014](https://arxiv.org/html/2608.07630#bib.bib17)\)and*california\-housing*\(Pace and Barry[1997](https://arxiv.org/html/2608.07630#bib.bib16)\), we used a one\-layer MLP with 100 hidden neurons, ReLU activations, and Layer Normalization\. It was trained with the Adam optimizer\(Kingma[2014](https://arxiv.org/html/2608.07630#bib.bib72)\)for100100epochs on*california\-housing*and5050epochs on*bank\-marketing*, with a batch size of128128\.

For the*MNIST*dataset\(LeCun and Cortes[2005](https://arxiv.org/html/2608.07630#bib.bib15)\), we used a two\-layer MLP with10241024hidden neurons\. It was trained with the Adam optimizer\(Kingma[2014](https://arxiv.org/html/2608.07630#bib.bib72)\)with1×10−31\\text\{\\times\}\{10\}^\{\-3\}learning rate,1×10−21\\text\{\\times\}\{10\}^\{\-2\}weight decay for2020epochs with batch size128128\.

For the*Fashion\-MNIST*dataset\(Xiaoet al\.[2017](https://arxiv.org/html/2608.07630#bib.bib12)\), we used a 4\-layer CNN followed by a linear classification layer\. The conv layers have channel sizes of3232,6464,128128, and256256with3×33\\times 3kernels\. It was trained with the Adam optimizer\(Kingma[2014](https://arxiv.org/html/2608.07630#bib.bib72)\)with1×10−31\\text\{\\times\}\{10\}^\{\-3\}learning rate,1×10−21\\text\{\\times\}\{10\}^\{\-2\}weight decay for2020epochs with batch size128128\.

For the*CIFAR\-10*dataset\(Krizhevskyet al\.[2009](https://arxiv.org/html/2608.07630#bib.bib11)\)we used a ResNet18\(Heet al\.[2016](https://arxiv.org/html/2608.07630#bib.bib10)\)that we trained with the Adam optimizer\(Kingma[2014](https://arxiv.org/html/2608.07630#bib.bib72)\)with1×10−31\\text\{\\times\}\{10\}^\{\-3\}learning rate,1×10−21\\text\{\\times\}\{10\}^\{\-2\}weight decay for5050epochs with batch size128128\. We also used a ViT\(Dosovitskiyet al\.[2021](https://arxiv.org/html/2608.07630#bib.bib56)\)trained with the same optimizer and hyperparameters as the ResNet, for100100epochs\.

For the*IMDB*dataset\(Maaset al\.[2011](https://arxiv.org/html/2608.07630#bib.bib57)\)we used a BERT\(Devlinet al\.[2019](https://arxiv.org/html/2608.07630#bib.bib23)\)that we fined\-tune with the Adam optimizer\(Kingma[2014](https://arxiv.org/html/2608.07630#bib.bib72)\)with1×10−31\\text\{\\times\}\{10\}^\{\-3\}learning rate,1×10−21\\text\{\\times\}\{10\}^\{\-2\}weight decay for1010epochs with batch size128128\.

### B\.4Comparison to other uncertainty quantification techniques

We also implemented two well\-known approaches to compute uncertainty for deep neural networks: Deep Ensemble\(Lakshminarayananet al\.[2017](https://arxiv.org/html/2608.07630#bib.bib78)\)\. Deep Ensemble estimates a neural network’s uncertainty by training the same architecture on the same dataset with different weight initializations\. As this method is computationally intensive, we limit the number of training models to1010\.

### B\.5KFE implementation

In order to compute the EKFAC estimation of the Fisher Information matrix in an efficient manner, we need to be able to compute a Kronecker Factorization of the FIM of each layer\. This factorization is known\(Heskes[2000](https://arxiv.org/html/2608.07630#bib.bib66)\)for linear layers and convolutional layers\(Grosse and Martens[2016](https://arxiv.org/html/2608.07630#bib.bib65)\)\. For other kinds of layers, it seems difficult to imagine how a Kronecker Factorization could be done, i\.e\., batch norm or layer norm layers\. For these layers, we resort to an exact block\-diagonal approach, which we also diagonalize via its eigendecomposition\. Thus, we compute neural tangent features efficiently for all layers of a ResNet, ViT, or BERT\.

### B\.6Jackknife residuals and EKFAC

The jackknife residual or Leave\-One\-Out residuals are:

u^i=e^i1−hi​i\\hat\{u\}\_\{i\}=\\frac\{\\hat\{e\}\_\{i\}\}\{1\-h\_\{ii\}\}wheree^i=yi−f^​\(𝒙i\)\\hat\{e\}\_\{i\}=y\_\{i\}\-\\hat\{f\}\(\\bm\{x\}\_\{i\}\)is the residual andhi​i=ϕ​\(𝒙i\)​F𝒘^​λ−1​ϕ​\(𝒙i\)⊤h\_\{ii\}=\\phi\(\\bm\{x\}\_\{i\}\)F\_\{\\bm\{\\hat\{w\}\}\\lambda\}^\{\-1\}\\phi\(\\bm\{x\}\_\{i\}\)^\{\\top\}the leverage of the training point𝒙i\\bm\{x\}\_\{i\}\.

When using the exact Fisher Information Matrix, the leverages are guaranteed to be between0and11\. Indeed, using the singular value decomposition,Φ=U​diag​\(s\)​V⊤\\Phi=U\\text\{diag\}\(s\)V^\{\\top\}, of the tangent features, the corresponding hat matrix is:

H=U​diag​\(s2s2\+λ\)​U⊤H=U\\text\{diag\}\\left\(\\frac\{s^\{2\}\}\{s^\{2\}\+\\lambda\}\\right\)U^\{\\top\}
and the leverage of𝒙i\\bm\{x\}\_\{i\}is:

hi​i=∑j𝒖i​j2​sj2sj2\+λh\_\{ii\}=\\sum\_\{j\}\\bm\{u\}\_\{ij\}^\{2\}\\frac\{s\_\{j\}^\{2\}\}\{s\_\{j\}^\{2\}\+\\lambda\}
Since∀i\\forall i,0≤sj2sj2\+λ≤10\\leq\\frac\{s\_\{j\}^\{2\}\}\{s\_\{j\}^\{2\}\+\\lambda\}\\leq 1and∑j𝒖i​j2≤1\\sum\_\{j\}\\bm\{u\}\_\{ij\}^\{2\}\\leq 1because the columns of U are orthonormal, the leverages are bounded between0and11, and strictly less than11forλ\>0\\lambda\>0\.

However, when using approximations of the FIM, such as EKFAC, there is no guarantee that these leverages are bounded between0and11, and can make1/\(1−hi​i\)1/\(1\-h\_\{ii\}\)negative, which is why in practice, the leverages computed with EKFAC are then clipped to0and1−ϵ1\-\\epsilon, we choseϵ=1×10−4\\epsilon=$1\\text\{\\times\}\{10\}^\{\-4\}$\.

## Appendix CRelated works – extended

##### Ritteret al\.\([2018](https://arxiv.org/html/2608.07630#bib.bib100)\)

is a popular Bayesian perspective on uncertainty quantification, mixing the Laplace approximation to the posterior over weights, with the K\-FAC\(Martens and Grosse[2015](https://arxiv.org/html/2608.07630#bib.bib29)\)and KFRA\(Botevet al\.[2017](https://arxiv.org/html/2608.07630#bib.bib101)\)methods for efficiently approximating the Fisher Information Matrix\.

##### Immeret al\.\([2021](https://arxiv.org/html/2608.07630#bib.bib102)\)

show the link between the Generalized Gauss\-Newton approximation to the Laplace posterior, and a linearization of the deep network predictor\. They advocate for using a slightly different procedure for posterior sampling\.

##### Daxbergeret al\.\([2021](https://arxiv.org/html/2608.07630#bib.bib103)\)

propose a library that implements the numerous variants of the Laplace approximation and provide a comprehensive and easy to read presentation of the concepts\. The Generalized Gauss\-Newton/Fisher Information Matrix can be approximated using K\-FAC, KFRA, or a diagonal approximation\.

##### Schmittet al\.\([2025](https://arxiv.org/html/2608.07630#bib.bib96)\)

aim at re\-popularizing delta variance estimators in deep learning, and show that they can be derived using a Bayesian or frequentist perspective\. They evaluate a delta variance estimator using a diagonal approximate of the inverse Fisher information matrix on a large scale weather forecast dataset\. They also propose to learn the inverse covariance matrix coefficients, using gradient descent\.

## Appendix DAdditional Experiments

![Refer to caption](https://arxiv.org/html/2608.07630v1/x6.png)

![Refer to caption](https://arxiv.org/html/2608.07630v1/x7.png)

![Refer to caption](https://arxiv.org/html/2608.07630v1/x8.png)

Figure 5:Nonlinear regression task with \(from top to bottom\) homoscedasticity, heteroscedasticity nearx→0x\\rightarrow 0, and fewer samples nearx→0x\\rightarrow 0\. Estimated variance of neural networks withHeC3andHoestimators\. Ground truth variances are estimated using Monte Carlo \(100 trials\), by resampling a full new dataset or by adding homoscedastic label noise on a fixed dataset\.![Refer to caption](https://arxiv.org/html/2608.07630v1/x9.png)

![Refer to caption](https://arxiv.org/html/2608.07630v1/x10.png)

Figure 6:We compare the regularizedHoλ\\texttt\{Ho\}\_\{\\lambda\}and the unregularizedHo0\\texttt\{Ho\}\_\{0\}of theHouncertainty estimator on test examples of MNIST \(top\) and Fashion\-MNIST \(bottom\) and measure whether examples with high uncertainty are examples from the missing subpopulation, for a number ofλ\\lambdavalues\.![Refer to caption](https://arxiv.org/html/2608.07630v1/x11.png)

![Refer to caption](https://arxiv.org/html/2608.07630v1/x12.png)

Figure 7:We compare different uncertainty estimators on test examples of MNIST \(top\) and Fashion\-MNIST \(bottom\) and measure if examples with high uncertainty are mispredicted by the model, with varying level of label noise in the noisy subpopulation\.
## Appendix EQualitative Experiments

Table 4:Test examples of the IMDB review dataset sorted by their uncertainty\. The upper part of the table corresponds to examples with relatively highHeC3uncertainty, and the bottom part to examples with highHouncertainty\. 5 examples for each class are shown in the two columns of the dataframe\.![Refer to caption](https://arxiv.org/html/2608.07630v1/x13.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x14.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x15.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x16.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x17.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x18.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x19.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x20.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x21.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x22.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x23.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x24.png)Figure 8:umap\(McInneset al\.[2018](https://arxiv.org/html/2608.07630#bib.bib55)\)projections of last layer embeddings of the different neural network architectures trained on \(from top to bottom\)*bank\-marketing*\(MLP\), MNIST \(MLP\), Fashion\-MNIST \(ConvNet\), and CIFAR\-10 \(ResNet18\)\. In the left column, train samples and their classes are highlighted in color\. In the middle column, we compute the agreement or disagreement betweenHoandHeC3\. In the right column, we the gradient of color is with respec toHeC3only\.![Refer to caption](https://arxiv.org/html/2608.07630v1/x25.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x26.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x27.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x28.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x29.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x30.png)Figure 9:Test examples of MNIST, Fashion\-MNIST and CIFAR\-10 sorted by their variances\. The 100 examples with the highest jackknife variance are grouped in the left grid, and the 100 examples with the highest MLE variance are grouped in the right grid\. Examples wrongly predicted in the test set are highlighted in red\.![Refer to caption](https://arxiv.org/html/2608.07630v1/x31.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x32.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x33.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x34.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x35.png)![Refer to caption](https://arxiv.org/html/2608.07630v1/x36.png)Figure 10:Test examples of MNIST, Fashion\-MNIST and CIFAR\-10 sorted by the agreements between theirvarJK\\text\{var\}\_\{\\text\{JK\}\}andvarMLE\\text\{var\}\_\{\\text\{MLE\}\}variances\. The 100 examples withvarJK\>varMLE\\text\{var\}\_\{\\text\{JK\}\}\>\\text\{var\}\_\{\\text\{MLE\}\}are grouped in the left grid, and the 100 examples withvarMLE\>varJK\\text\{var\}\_\{\\text\{MLE\}\}\>\\text\{var\}\_\{\\text\{JK\}\}are grouped in the right grid\. Examples wrongly predicted in the test set are highlighted in red\.

Similar Articles

Uncertainty-Aware Trust Estimation for Multi-LLM Systems via Structured Expert Judgement

arXiv cs.LG

This paper introduces an uncertainty-aware trust estimation method for aggregating predictions from multiple LLMs, adapting structured expert judgment with Cooke-style log weighting to penalize overconfident incorrect predictions. Evaluations on MMLU and MMLU-Pro show that this approach achieves superior accuracy-reliability balance under heterogeneous and contaminated expert panels.