<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Variational Sparse Inverse Cholesky Approximation for Latent Gaussian Processes via Double Kullback-Leibler Minimization</title></titleStmt>
			<publicationStmt>
				<publisher>International Conference on Machine Learning</publisher>
				<date>06/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10652755</idno>
					<idno type="doi"></idno>
					
					<author>J Cao</author><author>M Kang</author><author>F Jimenez</author><author>H Sang</author><author>F T Schaefer</author><author>M Katzfuss</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[To achieve scalable and accurate inference for latent Gaussian processes, we propose a variational approximation based on a family of Gaussian distributions whose covariance matrices have sparse inverse Cholesky (SIC) factors. We combine this variational approximation of the posterior with a similar and efficient SIC-restricted Kullback-Leibler-optimal approximation of the prior. We then focus on a particular SIC ordering and nearest-neighbor-based sparsity pattern resulting in highly accurate prior and posterior approximations. For this setting, our variational approximation can be computed via stochastic gradient descent in polylogarithmic time per iteration. We provide numerical comparisons showing that the proposed double-Kullback-Leibler-optimal Gaussian-process approximation (DKLGP) can sometimes be vastly more accurate for stationary kernels than alternative approaches such as inducing-point and mean-field approximations at similar computational complexity.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Gaussian process (GP) priors are popular models for unknown functions in a variety of settings, including geostatistics (e.g., <ref type="bibr">Stein, 1999;</ref><ref type="bibr">Banerjee et al., 2004;</ref><ref type="bibr">Cressie &amp; Wikle, 2011)</ref>, computer model emulation (e.g., <ref type="bibr">Sacks et al., 1989;</ref><ref type="bibr">Kennedy &amp; O'Hagan, 2001;</ref><ref type="bibr">Gramacy, 2020)</ref>, and machine learning (e.g., <ref type="bibr">Rasmussen &amp; Williams, 2006;</ref><ref type="bibr">Deisenroth, 2010)</ref>. Latent GP (LGP) models, such as generalized GPs, assume a Gaussian or non-Gaussian distribution for the data conditional on a GP (e.g., <ref type="bibr">Diggle et al., 1998;</ref><ref type="bibr">Chan &amp; Dong, 2011).</ref> LGPs extend GPs to a large class of settings, including noisy, categorical, and count data. However, LGP inference is generally analytically intractable and hence requires approximations. In addition, direct GP inference is prohibitive for large datasets due to cubic scaling in the data size. There are two main challenges for (L)GPs in many applications: One is to specify or learn a suitable kernel for the GP, and the other is carrying out fast inference for a given kernel. In this paper, we make no contributions to the former and instead focus on the latter challenge: We assume that a parametric kernel form is given and propose an efficient approximation method for LGP inference via structured variational learning.</p><p>Many approaches to scaling GPs to large datasets were reviewed in <ref type="bibr">Heaton et al. (2019)</ref> and <ref type="bibr">Liu et al. (2020)</ref>, including low-rank approaches with a small number of pseudo points that are popular in machine learning. Such low-rank GP approximations have been combined with variational inference for GPs (e.g., <ref type="bibr">Titsias, 2009;</ref><ref type="bibr">Hensman et al., 2013)</ref> and LGPs (e.g., <ref type="bibr">Hensman et al., 2015;</ref><ref type="bibr">Leibfried et al., 2020)</ref>.</p><p>A highly promising approach to achieve GP scalability is given by nearest-neighbor Vecchia approximations from spatial statistics (e.g., <ref type="bibr">Vecchia, 1988;</ref><ref type="bibr">Stein et al., 2004;</ref><ref type="bibr">Datta et al., 2016;</ref><ref type="bibr">Katzfuss &amp; Guinness, 2021)</ref>, which are optimal with respect to forward Kullback-Leibler (KL) divergence under the restriction of sparse inverse Cholesky (SIC) factors of the covariance matrix <ref type="bibr">(Sch&#228;fer et al., 2021a)</ref>. Such SIC approximations have several attractive properties (e.g., as reviewed by <ref type="bibr">Katzfuss et al., 2022)</ref>. They result in a valid joint density function given by the product of univariate conditional Gaussians, each of which can be independently computed in cubic complexity in the number of neighbors. This allows straightforward mini-batch subsampling with unbiased gradient estimators <ref type="bibr">(Cao et al., 2022)</ref>. For the ordering and sparsity pattern used here, the number of neighbors needs to grow only polylogarithmically with the data size to achieve &#1013;-accurate approximations for Mat&#233;rn-type kernels up to boundary effects <ref type="bibr">(Sch&#228;fer et al., 2021a)</ref> due to the screening effect <ref type="bibr">(Stein, 2011)</ref>. Many existing GP approximations, including low-rank and partially-independent conditional approaches, can be viewed as special cases of SIC approximations corresponding to particular orderings and sparsity patterns <ref type="bibr">(Katzfuss &amp; Guinness, 2021)</ref>. SIC p(f ) p(f )</p><p>Prior p(f |y) p(f |y)</p><p>Posterior q(f ) q(f )</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Variational distribution</head><p>Bayes' theorem</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Variational inference SIC approximation</head><p>Figure <ref type="figure">1</ref>. Double KL minimization for approximating the posterior distribution of a latent Gaussian field f given data y: Based on a forward-KL-optimal SIC approximation p(f ) of the prior, we obtain an SIC-restricted reverse-KL-optimal variational approximation q(f ) to the posterior. approximation using our ordering and sparsity pattern does not exhibit the same limitations as low-rank approximations <ref type="bibr">(Stein, 2014)</ref> and can hence be significantly more accurate for non-latent (i.e., directly observed) GPs <ref type="bibr">(Cao et al., 2022)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>SIC approximations of</head><p>LGPs are more challenging. For</p><p>LGPs with Gaussian noise, applying SIC approximations to the noisy responses reduces accuracy, and SIC approximations of the latent field may not be scalable (e.g., <ref type="bibr">Katzfuss &amp; Guinness, 2021)</ref>. Existing approaches addressing this challenge <ref type="bibr">(Datta et al., 2016;</ref><ref type="bibr">Katzfuss &amp; Guinness, 2021;</ref><ref type="bibr">Sch&#228;fer et al., 2021a;</ref><ref type="bibr">Geoga &amp; Stein, 2022)</ref> do not consider estimation using stochastic gradient descent (SGD). For non-Gaussian LGPs, Laplace SIC approximations <ref type="bibr">(Zilber &amp; Katzfuss, 2021)</ref> are straightforward but can be inaccurate. <ref type="bibr">Liu &amp; Liu (2019)</ref> combined an SIC-type approximation to the prior with variational inference based on a variational family of Gaussians with a sparse Cholesky factor of the covariance matrix, but we are not aware of results guaranteeing that the covariance-Cholesky factor exhibits (approximate) sparsity under random ordering. <ref type="bibr">Wu et al. (2022)</ref> combined SIC-type approximations of LGPs with mean-field variational inference, but the latter may be inaccurate when there are strong correlations in the GP posterior <ref type="bibr">(MacKay, 1992)</ref>.</p><p>To achieve scalable and accurate inference for LGPs, we propose a variational family of SIC Gaussian distributions and combine it with a SIC approximation to the GP prior (see Figure <ref type="figure">1</ref>). Our approach is double-KL-optimal in the sense that variational approximation is reverse-KL-optimal for a given log normalizer (i.e., evidence) and our prior SIC approximation, which is available in closed form, is forward-KL-optimal for a given sparsity pattern <ref type="bibr">(Sch&#228;fer et al., 2021a)</ref>. Within our double-Kullback-Leibler-optimal Gaussian-process framework (DKLGP), we then focus on a particular ordering and nearest-neighbor-based sparsity pattern resulting in highly accurate prior and posterior approximations. We adopt a novel computational trick based on the concept of reduced ancestor sets for achieving efficient and scalable LGP inference. For this setting, our variational approximation can be computed via SGD in polylogarithmic time per iteration. While inducing-point methods assume that unobserved points depend on data only through inducing points (e.g., <ref type="bibr">Frigola et al., 2014;</ref><ref type="bibr">Hensman et al., 2015)</ref>, our method allows fast and accurate KL-optimal prediction based on the screening effect. Our numerical comparisons show that DKLGP can be vastly more accurate than state-ofthe-art alternatives such as inducing-point and mean-field approximations at a similar computational complexity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Methodology</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Model</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Assume we have a vector</head><p>with</p><p>. Throughout, we view the inputs x i as fixed (i.e., non-random) and hence do not explicitly condition on them.</p><p>Unless y|f follows a Gaussian distribution, inference (such as computing the posterior p(f |y)) generally cannot be carried out in closed form. In addition, even for Gaussian likelihoods, direct inference scales as O(n 3 ) and is thus computationally infeasible for large n. To address these challenges, we propose an approximation based on double KL minimization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Variational Sparse Inverse Cholesky Approximation</head><p>Consider a lower-triangular sparsity pattern S q &#8834; {1, . . . , n} 2 , with {(i, i) : i = 1, . . . , n} &#8834; S q and such that i &#8805; j for all (i, j) &#8712; S q . Our preferred choice of S q will be discussed in Section 2.5, but typically we will have (i, j) &#8712; S q if x i and x j are "close." Corresponding to S q , define the family of distributions</p><p>where we write V &#8712; S q if (i, j) &#8712; S q for all V ij &#824; = 0. It is straightforward to show that any q &#8712; Q can be represented in ordered conditional form as q(f ) = n i=1 q(f i |f s q i ), where s q i = {j &gt; i : (j, i) &#8712; S q } for i = 1, . . . , n -1 and s q n = &#8709;. We approximate the posterior p(f |y) by the closest distribution in Q in terms of reverse KL divergence:</p><p>We have KL(q(f )&#8741;p(f |y)) = log p(y) -ELBO(q), where p(y) does not depend on q, and so q satisfies q(f ) = arg max q&#8712;Q ELBO(q).</p><p>(2)</p><p>Proposition 2.1. The ELBO in (2) can be written up to an additive constant of n/2 as</p><p>where L is the inverse Cholesky factor of K such that K -1 = LL &#8868; , and L :,i denotes its ith column.</p><p>All proofs can be found in Appendix C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">Approximating the Prior via a Second KL Minimization</head><p>Even for a sparse V, computing the ELBO in (3) is prohibitively expensive for large n, because computing L (or any of its columns) from K generally requires O(n 3 ) time.</p><p>To avoid this, we replace the prior p(f ) defined in (1) by a Gaussian distribution that minimizes a second KL divergence under an SIC constraint.</p><p>Specifically, consider a second lower-triangular sparsity pattern S p &#8834; {1, . . . , n} 2 , which may be the same as S q . We define the corresponding set of distributions</p><p>We approximate the prior p(f ) by the closest approximation in P in terms of forward KL divergence: p(f ) = arg min p&#8712;P KL p(f ) p(f ) . (4) By a slight extension of Sch&#228;fer et al. (2021a, Thm. 2.1), we can show that this optimization problem has an efficient closed-form solution. Proposition 2.2. The solution to (4) is p(f ) = N n (f |&#181;, ( LL &#8868; ) -1 ), where the nonzero entries of the ith column of L can be computed in O(|S p i | 3 ) time as</p><p>and S p i = {j : (j, i) &#8712; S p } is an ordered set with elements in increasing order (i.e., the first element is i).</p><p>Throughout, we denote by e i a vector whose ith entry is one and all others are zero, and we index matrices before inverting so that K -1 S p i ,S p i := (K S p i ,S p i ) -1 . The approximation in Proposition 2.2 is equivalent to an ordered conditional approximation <ref type="bibr">(Vecchia, 1988)</ref> of the prior density p</p><p>where</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.">Computing the ELBO based on Ancestor Sets</head><p>Plugging p(f ) into (2), the ELBO in (3) becomes</p><p>with the ith summand depending on L only via its ith column L:,i , whose nonzero entries can be computed in O(|S p i | 3 ) time using (5). We need to compute V -1 L:,i and V -1 e i , the latter of which appears in E q log p(y i |f i ) (see Section 2.6). The nonzero entry of e i (i.e., {i}) is a subset of the nonzero entries of L:,i (i.e., S p i ), and hence we focus our discussion on computing V -1 L:,i . Solving this sparse triangular system in principle requires O(|S q |) time.</p><p>However, it is possible to speed up computation by omitting rows and columns of V that do not correspond to the ancestor set A i of S p i with respect to S q , which is defined as A i = j &#8805; i : there exists a path L = {(j, l 1 ), (l 1 , l 2 ), . . . , (l a-1 , l a ), (l a , l)} &#8834; S q for some l &#8712; S p i . Ancestor sets are properties of the directed acyclic graphs that can be used to represent our triangular sparsity structures, as illustrated in Appendix B.</p><p>Proposition 2.3. (V -1 L:,i ) j = 0 for all j / &#8712; A i .</p><p>Thus, we have</p><p>where V -1 Ai,Ai LAi,i can be computed in O(|A i ||S q i |) time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5.">Maximin Ordering and Nearest-neighbor Sparsity</head><p>Sch&#228;fer et al. (2021a) proposed a sparsity pattern S based on reverse-maximum-minimum-distance (r-maximin) ordering (see Figure <ref type="figure">2</ref> for an illustration). R-maximin ordering picks the last index i n arbitrarily (often in the center of the input domain), and then the previous indices are sequentially selected for k = n -1, n -2, . . . ,</p><p>, where I k = {i k+1 , . . . , i n }. Throughout, we assume that our indexing follows r-maximin ordering (e.g., f k = f i k ). We can then define the sparsity pattern by S i = {j &#8805; i : dist(x i , x j ) &#8804; &#961;&#8467; i }, for some fixed &#961; &#8805; 1, where &#8467; i = min j&gt;i dist(x i , x j ). We can compute dist(x i , x j ) as Euclidean distance between the inputs, potentially in a transformed input space (see Section 2.6 for more details). The conditioning sets are all of approximately size |S i | = O(&#961; d ) &#8776; m = |S|/n under mild assumptions on the regularity of the inputs. <ref type="bibr">Sch&#228;fer et al. (2021a)</ref> proved that an &#1013;-accurate approximation of the prior can be obtained using</p><p>Reverse maximin ordering on a grid (small gray dots) of size n = 60 &#215; 60 = 3,600 on a square. For three different indices i, we show the ith ordered input (&#9650;), the subsequently ordered n -i inputs ( ), the distance &#8467;i to the nearest neighbor (-), the neighboring subsequent inputs Si (&#9632;) within a (yellow) circle of radius &#961;&#8467;i (here, &#961; = 2), the reduced ancestors &#195;i (+), and the ancestors Ai (&#215;).</p><p>kernels K that are Green's functions of elliptic boundaryvalue problems (similar to Mat&#233;rn kernels up to boundary effects) and demonstrated high numerical accuracy of the posterior using S q = S for Gaussian likelihoods. For non-Gaussian likelihoods, this implies highly accurate approximations to the posterior when a second-order Taylor expansion can adequately approximate the posterior.</p><p>While this means that our DKLGP can achieve high accuracy by choosing S p = S q = S, the resulting ancestor sets can grow roughly linearly with n (e.g., see Figure <ref type="figure">3a</ref>). Hence, even evaluating the ELBO based on the ancestor sets would often be prohibitively expensive for large n. However, it is possible to ignore most ancestors in (7) and only incur a small approximation error. Specifically, consider reduced ancestor sets &#195;i = {j &#8805; i : dist(x i , x j ) &#8804; &#961;&#8467; j }, where the last subscript is now a j, not an i. As illustrated in Figure <ref type="figure">2</ref>, we have S i &#8834; &#195;i (because &#8467; j &#8805; &#8467; i for j &#8805; i) and approximately &#195;i &#8834; A i . The reduced ancestor sets are of size</p><p>and can all be computed together in O(nm log 2 n) time <ref type="bibr">(Sch&#228;fer et al., 2021b)</ref>. Hence, reduced ancestor sets can be orders of magnitude smaller than full ancestor sets (see Figures <ref type="figure">3a</ref> and <ref type="figure">6</ref>). Claim 2.4. For Mat&#233;rn-type LGPs with exponential-family likelihoods, (V -1 L:,i ) j &#8776; 0 for all j / &#8712; &#195;i , where V minimizes the ELBO in (6), under mild conditions.</p><p>We provide a non-rigorous justification for this claim in Appendix C. Together, Proposition 2.3 and Claim 2.4 imply that &#8741;V <ref type="figure">3b</ref>), and so replacing the former by the latter in the ELBO causes negligible error (Figure <ref type="figure">3c</ref>). Similar numerical results were obtained for two other popular kernels in Figures <ref type="figure">7</ref> and <ref type="figure">8</ref> in Appendix A, suggesting that our approach is applicable to beyond the Mat&#233;rn family.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.6.">Optimization of the ELBO</head><p>The class of distributions</p><p>We propose to find the optimal q &#8712; Q by minimizing our approximation of -ELBO(q) with respect to these O(nm) unknown parameters via minibatch stochastic gradient descent. For each minibatch B, this requires computing the gradient of</p><p>using automatic differentiation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>For Gaussian observations with y</head><p>For more general distributions p(y i |f i ), we can use the Monte Carlo gradient estimator <ref type="bibr">(Kingma &amp; Welling, 2014)</ref> and approximate E q log p(y</p><p>The O(m 3 ) cost dominates, as we typically need m = O(log d n) for accurate approximations <ref type="bibr">(Sch&#228;fer et al., 2021a)</ref>; for example, in Figure <ref type="figure">3a</ref>, | &#195;i ||S i | is smaller than |S i | 3 . Also, L does not need to be pre-computed and stored, as each column L:,i can be computed "on-the-fly"; this is especially useful for hyperparameter estimation, for which p(f ) and hence L changes with the hyperparameters at each gradient-descent iteration.</p><p>0 8000 16000 24000 32000 n 0 2000 4000 6000 8000 sparsity reduced ancestor full ancestor (a) Average sizes of Si, &#195;i, and Ai 0.000 0.050 0.100 0.150 0.200 ||V 1 L:,i|| 0.000 0.025 0.050 0.075 0.100 0.125 0.150 0.175 0.200 &#195;i , &#195;i L &#195;i ,i &#8741; with reduced ancestor sets versus &#8741;V -1 L:,i&#8741; for i = 1, . . . , n, where n = 500 and d = 2. (c) compares ELBO curves based on full (6) and reduced (8) ancestor sets, as functions of the range parameter with true value 0.1, for n = 500 and d = 2. In all plots, we set &#961; = 2 and the n inputs are sampled uniformly on [0, 1] d .</p><p>We initialize the optimization using an estimate of &#957; and V based on a Vecchia-Laplace approximation <ref type="bibr">(Zilber &amp; Katzfuss, 2021)</ref> of p(f |y) combined with an efficient incomplete Cholesky (IC0) approximation <ref type="bibr">(Sch&#228;fer et al., 2021a)</ref> of the posterior SIC factor. While this initialization itself provides a reasonable approximation to the posterior, hyperparameter estimation for this approach is more difficult, and it is less accurate than DKLGP even for known hyperparameters as shown in Figure <ref type="figure">9</ref> in Appendix A.</p><p>The ordering and sparsity pattern in Section 2.5 depend on a distance metric, dist(x i , x j ), between inputs. We have found that the accuracy of the resulting approximation can be improved substantially by computing the Euclidean distance between inputs in a transformed input space in which the GP kernel is isotropic, as suggested by <ref type="bibr">Katzfuss et al. (2022)</ref>; <ref type="bibr">Kang &amp; Katzfuss (2023)</ref>. For example, consider an automatic relevance determination (ARD) kernel of the form K(x i , x j ) = K o (q(x i , x j )), where K o is an isotropic kernel (e.g., a Mat&#233;rn kernel with smoothness 1.5 is used throughout this paper) and q(x i , x j ) = &#8741;x &#955; ix &#955; j &#8741; is a Euclidean distance based on scaled inputs x &#955; = (x 1 /&#955; 1 , . . . , x d /&#955; d ) with individual ranges or length-scales &#955; = (&#955; 1 , . . . , &#955; d ) for the d input dimensions. In this example, we take dist(x i , x j ) = q(x i , x j ) when computing the sparsity pattern. When the scaled distance and hence the sparsity pattern depend on unknown hyperparameters (e.g., &#955; in the ARD case), we carry out a two-step optimization procedure: First, we run our ELBO optimization for a few epochs based on the sparsity pattern obtained using an initial guess of &#955; to obtain a rough estimate of &#955;, which we then use to obtain the final ordering and sparsity pattern and warm-start our ELBO optimization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.7.">Prediction</head><p>An important task for (L)GP models is prediction at unobserved inputs, meaning that we want to obtain the posterior distribution of latent GP variables f * at new inputs x * 1 , . . . , x * n * given the data y. To do so, we consider the joint posterior distribution of f = (f * , f ), from which any desired marginal distribution can be computed. Since working with the joint covariance matrix K is again computationally prohibitive, we make a joint SIC assumption on the posterior distribution of f (with the prediction variables ordered first) that naturally extends the SIC assumption for f in q(f ). For the exact posterior, we have</p><p>Similarly, we assume q( f ) = q(f * |f )q(f ), where q(f ) = N n (f |&#957;, (VV &#8868; ) -1 ) was obtained as described in previous sections, and q(f * |f ) is a sparse approximation of p(f * |f ). For i = 1, . . . , n * , let S * i &#8834; {i, i + 1, . . . , n * + n} denote the ith sparsity set relative to the joint posterior.</p><p>We define the approximation to the joint posterior by the minimizer of the expected forward-KL divergence between p(f * |f ) and q(f * |f ) for given &#957; and V, that is,</p><p>The resulting approximation can be obtained efficiently: Proposition 2.5. For given &#957;, V, and</p><p>and</p><p>The posterior distribution of a desired summary, say a &#8868;f can then be computed as q(a &#8868;f ) = N (a &#8868; &#957;, &#8741; &#7804;-1 a&#8741; 2 ).</p><p>In particular, the marginal posterior of f * i can be obtained using a = e i as q(e &#8868;</p><p>). We again consider an r-maximin ordering and nearestneighbor sparsity pattern similar to above, but now conditioned on the prediction points being ordered first, and the training points ordered after (in the same ordering as before). Once the prediction points are in this conditional r-maximin ordering, we can define</p><p>and</p><p>This ordering and sparsity pattern can be computed rapidly and was shown to lead to highly accurate approximations; more details can be found in Sch&#228;fer et al. (2021a, Section 4.2.1). Note that while computing the prediction variances can be expensive, we can again approximate &#8741; &#7804;-1 e i &#8741; &#8776; &#8741; &#7804;-1</p><p>where the last subscript is a j, not an i.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Numerical Comparisons</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Experimental Setup</head><p>We compared the following approaches:</p><p>DKLGP: Our method with r-maximin ordering and nearest-neighbor sparsity pattern DKL-G: Same as DKLGP but with global sparsity pattern S p i = S q i = {1, . . . , m} DKL-D: Same as DKLGP but with diagonal sparsity pattern S q i = {i} SVIGP: Stochastic variational GP proposed by <ref type="bibr">Hensman et al. (2013)</ref> VNNGP: Variational nearest neighbor GP proposed by <ref type="bibr">Wu et al. (2022)</ref> In figures and tables, we use abbreviated acronyms DKL, SVI, and VNN to save space. SVIGP and VNNGP are two state-of-the-art variational GP methods, while DKL-G and DKL-D are variants of our DKLGP that resemble SVIGP and VNNGP, respectively. SVIGP assumes independence in f conditional on m global inducing variables. VNNGP scales up the inducing points to be equal to the observed input locations, ensuring computational feasibility by assuming that each conditions only on m others a priori, combined with a mean-field approximation to the posterior. We used the GPyTorch <ref type="bibr">(Gardner et al., 2018)</ref> implementations of SVIGP and VNNGP. For DKL-G and DKL-D, one can easily see that A i = S p i , and so reduced ancestor sets are not necessary. For all methods, computing a term in the ELBO requires O(m 3 ) time per sample. (Reusing Cholesky factors for all samples in a minibatch is straightforward for SVIGP; similar savings may also be possible for the other methods based on the supernode ideas suggested by <ref type="bibr">Sch&#228;fer et al., 2021a.)</ref> Hence, m can be viewed as a comparable complexity parameter that trades off computational speed (for small m) against accuracy (large m). Thus, for our numerical comparison, we aligned the m for all methods with the average size of S i for a given &#961;.</p><p>Throughout, we assumed f (&#8226;) &#8764; GP(0, K), where K is a Mat&#233;rn1.5 ARD kernel whose variance (set to one for simulations) and range (i.e., length-scale) parameters &#955; were estimated. We considered three different likelihoods p(y i |f i ):</p><p>The noise variance &#963; 2 &#1013; was estimated from the data; for simulations, we used &#963; 2 &#1013; = 0.1 2 except where specified otherwise.</p><p>For estimation of hyperparameters, the initial values for &#955;, &#963; 2 &#1013; , and the variance in K were all 0.25. DKLGP and its variants ran the Adam optimizer for 35 epochs. SVIGP and VNNGP used natural gradient descent and Adam, respectively, as their optimizer for 500 epochs as suggested in <ref type="bibr">Wu et al. (2022)</ref>. The minibatch size was 128 and a multistep scheduler with a scaling factor of 0.1 was used for all methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Visual Comparison in One Dimension</head><p>Figure <ref type="figure">4</ref> provides a visual comparison of SVIGP, VNNGP, and DKLGP predictions for a toy example in one dimension. We also included predictions from the exact GP (DenseGP) which cannot be obtained for large n. DKLGP approximated the DenseGP most closely, especially in terms of</p><p>0.0 0.2 0.4 0.6 0.8 1.0 -4 -3 -2 -1 0 1 2 0.64 0.66 0.68 0.70 0.72 0.74 0.76 -2.0 -1.8 -1.6 -1.4 -1.2 -1.0 y f DKL SVI VNN DenseGP the prediction intervals. SVIGP oversmoothed heavily and produced very wide prediction intervals. VNNGP assumes a diagonal covariance in the variational distribution q(f ), which appears to have caused sharply fluctuating predictions and narrow prediction intervals. Figure <ref type="figure">11</ref> in Appendix A shows similar comparisons for Student-t and Bernoulli likelihoods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Results on Synthetic Data</head><p>We also carried out a more comprehensive comparison for 10,000 inputs randomly distributed in the unit hypercube, [0, 1] 5 , with true range parameters &#955; = (0.25, 0.50, 0.75, 1.00, 1.25). We used n = 8,000 inputs for training and 2,000 for testing. Performance was measured in terms of the variational inference of the latent field f (&#8226;) at training and test inputs. For each scenario, results over five replicates were produced and averaged.</p><p>Figure <ref type="figure">5</ref> compares root mean squared error (RMSE) and negative log-likelihood (NLL) at test inputs. For the Gaussian and Student-t likelihoods, DKLGP produced the most accurate predictions, while for the Bernoulli-logit likelihood, SVIGP and DKLGP appeared to be similarly accurate in terms of RMSE. DKLGP outperformed the competing methods in terms of NLL. While DKLGP, DKL-G, and SVIGP improved with increasing &#961; as expected, the mean-field approximations (VNNGP and DKL-D) generally did not. We performed the same comparison for the squared exponential and rational quadratic kernels in Figures 12 and 13 in Appendix A, which resulted in the same rankings as for the Mat&#233;rn kernel, except that DKLGP was marginally outperformed by SVIGP in terms of RMSE for the Bernoulli-logit likelihood at &#961; = 2.0.</p><p>We also computed RMSE and NLL scores at training inputs for the methods we considered in Figure <ref type="figure">5</ref>, as presented in Figure <ref type="figure">10</ref> in Appendix A. Consistent with the results from Figure <ref type="figure">5</ref>, DKLGP generally performed best, which is consistent with the results from Figure <ref type="figure">5</ref>. VNNGP performed similarly to DKLGP for the Gaussian and Student-t likelihoods, but underestimated the variance at test inputs and so led to poor NLL scores. Note that variational methods are generally known to underestimate the posterior variance <ref type="bibr">(Blei et al., 2017)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.">Results on UCI Data</head><p>To provide a more comprehensive comparison of SVIGP, VNNGP and DKLGP, we considered datasets from the UCI data repository widely used for benchmarking purposes. For the UCI datasets we considered in this section, covariates were first standardized to [0, 1] and removed from analysis if the standard deviation after standardization was smaller than 0.01. Furthermore, inputs were filtered to ensure that the minimum distance between inputs was greater than 0.001 to prevent numerical singularity. Approximately 20% of each dataset was used for testing. We chose different &#961; for different datasets and computed the corresponding m. Since Section 3.3 demonstrated the advantage of DKLGP over its variants DKL-G and DKL-D, we excluded the two variants here for ease of presentation. We included SVIGP with m = 32 and m = 512 inducing points as benchmarks for easier comparison with relevant works in the literature.</p><p>Table <ref type="table">1</ref> summarizes the performance of the three methods across nine UCI datasets. DKLGP had better scores than VNNGP for all datasets except for COVTYPE, for which VNNGP ran out of memory on a 64GB node despite having reduced the data size to a subset of size 100K. Compared to the SVIGP with similar computation cost, DKLGP provided substantially better performance for the binary response data COVTYPE and for low-dimensional (d &lt; 10) settings, and roughly similar performance for most high-dimensional datasets except the KEGGU data, for which SVIGP produced much lower RMSE than DKLGP. However, this does not appear to be due to DKLGP providing a less accurate approximation to the exact GP, but rather it appears to be due to the exact GP (with its simple ARD kernel) being severely misspecified for KEGGU. To explore this further, we fitted the exact GP (DenseGP) to KEGGU. The DenseGP's RMSE was 0.14 (same as for DKLGP), and the root average squared distance between the DenseGP predictions and the DKLGP and SVIGP predictions was 0.05 and 0.13, respectively, which implies that the DKLGP predictions were a much better approximation of the exact-GP predictions than the SVIGP predictions. VNNGP provided better point predictions than SVIGP for the low-dimensional datasets, which is consistent with the results in <ref type="bibr">Wu et al. (2022)</ref>; however, VNNGP's NLL was high due to its underestimation of posterior variance.</p><p>Table <ref type="table">2</ref> summarizes the wall-clock times on an Intel Xeon E5-2680 v4 CPU with 14 cores and 28 threads for the methods under comparison, where the computation of sparsity and ancestor sets is only applicable to DKLGP or DKL. The DKL computation times were closer to those of SVI than to those of SVI 32 , indicating that DKLGP and SVIGP should be compared at the same m on the basis of comparable computation times. While increasing m significantly improved SVIGP's performance on low-dimensional datasets, even m = 512 inducing points made the training of SVIGP challenging on the workstation we used for comparison. The performance of DKLGP can also be improved by using a larger &#961;; for example, DKLGP's RMSE for the KIN40K data was reduced to 0.27 for m = 21.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Conclusion</head><p>We have introduced a variational approach using a variational family and approximate prior based on SIC restrictions. The (r-)maximin ordering, nearest-neighbor sparsity pattern, and a computational trick based on reduced ancestor sets together result in efficient and accurate inference and prediction for LGPs. While the time complexity is cubic in the number of neighbors, quadratic complexity for the prior approximation can be achieved by grouping observations and re-using Cholesky factors <ref type="bibr">(Sch&#228;fer et al., 2021a)</ref>; we will investigate an extension of this idea to computing the ELBO in our variational setting. Although we here assume that the input domain is Euclidean, our method can be applied more generally; using a correlation-based distance instead of Euclidean distance <ref type="bibr">(Kang &amp; Katzfuss, 2023)</ref>, one can use our method to perform LGP inference for large data on complex domains (cf. <ref type="bibr">Tibo &amp; Nielsen, 2022)</ref>. We will also explore extensions to deep GPs (cf. <ref type="bibr">Sauer et al., 2022)</ref>. An implementation of our method, along with code to reproduce all results, is publicly available at <ref type="url">https:  //github.com/katzfuss-group/DKL-GP</ref>.</p><p>Our approach is applicable to irregularly spaced observations and in principle to any desired covariance structure.</p><p>Our method provides state-of-the-art performance when fine-scale structure in the function of interest can be discerned from the data; in contrast, if the data are highly noisy or sparse or the covariance model is severely misspecified, inducing-point methods such as SVIGP that produce smooth predictions and wide uncertainty intervals may be competitive with our approach.</p><p>This section contains additional figures not shown in the main paper. Complementing Figure <ref type="figure">3a</ref>, Figure <ref type="figure">6</ref> shows that reduced ancestor sets &#195;i are much smaller than full ancestor sets A i across a range of &#961; values. Complementing Figure <ref type="figure">3</ref>, Figures <ref type="figure">7</ref> and <ref type="figure">8</ref> show that the approximation error in computing the ELBO caused by using reduced ancestor sets is negligible even for the squared-exponential and rational-quadratic kernels, respectively. Figure <ref type="figure">9</ref> suggests that the initialization of &#957; using Vecchia-Laplace approximation and incomplete Cholesky (IC0) approximation provides reasonable starting values for &#957;, which can be further refined by optimizing the ELBO.</p><p>Figure <ref type="figure">10</ref> shows a comparison of RMSE and NLL scores for the posterior marginals of the entries of f at training inputs. In contrast to Figure <ref type="figure">5</ref>, VNNGP performed similarly to DKLGP and outperformed SVIGP for Gaussian and Student-t likelihoods. Furthermore, the Vecchia-Laplace approximation with IC0 (used as the initialization for DKLGP) was usually the third best model, indicating an advantage of using the SIC restriction for L and V. 0.000 0.100 0.200 0.300 0.400 0.500 ||V 1 L:,i|| 0.000 0.100 0.200 0.300 0.400 0.500 ||V 1 i, i L i, i|| (a) &#8741;V -1 &#195;i , &#195;i L &#195;i ,i &#8741; vs &#8741;V -1 L:,i&#8741; 0.05 0.10 0.15 0.20 lengthscale (range) 400 500 600 700 800 ELBO full reduced (b) ELBO using reduced ancestors Figure 8. The rational-quadratic-kernel versions of Figures 3b (left) and 3c (right): The left figure compares &#8741;V -1 &#195;i , &#195;i L &#195;i ,i &#8741; with reduced ancestor sets versus &#8741;V -1 L:,i&#8741; for i = 1, . . . , n, where n = 500 and d = 2. The right figure compares ELBO curves based on full (6) and reduced (8) ancestor sets, as functions of the range parameter with true value 0.1, for n = 500 and d = 2. In all plots, we set &#961; = 2 and the n inputs are sampled uniformly on [0, 1] d . 2 0 2 true posterior mean 2 0 2 initial posterior mean 2 0 2 true posterior mean 2 0 2 est'd posterior mean </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Graph representation of sparsity patterns and ancestor sets</head><p>We here illustrate the sparsity and ancestor sets, using their graph representations. As pointed out by <ref type="bibr">Katzfuss &amp; Guinness (2021)</ref>, the sparsity patterns can be represented by directed acyclic graphs (DAGs), which also allows straightforward visualization of ancestor sets. Figure <ref type="figure">14</ref> presents sparsity and ancestor sets for three selected points (i = 12, 4, 1) of 16 grid points in the unit square. For example, x 1 = 1 3 , 1 and x 16 = 2 3 , 2 3 . One can easily see that</p><p>The edges of the graphs corresponding to the ancestor sets A 12 , A 4 and A 1 are denoted by the black curved arrows. Specifically, the sparsity set S 1 = {2, 7, 13}, the reduced ancestor set &#195;1 = S 1 &#8746; {9, 11, 12} and the (full) ancestor set A 1 = &#195;1 &#8746; {15, 16}. Note that A 1 contains &#195;1 , which is a desirable property for leveraging the screening effect in GPs <ref type="bibr">(Stein, 2011;</ref><ref type="bibr">Bao et al., 2020)</ref>. This is not always the case for small-scale problems and it depends on distribution of the points, as shown in Figure <ref type="figure">14b</ref>. Specifically, A 4 = {10, 11, 14, 15, 16}, but &#195;4 \ A 4 = {13} &#824; = &#8709;. But our numerical studies suggest that &#195;i \ A i are typically empty or very small for large-scale problems, for which computational issues are severe and hence our method is most likely to be used. For relatively large i = 12, S 12 = &#195;12 = A 12 = {16}. As illustrated here, all the reduced ancestor sets include x 16 , since &#8467; 16 = &#8734;. Otherwise, unlike &#195;4 and &#195;1 , &#195;12 does not include x 15 since dist(x 15 , x 12 ) = &#8730; 2 is larger than &#961;&#8467; 15 &#8771; 1.226. 0.0 0.2 0.4 0.6 0.8 1.0 -4 -3 -2 -1 0 1 2 0.0 0.2 0.4 0.6 0.8 1.0 -3 -2 -1 0 1 2 y f DKL SVI VNN DenseGP Figure 11. Comparison of three variational approximations to the predictive GP posteriors for the Student-t (left) and Bernoulli-logit likelihoods (right). We show the means (solid lines) and 95% pointwise intervals of the posterior predictive distribution f * |y at 200 regularly spaced test inputs. Note that the noise variance &#963;&#1013; = 0.3 and range (or length-scale) &#955; = 0.1 are used. The exact-GP result (DenseGP) is available only for the Gaussian likelihood. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Proofs</head><p>This section contains the postponed proofs of technical statements in the main paper. A non-rigorous justification for Claim 2.4 can be also found here.</p><p>Proof of Proposition 2.1. We have</p><p>where E q log p(y|f ) = n i=1 E q log p(y i |f i ). Using a well-known expression for the KL divergence between two Gaussian distributions, we have</p><p>where log</p><p>Proof of Proposition 2.2. Using a well-known formula for the KL divergence between two Gaussian distributions (e.g., see ( <ref type="formula">9</ref>)), we have The ith ordered input (&#9650;), the subsequently ordered n -i inputs ( ), the distance &#8467;i to the nearest neighbor (-), the neighboring subsequent inputs Si (&#9632;) within a (yellow) circle of radius &#961;&#8467;i, with &#961; = 1.3, the reduced ancestors &#195;i (+), and the ancestors Ai (&#215;). The directed acyclic graphs of the sparsity patterns are denoted by arrows (&#8631; &#8631; &#8631;).</p><p>claim is that for j</p><p>By the results on exponential screening in <ref type="bibr">Sch&#228;fer et al. (2021b)</ref>, the matrix L satisfies the above decay property for covariances that are Green's functions of elliptic PDEs. It satisfies even the stronger property with &#8467; j replaced by &#8467; i .</p><p>For a Gaussian likelihood, the matrix V satisfies</p><p>where R is a diagonal covariance matrix of the likelihood. Interpreted as a PDE, the diagonal matrix R -1 corresponds to a zero-order term. Thus, the associated covariance matrix ( LL &#8868; ) -1 behaves like a discretized elliptic Green's function and is therefore subject to an exponential screening effect <ref type="bibr">(Sch&#228;fer et al., 2021a, Section 4.1)</ref>. Let P &#8597; denote the permutation matrix that reverts the order of the degrees of freedom. Since P &#8597; V -&#8868; P &#8597; is lower triangular and P &#8597; &#931;P &#8597; = P &#8597; V -&#8868; P &#8597; P &#8597; V -1 P &#8597; = P &#8597; V -&#8868; P &#8597; P &#8597; V -&#8868; P &#8597; &#8868; , the matrix P &#8597; V -&#8868; P &#8597; is the Cholesky factor of &#931; in the maximin (as opposed to the reverse maximin) ordering. In <ref type="bibr">Sch&#228;fer et al. (2021b)</ref>, it is shown that the Cholesky factors of discretized Green's functions of elliptic PDEs in the maximin ordering have exponentially decaying Cholesky factors. In particular, the results of <ref type="bibr">Sch&#228;fer et al. (2021b)</ref> suggest that &#8704;j &#8805; i : log</p><p>As shown, for instance, in <ref type="bibr">Sch&#228;fer et al. (2021b, Lemma 5.19)</ref>, products of matrices that decay rapidly with respect to a distance function dist(&#8226;, &#8226;) on its index set, inherit this decay property. To this end, assume that lower triangular matrices A and B satisfy this property. We then have log (AB) ji = log By the triangle inequality, we have dist (x j , x k ) + dist (x k , x i ) &#8805; dist (x j , x i ). Since the right hand is -&#8734; unless j &gt; i and thus &#8467; j &#8805; &#8467; i , we have thus log (AB) ji = log k A jk B ki &#10885; log(n)dist (x j , x i ) /&#8467; j , proving the the result.</p><p>For a general exponential family likelihood, the matrix V does not necessarily satisfy (10). Instead, according to <ref type="bibr">Nickisch &amp; Rasmussen (2008)</ref>, a quadratic approximation to the log-likelihood under mild conditions implies that</p><p>where W is the covariance of the effective likelihood obtained by dividing the approximate posterior by the prior. Assuming that W -1 corresponds to a zero-order term in the context of a PDE, one can also obtain the result from the justification for the Gaussian likelihood case above.</p><p>Proof of Proposition 2.5. Note that p(f * |f ) = p( f )/p(f ) = N n * &#181; * + K * o K -1 (f&#181;), K * |o , where K * |o = K * * -K * o K -1 K o * , and q(f * |f ) = q( f )/q(f ) = N n * &#957; * -(V * * ) -&#8868; V o * &#8868; (f&#957;), (V * * V * * &#8868; ) -1 . Then, since KL p(f * |f ) q(f * |f ) is a KL divergence between two Gaussian distributions, we have</p><p>Using the fact that the first term is quadratic in form, one can show that</p><p>Then, we can see that KL p(f * |f ) q(f * |f ) is minimized with respect to &#957; * by G&#181; + h = 0. This implies that &#957; * = &#181; * -(V * * ) -&#8868; V o * &#8868; (&#957;&#181;). Plugging this in, we have From the definition of S * i , it can be easily shown that K-1</p></div></body>
		</text>
</TEI>
