Bayesian Numerical Homogenization
Houman Owhadi
Bayesian Numerical Analysis
This paper is inspired by a curious (and, perhaps, overlooked) link between Bayesian Inference and Numerical Analysis , known as Bayesian Numerical Analysis , and that can be traced back to Poincaré’s course on Probability Theory . We will recall Diaconis’ compelling example as an illustration of this link.
As a prototypical example, consider the numerical homogenization of the PDE
Recall that numerical homogenization concerns the approximation of the solution space of (1.1) with a finite-dimensional space. Although classical homogenization concepts might be present in some instances of this problem , one of the main objectives of numerical homogenization is to achieve a numerical approximation of the solution space of (1.1) with arbitrary rough coefficients, i.e., in particular, without the assumptions found in classical homogenization, such as scale separation, ergodicity at fine scales and -sequences of operators. In this situation, piecewise linear finite-elements can perform arbitrarily badly and the numerical approximation of the solution space involves the identification of accurate basis elements adapted to the microstructure .
As for the identification of quadrature rules in numerical analysis, the identification of accurate basis elements in numerical homogenization has been based on a difficult process of scientific investigation. Let us now turn our attention to the Bayesian approach to this problem. An immediate question is where do we place the prior? (1) If the prior is placed on then posterior values do not see (depend on) the microstructure. (2) If the prior is placed on then the microstructure becomes random whereas our purpose is the numerical homogenization of a given deterministic microstructure. Let us also note that the randomization of the microstructure, as investigated by Polynomial Chaos Approximation/Stochastic Expansion methods , does not lead to the simplification seen after homogenization but to increased complexity with the dimension of input stochastic variables (although Stochastic Expansion methods have been used successfully to beat Monte-Carlo sampling they do not lead to averaging results seen in homogenization). (3) If the prior is placed on then the noise propagates through the microstructure and the posterior value of contains that information.
This observation motivates us to place the prior on the source term in (1.1), e.g., replace it by white noise (i.e. a centered Gaussian field on with covariance function ) and consider the stochastic PDE
where the functions are Rough Polyharmonic Splines (RPS) which have been identified as accurate basis elements for the numerical homogenization of (1.1) having noteworthy variational, optimal recovery and localization properties. The discovery of these Rough Polyharmonic Splines has required a significant amount of work and trial and errors but here, they are identified after a single step of Bayesian conditioning.
This observation motivates us to investigate what the same process of Bayesian conditioning would give under different priors and under other observations than the values of at individual points (we will consider data formed by the values of a finite number of linear functions of ). In particular, we will use this link between Bayesian Inference and Numerical Homogenization to identify bases for the numerical homogenization of arbitrary linear integro-differential equations. Our purpose is to show that this link is generic and could in principle be used, beyond numerical homogenization, as a guiding principle for the coarse-graining of multi-scale systems. The Bayesian approach to this problem is to (1) Put a prior on the degrees of freedom of the system (2) Select a finite number of coarse variables (3) Compute the posterior value of the state of the system conditioned on the coarse variables.
General setup
Let and be linear integro-differential operators on and such that (1) , where , and are Hilbert spaces of Generalized functions on and (2) contains and is contained in .
Consider the integro-differential equation
As with (1.1) the numerical homogenization of (2.1) will require the assumption that belongs to a strict subspace of .
We will assume that and are such that (2.1) (1) admits a unique solution in (2) and a Green’s function . Recall that is defined as the solution of
where is the Delta mass of dirac at the point .
Note that for the prototypical example (1.1) we have
Our purpose is to identify a good basis for the numerical homogenization or coarse-graining of (2.1).
Bayesian Numerical Homogenization
Our Bayesian approach to the numerical homogenization of (2.1) is to replace the source term by a Gaussian field . More precisely we introduce , a centered Gaussian field on with covariance function
and consider the stochastic integro-differential equation
Write the adjoint of with respect to the (scalar) product defined on by \big{\langle}u,v\big{\rangle}_{L^{2}}:=\int_{\Omega}u(x)v(x)\,dx. Observe that (the transpose of with respect to the scalar product \big{\langle}\cdot,\cdot\big{\rangle}_{L^{2}}) is the Green’s function of (the complex conjugation of the Green’s function is not required to define its adjoint because the scalar product is bilinear and not sesquilinear). Observe that if is white noise (i.e. ) then
which is the Kernel of , i.e., .
Since and are linear operators, is a linear function of and is therefore a Gaussian field. Moreover its covariance function is given by
Beyond Bayesian Homogenization, equations with random right hand side can also be of interest in practical applications, for instance in the modeling of the electrostatics in nanoscale field-effect sensors, where fluctuations arise from random charge concentrations .
We will show that the choice of the noise can be determined by the regularity of the source term in the right hand side of (2.1). More precisely if is white noise () then the resulting accuracy estimates will be obtained under the assumption that and as a function of .
If is not white noise (i.e. if its covariance function is not ) then we assume that there exists two linear integro-differential operators and such that is the stochastic solution of the following equation with white noise as the source term:
In what follows, if is not white noise then we assume it to be obtained as in (3.6) and the resulting accuracy estimates will be obtained under the assumption that and as a function of . A prototypical example corresponds to the situation where is obtained as the regularization of white noise via a power of the Laplace Dirichlet operator on and this allows us to identify optimal recovery bases under the assumption that with or .
2 Identification of basis elements via conditioning
Let be a strictly positive integer. Our Bayesian approach is based on the conditioning of the solution of (3.2) posterior to the observation of linear functions of , expressed as
where are linearly independent generalized functions (distributions) on such that for all
Examples of include masses of Dirac (), indicator functions of subsets of and elements of . Let be the symmetric matrix defined by
Note that (3.8) implies that if is the solution of (3.2) then
is a well defined center Gaussian random vector with covariance matrix .
We will from now on assume that the covariance function (3.1) is not degenerate in the sense that for ,
is zero if and only if is the null function. Note that if is obtained via (3.6) then (writing the solution of in with on ) and the non-degeneracy of is equivalent to that of the operator .
Our motivation for using Gaussian noise in (3.2) lies in the fact that for Gaussian fields, conditional expected values can be computed via linear projection. Henceforth our approach is also akin to Gaussian filtering for numerical homogenization and the following Theorem shows that this approach allows for the identification of a (projection) basis .
Let be the solution of (3.2) and defined by (3.10), then
Furthermore, conditioned on the value of is a Gaussian random variable with mean (3.16) and variance
Since and belong to the same Gaussian space, it follows that is a linear function of obtained by minimizing the mean squared error
If and correspond to the prototypical example (1.1) (see also Example 2.1), if is white noise (i.e. if its covariance matrix is ), and if the observable functions are masses of Diracs at points (and which is required for (3.8)), then Theorem 3.5 implies (1.3) and the basis elements are the RPS elements of which are a generalization of Polyharmonic Splines to PDEs with rough coefficients. Recall that Polyharmonic splines can be traced back to the seminal work of Harder and Desmarais and Duchon .
Note also that according to Theorem (3.5) the process of Bayesian conditioning gives us the whole posterior distribution of and not only its (conditional) expected value. In particular, the distribution of conditioned on is a Gaussian random variable with mean (1.3) and variance
and this observation can be used to compute the probability of deviation of the RPS interpolation from by a given margin and guide the addition of interpolation points (note that at the interpolation points ).
We will show in Theorem 5.1 that also controls the pointwise error between the solution of the original integro-differential equation (2.1) and the approximation .
Variational properties of basis elements
In this section we will show that as for RPS , the basis elements from Bayesian Inference have remarkable variational and optimal recovery properties that can be used (1) for their practical computation (2) for the derivation of accuracy estimates.
In this subsection we will assume that is white noise (i.e. ). Define
and let \big{\langle}\cdot,\cdot\big{\rangle} be the (scalar) product on defined by: for ,
Note in particular that \big{\langle}v,v\big{\rangle}=0 if and only if and we write
the corresponding norm (note that is a norm on because and imply in and on which leads to by the non-degeneracy of the operator ).
If then for and
and the space with the reproducing Kernel forms a Reproducing Kernel Hilbert Space. In particular, for all
Theorem 4.1 is a direct consequence of the fact that
and (by Cauchy-Schwartz inequality and \big{\langle}\Gamma(\cdot,x),\int_{\Omega}\Gamma(\cdot,x)\big{\rangle}=\Gamma(x,x))
and consider the following optimization problem over :
is a non-empty closed affine subspace of . Problem (4.9) is a strictly convex quadratic optimization problem over . The unique minimizer of (4.9) is as defined by (3.18).
Let us first prove that . Let
First observe that for all ,
and on . Noting that \big{\|}\mathcal{L}\theta_{i}\big{\|}_{L^{2}(\Omega)}^{2}=\Theta_{i,i} we deduce from (3.8) that . We conclude from (3.18) and Lemma 3.4 that . Now observe that (3.9) implies that
where and for . We conclude that which implies that is non empty (it is easy to check that it is a closed affine sub-space of ).
Now let us prove that problem (4.9) is a strictly convex optimization problem over . Let such that . Write for ,
and we need to show that is a strictly convex function. Observing that
and noting that \big{\langle}v-w,v-w\big{\rangle}>0 (otherwise one would have ) we deduce that is strictly convex in . We conclude that (see, for example, [29, pp. 35, Proposition 1.2]) that Problem (4.9) is a strictly convex optimization problem over and that it admits a unique minimizer in . We will postpone the proof of the fact that is the minimizer of (4.9) to the proof of Theorem 4.6. ∎
It is important to note that in practical (numerical) applications each element would be obtained by solving the quadratic optimization problem (4.9) rather than through the representation formula (3.18) because the identification of in (3.18) is more expensive than solving the linear systems associated with (4.9) (inverting a matrix is more expensive than solving a linear system). Note also that, if is the (stochastic) solution of (3.2), then is also equal to the expected value of conditioned on and for , i.e.
A simple calculation allows us to show that is also the solution of the following nested equations
Another simple calculation allows us to show that is also the solution of the following nested equations
Write the subset of defined by
The basis is orthorgonal to with respect to the product \big{\langle}\cdot,\cdot\big{\rangle}, i.e.
is the unique minimizer of \big{\langle}v,v\big{\rangle} over all such that .
For all and for all ,
Theorem 4.6 and its proof is analogous to the optimal property of strictly conditionally positive definite kernels when used as interpolant solutions of the optimal recovery problem .
It follows that is the unique minimizer of \big{\langle}v,v\big{\rangle} over all such that . Note that this also implies that is the minimizer of (4.9). ∎
2 Non-white Gaussian noise
If is not white noise (i.e. ) then Theorem 4.1,Theorem 4.6 and Proposition 4.2 remain true provided that the definitions of the space and scalar product \big{\langle}\cdot,\cdot\big{\rangle} are changed to
where and are defined in (3.6).
Assume that . Let . It holds true that for
where is the variance of (solution of (3.2)) conditioned on as defined by (3.19). In particular if is the solution of the original integro-differential equation (2.1), then
if are derived from white noise, and
if are derived from the noise with covariance function described in (3.6).
Let and . Using the reproducing kernel property of Theorem 4.1 we obtain that
Therefore, using Cauchy-Schwartz inequality
We conclude by expanding the right hand side of (5.5) and the definition . ∎
is also known as the Power function in radial basis function interpolation . The proof of Theorem 5.1 is similar to the one used to derive local error estimates for radial basis function interpolation of scattered data (see in which was referred to as the Kriging function, a terminology coming from geostatistics ).
2 ℋ(Ω)ℋΩ\mathcal{H}(\Omega)-norm estimates
Let be the subset of defined by (4.20). Write
where is the natural norm associated with the space on which the operator is defined.
and is the smallest constant for which (5.7) holds for all .
Write v_{\Psi}(x):=\sum_{i=1}^{N}\phi_{i}(x)\big{(}\int_{\Omega}v(y)\psi_{i}(y)\,dy\big{)}
Observing that belongs to implies that
Observe that Theorem 5.3 implies that if is the solution of the original integro-differential equation (2.1) and are derived from white noise, then
Similarly, if are derived from the noise with covariance function described in (3.6), then
If and correspond to the prototypical example (1.1) (Example 2.1), if is white noise, and if the observable functions are masses of Diracs at points (and ), then ,
where depends only on and where , and is the mesh-norm
Let us also recall that the proof of (5.13) is based on the following Poincaré inequality (Lemma 3.1 of )
([60, Lemma 3.1 ]) Let and be the open ball of center and radius . There exists a finite strictly positive constant such that for all such that it holds true that
We will recall the proof of this lemma (as presented in [60, Lemma 3.1 ]) for the sake of completeness. The proof is per absurdum. Note that since the assumptions and imply the Hölder continuity of in . Assume that (5.16) does not hold. Then there exists a sequence and a sequence whose maximum and minimum eigenvalues are uniformly bounded by and (we need to introduce that sequence because we want the constant in (5.16) to depend only ) such that
Letting we obtain that , and
it follows that there exists a subsequence and a such that weakly in and weakly in . Using we deduce that which implies that is a constant in . Since by the Rellich–-Kondrachov theorem the embedding is compact it follows from (5.19) that strongly in which (using ) implies that . Now (5.19) together with the fact that \big{\|}\operatorname{div}(a_{n}^{\prime}\nabla w_{n})\big{\|}_{L^{2}(B_{1})}^{2} is uniformly bounded and that implies that is uniformly Hölder continuous on (see for instance ). This implies that is continuous in and that . This contradicts the fact that is a constant in with . ∎
If and correspond to the prototypical example (1.1) (Example 2.1), if is white noise, and if the observable functions are indicator functions of Voronoï cells around points in or of tetrahedra of a regular tessellation of the points then (5.13) remains valid as a simple consequence of localized Poincaré inequalities. Indeed for , writing the Voronoï cells at the points , we have (assuming is the union of those Voronoï cells)
and we conclude by applying Poincaré’s inequality to the -norm of within each cell , i.e.
We will give the last example as a theorem.
Let and be as in the prototypical example (1.1) (Example 2.1) and let be white noise. Let be linearly independent generalized probability densities on with (possibly overlapping) support . Define
where depends only on and . Henceforth, for
Observe that if for all the support of is contained in a ball of center and radius , then
in particular if the points have mesh norm (see (5.14)) then .
The proof of (5.23) is simply based on the observation that if then (since ) there exists points such that and the mesh norm of those points is bounded by . Therefore we can apply the result of Example 5.1. ∎
Pseudo-algorithm
A simple pseudo-algorithmic description of the proposed framework for the numerical homogenization of (2.1) is as follows:
Select linearly independent (measurement) functions in .
Let in (3.2) be a Gaussian field of mean and covariance function (assumed to be non-degenerate, i.e. such that there exists an inverse covariance function with ).
The basis functions for the numerical homogenization of (2.1) are identified as (writing the solution of (3.2) and if and if ) the deterministic functions
Each can also be identified as the unique minimizer of
Under appropriate choice of the measurement functions and the covariance function , the basis functions can be computed by localizing the optimization problems (6.2) to subdomains of .
Statistical Decision Theory and Practical Applications
Another motivation for exploring Bayesian approximations of the solution space, lies in the decision theory/game theory approach to numerical homogenization. In this approach one looks at the numerical homogenization problem (1.1) as a repeated game where player B chooses a function of the linear measurements (data) and player A chooses a source term in the unit ball of . These two choices combine and form an error term
Player’s B objective is to minimize the error (7.1) while player’s A objective is to maximize it. A surprising result stemming from a generalization of Wald’s Decision Theory and Von Neumann’s Game Theory is that, although such games are deterministic, under weak regularity conditions, the optimal strategy for player is to play at random by placing an optimal probability distribution on the set of candidates for and, similarly, the best strategy for player is to assume that player A is playing at random and to use a function living in the Bayesian class (obtained by placing a prior on the set of candidates for and conditioning with respect to the measurements ).
Although the estimator employed by player B may be called Bayesian, the game described here is not (i.e. the choice of player A might be distinct from that of player B) and player B must solve a min max optimization problem over and to identify an optimal prior distribution for the Bayesian estimator (a careful choice of the prior also appears to be important due to the possible high sensitivity of posterior distributions ).
We refer to for (1) the complete description of the generalization of the Bayesian framework described here to the decision theory/information game formulation (described above) (2) practical (including numerical) applications of that generalized framework to the problems of finding numerical homogenization bases and fast solvers for (1.1). In that generalization, optimal numerical homogenization bases functions are obtained by selecting the prior distribution of (in (1.2)) to be that of a Gaussian field with mean zero and covariance function the operator (1.1) (i.e. such that for , is a Gaussian random variable of mean zero and variance ). In particular shows how the identification of an optimal distribution for (in the Gaussian class) leads to the (automated) discovery of multigrid and multiresolution solvers for PDEs with rough coefficients.
The author gratefully acknowledges this work supported by the Air Force Office of Scientific Research under Award Number FA9550-12-1-0389 (Scientific Computation of Optimal Statistical Estimators) and the U.S. Department of Energy Office of Science, Office of Advanced Scientific Computing Research, through the Exascale Co-Design Center for Materials in Extreme Environments (ExMatEx, LANL Contract No DE-AC52-06NA25396, Caltech Subcontract Number 273448). The author also thanks Dongbin Xiu, Lei Zhang and Guillaume Bal for stimulating discussions and Leonid Berlyand for comments on the manuscript. The author also thanks two anonymous referees for valuable comments and suggestions.