Vecchia approximation

From HandWiki

Vecchia approximation is a Gaussian processes approximation technique originally developed by Aldo Vecchia, a statistician at United States Geological Survey.[1] It is one of the earliest attempts to use Gaussian processes in high-dimensional settings. It has since been extensively generalized giving rise to many contemporary approximations.

Intuition

A joint probability distribution for events [math]\displaystyle{ A, B }[/math], and [math]\displaystyle{ C }[/math], denoted [math]\displaystyle{ P(A,B,C) }[/math], can be expressed as

[math]\displaystyle{ P(A,B,C) = P(A) P(B | A) P(C | A,B) }[/math]

Vecchia's approximation takes the form, for example,

[math]\displaystyle{ P(A,B,C) \approx P(A) P(B | A) P(C | A ) }[/math]

and is accurate when events [math]\displaystyle{ B }[/math] and [math]\displaystyle{ C }[/math] are close to conditionally independent given knowledge of [math]\displaystyle{ A }[/math]. Of course one could have alternatively chosen the approximation

[math]\displaystyle{ P(A,B,C) \approx P(A) P(B|A) P(C | B) }[/math]

and so use of the approximation requires some knowledge of which events are close to conditionally independent given others. Moreover, we could have chosen a different ordering, for example

[math]\displaystyle{ P(A,B,C) \approx P(C) P(C|A) P(B|A). }[/math]

Fortunately, in many cases there are good heuristics making decisions about how to construct the approximation.

More technically, general versions of the approximation lead to a sparse Cholesky factor of the precision matrix. Using the standard Cholesky factorization produces entries which can be interpreted[2] as conditional correlations with zeros indicating no independence (since the model is Gaussian). These independence relations can be alternatively expressed using graphical models and there exist theorems linking graph structure and vertex ordering with zeros in the Cholesky factor. In particular, it is known[3] that independencies that are encoded in a moral graph lead to Cholesky factors of the precision matrix that have no fill-in.

Formal description

The problem

Let [math]\displaystyle{ x }[/math] be a Gaussian process indexed by [math]\displaystyle{ \mathcal{S} }[/math] with mean function [math]\displaystyle{ \mu }[/math] and covariance function [math]\displaystyle{ K }[/math]. Assume that [math]\displaystyle{ S = \{s_1, \dots, s_n\} \subset \mathcal{S} }[/math] is a finite subset of [math]\displaystyle{ \mathcal{S} }[/math] and [math]\displaystyle{ \mathbf{x} = (x_1, \dots, x_n) }[/math] is a vector of values of [math]\displaystyle{ x }[/math] evaluated at [math]\displaystyle{ S }[/math], i.e. [math]\displaystyle{ x_i = x(s_i) }[/math] for [math]\displaystyle{ i=1, \dots, n }[/math]. Assume further, that one observes [math]\displaystyle{ \mathbf{y} = (y_1, \dots, y_n) }[/math] where [math]\displaystyle{ y_i = x_i + \varepsilon_i }[/math] with [math]\displaystyle{ \varepsilon_i \overset{\text{i.i.d.}}{\sim} \mathcal{N}(0, \sigma^2) }[/math]. In this context the two most common inference tasks include evaluating the likelihood

[math]\displaystyle{ \mathcal{L}(\mathbf{y}) = \int f(\mathbf{y}, \mathbf{x}) \, d\mathbf{x}, }[/math]

or making predictions of values of [math]\displaystyle{ x }[/math] for [math]\displaystyle{ s^* \in \mathcal{S} }[/math] and [math]\displaystyle{ s \not\in S }[/math], i.e. calculating

[math]\displaystyle{ f(x(s^*)\mid y_1, \dots, y_n). }[/math]

Original formulation

The original Vecchia method starts with the observation that the joint density of observations [math]\displaystyle{ f(\mathbf{y}) = \left(y_1, \dots, y_n\right) }[/math] can be written as a product of conditional distributions

[math]\displaystyle{ f(\mathbf{y}) = f(y_1)\prod_{i=2}^n f(y_i\mid y_{i-1}, \dots, y_1). }[/math]

Vecchia approximation assumes instead that for some [math]\displaystyle{ k \ll n }[/math]

[math]\displaystyle{ \hat{f}(\mathbf{y}) = f(y_1)\prod_{i=2}^n f(y_i\mid y_{i-1}, \dots, y_{\max(i-k,1)} ). }[/math]

Vecchia also suggested that the above approximation be applied to observations that are reordered lexicographically using their spatial coordinates. While his simple method has many weaknesses, it reduced the computational complexity to [math]\displaystyle{ \mathcal{O}(nk^3) }[/math]. Many of its deficiencies were addressed by the subsequent generalizations.

General formulation

While conceptually simple, the assumption of the Vecchia approximation often proves to be fairly restrictive and inaccurate.[4] This inspired important generalizations and improvements introduced in the basic version over the years: the inclusion of latent variables, more sophisticated conditioning and better ordering. Different special cases of the general Vecchia approximation can be described in terms of how these three elements are selected.[5]

Latent variables

To describe extensions of the Vecchia method in its most general form, define [math]\displaystyle{ z_i = (x_i, y_i) }[/math] and notice that for [math]\displaystyle{ \mathbf{z} = (z_1, \dots, z_n) }[/math] it holds that like in the previous section

[math]\displaystyle{ f(\mathbf{z}) = f(x_1, y_1) \left( \prod_{i=2}^n f(x_i\mid z_{1:i-1}) \right) \left( \prod_{i=2}^n f(y_i\mid x_i) \right) }[/math]

because given [math]\displaystyle{ x_i }[/math] all other variables are independent of [math]\displaystyle{ y_i }[/math].

Ordering

It has been widely noted that the original lexicographic ordering based on coordinates when [math]\displaystyle{ \mathcal{S} }[/math] is two-dimensional produces poor results.[6] More recently another orderings have been proposed, some of which ensure that points are ordered in a quasi-random fashion. Highly scalable, they have been shown to also drastically improve accuracy.[4]

Conditioning

Similar to the basic version described above, for a given ordering a general Vecchia approximation can be defined as

[math]\displaystyle{ \hat{f}(\mathbf{z}) = f(x_1, y_1) \left( \prod_{i=2}^n f(x_i\mid z_{q(i)}) \right) \left( \prod_{i=2}^n f(y_i\mid x_i) \right), }[/math]

where [math]\displaystyle{ q(i) \subset \left\{1, \dots, i-1\right\} }[/math]. Since [math]\displaystyle{ y_i \perp x_{-i}, y_{-i} \mid x_i }[/math] it follows that [math]\displaystyle{ f(x_i\mid z_{q(i)}) = f(x_i\mid x_q(i), y_q(i)) = f(x_i\mid x_q(i)) }[/math] since suggesting that the terms [math]\displaystyle{ f(x_i\mid z_{q(i)}) }[/math] be replaced with [math]\displaystyle{ f(x_i\mid x_{q(i)}) }[/math]. It turns out, however, that sometimes conditioning on some of the observations [math]\displaystyle{ z_i }[/math] increases sparsity of the Cholesky factor of the precision matrix of [math]\displaystyle{ (\mathbf{x}, \mathbf{y}) }[/math]. Therefore, one might instead consider sets [math]\displaystyle{ q_y(i) }[/math] and [math]\displaystyle{ q_x(i) }[/math] such that [math]\displaystyle{ q(i) = q_y(i) \cup q_x(i) }[/math] and express [math]\displaystyle{ \hat{f} }[/math] as

[math]\displaystyle{ \hat{f}(\mathbf{z}) = f(x_1, y_1) \left( \prod_{i=2}^n f(x_i\mid x_{q_x(i)}, y_{q_y(i)}) \right) \left( \prod_{i=2}^n f(y_i\mid x_i) \right). }[/math]

Multiple methods of choosing [math]\displaystyle{ q_y(i) }[/math] and [math]\displaystyle{ q_x(i) }[/math] have been proposed, most notably the nearest-neighbour Gaussian process (NNGP),[7] meshed Gaussian process[8] and multi-resolution approximation (MRA) approaches using [math]\displaystyle{ q(i) = q_x(i) }[/math], standard Vecchia using [math]\displaystyle{ q(i) = q_y(i) }[/math] and Sparse General Vecchia where both [math]\displaystyle{ q_y(i) }[/math] and [math]\displaystyle{ q_x(i) }[/math] are non-empty.[5]

Software

Several packages have been developed which implement some variants of the Vecchia approximation.

  • GPvecchia is an R package available through CRAN which implements most versions of the Vecchia approximation
  • GpGp is an R package available through CRAN which implements an scalable ordering method for spatial problems which greatly improves accuracy.
  • spNNGP is an R package available through CRAN which implements the latent Vecchia approximation
  • pyMRA is a Python package available through pyPI implementing Multi-resolution approximation, a special case of the general Vecchia method used in dynamic state-space models
  • meshed is an R package available through CRAN which implements Bayesian spatial or spatiotemporal multivariate regression models based a latent Meshed Gaussian Process (MGP) using Vecchia approximations on partitioned domains

Notes

  1. Vecchia, A. V. (1988). "Estimation and Model Identification for Continuous Spatial Processes" (in en). Journal of the Royal Statistical Society, Series B (Methodological) 50 (2): 297–312. doi:10.1111/j.2517-6161.1988.tb01729.x. https://onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1988.tb01729.x. 
  2. Pourahmadi, M. (2007). "Cholesky Decompositions and Estimation of A Covariance Matrix: Orthogonality of Variance Correlation Parameters". Biometrika 94 (4): 1006–1013. doi:10.1093/biomet/asm073. ISSN 0006-3444. 
  3. Khare, Kshitij; Rajaratnam, Bala (2011). "Wishart distributions for decomposable covariance graph models". The Annals of Statistics 39 (1): 514–555. doi:10.1214/10-AOS841. ISSN 0090-5364. 
  4. 4.0 4.1 Guinness, Joseph (2018). "Permutation and Grouping Methods for Sharpening Gaussian Process Approximations". Technometrics 60 (4): 415–429. doi:10.1080/00401706.2018.1437476. ISSN 0040-1706. PMID 31447491. 
  5. 5.0 5.1 Katzfuss, Matthias; Guinness, Joseph (2021). "A General Framework for Vecchia Approximations of Gaussian Processes". Statistical Science 36. doi:10.1214/19-STS755. 
  6. Sudipto Banerjee; Bradley P. Carlin; Alan E. Gelfand (12 September 2014). Hierarchical Modeling and Analysis for Spatial Data, Second Edition. CRC Press. ISBN 978-1-4398-1917-3. https://books.google.com/books?id=zNLhAwAAQBAJ. 
  7. Datta, Abhirup; Banerjee, Sudipto; Finley, Andrew; Gelfand, Alan (2016). "Hierarchical Nearest-Neighbor Gaussian Process Models for Large Spatial Data". Journal of the American Statistical Association 111 (514): 800–812. doi:10.1080/01621459.2015.1044091. PMID 29720777. 
  8. Peruzzi, Michele; Banerjee, Sudipto; Finley, Andrew (2020). "Highly Scalable Bayesian Geostatistical Modeling Via Meshed Gaussian Processes on Partitioned Domains". Journal of the American Statistical Association 117 (538): 969–982. doi:10.1080/01621459.2020.1833889. PMID 35935897.