Abstract
Deep learning models are increasingly deployed in domains where understanding the reliability of predictions is as important as the predictions themselves. While uncertainty is typically categorized as either aleatoric (inherent noise) or epistemic (lack of knowledge), the internal structure of epistemic uncertainty in deep neural networks remains under-explored. This paper presents a rigorous framework to decompose epistemic uncertainty into three components: model uncertainty, data variability, and procedural variability. We introduce computationally tractable methods for estimating these components, including an influence function based on Neural Tangent Kernels (NTK) and a statistical batching approach. Our findings demonstrate that procedural variability—the noise introduced by stochastic training—is often the dominant source of epistemic uncertainty, providing a theoretical justification for the efficacy of deep ensembles.
Introduction
In the field of machine learning, quantifying uncertainty is essential for robust decision-making. Uncertainty is generally bifurcated into aleatoric uncertainty, which represents irreducible noise in the data generation process, and epistemic uncertainty, which stems from a lack of information about the true underlying model. While significant progress has been made in estimating total predictive uncertainty, few studies have successfully isolated the specific drivers of epistemic uncertainty in the context of deep learning.
The authors argue that epistemic uncertainty is not a monolithic entity but rather a composite of three distinct factors: model uncertainty (architectural limitations), data variability (limitations of the training sample), and procedural variability (stochasticity in the training algorithm). Estimating these components using traditional statistical methods like nested bootstrapping is computationally prohibitive for large-scale neural networks. This paper addresses this challenge by providing a theoretical foundation and practical tools for uncertainty decomposition.
Decomposing Epistemic Uncertainty
To understand the sources of error, we consider the relationship between the true function $f^*$, the best possible hypothesis in our class $h_{\theta^*}$, and the specific model $h_{\hat{\theta}}$ produced by a training run.
As illustrated in Figure 1, the total estimation error can be partitioned into three primary segments:
- Model Uncertainty (Approximation Error): The distance between the true function $f^*$ and the best possible hypothesis $h_{\theta^*}$ within the chosen hypothesis class $\mathcal{H}$. In modern overparameterized networks, this is often negligible.
- Data Variability: The difference between the best hypothesis $h_{\theta^*}$ and the expected hypothesis $h_{\bar{\theta}^*}$ learned over many finite datasets. This reflects how well the training data represents the true distribution.
- Procedural Variability: The variance between the expected hypothesis $h_{\bar{\theta}^*}$ and the actual learned model $h_{\hat{\theta}}$. This is caused by random initializations, mini-batch shuffling in SGD, and other stochastic elements of the training process.
Methodology
The paper introduces three primary techniques to estimate these variances without requiring thousands of training cycles:
- Influence Functions via NTK: To estimate data variability, the authors leverage Neural Tangent Kernel (NTK) theory. By treating wide neural networks as kernel ridge regressors, they derive influence functions that can estimate how a model's prediction would change if the data distribution were slightly altered. This bypasses the non-convexity issues that typically plague influence functions in deep learning.
- Ensemble Variance: Procedural variability is estimated by training an ensemble of models on the same dataset using different random seeds. The variance of their predictions directly quantifies the noise introduced by the training procedure.
- Batching for Total Epistemic Variance: To estimate the combined epistemic variance efficiently, the authors adapt a "batching" technique from simulation analysis. The training data is split into $K$ disjoint batches. By training one model per batch and applying a self-normalizing t-statistic, they can estimate the total epistemic variance of a deep ensemble with significantly reduced computational overhead.
Experimental Evaluation
The proposed methods were validated using both synthetic and real-world datasets. Synthetic datasets allowed for comparison against "ground truth" variances obtained through massive Monte Carlo simulations. Real-world benchmarks included standard UCI regression tasks such as the Boston Housing and Concrete datasets.
Key results include:
- Scaling Laws: Data variance was observed to shrink at a rate of $1/n$ as the sample size $n$ increased, consistent with statistical theory. In contrast, procedural variance remained relatively stable regardless of dataset size.
- Dimensionality Effects: As the dimensionality of the input space increases, procedural variance grows more rapidly than data variance. This suggests that higher-dimensional loss landscapes are inherently more difficult for stochastic optimizers to navigate consistently.
- Dominance of Procedural Noise: In many real-world scenarios, procedural variability was found to be the primary component of epistemic uncertainty.
Key Insights and Discussion
A significant contribution of this work is the theoretical justification for deep ensembles. Ensembles are widely used because they improve performance, but this paper clarifies why: they specifically mitigate procedural variability by averaging out the noise of initialization and SGD. Crucially, ensembles do not reduce data variability, which is inherent to the sample size.
Furthermore, the "batching" approach serves as a computational "cheat code." It demonstrates that one can estimate the uncertainty of a large ensemble by training only a single network per data batch, rather than training an entire ensemble on every possible data subset.
Conclusion and Future Work
By formalizing the decomposition of epistemic uncertainty, this research provides a clearer lens through which to view model reliability. The dominance of procedural variability in high-dimensional tasks suggests that stabilizing the training process may be more beneficial than simply acquiring more data in certain regimes. Future work will explore the application of these metrics to online learning and reinforcement learning, where distinguishing between "not knowing because of the data" and "not knowing because of the training" can guide more efficient exploration.
Summary updated