29.1. Bayes goes fast: Emulators#
“Emulation is not rivalry. Emulation is the child of ambition; rivalry is the unlovable daughter of envy.”
—Honore de Balzac
Reduced-order methods#
Computational Bayesian methods, and many other applications, have a need for models that can be solved at different fidelities. High fidelity implies high precision, but also high computational cost. Low fidelity versions of the model are much faster to evaluate, but associated with a smaller precision. They are still very useful for model calibration and statistical studies.
There is a vast theory of model-order reduction for scientific applications. See, e.g., Ref. [MDF+22] for an overview and many useful references. Let us broadly categorize them into two types:
Model-order reduction
Date driven: Non-intrusive approaches where the output of a high-fidelity model is interploated (or even dangerously extrapolated) without the need for detailed access to the model. Two examples are:
Gaussian process regression models
Artificial neural networks
Model driven: Intrusive approaches where reduced-order equations are derived from the high-fidelity equations. These methods require a deeper understanding of the model and respect the underlying structure. They often use projection and will be able to extrapolate.
A large subset of model-driven approaches are known as Reduced-Basis Methods [QMN15]. We will mainly be concerned with eigenvector continuation [FHI+18].
In general, we will use model-order reduction to emulate our model, that is we will replace the high-fidelity version \(M(\pars)\) with a low-fidelity emulator \(\tilde M(\pars)\) which is much faster to evaluate but hopefully acceptably accurate. We will need to keep track of the emulator uncertainty via quantification of \(\var{M(\pars) - \tilde M(\pars)} \equiv \var{\delta \tilde M (\pars)}\). We will often neglect the parameter dependence such that
where \(\var{\delta \tilde M} = \sigma_\mathrm{em}^2\).
Eigenvector continuation#
Here, we will specifically consider emulation based on eigenvector continuation as a type of reduced-order model. This method is very useful for applications where the computer model can be phrased as an eigenvalue problem. For example, consider the prediction of the eigenenergy of a quantum state such that \(M(\pars) = E(\pars)\) is obtained by solving the Schrödinger equation
This equation can be projected onto a suitable basis and thereby expressed as a matrix eigenvalue problem for which the eigenstate, \(| \psi(\pars) \rangle\), becomes an eigenvector. In certain applications it might be that the dimension \(N\) of this basis is very large. In quantum many-body simulations you might have \(N \sim 10^9\) or even larger.
For a statistical analysis we must explore the consequences of varying the numerical values of \(\pars\). In, e.g., MCMC sampling we might need many thousands (or much more) model evaluations and must therefore seek a way to mitigate the computational cost of solving for \(E_\odot \equiv E(\pars_\odot)\) (and \(| \psi_\odot \rangle \equiv | \psi(\pars_\odot) \rangle\)) for any target parametrization \(\pars_\odot\) of interest.
The key insight of eigenvector continuation [FHI+18] is that although an eigenvector resides in a linear space with enormous dimensions, the eigenvector trajectory generated by smooth changes of the Hamiltonian matrix is well approximated by a very low-dimensional manifold in many applications.
We therefore start by constructing a basis of \(n \ll N\) eigenvectors \(\{ | \psi_i \rangle \}_{i=1}^n\) obtained from exact solutions of the Schrödinger equation at different model parametrizations \(\{ \pars_i \}_{i=1}^n\). These solutions are known as snapshots. We then diagonalize the Schrödinger equation for the target parametrization \(\pars_\odot\) in this (non-orthogonal) snapshot basis
where the appearance of the norm matrix \(\tilde{N}\) reveals that this is a generalized eigenvalue problem. We use a tilde to denote quantities that are expressed in the subspace basis \(\{ | \psi_i \rangle \}_{i=1}^n\)
Let us introduce an \(N \times n\) matrix \(X\) with the snapshot eigenvectors in the columns
such that the snapshot-projected trial wave functions become
The snapshot-projected \(n \times n\) matrices in Eq. (29.3) become
It is usually enough with \(n \ll N\) to have \(\tilde{E}_\odot \approx E_\odot\) with a very high precision. Obviously it is significantly faster to solve an eigenvalue problem for \(n = 10−100\) than \(N \sim 10^9\).
The solution of Eq. (29.3) also gives a low-fidelity eigenvector \(| \tilde\psi(\pars_\odot) \rangle = X \beta(\pars_\odot)\), where \(\beta(\pars_\odot)\) is the eigenvector in the snapshot basis. From a variational viewpoint, the vector \(\beta(\pars_\odot)\) renders the functional \(S[X\beta]\) stationary under variations \(| \delta \tilde\psi \rangle = X | \delta \tilde\beta \rangle\) and \(E_\odot \lesssim \tilde E_\odot\).
Example 29.1 (Eigenvector continuation in ab initio nuclear theory)
In ab initio nuclear theory, based on \(\chi\)EFT interactions, we (often) have a Hamiltonian that can be written in terms of the low energy constants (LECs) \(\pars\) as
where \(T\) is the kinetic energy, \(V_0\) is the part of the interaction potential that has no dependence on the LECs, and the other terms can be written as a linear product of \(\para_i\) and the parameter-independent \(V_i\).
This enables us to construct the elements of the subspace Hamiltonian matrix as
where \(\langle \psi_i \vert T + V_0 \vert \psi_j \rangle\) and \(\langle \psi_i \vert V_i \vert \psi_j \rangle\) are independent of \(\pars\). As such they can be pre-computed and stored in the beginning (offline phase) making the subsequent computations for different \(\pars_\odot\) very fast.
See also Ref. [DMF+22] for a review with examples, and Andreas Ekström’s lectures at cbarbieri/dtp2023 with applications also to nucleon-nucleon scattering.
For non-linearities it should be possible to build linear approximations and empirical interpolants. The performance of such approximations, however, will be problem specific.