arXiv:2608.24518cs.LGAug 2026

Manuscript Offprint

arXiv:2608.24518

It depends: Incorporating correlations for joint aleatoric and epistemic uncertainties of high-dimensional output spaces

Leonhard F. Feiner, Manuel Nickel, Martin Menten, Laurin Lux, Rickmer Braren, Daniel Rueckert, Georgios Kaissis, Raphael Rehms, Johannes Paetzold

Leonhard F. Feiner 1,2^{1, 2}

leo.feiner@tum.de

Manuel Nickel 1,2,3^{1, 2, 3}

Martin Menten 1,4^{1, 4}

Laurin Lux 1,4,5^{1, 4, 5}

Rickmer Braren 6^{6}

Daniel Rueckert 1,4,7^{1, 4, 7}

Georgios Kaissis 1,7,8^{1, 7, 8}

Raphael Rehms 1,4,†^{1, 4, \dagger}

Johannes Paetzold 1,5,9,†^{1, 5, 9, \dagger}

raphael.rehms@tum.de

jpaetzold@med.cornell.edu

†^{\dagger}Equal contribution

1^{1}AI in Medicine and Healthcare, Klinikum rechts der Isar, Technical University of Munich, Germany

2^{2}Institute of Diagnostic and Interventional Radiology, Klinikum rechts der Isar, Technical University of Munich, Germany

3^{3}Department of Diagnostic and Interventional Radiology and Nuclear Medicine, University Medical Center Hamburg-Eppendorf, Germany

4^{4}Munich Center for Machine Learning (MCML), Munich, Germany.

5^{5}Department of Radiology, Weill Cornell Medicine, New York, USA

6^{6}German Cancer Consortium (DKTK), Munich partner site, Heidelberg, Germany

7^{7}Department of Computing, Imperial College London, London, UK

8^{8}Hasso Plattner Institute for Digital Engineering, University of Potsdam, Potsdam, Germany

9^{9}Cornell Tech, Cornell University, New York, USA

Abstract

Uncertainty Quantification (UQ) plays a vital role in enhancing the reliability of deep learning model predictions, especially in scenarios with high-dimensional output spaces. This paper addresses the dual nature of uncertainty — aleatoric and epistemic — focusing on their joint integration in high-dimensional regression tasks. For example, in applications like medical image segmentation or restoration, aleatoric uncertainty captures inherent data noise, while epistemic uncertainty quantifies the model's confidence in unfamiliar conditions. Modeling both jointly enables more reliable predictions by reflecting both unavoidable variability and knowledge gaps, whereas modeling only one limits transparency and robustness. We propose a novel approach that approximates the resulting joint uncertainty using a low-rank plus diagonal covariance structure, capturing essential output correlations while avoiding the computational burdens of full covariance matrices. Unlike prior work, our method explicitly combines aleatoric and epistemic uncertainties into a unified second-order distribution that supports robust downstream analyses like sampling and log-likelihood evaluation. We further introduce stabilization strategies for efficient training and inference, achieving superior UQ in the tasks of image inpainting, colorization, optical flow, and depth estimation. See Appendix A for notation used throughout.

1 Introduction

In high-risk settings such as AI-supported decision-making, UQ is an essential requirement to support a viable level of reliability and trustworthiness. For instance, AI tools in medicine and healthcare may benefit from a sound UQ (Hüllermeier & Waegeman, 2021; Tran et al., 2022; Band et al., 2022; Gruber et al., 2023; Lopez et al., 2023). However, current Bayesian UQ methods often neglect output correlations in high-dimensional settings, limiting reliability in those tasks (Kendall & Gal, 2017). For instance, tasks on images like optical flow or inpainting imply a high dimensional output, often with more than 1000 dimensions that cannot easily be handled with respect to computation. A common strategy in this context is to distinguish between two types of uncertainty: aleatoric and epistemic. Aleatoric uncertainty is modeled as part of the head of a model, often using distributions like Gaussian for regression. It is generally considered to be irreducible by collecting more information, like increasing the size of the dataset, and therefore can be seen as inherent data noise. In contrast, epistemic uncertainty is reducible and a consequence of a lack of knowledge (Murphy, 2022). For instance, utilizing a large amount of data is expected to reduce epistemic uncertainty. 1^{1} Epistemic uncertainty, due to its complexity, is commonly approximated by sampling from a proxy distribution of models (Hüllermeier & Waegeman, 2021).

Combining both in a single model usually results in a so-called second-order distribution (Bengs et al., 2023). On the one hand, it consists of a distribution over model weights capturing epistemic uncertainty. On the other hand, it models a distribution over plausible predictions representing aleatoric uncertainty. Sampling from the model weights and performing a transformation (forward pass) of the input data results in another distribution representing the aleatoric uncertainty. The shape of this second-order distribution limits further analysis, it is difficult to visualize, and it does not admit a closed-form solution of the marginal likelihood of a sample. Therefore, the second-order distribution is typically marginalized and approximated by a single distribution, representing the joint uncertainty.

Traditionally, uncertainties across outputs have been jointly represented without considering correlations between outputs (e.g., pixels), assuming independent factorized univariate Gaussian distributions. However, neglecting such correlations can limit a comprehensive understanding of uncertainty, especially in scenarios where dependencies between model outputs exist — such as in pixel-wise semantic segmentation (Monteiro et al., 2020), optical flow estimation, image inpainting, or graph node regression.

Figure 1 illustrates the increased representational power of full covariance matrices (right) compared to diagonal ones (left). In both cases, samples from the weight space yield multiple predictions containing a mean and (co-)variance. The expected covariance represents the aleatoric component Σa\Sigma^a, while the covariance of means contributes the epistemic component Σe\Sigma^e. Their sum yields the joint covariance matrix Σ=Σa+Σe\Sigma = \Sigma^a + \Sigma^e.

Incorporating these correlations efficiently, however, remains challenging. The number of pairwise correlations scales quadratically as O(S2)\mathcal{O}(S^2) with the number of outputs SS, resulting in extremely large covariance matrices. This makes many standard operations - such as sampling and computing log-likelihoods - computationally infeasible for high-dimensional outputs.

Consequently, many prominent Bayesian methods focus on low-dimensional output spaces, where exact inference is tractable (Williams & Rasmussen, 1996; Rasmussen & Williams, 2006). Extending these methods to high-dimensional outputs, where considering correlations is essential, remains an open research challenge.

Related Work To estimate epistemic uncertainty, various Bayesian frameworks have been developed, including methods like stochastic variational inference (Blundell et al., 2015), Monte Carlo dropout (Gal & Ghahramani, 2016), deep ensembles (Lakshminarayanan et al., 2017), stochastic weight averaging (Maddox

1^{1}Here, we refer to the standard interpretation of aleatoric and epistemic uncertainty. However, this distinction is not always clear and subject to discussion (Hüllermeier & Waegeman, 2021; Gruber et al., 2023).

Figure

Figure 1: Visualization of covariance matrices for the 2D case. Three predictive samples ( μi\mu_i, Σi\Sigma_i) from a Bayesian model (e.g. sampled from a approximated posterior). The model predicts a mean μi\mu_i and covariance Σi\Sigma_i for each sample (colors). The columns show the inferred aleatoric Σa\Sigma^a, epistemic Σe\Sigma^e, and joint Σ=Σa+Σe\Sigma = \Sigma^a + \Sigma^e uncertainty, respectively. On the left, the covariance matrices are purely diagonal, limiting their representational power. To the right, the same matrices are depicted with non-diagonal values kept, allowing them to capture the overall uncertainty in greater detail.

et al., 2019), or Laplace approximation (Daxberger et al., 2021). The modeling of heteroscedastic aleatoric uncertainty, where the model predicts all parameters of a target distribution and minimizes the corresponding log-likelihood, has also been well established (Nix & Weigend, 1994; Skafte et al., 2019; Stirn & Knowles, 2020; Seitzer et al., 2022). The latter three works further address the challenge of stabilizing training for such networks — a challenge that becomes more critical when modeling structured forms of uncertainty. Building upon these works, others have unified epistemic and aleatoric uncertainty in a single model (Kendall & Gal, 2017; Depeweg et al., 2018; Stirn et al., 2023; Immer et al., 2024; Valdenegro-Toro & Mori, 2022; Mucsányi et al., 2024; Chan et al., 2024; Wimmer et al., 2023). However, all aforementioned methods either evaluate their method only for prediction tasks with a single output value or approximate the marginalized likelihood as a factorized Gaussian, disregarding inter-pixel correlations.

This simplification neglects the inherent dependencies between output dimensions, often resulting in miscalibrated uncertainties and incoherent predictions in structured settings. Modeling these correlations is therefore crucial and has been explored in various applications, including localization (Russell & Reale, 2021), human pose estimation (Gundavarapu et al., 2019), pixel regression (Dorta et al., 2018a;b; Duff et al., 2023), multi class predictions (Willette et al., 2021), and segmentation (Monteiro et al., 2020).

Some approaches that predict full covariance matrices are limited to low-dimensional output spaces (Russell & Reale, 2021; Gundavarapu et al., 2019). To scale to high-dimensional outputs, standard techniques typically sparsify the covariance matrix. However, several such methods are restricted to modeling uncertainty in local neighborhoods via band Cholesky parametrizations (Dorta et al., 2018a;b; Duff et al., 2023). To capture global correlations, recent works (Salinas et al., 2019; Monteiro et al., 2020; Willette et al., 2021; Stoica & Babu, 2023) have successfully employed a low-rank plus diagonal (LR+D) parametrization.

Existing LR+D solutions, most notably Stochastic Segmentation Networks (Monteiro et al., 2020), focus exclusively on modeling aleatoric uncertainty. While other methods learn low-rank factors of aleatoric uncertainty directly without a diagonal component (Nehme et al., 2024; Yair et al., 2024), they result in rank-deficient semi-definite matrices that lack the positive definiteness required for log-likelihood evaluation.

One could argue that models implicitly capture correlations through inherent patterns, similar to latent variable models for aleatoric uncertainty (Depeweg et al., 2018) or deep ensembles for epistemic uncertainty (Lakshminarayanan et al., 2017). However, these methods do not explicitly represent or provide those correlations. Zepf et al. (2024) are getting close to this goal and combine aleatoric and epistemic uncertainty with a LR+D representation. However, by partially using the Maximum a posteriori (MAP) solution as a further approximation, they do not account for the influence of the model uncertainty on the estimation of the aleatoric uncertainty, ultimately degrading the uncertainty estimate. Furthermore, unlike our approach, they do not resolve the second-order distribution into a unified joint representation. This prevents their method from being used for direct log-likelihood calculation and limits its utility to consecutive sampling.

In conclusion, while significant advancements have been made in modeling covariances for uncertainty estimation, the existing approaches suffer from limitations such as local sparsification, inadequate joint representations, and neglect of epistemic uncertainty, indicating a need for further research to develop more comprehensive and globally accurate uncertainty estimation methods.

Contribution In this work, we propose joint modeling of aleatoric and epistemic uncertainty in a single framework. Unlike existing approaches that approximate the second-order distribution with factorized normals (neglecting output correlations), our method preserves crucial correlations while avoiding the prohibitive space and time costs of full covariance matrices in high-dimensional outputs ∼104−107\sim 10^4 - 10^7 outputs). Our low-rank plus diagonal (LR+D) covariance parameterization reduces memory from O(S2)\mathcal{O}(S^2) to O(SR)\mathcal{O}(SR) and reduces log-likelihood computation from O(S3)\mathcal{O}(S^3) to O(SR2+R3)\mathcal{O}(SR^2 + R^3) ( R≪SR \ll S), enabling joint UQ on 65,000-dimensional outputs like CelebA. Furthermore, the low-rank eigenvectors extracted from the covariance provide interpretable insights into dominant modes of correlated uncertainty. We introduce stabilization techniques for robust training and showcase superior performance on high-dimensional tasks such as CelebA colorization (Liu et al., 2015), Flying Chairs optical flow (Dosovitskiy et al., 2015), and NYU Depth V2 (NYU) depth estimation (Silberman et al., 2012).