Manuscript Offprint
arXiv:2610.30207Spectral Uncertainty Decomposition for Sparse Bayesian Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Estimating distributed neural sources from M/EEG measurements is an ill-posed inverse problem where principled uncertainty quantification remains challenging. The usual conditional Gaussian posterior covariance does not explicitly distinguish uncertainty along likelihood-visible source directions from uncertainty that is invisible to the measurements. We propose a spectral framework based on the singular value structure of the prior-preconditioned forward operator, which provides an exact, interpretable decomposition of the posterior covariance into data-informed and indeterminacy epistemic components. This formulation identifies uncertainty contributions that are reducible by better measurements from those that are fundamentally irreducible by sensing geometry. We further derive an equivalent subtractive decomposition that expresses the prior covariance as the sum of posterior and data-driven reduction terms, enabling precise accounting of uncertainty reduction through Bayesian learning. Together, these complementary representations offer both theoretical insight and practical tools for interpretable uncertainty quantification in M/EEG source imaging for linear-Gaussian Bayesian inverse solvers where the posterior covariance is available in closed form.
1 Introduction
Electro- and magnetoencephalography (EEG and MEG) are non-invasive techniques that measure brain electromagnetic activity with high temporal resolution. The mathematical model of the M/EEG sensing procedure can be described by the linear forward model:
where are sensor measurements from sensors at time instants, is the lead-field matrix, are unknown source activations for sources at time instants, and the sensor noise is modeled as . The noise vectors are independent across time.
Estimating X from Y is a severely ill-posed and ill-conditioned inverse problem: typically , meaning that even small perturbations in the input (sensor data) can lead to large differences in the output (estimated sources). Regularization is therefore essential to obtain well-posed and stable source estimates [6]. A principled view of regularization is provided by Bayesian modeling, where priors encode structural assumptions on sources. With fixed prior parameters, maximum-a-posteriori (MAP) estimation, or Type-I Bayesian learning, recovers many classical regularizers as special cases (e.g.,
1st Workshop on Epistemic Intelligence in Machine Learning (EIML 2025).
regularized maximum-likelihood approaches) [3]. In Type-II Bayesian (empirical-Bayes) learning, covariance hyperparameters are estimated from the marginal likelihood and then held fixed in the conditional Gaussian posterior. Sparse Type-II methods such as -MAP or Champagne [7, 9–11] promote sparsity and are widely used for M/EEG source imaging.
Despite extensive use of sparse Bayesian learning approaches, a principled uncertainty quantification (UQ) of the posterior over sources remains unclear. While the data covariance in sensor space decomposes additively into epistemic and aleatoric parts, the usual matrix representation of the posterior source covariance does not make the likelihood-visible and likelihood-null contributions explicit.
We propose a spectral framework that yields the following decomposition formulas providing mode-wise uncertainty representations and practical diagnostics for M/EEG inverse problems, not only for sparse Bayesian learning but for any inverse solver operating under the same linear Gaussian model (and thus admitting a closed-form Gaussian posterior covariance of the form (3)), whether the (diagonal) prior is fixed or learned (Type-I or Type-II methods):
Spectral posterior decomposition. Let the prior covariance be diagonal and define the prior-preconditioned forward operator
Take its compact singular value decomposition (SVD)
with having orthonormal columns and spanning the orthogonal complement so that . Defining
the posterior covariance admits the exact additive decomposition:
Equivalently, the prior-minus-reduction identity holds:
so that, per visible mode , the fraction of prior variance removed by the data is and the posterior shrinkage is . For a singular prior, the mapped null component includes no conditional variance along pruned coordinates.
Uncertainty Characterization. Regarding epistemic versus aleatoric effects, the posterior covariance is epistemic; aleatoric noise appears only parametrically via the shrinkage factors and additively in the predictive sensor covariance . A practical limitation is degeneracy under empirical-Bayes sparsity: pruning yields zero posterior variances in some directions.
2.1 Type-II Bayesian Learning Framework
In more detail, we address this ill-posedness through Type-II Bayesian learning, which assumes a zero-mean Gaussian prior with diagonal covariance for the sources:
where contains unknown source variances.
The hyperparameters are learned by minimizing the negative marginal log-likelihood function (e.g., Type-II ML estimation) [8, 9, 12]:
where the data or statistical covariance is defined by
Given estimates of , the posterior source distribution is Gaussian:
with posterior mean and covariance:
In Type-II Bayesian learning, these covariance expressions are conditional on the fitted prior hyperparameters; uncertainty about hyperparameters is not propagated.
The data covariance (2) provides a principled, additive separation of variability at the sensor level. The first term, , is the prior-induced (epistemic) variability obtained by projecting uncertainty about the latent sources through the forward model; the second term, , is aleatoric measurement noise. Thus, is an epistemic-aleatoric sum in sensor space that is both mathematically clean and physically interpretable.
Core problem. In contrast, the posterior covariance quantifies only epistemic uncertainty about the sources after conditioning on the data; aleatoric noise does not add to . Standard formulations do not yield a canonical additive split of itself into interpretable components. We therefore seek and derive a spectral decomposition of that partitions epistemic uncertainty into a data-visible, reducible component and a nullspace, irreducible component, providing an additive attribution in source space analogous in spirit to (2) in sensor space.
3 Spectral Uncertainty Decomposition
3.1 Prior-Preconditioned Data-Misfit Hessian Operator
The fundamental challenge in decomposing the posterior covariance arises from the non-orthogonality of different uncertainty sources in the original parameter space. Our key theoretical insight is that by preconditioning the problem with the prior covariance, we can orthogonalize these uncertainty components through spectral analysis of a modified Hessian operator [1, 2].
Furthermore, in sparse Bayesian learning (SBL), the empirical-Bayes optimum drives many prior variances to zero [9], so is typically positive semidefinite (PSD) and singular matrix.
When , the posterior covariance (3) admits the following equivalent representation via the Woodbury identity [4]:
Equation (4) is undefined for a singular prior because does not exist. We therefore use the positive-semidefinite prior square root and avoid inverse prior covariances. Let
where is the prior-preconditioned data-misfit Hessian matrix [1, 2] and is the (well-defined) PSD square root. Then, we factor out the prior covariance to obtain:
Since , all eigenvalues of are greater than or equal to 1, so (6) is valid even when is rank-deficient (under the SBL regime). This avoids undefined prior inverses but does not eliminate the zero conditional variances assigned to pruned source coordinates. On the other hand, the reformulation (5) is crucial because it transforms the problem into analyzing the spectrum of , which operates on a whitened parameter space where the prior has been normalized to identity. This enables the spectral decomposition developed in the following section, which provides the missing additive uncertainty decomposition for the posterior covariance (3).
4 Additive Spectral Decomposition
We work with the prior-preconditioned forward operator:
Let . The full-row-rank case is possible, but it is not assumed after SBL pruning. The full SVD is
where U, V are orthogonal and
Hence ; this includes directions mapped to zero by a singular prior square root. Partition the right singular vectors as
Then spans the visible (observable) subspace in the prior-preconditioned source coordinates, and spans the nullspace:
The associated orthogonal projectors in are
Here has rank and has rank . The nullspace is exactly the column space of ; the associated physical source perturbations are mapped by , so prior-null directions carry no conditional covariance even when they belong to .
The key theoretical result (derived in Appendix A) is the exact additive spectral decomposition formula:
where and is the number of strictly positive singular values (equal to in the full-row-rank case).
This decomposition cleanly separates posterior (epistemic) uncertainty into a visible component reduced by larger or smaller and a nullspace component due to fundamental non-identifiability; (aleatoric noise) affects the visible block only through the shrinkage and does not add to itself (it reappears additively only in the predictive posterior covariance ). In more detail, enters only via the eigenvalues of the prior-preconditioned Hessian operator govern contraction in visible mode through . For the physical spectral mode , the posterior covariance contribution is , not generally at a single source coordinate. Increasing decreases the retained fraction when the prior and forward model are held fixed.
4.1 Interpretation (epistemic vs. aleatoric uncertainties)
1. Data-Informed Uncertainty (reducible, epistemic)
This term represents the posterior uncertainty of the latent sources in the data-observable subspace and corresponds to epistemic uncertainty. Each visible mode (column of ) is factored by a shrinkage factor which quantifies how strongly the data constrain that direction. When , the shrinkage approaches , indicating limited information gain (i.e., uncertainty remains high). Conversely, when , the shrinkage tends to , implying near-certainty in that mode. Thus, reducible uncertainty decreases with larger singular values (higher observability) or smaller noise variance (better data quality). In SBL, are the singular values of and can be increased either by more informative geometry/sensors (e.g., denser arrays, EEG+MEG, free orientations, depth/field normalization affecting ) or by the learned prior allocating more variance along visible modes (larger via group ARD), whereas only averaging/whitening reduces the effective .
It is important to note that aleatoric uncertainty ( ) appears here only parametrically, through its influence on the shrinkage factors. The randomness associated with measurement noise belongs to the observation model itself and does not contribute a separate covariance component in the source posterior.
- Indeterminacy Uncertainty (irreducible under fixed geometry, epistemic - geometric)
This is posterior variance along sensor-unobservable (nullspace) directions. It reflects structural non-identifiability and is therefore epistemic as well, but irreducible by lowering or averaging more trials. It can only be reduced by changing L (head model/constraints) or altering the prior support.
5 Prior-Minus-Reduction Decomposition
Using the orthogonality condition of the singular vectors and auxiliary resolvent identity in Appendix (11) , the additive spectral representation immediately yields an equivalent subtractive form:
Here , where and (with thin SVD). By the resolvent identity in Appendix (11),
so each observable mode is weighted by the fraction of prior variance removed by the data. Equivalently, if denotes the remaining posterior fraction in mode , then the removed fraction is . Therefore, the prior-minus-reduction identity demonstrates that posterior uncertainty diminishes relative to the prior precisely when data provide stronger informative constraints.
6 Numerical Results
We model macroscopic cortical generators as current dipoles on the gray–matter surface. In the fixed–orientation setting used here, each dipole is constrained to be normal to the local cortical surface (one degree of freedom per location). We restrict to the left hemisphere (LH) with candidate dipoles and simulate EEG with sensors, time samples, and 10 active sources. Active locations are drawn uniformly among the left hemisphere sites; their time courses are i.i.d. zero–mean Gaussian. A Gaussian noise matrix is generated and then rescaled to impose the prescribed realized SNR. The noise matrix is normalized and added to the signal matrix as follows:
where determines signal-to-noise ratio (SNR) in sensor space defined as . In our case, we used or dB. Furthermore, hyperparameters are learned by a -MAP update with noise whitening at the empirical level .
Sparse solutions make full cortical variance maps hard to read. We therefore show: (i) a single enlarged LH brain map of the posterior mean amplitude with the top locations marked in Fig 1; and (ii) stacked bar plots at those locations that display the per-source marginal variances, i.e., the diagonals of the corresponding covariances. All variance quantities are scaled by to reflect the uncertainty in time-averaged estimates, following for independent samples.
We have two bar panels display, at the same sites: (a) Posterior (additive): one stacked bar with (bottom) and (top), whose sum equals ; (b) Prior-minus-reduction (subtractive): one stacked bar with (bottom) and (top), whose sum equals . All quantities are marginal (per-source) variances taken from the respective diagonals. In our geometry (, ), many top- sites exhibit comparable data-informed and nullspace contributions in Fig. 2, reflecting limited visible rank and depth effects. Fig. 3 shows that the data remove a substantial fraction of the prior variance at the same locations via .
7 Discussion and Outlook
We introduced two complementary representations of the posterior covariance for uncertainty quantification. The additive spectral decomposition, Eq. (7), splits into a visible (data-informed) component and a nullspace (indeterminacy) component, whereas the prior-minus-reduction identity, Eq. (10), expresses with mode-wise weights . The additive form is most suitable for visualization because it cleanly separates reducible uncertainty confined to the visible subspace from irreducible nullspace uncertainty; by contrast, the subtractive form is most suitable for information accounting, since reports exactly how much prior variance the data remove per mode and satisfies the identity . Regarding epistemic versus aleatoric effects, is epistemic; aleatoric noise appears only parametrically via the shrinkage factors and additively in the predictive sensor covariance . The nullspace term constitutes the structurally irreducible component under the fixed geometry (e.g., forward operator). A practical limitation is degeneracy under empirical-Bayes sparsity: pruning yields zero posterior variances in some directions; although the decompositions remain valid, such pruning may lead to overconfidence; calibration is not evaluated in this experiment. Mitigating degeneracy (e.g., via radial basis functions or treatments of hyperparameter uncertainty) is an important direction for future work.
In summary, the additive decomposition reveals that Bayesian learning systematically reduces uncertainty only in sensor-observable directions while nullspace indeterminacy remains an unavoidable limitation. Concurrently, the subtractive decomposition demonstrates that posterior uncertainty diminishes relative to the prior precisely when data provide stronger informative constraints.
A Derivation of Spectral Uncertainty Decomposition
We start from equation (3), which remains valid for a singular prior:
The identity with yields
No inverse of the prior covariance is used.
Let and use its rank-r SVD
where is an orthogonal basis of . Then, the full SVD of the part of prior-preconditioned data-misfit Hessian matrix:
Now we compute the inverse:
Substituting back:
This completes the derivation of the spectral uncertainty decomposition in Equation (7).
Remark 1 (Thin SVD form). For computations with arbitrary rank , we can also use the thin SVD:
with having orthonormal columns and spanning the orthogonal complement, . Substituting this into (7) yields the same decomposition with replaced by .
Remark 2. Aleatoric uncertainty is the measurement randomness:
It adds additively in the predictive covariance (law of total variance), not in :
Here denotes an independent repeat measurement of the same latent state. Unlike the prior-predictive covariance , this covariance is conditional on the original measurements. Thus, in source space the posterior uncertainty is entirely epistemic (split as data-informed + indeterminacy). Aleatoric (noise) at sensors is irreducible randomness per measurement; effective can be lowered by averaging/denoising, which reduces epistemic posterior via the shrinkage but does not make the noise itself epistemic.
Remark 3. Let . The nullspace component is identically zero if and only if .
Remark 4 (Data-driven uncertainty reduction). The term quantifies how much prior variance the data remove in each observable direction. It is a reduction term (a prior–posterior difference), not a posterior uncertainty component, and acts only in the observable subspace spanned by . The per-mode weights follow directly from the resolvent identity (11).
Remark 5. Let denote the data-informed posterior uncertainty (visible subspace component) from the additive spectral decomposition. Then, one has the exact identity:
That is, the prior covariance projected onto the visible subspace is partitioned additively into the visible subspace component of the posterior covariance and the data-driven uncertainty reduction, by applying the resolvent identity (11).
Remark 6. These decomposition formulas orthogonalize uncertainty in the prior-whitened space and remain exact under SBL-induced degeneracy, in line with the prior–conditioned inverse problem literature [1, 2].
Remark 7. Our approach is aligned with the prior-preconditioned data-misfit Hessian technique used in large-scale Bayesian PDE inverse problems (e.g., [1, 2]), where and a low-rank eigendecomposition of the prior-preconditioned Hessian yields a prior-minus-reduction form. In our finite-dimensional M/EEG setting with homoscedastic noise we identify and , so their eigenvalues map to and the per-mode removed fraction coincides with , i.e., our Eq. (10). The key difference is that we provide an exact additive decomposition (Eq. (7)) that makes the nullspace/indeterminacy term explicit, whereas the cited methods principally emphasize low-rank posterior approximations.
Remark 8. A closely related kernel/image decomposition of Laplace posteriors has recently been developed in Bayesian deep learning [5]. In that setting, the stacked Jacobian plays the role of a data-visibility operator: its row space spans parameter directions that change the function on the training set, whereas characterizes reparameterization directions that are unobservable in the likelihood. Consequently, the Laplace covariance splits into an image component contracted by data and a kernel component determined purely by the prior, mirroring our visible/nullspace split. Our analysis, however, is exact for the linear–Gaussian M/EEG inverse problem, and in our case the nullspace corresponds to physical sensing indeterminacy induced by the forward operator L.
B Auxiliary lemma
Lemma 9. For the diagonal, positive semidefinite matrix ,
Proof. Multiply on the left: . Right-multiplying by yields the first equality. Because is diagonal in the basis, it commutes with , giving the second equality.
C Figures
Lateral View
Medial View

Figure 1: Posterior mean on LH with top-10 sites. Lateral (left) and medial (right) views of the time-averaged amplitude ; red dots mark the sites used in the bar plots.

Figure 2: Posterior variance at top-10: stacked bars show (red) + (blue) = .

Figure 3: Prior-minus-reduction at top-10: stacked bars show (green) + (purple) = .
Acknowledgments
This work was accepted at the 1st Workshop on Epistemic Intelligence in Machine Learning (EIML), EurIPS 2025.
References
[1] T. Bui-Thanh, O. Ghattas, J. Martin, and G. Stadler. A computational framework for infinite-dimensional Bayesian inverse problems part I: The linearized case, with application to global seismic inversion. SIAM Journal on Scientific Computing, 35(6):A2494–A2523, 2013. doi:10.1137/12089586X.
[2] H. P. Flath, L. C. Wilcox, V. Akçelik, J. Hill, B. van Bloemen Waanders, and O. Ghattas. Fast algorithms for Bayesian uncertainty quantification in large-scale linear inverse problems based on low-rank partial hessian approximations. SIAM Journal on Scientific Computing, 33(1):407–432, 2011. doi: 10.1137/090780717.
[3] R. Gribonval. Should penalized least squares regression be interpreted as maximum a posteriori estimation? IEEE Transactions on Signal Processing, 59(5):2405–2410, 2011.
[4] R. A. Horn and C. R. Johnson. Matrix Analysis. Cambridge University Press, 2nd edition, 2012.
[5] H. Roy, M. Miani, C. H. Ek, P. Hennig, M. Pförtner, L. Tatzel, and S. Hauberg. Reparameterization invariance in approximate bayesian inference. In Advances in Neural Information Processing Systems, volume 37, pages 8132–8164, 2024. doi: 10.52202/079017-0262.
[6] A. M. Stuart. Inverse problems: a bayesian perspective. Acta Numerica, 19:451–559, 2010.
[7] M. E. Tipping. Sparse bayesian learning and the relevance vector machine. Journal of Machine Learning Research, 1:211–244, 2001.
[8] D. Wipf and S. Nagarajan. A unified Bayesian framework for MEG/EEG source imaging. NeuroImage, 44(3):947–966, 2009.
[9] D. Wipf and S. Nagarajan. Iterative reweighted and methods for finding sparse solutions. IEEE Journal of Selected Topics in Signal Processing, 4(2):317–329, 2010.
[10] D. Wipf, B. D. Rao, and S. Nagarajan. Latent variable bayesian models for promoting sparsity. IEEE Transactions on Information Theory, 56(9):4312–4328, 2010.
[11] D. P. Wipf and B. D. Rao. Sparse bayesian learning for basis selection. IEEE Transactions on Signal Processing, 52(8):2153–2164, 2004.
[12] D. P. Wipf, R. Ramírez, J. Palmer, S. Makeig, and B. D. Rao. Analysis of empirical Bayesian methods for neuroelectromagnetic source localization. In B. Schölkopf, J. C. Platt, and T. Hoffman, editors, Advances in Neural Information Processing Systems, volume 19, pages 1505–1512. MIT Press, 2007.