Multilevel adaptive sparse Leja approximations for Bayesian inverse problems
Ionut-Gabriel Farcas, Jonas Latz, Elisabeth Ullmann, Tobias Neckel and, Hans-Joachim Bungartz

TL;DR
This paper introduces a multilevel adaptive sparse Leja algorithm that efficiently approximates Bayesian posteriors in inverse problems by combining coarse and fine model discretizations with adaptive sparse grids, reducing computational costs.
Contribution
It proposes a novel multilevel adaptive sparse Leja method that improves Bayesian inverse problem solutions by efficiently focusing on high posterior probability regions.
Findings
The algorithm accurately approximates posteriors with fewer expensive model evaluations.
It outperforms standard multilevel methods and MCMC in computational efficiency.
Numerical experiments demonstrate effectiveness in 2D and 3D elliptic inverse problems.
Abstract
Deterministic interpolation and quadrature methods are often unsuitable to address Bayesian inverse problems depending on computationally expensive forward mathematical models. While interpolation may give precise posterior approximations, deterministic quadrature is usually unable to efficiently investigate an informative and thus concentrated likelihood. This leads to a large number of required expensive evaluations of the mathematical model. To overcome these challenges, we formulate and test a multilevel adaptive sparse Leja algorithm. At each level, adaptive sparse grid interpolation and quadrature are used to approximate the posterior and perform all quadrature operations, respectively. Specifically, our algorithm uses coarse discretizations of the underlying mathematical model to investigate the parameter space and to identify areas of high posterior probability. Adaptive sparse…
| Method | No. quadrature points | Result |
|---|---|---|
| MH | 0.33813 | |
| Integration w.r.t. | 1603 | 0.33813 |
| Integration w.r.t. | 49 | 0.33811 |
| Level | ||||
|---|---|---|---|---|
| Method | |
|---|---|
| MH | |
| StdML | |
| MLLejaStd | |
| MLLejaDV |
| Level | ||||
|---|---|---|---|---|
| Method | |
|---|---|
| MH | |
| StdML | |
| MLLejaStd | |
| MLLejaDV |
| Level | ||||
|---|---|---|---|---|
| Method | ||||||||
|---|---|---|---|---|---|---|---|---|
| MH | ||||||||
| MLStd | ||||||||
| MLDV |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\newsiamremark
remarkRemark \newsiamremarkhypothesisHypothesis
\newsiamthmclaimClaim
\headersMultilevel Adaptive Sparse Leja ApproximationsI-G. Farca\cbs, J. Latz, E. Ullmann, T. Neckel, and H.-J. Bungartz
\externaldocumentsupplement
Multilevel Adaptive Sparse Leja Approximations for Bayesian Inverse Problems
††thanks: \funding This work was supported by the German Research Foundation (DFG) through the TUM International Graduate School of Science and Engineering (IGSSE) within Project 10.02 BAYES, and by the EPSRC under grant number EP/R014604/1.
I-G. Farca\cbs Department of Informatics, Technical University of Munich, Boltzmannstr. 3, 85748 Garching, Germany (, , ). [email protected]
J. Latz Department of Mathematics, Technical University of Munich, Boltzmannstr. 3, 85748 Garching, Germany (, ). [email protected]
E. Ullmann33footnotemark: 3
T. Neckel22footnotemark: 2
H.-J. Bungartz22footnotemark: 2
Abstract
Deterministic interpolation and quadrature methods are often unsuitable to address Bayesian inverse problems depending on computationally expensive forward mathematical models. While interpolation may give precise posterior approximations, deterministic quadrature is usually unable to efficiently investigate an informative and thus concentrated likelihood. This leads to a large number of required expensive evaluations of the mathematical model. To overcome these challenges, we formulate and test a multilevel adaptive sparse Leja algorithm. At each level, adaptive sparse grid interpolation and quadrature are used to approximate the posterior and perform all quadrature operations, respectively. Specifically, our algorithm uses coarse discretizations of the underlying mathematical model to investigate the parameter space and to identify areas of high posterior probability. Adaptive sparse grid algorithms are then used to place points in these areas, and ignore other areas of small posterior probability. The points are weighted Leja points. As the model discretization is coarse, the construction of the sparse grid is computationally efficient. On this sparse grid, the posterior measure can be approximated accurately with few expensive, fine model discretizations. The efficiency of the algorithm can be enhanced further by exploiting more than two discretization levels. We apply the proposed multilevel adaptive sparse Leja algorithm in numerical experiments involving elliptic inverse problems in 2D and 3D space, in which we compare it with Markov chain Monte Carlo sampling and a standard multilevel approximation.
keywords:
Bayesian inference, multilevel method, adaptive sparse grids, partial differential equation
{AMS}
35R30, 62F15, 65C60, 65D30, 65N30, 68T05
1 Introduction
Mathematical models in science and engineering often require input parameters which cannot be observed directly, yet these parameters are required for predictions based on the model. A standard procedure is to estimate the inputs from indirect observations, which is known as an inverse problem. In contrast, the corresponding forward problem maps from the parameter to the observation space.
In many applications, for instance the geosciences or medical sciences, the observations are noisy and their number is insufficient to identify a unique associated parameter value. The Bayesian approach to inverse problems [21, 41, 43] provides a consistent mechanism to combine noisy or incomplete data with prior knowledge, and to quantify the uncertainty in the parameter estimate. The prior knowledge is incorporated into a probability distribution over the parameter space; this is termed prior (measure) . The Bayesian solution to the inverse problem is then the posterior (measure) arising from conditioning the prior on the observations. Unfortunately, the posterior is often intractable in the sense that it does not admit closed form analytic expressions. Hence approximations have to be used in practice.
Sampling-based posterior approximations such as Markov chain Monte Carlo (MCMC) [1] or Sequentical Monte Carlo (SMC) [7] do not rely on the smoothness of the parameter-to-observation map, and can be conducted in high-dimensional parameter spaces. The drawback is that without exploiting smoothness or low-dimensional structure in the parameter space often a prohibitive number of samples are required to obtain the desired accuracy. Since each sample entails the evaluation of the forward map, the total cost of the Bayesian inversion becomes prohibitive if the forward model is specified by a partial differential equation (PDE), and is thus computationally expensive. In recent years, many works suggested computationally feasible, yet accurate approximations of the posterior. In this work we focus on sampling-free approximations for computationally expensive problems for parameter spaces of small to moderate dimension. We assume that the prior and posterior have a probability density function with respect to (w.r.t.) the Lebesgue measure and approximate the posterior density using sparse grid interpolation and sparse grid quadrature.
Sampling-free approaches often involve surrogates for the forward response operator to decrease the computational cost. Typical surrogates are based on generalized polynomial chaos [10, 26, 30, 47], sparse grids [3, 5, 28, 36, 37, 38], Gaussian process regression [22, 42], model reduction [13, 24, 27], and combinations, e.g., sparse grids and reduced bases [3, 4]. To obtain an accurate (and convergent) approximation, these surrogates require certain types of smoothness of the response surface or likelihood function w.r.t. the input parameters. The smoothness assumptions can be weakened by using piecewise polynomial approximations together with Voronoi tesselations of the parameter space [31]. Of course, surrogates can also be used to accelerate sampling-based approximations such as MCMC, see e.g., [26, 33]. We remark that Quasi-Monte Carlo [8, 35] is in principle a sampling-free method which does not rely on surrogates, however, it requires again a smooth approximand, and is often used together with randomization.
Theoretical analysis shows that if the surrogate converges to the forward model at a specific rate w.r.t. the prior weighted -norm, then the approximate posterior converges to the exact posterior with at least the same rate [30, 41]. This result has been improved recently in [46] where it was showed that the convergence rate of the posterior approximation is at least twice as large as the convergence rate of the surrogate, for general priors. However, constructing an accurate surrogate over the entire support of the prior might not be feasible and is in fact often unnecessary. Indeed, in inference problems where the data is informative, the posterior differs significantly from the prior, and is supported only in a small part of the prior support. This suggests to adapt and localize the surrogate construction to the support of the posterior. We adopt this approach in our work and construct multilevel, adaptive surrogates with localized support using adaptive sparse grid approximations.
The idea of posterior-focused surrogates is not new, it has however received little attention to date in the literature. Li and Marzouk [26] borrow ideas from statistics and construct an efficient polynomial chaos surrogate associated with a density that minimizes the cross entropy between the posterior and a family of multivariate normal distributions. Jiang and Ou [20] suggest a two-stage surrogate based on generalized multiscale finite elements and least-squares stochastic collocation. Yan and Zhou [47] propose a multifidelity polynomial chaos surrogate which combines a large number of inexpensive low-fidelity model evaluations with a small number of expensive high-fidelity model evaluations, following the idea of multifidelity approximations [34].
One challenge of posterior-focused surrogates is the need to handle arbitrary densities which can deviate significantly from the prior which is usually a classical density such as uniform or Gaussian. We address this by constructing adaptive sparse grid approximations based on weighted (L)-Leja sequences (see, e.g., [16, 32]). Note that sparse grid approximations with Leja points have been devised for forward uncertainty propagation in [11, 12, 14, 32]. In [11] the adaptive construction of the points is guided by sensitivity scores, and the strategy is applied in plasma microturbulence analysis. In [14] the Leja points are constructed with the help of an adjoint-based error indicator. The use of Leja points to approximate posterior densities is a novel contribution to the literature. Leja points offer further computational advantages since they are nested and thus allow to reuse (expensive) model evaluations.
We address the possible high-dimensional parameter space in Bayesian inversion by the use of multilevel approximations. At each level, dimension-adaptive sparse grids [6, 15, 32] are employed, either in standard form, or using directional variances to better exploit anisotropies in the parameter space. In particular, at the first level, our algorithm uses a coarse discretization of the given model to investigate the parameter space and to identify areas of high posterior probability. Adaptive algorithms are then used to place weighted (L)-Leja points in these areas, and ignore other areas of small posterior probability. Starting with the second level, we sequentially update the prior such that the previous sparse grid approximation of the posterior is reused. In this way, the current posterior measure can be approximated accurately with few expensive, finer model discretizations. We point out that sparse grid approximations are based on point sequences in one dimension. However, starting with the second level the posterior densities are in general not separable and hence we cannot rely on a simple tensorization of univariate Leja points. Instead we construct Leja points w.r.t. a Gaussian approximation of the posterior, which is separable, and we then correct the bias introduced by this approximation in quadrature computations.
The remainder of this paper is structured as follows. In Section 2 we provide the necessary background information. In particular, in Section 2.1 we formulate the Bayesian inverse problem and discuss the computation of posterior expectations by importance sampling. Section 2.2 reviews multilevel approaches, and Section 2.3 discusses generalized sparse grids. Section 3 contains the major contribution of our work, the multilevel adaptive sparse Leja approximation to the posterior density in a Bayesian inverse problem. This method is independent of the specific implementation of the adaptive sparse grid approximations. Details on the used dimension-adaptive approximations are given in Section 4. In Section 5, we present numerical results, comparing our multilevel algorithm with sampling methods and the classical multilevel approach based on telescoping sums. Finally, Section 6 offers concluding remarks.
2 Background
2.1 Bayesian inversion
To begin we formulate the Bayesian inverse problem. Let denote the parameter space. In addition, let be a separable Banach space that denotes the data space. is the dimension of the data space, and is the number of observations. Notably, the parameter and data space are finite-dimensional. This allows us to work with densities w.r.t. the Lebesgue measure. The underlying mathematical model is formalized by a function , which maps from the parameter space to the data space. Noisy observations are obtained. To model the noise we assume that is a realisation of the random variable where is non-degenerate Gaussian noise, and is the true parameter. In an inverse problem we wish to identify the parameter , i.e., solve the equation
[TABLE]
for . This problem is typically ill-posed in the sense of Hadamard [18], due to noise, and since the low-dimensional data space is often not sufficiently rich to allow the identification of a unique parameter in the high-dimensional space . The ill-posedness can be cured by reformulating Eq. 1 as a Bayesian inverse problem. Next, we introduce our notation and briefly discuss Bayesian inversion, and refer to [41] for more details.
We assume that is an -valued random variable that is distributed according to a prior measure with Lebesgue density on the parameter space . Moreover, we assume that is stochastically independent of the noise . The density reflects our knowledge about before we make an observation . The information provided by is modelled by the (data) likelihood. Since the noise is Gaussian by assumption, the likelihood is given by
[TABLE]
The function is called potential or negative log-likelihood. The solution of the Bayesian inverse problem is the posterior (measure) , i.e., the conditional measure of given that the event occurred. The posterior measure has also a density which can be computed using Bayes’s formula:
[TABLE]
provided that . In the given setting (non-degenerate Gaussian additive noise, finite dimensional data space), one can show that is always finite and bounded away from [math]. This implies existence of the posterior measures, see [23]. The work [23] also establishes that Bayesian inverse problems of this type are always well-posed.
Finally, let denote a quantity of interest (QoI) depending on the parameter . Since is a random variable, one is typically interested in the forward propagation of uncertainties through the action of . For instance, we wish to evaluate integrals of w.r.t. the posterior measure:
[TABLE]
In practice, we approximate integrals of this type via numerical quadrature. Note that we can write the expected value in Eq. 4 in terms of a ratio of two expected values w.r.t. the prior measure:
[TABLE]
Note that the prior is typically much more accessible compared to the posterior, via i.i.d. sampling or a closed form probability density function (pdf). If the two expected values in Eq. 5 are approximated with samples from , we refer to this method by importance sampling. If the expected values are approximated with other numerical quadrature rules, e.g., Quasi-Monte Carlo [35] or sparse grid quadrature [36, 38], we refer to any of these methods as importance-sampling-based methods.
2.2 Multilevel approximation of the quantity of interest
The approximation of the expected value involves two sources of error: the quadrature error associated with the approximation of the measure , and the discretization error associated with the approximation of . The quadrature error is typically controlled by the number of particles or grid points in the parameter domain. The discretization error in is often controlled by the mesh size in the physical domain. In our setting, the evaluation of typically involves a computationally expensive model, e.g., a partial differential equation (PDE). If we wish to construct accurate approximations to , then has to be discretized with a high resolution on a fine grid in physical space, and has to be evaluated for a large number of parameter values. For these reasons the approximation of is computationally demanding.
Multilevel methods provide a framework to approximate high-resolution problems efficiently by combining evaluations from fine and coarse grid approximations. Specifically, approximations based on quadrature and physical domain discretization grids of complementary resolution are combined such that most computations are done on coarse grids while fine grid approximations are evaluated only a limited number of times. In this way, the overall computational cost is reduced, while the accuracy is preserved. A large number of multilevel approaches for Bayesian inverse problems proceed by using a telescoping sum based on the linearity of the expectation operator, see, e.g., [9]. Alternatively, it is possible to construct a multilevel approximation without relying on such a telescoping sum. Examples are the multifidelity preconditioned MCMC method in [33], Multilevel Sequential2 Monte Carlo [25], and our multilevel sparse Leja approximation presented in Section 3.
2.3 Approximation with generalized sparse grids
We aim to approximate posterior density functions with sparse grid interpolation and quadrature at each level in our multilevel approach. To this end, we employ generalized, adaptive Smolyak approximations [39]. Smolyak’s algorithm, also known as the combination scheme [17], is a strategy to construct multivariate sparse grid approximations by weakening the assumed coupling between the input dimensions (see, e.g., [6, 11]). We briefly summarize Smolyak’s algorithm. For a more detailed overview of this approach and its application in scientific computing, see [2, 44] and the references therein.
Let denote univariate functions, where . In addition, let denote a multivariate function with a scalar output. For example, could be the potential function, , or the QoI, . Let for denote either univariate interpolation or integration operators defined w.r.t. a weight function , which in our context is the th component of the prior density. Further, consider approximations that converge as , where is typically referred to as level. Starting from one-dimensional difference or hierarchical surplus operators,
[TABLE]
with the convention , Smolyak’s approximation formula reads
[TABLE]
where is a multiindex and is a finite set of multiindices. Note that by construction, Eq. 7 requires the underlying multivariate space, , as well as the corresponding weight function to be separable. When the weight function is a density the stochastic parameters need to be independent.
Since Eq. 7 is written in terms of tensorizations of univariate difference operators Eq. 6 the set must be constructed such that the summation in Eq. 7 telescopes correctly. Suitable sets of multiindices are called admissible (or downward closed; see [15]). In particular, for an admissible set it holds that for , where denotes the th unit vector in .
To construct the approximations , we employ weighted (L)-Leja sequences (see, e.g., [16, 32]). Given the weight function , weighted (L)-Leja sequences are constructed recursively as follows:
[TABLE]
When is the standard uniform density with support , we choose . Note that the above point sequence is in general not uniquely defined, because Eq. 8 might have multiple maximizers. In that case we simply pick one of the maximizers. Weighted (L)-Leja sequences allow the construction of sparse grid approximations for arbitrary probability densities. Moreover, they lead to accurate approximations with low cardinality (see, e.g., [32]). To fully define Eq. 7, we need to specify the multiindex set as well. We construct adaptively based on the dimension-adaptive algorithm of [15, 19], which we outline in Section 4.
2.4 Assumptions
As discussed in Section 2.3, sparse grid approximations require a tensor domain and a tensorized prior measure. Hence, we assume:
- A1.
The parameter space is a tensor product space, i.e.,
[TABLE]
where for .
- A2.
The prior density is separable, i.e.,
[TABLE]
where , .
Assumption A1 can always be satisfied by embedding a non-tensorized parameter space into a hyperrectangle of suitable dimension. Assumption A2 is fulfilled if the components of are stochastically independent under the prior measure. If Assumption A2 is not satisfied, the Gaussian approximation of is needed (see Section 3).
3 Multilevel sparse Leja algorithm
This section contains the major contribution of our work. Our goal is to address the challenges of Bayesian inversion in computationally expensive problems. To this end, we formulate a deterministic, multilevel, sampling-free methodology based on sparse grids in which we sequentially update the prior information as the level in the multilevel hierarchy increases.
Most computations in Bayesian inversion involve evaluations of the forward operator, , which in this paper is assumed to be computationally expensive. When a large number of such evaluations is needed, the corresponding computational cost is prohibitive. To reduce the cost, we employ multilevel approximations. At each level, we construct sparse grid surrogates of the potential function . Our motivation is two-fold. First, evaluating means evaluating the forward model, (see Eq. 2), hence the computationally expensive part. Second, even if is vector valued, is a scalar. Sparse grid approximations can be constructed for vector-valued functions, however, a separate approximation is usually needed for each output component, which can be infeasibly expensive. After the surrogate is obtained, all other single level operations, which typically involve integration, employ this surrogate, making them computationally cheap. In the following, we use the superscripts in and qu to specifically refer to interpolation and quadrature, respectively, whereas superscript op is used to refer to either of the two operations.
In this paper, the surrogates of the potential function are constructed via adaptive sparse grid interpolation, whereas all integration operations are performed using adaptive sparse grid quadrature. The specific implementations do not influence the formulation of our multilevel approach. Thus we assume we have two adaptive strategies, AdaptSGInterp(, , , ) and AdaptSGQuad(, , , ), which depend on a tolerance, . The other inputs are a maximum reachable sparse grid level, , the target function, , and the density function w.r.t.which the approximation is performed, . Note that specific implementations might have additional input arguments, however the four inputs considered here are sufficient to illustrate these algorithms. The adaptive strategies are summarized in Section 4.
3.1 General setup
Let , , denote the number of levels in our multilevel formulation. Further, let denote a generic quantity depending on both physical and stochastic parameters. Let . By we characterize the discretization of the physical domain of the forward response operator , where is the coarsest and the finest discretization level. Hence, by we denote the semi-discrete approximation of depending on , whereas denotes either or . In addition, denotes the tolerance employed in the adaptive sparse grid approximations of such that
[TABLE]
Thus by we denote the sparse grid approximation of depending on .
In our multilevel formulation, we determine for all . To simplify the notation we use the subscript to refer to and the subscript to denote approximations . Hence we refer to the level in our multilevel approach by or . Note that levels are used to characterize both sparse grid and multilevel formulations. To avoid confusion, we will explicitly specify what is meant by level in each context.
3.2 Level
At we compute the approximation using adaptive sparse grid interpolation w.r.t. the prior . This is possible since has a product structure by Assumption A2, see Eq. 9. The potential’s approximation is used for , the level one likelihood surrogate. Afterwards, we employ to compute the evidence via adaptive sparse grid quadrature w.r.t. the prior density . Having computed and we apply formula Eq. 3 and obtain the posterior at level , . In addition, we also compute the posterior expectation, , where for ,
[TABLE]
and covariance matrix, , where for ,
[TABLE]
which we need to construct the Gaussian approximation of at the second level (see Section 3.3.1).
These steps are summarized in Algorithm 1. The first three inputs are the spatial discretization parameter and the tolerances for sparse grid interpolation and quadrature, and . Moreover, comprises the maximum attainable sparse grid levels for the two adaptive operations. The last two inputs are the potential function, , and the prior density, .
3.3 Level with
3.3.1 Gaussian approximation
At levels with j , we sequentially update the prior density such that the previous level posterior, , is used as the prior; we detail the sequential update in Section 3.3.2. To be able to construct sparse grid approximations w.r.t. , the underlying stochastic space needs to have a separable density (recall Assumption A1). However, is usually not separable. Therefore, we approximate with a density that allows us to obtain the required product structure. In this paper, we approximate with the Gaussian density defined as
[TABLE]
where and are the expectation and covariance matrix of .
In most cases is not diagonal, i.e., does not have a product structure. Nevertheless, from the spectral decomposition , we have . We arrive at
[TABLE]
where is a standard Gaussian random variable, i.e., .
Formula Eq. 11 allows to write a general multivariate Gaussian random variable with correlated components as a mapping of a standard multivariate Gaussian random variable, which has the desired product structure since the components of are uncorrelated and thus independent. In our context, we use Eq. 11 as follows. We first generate D (L)-Leja points weighted w.r.t. the standard normal density, that is, in Eq. 8. Moreover, since the maximization defined in Eq. 8 is typically performed over a compact domain, we consider . For quadrature, we compute D quadrature weights w.r.t. normalized Hermite polynomials. We extend these constructions to dimensions via tensorization and employ Eq. 11 to obtain the desired weighted (L)-Leja points. Note that in Eq. 11 can be seen as an affine transport map (see [29]).
3.3.2 Level update on tensor domain
We assume that for is not separable, hence we employ the Gaussian approximation Eq. 11 for all adaptive sparse grid operations; if is separable, everything that follows is computed directly using for all levels greater than two. Thus, we sequentially update the prior in Bayes’ formula Eq. 3 such that we reuse the Gaussian approximation of the posterior from the previous level, i.e.,
[TABLE]
where and . Note that in Eq. 12 we correct the bias introduced by the Gaussian approximation of the posterior from the previous level, , with the ratio .
First, we construct an adaptive sparse grid interpolation surrogate of w.r.t. the density because it holds
[TABLE]
Recall that the mapping defined in Eq. 11 allows us to use adaptive sparse grid interpolation w.r.t. the Gaussian approximation . To construct the surrogate for the potential function we employ and obtain
[TABLE]
gives the approximation .
To evaluate the ratio of evidences we make use of Eq. 12, i.e.,
[TABLE]
and numerically integrate \Big{(}L_{\ell({\delta j})}\pi_{\ell(j-1)}^{\boldsymbol{y}}/\widehat{\pi}_{\ell(j-1)}^{\boldsymbol{y}}\Big{)}\circ T_{\ell(j-1)} w.r.t. the density via adaptive sparse grid quadrature to obtain the approximation . Thus, at each level with we obtain the posterior approximation
[TABLE]
For all other quadrature computations, we proceed analogously to Eq. 13. To simplify the notation, denote . Given an integrable function , we integrate , which reads as
[TABLE]
via adaptive sparse grid quadrature w.r.t. . The above formula is used to assess the expectation and covariance matrix of . Moreover, at level of our approach, we integrate the QoI w.r.t. . In this way, we perform the multilevel decomposition implicitly, different from standard multilevel methods in which the QoI is assessed explicitly via telescoping sums. Note that at the end of our multilevel algorithm we also obtain a surrogate for the posterior density which can be further used, for example, in an uncertainty propagation setting.
We summarize the steps for levels greater than two in Algorithm 2. The first three inputs are the number of levels, , the sequence of mesh sizes, , and , which comprises the tolerances for adaptive sparse grid interpolation and quadrature at all levels. The next input denotes the maximum reachable levels for the adaptive algorithms, . Finally, is the prior density, is the potential function and is the QoI. We combine Algorithms 1 and 2 and depict all steps in our proposed multilevel approach in Fig. 1.
3.4 Computational cost
The largest computational effort in the proposed multilevel methodology is spent in finding the interpolation surrogates since this involves evaluations of the forward operator. Thus, for , let denote the cost of the evaluating once the forward model discretized using a mesh depending on . Additionally, let denote the number of forward operator solves to achieve tolerance for adaptive sparse interpolation. Then, the total interpolation cost of our approach reads
[TABLE]
We obtain the above number because for each level except the last one, the same potential function and thus the same forward model enters two different likelihood ratios (see Eq. 12). However, because we update the prior as the level increases, we expect the number of forward model solves to decrease significantly with the level.
All other costs are due to computations depending on the interpolation surrogates. These costs are however insignificant compared to the evaluation cost of a computationally expensive forward operator.
4 Dimension adaptivity with sparse grids
In this section we discuss the construction of the multiindex set used in the sparse grid approximations defined in Section 2.3 via adaptive refinement. For interpolation we consider a standard adaptive strategy as well as an enhanced approach that employs directional variance information. For quadrature we employ a standard adaptive strategy. In the following, our notation is similar to [11].
4.1 Standard dimension-adaptive interpolation and quadrature
Adaptive refinement is preferred especially when the underlying problem has a richer structure, such as anisotropic coupling of the input parameters or lower intrinsic dimensionality – which is typically the case in most problems (see, e.g., [6, 11, 12, 45]). The standard strategy is based on the dimension-adaptive algorithm of [15, 19]. The algorithm is described, e.g., in [6, 15, 32]. We summarize only the basic idea below. initially. Each refinement step is performed using the following principle: if a current multiindex contributes significantly to the approximation, its adjacent neighbours are likely to contribute as well. Therefore, the forward neighbours of the multiindex with the largest contribution are added to provided that remains admissible. The contribution of each is assessed via a refinement indicator , whose choice has a crucial impact on the performance of the adaptive algorithm.
We define
[TABLE]
where is a function depending on the multivariate surplus and is the number model evaluations needed to assess . Note that penalizes subspaces with a large number of points.
For sparse grid quadrature, we consider
[TABLE]
which is a surrogate for the local quadrature error. For sparse interpolation, we use
[TABLE]
As in [11], we employ in the standard refinement indicator Eq. 15 because it yields the local variance contribution of the surplus to the total variance.
4.2 Directional variance dimension-adaptive sparse interpolation
Dimension adaptivity based on error indicators such as Eq. 14 does not inherently distinguish between the individual input parameters. Since in most problems the input parameters are anisotropically coupled, we wish to exploit this structure and tune the adaptive process such that it stops refining directions that are rendered unimportant. This is particularly important in our proposed approach since we update the prior starting with level and thus we have updated information about the model’s stochastic input parameters. To this end, for sparse interpolation, we enhance the standard adaptive strategy such that we additionally compute a global measure of importance of each input parameter via total directional variances, and we stop refining the directions having insignificant total directional variances.
To enhance the standard adaptive approach for interpolation, we proceed analogously to [11, 45] and perform a Sobol’ decomposition [40] of the active set to obtain directional variance surpluses, that is,
[TABLE]
where refers to the expectation contribution,
[TABLE]
where , are surplus contributions to all individual variances, and refers to the variance surplus due to all possible interactions, where , . Further, we compute total directional variance surpluses as
[TABLE]
where denotes the contribution due to all interactions involving direction . Note that can be seen as a global measure of importance for each stochastic input: a large implies that the th parameter is significant from a stochastic perspective. To this end, we prescribe user-defined directional tolerances and ascertain the importance of each input directions by comparing with for . When the stochastic direction is rendered unimportant, we simply stop adding multiindices whose th component exceeds the maximum th index in the current multiindex set . In this way, the algorithm preferentially refines the most important directions, thus decreasing the overall computational cost. When neither of the directional tolerances are met, the enhanced algorithm reduces to the standard approach in Section 4.1.
5 Numerical experiments
In this section we present the numerical results obtained using our proposed multilevel approach for Bayesian inversion.
5.1 Simple quadrature showcase
In this test case we investigate the behaviour of weighted (L)-Leja points in integration problems of the form
[TABLE]
where is an integrable function and is the posterior density; we outline the setup used to compute below. We assess Eq. 16 via quadrature w.r.t. two different weight functions. In the first case, we employ a standard importance-sampling-based strategy (recall Eq. 5). Specifically, adaptive sparse grid quadrature w.r.t.the prior density, , with tolerance is used:
[TABLE]
where are (L)-Leja nodes computed w.r.t. and
[TABLE]
In the second strategy, we compute Eq. 16 using our proposed approach. We integrate Eq. 16 numerically via adaptive sparse grid quadrature w.r.t.the Gaussian approximation of the posterior density (recall Eq. 10), using a tolerance :
[TABLE]
where are (L)-Leja nodes computed w.r.t.the standard multivariate normal density, , and , where and are the expectation and covariance matrix associated with the density .
We consider the following forward model
[TABLE]
where and . We employ Bayesian inversion to infer . The prior is the uniform density in , i.e., . The observation data are generated synthetically using . We take measurements at locations , assumed to be corrupted by additive Gaussian noise . We depict the prior and posterior densities in the left figure in Fig. 2. Observe that the posterior is unimodal and non-symmetric, but it can be well approximated with a Gaussian density.
In the numerical experiments, we let in Eq. 16. We compute a reference solution using Metropolis-Hastings MCMC (MH) samples obtained from a random walk Gaussian proposal with initial sample and covariance matrix . The acceptance rate is . Additionally, we employ a tolerance in Eq. 17 and a tolerance in Eq. 18.
The results are summarized in Table 1. The employed tolerances in the two (L)-Leja sparse grid quadrature approaches are sufficient to match four digits of the reference results. However, integrating w.r.t. the prior requires nodes, whereas our approach which uses the Gaussian approximation of the posterior as weight function requires only quadrature nodes, i.e., almost times fewer points. This is because the support of the prior density, , is significantly larger than the support of the posterior: when integrating w.r.t. the prior density, the adaptive algorithm places a large number of quadrature points outside of the support of the posterior.
We visualize the quadrature nodes corresponding to Eqs. 17 and 18 in the center and right figures in Fig. 2, respectively.
Remark 5.1**.**
*Adaptive sparse grid quadrature w.r.t. an uninformative prior can sometimes stop early since the quadrature points will fall outside of the support of the integrated function, yielding null evaluations and thus null error indicators. To overcome this, one could employ non-adaptive quadrature with a sufficiently large, a priori chosen number of nodes to cover the support of the integrated function. *
5.2 Source inversion with one source in a 2D spatial domain
Consider a two dimensional Bayesian inverse problem in which the forward model is an elliptic PDE defined on ,
[TABLE]
with and .
The goal is to infer the coordinates of the source term in the right-hand side, i.e., we seek the solution to a source inversion problem. We perform the multilevel Bayesian inversion as described in Algorithms 1 and 2 with three levels, i.e., . Thus . The employed multilevel setup is summarized in Table 2. Standard triangular finite elements (FEs) with mesh widths are used for spatial discretization. To find surrogates for the potential function at each level in our proposed multilevel approach we employ both adaptive sparse interpolation variants summarized in Section 4. Recall that for standard adaptive interpolation we have tolerances (see Section 4.1) whereas for directional variances-based adaptivity from Section 4.2 we additionally have the directional tolerances . We choose the FE mesh widths and adaptive interpolation tolerances such that the approximation errors are quantitatively similar. At level we combine with and , at level , is combined with and , and at level we employ together with and . For adaptive sparse grid quadrature we employ small tolerances to prevent the adaptive algorithm to stop too early especially when integrating w.r.t. the prior density (recall Remark 5.1).
Since the source locations need to reside inside , the prior is the uniform density in , i.e., . We consider 16 sensor locations at for . The measurements are obtained synthetically by discretizing the forward model on a finer mesh, i.e., to avoid committing an “inverse crime”. Moreover, and the additive Gaussian noise .
The QoI is the posterior mean . We compute a reference solution using samples obtained from a random walk Metropolis-Hastings algorithm with Gaussian proposal having covariance matrix , started from . The acceptance rate of the chain is . To obtain a comprehensive overview of the accuracy and cost of our approach, we compare it with the standard three-level approach in which all adaptive sparse grid operations are performed w.r.t. the prior density. Moreover, the QoI is assessed using the classical telescoping sum. To simplify the notation, in the following we use the abbreviation to refer to the standard multilevel approach. refers to our approach in which standard dimension-adaptive interpolation is used at each level and refers to our approach combined with directional variance-based adaptive interpolation summarized in Section 4.2. The results are presented in Table 3. Observe that all multilevel methods yield results very close to the reference estimate. Thus, the two variants of our proposed approach, and , are comparably accurate as the sampling-based and the standard multilevel solutions.
In Fig. 3, we visualize the results for all employed multilevel methods as follows. The left subplots show the results for , whereas the center and right subplots depict the results for and respectively. Furthermore, at each level, the prior as well as the corresponding (L)-Leja points used to find the interpolation surrogate are visualized in the top part. In the bottom plots, we depict the resulting posterior densities. At level we obtain the same three posteriors since the prior is the same in all cases. However, starting with level the sequential update of the prior in the proposed approach leads to significantly fewer interpolation points compared to , which places a large number weighted (L)-Leja points outside of the support of the corresponding posterior. Moreover, comparing the two variants of the proposed approach, requires fewer (L)-Leja points than . This is because at both levels and in , the two total directional variances fall below the imposed tolerances. Thus discovers and exploits more structure in the underlying approximation problem.
We visualize the multiindex sets for the three multilevel variants in Fig. 4. At level the multiindex sets corresponding to and are symmetric; this is because the two stochastic parameters have equal importance w.r.t. the prior density, which is the D (symmetric) uniform density. leads to a smaller multiindex set since the directional variances fall below , but there is no clear distinction between the two input directions as well. However, at level we observe a different behaviour in the two variants of our proposed approach, and . Recall that in these two variants the prior density is the Gaussian approximation of the posterior density from level . Computing the eigenvalues of its covariance matrix, we obtain and . Therefore, the first direction is more important that the second, which is reflected in the two multiindex sets. On the other hand, the multiindex set for the standard approach remains symmetric because the prior density is unchanged. Finally, at level we see low-cardinality multiindex sets for both and . This is because at this stage we have an informative prior, thus the likelihood ratio is close , which requires little approximation effort. Hence going beyond level is not necessary for our approach.
The costs of all multilevel methods are visualized in Fig. 5. The number of forward model evaluations needed to find the adaptive sparse grid surrogate of the potential function are shown on the left side. In the right plot we depict the number of evaluations of the surrogate in all quadrature computations. Note in all multilevel variants we need quadrature to assess the evidences and expectations at all three levels. Additionally, in and we need to compute the covariance matrices at levels and as well, which are needed in the Gaussian approximation of the associated posteriors and affine mapping (recall Eqs. 10 and 11). However, since we integrate w.r.t. the same weight function, we keep all surrogate evaluations in a look-up table and reuse them whenever the same grid points are used for different evaluations. We observe that at level our proposed approach is slightly more expensive for interpolation which is due to the need to evaluate the FE solver on level at level as well: recall that at level we construct a sparse grid surrogate for the ratio of potential functions. However, the increased cost is not significant since it involves evaluations of the coarsest FE solver, which are very fast. Starting with level we see significant cost savings for both interpolation and quadrature. On the one hand, at level , leads to about times fewer forward model evaluations for sparse grid interpolation and around fewer sparse grid quadrature evaluations. Moreover, at level we obtain about times fewer interpolation points and times fewer quadrature nodes. On the other hand, leads to about times fewer interpolation nodes and about times fewer quadrature evaluations. Furthermore, we obtain times fewer interpolation nodes and times fewer quadrature nodes at level . These results clearly show that updating the prior information in our multilevel approach for Bayesian Inversion leads to significant cost reduction in finding and evaluating sparse grid surrogates.
5.3 Source inversion with two sources in a 2D spatial domain
For a more comprehensive overview of the proposed approach, we consider now a test case with multimodal observation data. In particular, we consider another source inversion test case in which we use two sources to generate the data – to have bimodal observation data – and only one source to perform the Bayesian inference.
The elliptic forward operator defined on reads:
[TABLE]
where and the binary parameter when generating the data and when performing the inference. Therefore, we are solving a source inversion similar to the one in Section 5.2 but starting from bimodal data.
To generate the data we choose the locations of the two sources far apart, i.e., and . For Bayesian inference we employ StdML, MLLejaStd and MLLejaDV using three levels. The multilevel setup is outlined in Table 4.
We visualize in Fig. 6 the bimodal posterior density obtained via standard Bayes’ formula Eq. 3 for which we used Gauss-Legendre points to assess the evidence. Note that the two peaks are symmetric around . Therefore, Bayesian inference using only once source in the forward model can yield, in the best case, a posterior density centered at .
The QoI is again . In Table 5 we show the obtained estimates. First, a reference Metropolis-Hastings estimate with samples is computed using a random walk Gaussian proposal with initial sample and covariance matrix . The acceptance rate is . We observe that the MH and StdML solutions yield estimates close to the center, . However, the estimates given by MLLejaStd and MLLejaDV are far away from this value.
We depict in Fig. 7 the prior and posterior density as well as the weighted (L)-Leja points used to construct the adaptive sparse grid interpolation surrogate of the potential function for all employed multilevel methods. We observe that the Gaussian approximation used in our proposed approach at levels and is very spread and quite different from the approximated posterior. Hence the bias-correcting ratio in quadrature operations, for (recall Eq. 12) is different from in most regions of the domain. The large variations of this ratio lead to large variations of the error indicators in adaptive sparse grid quadrature which prevent the algorithm to converge and hence to yield accurate estimates. Therefore, the estimates of the expectation and covariance matrix of the posteriors from levels and , and with that, the Gaussian approximations employed at levels and , are inaccurate. Note that the large spread of the Gaussian approximations leads to weighted (L)-Leja points outside of the domain of the uniform prior, which coincides with the domain of the forward operator, (see Section 5.3). Whenever this happens, we impose the corresponding likelihood evaluation to be zero.
5.4 Higher-dimensional problem in a 3D spatial domain
In the final test case, we apply the proposed approach in a more challenging and computationally more expensive problem. We consider an elliptic forward model defined on with a permeability field projected onto a Fourier basis:
[TABLE]
where and
[TABLE]
where , , are normalized scaling factors, i.e., , and . Note that with the chosen setup, is the most important parameter, are the second most important parameters etc under the prior density.
Bayesian inference is carried out for the weights of the permeability field . Thus, we are solving an D inversion problem. These weights follow a standard normal prior distribution, i.e., . To perform the Bayesian inference we employ both the standard and our proposed multilevel approach with the two variants, and , considering . The employed multilevel setup is outlined in Table 6. The forward model Eq. 21 is discretized via standard tetrahedral FE meshes . Moreover, the sparse grid interpolation tolerances and are chosen to yield quantitatively similar errors to the FE approximation for . Finally, we choose small tolerances for quadrature to prevent the adaptive algorithm from stopping too early.
The observation data consists of measurements at , stemming from the FE solution of the forward model discretized using a finer mesh width and assuming measurement noise . In addition, is drawn from the standard multivariate Gaussian density, i.e.,
[TABLE]
The QoI is again the expectation of the posterior density, . We begin with level in the standard multilevel approach. Both the expectation and the covariance matrix of the corresponding posterior are computed since we need these evaluations at . We obtain, however, an indefinite covariance matrix with a negative variance for . This is mainly due to the limitations of the standard approach: adaptive sparse grid quadrature w.r.t. the prior density becomes challenging when the complexity of the underlying Bayesian inverse problem increases. To overcome this limitation, we employ instead standard sparse grids of a priori fixed levels having sufficiently many points to guarantee a positive definite covariance matrix. In particular, we consider an interpolation grid of level for interpolation ( grid points) and a quadrature grid of the same level comprising points. Since our goal is to compare multilevel methods based on adaptive sparse grid algorithms, we do not perform the standard multilevel approach on the remaining two levels using a priori chosen sparse grids, but rather focus only on the two variants of our proposed approach starting from the Gaussian approximation of the posterior at level obtained with the aforementioned standard sparse grids. Moreover, evaluating the FE discretizations depending on and on the standard sparse grid of level ( evaluations) requires a significant computational cost.
We first compute a reference MH solution with samples. The Gaussian proposal has covariance matrix . To reduce the burn-in, the chain is started from . The acceptance rate is . Afterwards, we employ MLLejaStd and MLLejaDV as described above. The results are showed in Table 7. The two variants of our approach produce results comparable to the reference solution, thus making our proposed approach competitive with sampling methods in this test case as well. Observe, however, that the accuracy of all estimates deteriorates compared with . This is because the likelihood becomes less informative as the index increases from to : the likelihood updates the prior very well for the first direction, relatively well for the next three, and almost not at all for the last four directions. Nevertheless, since the last four directions are the least important by construction Eq. 22 we expect that having not accurate corresponding mean estimates will not be too significant.
To assess the quality of the expectation estimates, we use them to represent the permeability field as and we compare the results with . In Fig. 8 we depict D slices of the field in which the spatial coordinates (top), (middle) and (bottom) are fixed respectively to . We observe that having inaccurate estimates for the latter four components of does not significantly affect the estimation of the true permeability field. This is due to having good estimates for the first components of , which are the most important by construction.
In Fig. 9 the costs for interpolation (left) and quadrature (right) are shown. Note that for interpolation we show costs for level as well because evaluations of the forward PDE discretized using are needed at . MLLejaDV is cheaper than MLLejaStd at all three levels, requiring about times fewer evaluations at level , times fewer evaluations on level and times fewer evaluations at level . Observe that the overall interpolation costs are very small given that we have an D inversion problem at hand. For example, at level , MLLejaDV requires only PDE evaluations. The maximum reached level in the corresponding multiindex set is and all its multiindices have components larger than only in the first four directions. Indeed, the directional variances-based algorithm detects that the latter four directions are unimportant, thus invests effort only in the first four directions. Therefore, we see once again that using the enhanced adaptive algorithm for adaptive sparse grid interpolation leads to significant cost savings. For quadrature, the total number of evaluations of the interpolation surrogates are similar.
6 Conclusions
We proposed a novel multilevel Leja algorithm for computing posterior approximations in computationally expensive, higher-dimensional Bayesian inverse problems. At each level adaptive sparse grid interpolation is employed to find a surrogate of the potential function, and adaptive sparse grid quadrature is then used to perform all integration operations with respect to the posterior. We considered two adaptive strategies for interpolation: (i) a standard method and (ii) an enhanced adaptive algorithm in which directional variances are used to ensure that only the most important stochastic directions are refined. The backbone of the proposed approach is the sequential update of the prior density. In this way, we can create weighted (L)-Leja points in areas of high posterior probability. Numerical experiments with elliptic inverse problems in 2D and 3D space show that the sequential update of the prior leads to considerably fewer model evaluations compared to the standard multilevel approach which employs the prior density at all levels. We remark that the proposed approach is not designed to handle well multimodal posterior densities. In future research we will extend it such that it employs more general nonlinear mappings, e.g., transport maps, to accurately approximate arbitrary, multimodal posterior densities.
Acknowledgements
IGF thankfully acknowledges the support of the German Academic Exchange Service (DAAD). IGF, JL, and EU would like to thank the Isaac Newton Institute for Mathematical Sciences for support and hospitality during the programme Uncertainty quantification for complex systems: theory and methodologies when work on this paper was undertaken.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. Brooks, A. Gelman, G. L. Jones, and X.-L. Meng , Handbook of Markov chain Monte Carlo , Chapman & Hall/CRC Handbooks of Modern Statistical Methods, CRC Press, Boca Raton, FL, 2011.
- 2[2] H.-J. Bungartz and M. Griebel , Sparse grids , Acta Numer., 13 (2004), pp. 147–269.
- 3[3] P. Chen and C. Schwab , Sparse-grid, reduced-basis Bayesian inversion , Comput. Methods Appl. Mech. Engrg., 297 (2015), pp. 84–115.
- 4[4] P. Chen and C. Schwab , Adaptive sparse grid model order reduction for fast Bayesian estimation and inversion , in Sparse grids and applications—Stuttgart 2014, vol. 109 of Lect. Notes Comput. Sci. Eng., Springer, Cham, 2016, pp. 1–27.
- 5[5] P. Chen, U. Villa, and O. Ghattas , Hessian-based adaptive sparse quadrature for infinite-dimensional Bayesian inverse problems , Comput. Methods Appl. Mech. Engrg., 327 (2017), pp. 147–172.
- 6[6] P. Conrad and Y. Marzouk , Adaptive Smolyak pseudospectral approximations , SIAM J. Sci. Comput., 35 (2013), pp. A 2643 – A 2670.
- 7[7] P. Del Moral, A. Doucet, and A. Jasra , Sequential Monte Carlo samplers , J. R. Stat. Soc. Ser. B Stat. Methodol., 68 (2006).
- 8[8] J. Dick, R. N. Gantner, Q. T. Le Gia, and C. Schwab , Multilevel higher-order quasi-monte carlo bayesian estimation , Math. Models Methods Appl. Sci., 27 (2017), pp. 953–995.
