Manuscript Offprint
arXiv:2610.10428Derivative Gaussian Processes on a Two-Direction Budget
Abstract
Gradient observations promise more accurate Gaussian process (GP) surrogates, but the cost of incorporating them has long stood in the way of realizing that promise. We propose a derivative GP with a budget of just two directions per observed gradient. One direction focuses on each gradient's direct contribution to target prediction, while the other aggregates its indirect contributions through correlations with the conditioning function values. Within a Vecchia approximation, where each prediction conditions on m nearby inputs in d dimensions, this construction represents their md gradient coordinates using at most 2m directional derivatives, giving dense factorization cost per prediction target. For general conditioning sets, we bound the posterior approximation error relative to using full gradients and characterize when the error is small or the approximation is exact. In simulations, our method matches the accuracy of a leading exact gradient-reduction method at equal conditioning set size. Because its cost grows much more slowly with that size, it can use conditioning sets well beyond the memory limit of the exact method, reaching lower prediction error with a small fraction of the time and memory. Notably, our method can exploit gradient observations while requiring less computation time or memory than function-only GP baselines. Code is available at https://github.com/hseung88/lite.
1 INTRODUCTION
Gradient observations can improve the predictive accuracy of Gaussian process (GP) surrogates (Solak et al., 2002; Rasmussen and Williams, 2005), but incorporating full gradients substantially increases the computational and memory costs of inference. Existing scalable derivative GP methods address this problem
Matthias Katzfuss
University of Wisconsin–Madison
through kernel interpolation (Eriksson et al., 2018; Huang, 2026), inducing derivative variables (Padidar et al., 2021), random feature approximations (Hung and Chien, 2021), and structured covariance decompositions (de Roos et al., 2021). Within a Vecchia approximation (Vecchia, 1988; Stein et al., 2004; Datta et al., 2016; Katzfuss and Guinness, 2021), TERA (Seung and Katzfuss, 2026) recently showed that the md gradient coordinates of m conditioning inputs in d dimensions can be replaced by directional derivatives selected for each prediction target, without changing the target's conditional distribution under a stationary kernel and its gradient noise model. This removes d from the dense linear algebra, but the reduced covariance matrix still requires factorization cost and memory per target. Since the accuracy of a Vecchia approximation improves with the size of its conditioning sets (Katzfuss and Guinness, 2021; Guinness, 2018), these costs cap the attainable accuracy, and the memory requirement limits how many targets can be processed simultaneously on an accelerator.
A fixed budget of directions per observed gradient would alleviate both limitations, provided the selected directions carry the information needed for accurate prediction. In this paper, we propose LITE for lightweight derivative GP inference with two directional derivatives per observed gradient. The covariance between each gradient and the target identifies a direction toward the target input; conditioning on the function values introduces a correction that aggregates the directions toward the remaining conditioning inputs. These two components of the conditional covariance determine our two directions, which therefore preserve each gradient's conditional covariance with the target. This gives at most 2m directional derivatives per Vecchia conditional, factorization cost, and covariance storage. For example, with , TERA's matrix requires about 4 GB per target, whereas LITE's matrix requires under 2 MB in double precision, so thousands of targets can be factorized in one batch on a single GPU. We construct the reduced covariance matrix directly from the selected directions.
The two directions preserve each gradient's conditional covariance with the target, but omitted derivatives can still inform the target through their correlations with the retained ones, so the target posterior is not automatically preserved. We show that the reduction is exact when the conditioning geometry is compound-symmetric, the limiting case of distance concentration in high dimensions, and we express the expected KL divergence from the posterior using full gradients in the same conditioning set exactly through interpretable variance ratios, with a two-sided bound and a necessary and sufficient condition for exact recovery.
We evaluate predictive accuracy in controlled GP simulations and on a molecular dynamics dataset. We also evaluate optimization performance in Bayesian optimization (BO) tasks, including a real-world hyperparameter optimization benchmark. We compare computation time and memory usage with those of derivative and function-only GP baselines. Across regression benchmarks, LITE achieves the lowest runtime and memory usage among all tested baselines. In high-dimensional BO tasks with up to 800 dimensions, it outperforms leading function-only methods while requiring less runtime or memory.
Our contributions are summarized below.
-
We derive two directions per observed gradient from its conditional covariance with the prediction target, giving a Vecchia derivative GP with factorization cost and covariance memory per target, which enables batched factorization across thousands of targets.
-
We prove that the two directions are exact under compound symmetry and, for general conditioning sets, express the expected KL divergence from the posterior using full gradients exactly, with a two-sided bound and a necessary and sufficient condition for exact recovery.
-
In simulations, LITE matches TERA’s accuracy at equal m and reaches lower error with conditioning sets beyond TERA’s GPU memory limit, using a small fraction of the time and memory. In GP regression and BO, it also outperforms function-only GP baselines with runtime or memory savings.
Another approach reduces computational cost by exploiting structure in derivative covariance matrices or approximating them. D-SKI (Eriksson et al., 2018) differentiates the approximate kernel from structured kernel interpolation, enabling fast matrix-vector products for iterative solvers. DSoftKI (Huang, 2026) approximates the kernel through softmax interpolation and differentiates the interpolation weights to obtain covariance blocks for full gradient observations. de Roos et al. (2021) exploit algebraic structure in derivative covariance matrices for exact inference with cost linear in the input dimension, particularly when the number of observation locations is much smaller than the input dimension.
3 PRELIMINARIES
3.1 Derivative Gaussian Processes
Let , where , have prior . We assume a differentiable and a twice continuously differentiable . At each training input , the observations consist of a function value and its gradient with noise , , where and , independently across observations and independently of . Here is the inverse squared lengthscale matrix in (1) below, so the gradient noise is isotropic in the scaled coordinates of Section 4.1; exact gradients correspond to . We consider stationary kernels parameterized as
where defines the covariance function and is a diagonal matrix representing inverse squared lengthscales, allowing isotropic or ARD kernels (Rasmussen and Williams, 2005).
For and , the joint distribution is
where . Let and . Differentiation gives the cross-covariance
(2)
and the gradient block is given in (16) in Appendix B.
3.2 Conditioning Sets and Prediction
For a target observation at , let index the conditioning observations, with . Denote the corresponding function values and gradients by and . We predict given the observations . The posterior predictive distribution of given is Gaussian with mean and variance
(3)
where is assumed positive definite.
Vecchia approximation. Restricting the size of conditioning sets allows efficient approximation of the joint distribution. For function observations alone, the Vecchia approximation takes the form
where and contains at most preceding indices under a maximin ordering.
3.3 Exact Gradient Reduction
For a target input and conditioning set c, TERA defines
This replaces an md gradient with at most directional derivatives along the columns of . For stationary kernels of the form (1), the following equality holds under this gradient noise model, including exact gradients when :
For ordered conditioning sets , TERA uses these exact reductions within a Vecchia approximation:
For , dense factorization of the reduced covariance matrix costs per Vecchia factor.
4 METHODS
We approximate each conditional factor in (4) by keeping at most two directions per observed gradient.
4.1 Selecting Two Directions per Gradient
We define scaled inputs and corresponding gradients, , , where the gradient transformation follows from the chain rule. We omit the tildes on the scaled inputs and gradients throughout Section 4 for notational simplicity.
Fix , a target , and a conditioning set . To understand how the two directions contribute to prediction, consider the posterior updates:
(5)
We examine for each , which describes the dependence between the target and each gradient after conditioning on the function values. Define
In the scaled coordinates, (2) gives . Gaussian conditioning then decomposes the cross-covariance into two components:
(6)
The first component is target-directed, while the second is a weighted aggregate of neighbor-directed directions. We retain the corresponding two directional derivatives at each conditioning input:
Stacking these pairs gives the reduced statistic
Consequently, we approximate each Vecchia conditional factor by
For numerical stability, we normalize each nonzero direction to unit Euclidean norm. Figure 1 provides

Figure 1: Posterior fidelity under different directional-derivative choices as m increases for a Matérn-5/2 GP in d = 50. We compare LITE with methods using or paired with a random direction in . KL divergence between the TERA and approximate posteriors is averaged over prediction inputs, with all methods using the same conditioning inputs.
empirical support for our direction choice, which yields the lowest KL divergence among the directions compared.
Relation to TERA. TERA’s directional derivatives can be equivalently expressed as target-directed and neighbor-directed derivatives. For each ,
The entry with recovers the target-directed derivative. Our construction retains the target-directed component and replaces the neighbor-directed derivatives with the weighted aggregate identified by (6). As in TERA, the gradient noise covariance is in the scaled coordinates.
4.2 Exactness and Approximation Error
We compare conditioning on with conditioning on , holding the conditioning set c fixed. We first establish exactness under a symmetry condition and then analyze the error for general conditioning sets.
Exactness under compound symmetry. In high dimensions, pairwise distances among a fixed number of independently sampled inputs become approximately equal after rescaling under suitable distributional assumptions (Beyer et al., 1999; Hall et al., 2005; Ahn et al., 2007). We consider the limiting case in which the conditioning inputs are equally distant from the target and from each other in scaled coordinates, so that the Gram matrix has compound symmetry.
Proposition 1 (Exactness under compound symmetry). Let and let contain the target-centered

Figure 2: Relative compound symmetry (CS) error (solid) and expected KL divergence from the full-gradient posterior to LITE's (dashed) as increases. We use an isotropic Matérn-5/2 kernel, uniform inputs in , 200 targets, maximin ordering, and nearest preceding inputs.
differences in scaled coordinates. Suppose that, for some ,
Under the assumed gradient noise model, assume that the joint covariance of is positive definite and that and are linearly independent for each . Then
Under the stated assumptions, each gradient block of lies in span . Consequently, contains all the gradient information needed to recover the posterior mean and variance in (5). The proof is given in Appendix A.1, which also shows that the assumptions force to be positive definite, so the proposition requires .
Vecchia conditioning sets can move toward this geometry. Selecting the nearest inputs makes their distances to the target more nearly equal than for independently sampled inputs, and a maximin ordering (Guinness, 2018; Schäfer et al., 2021) further equalizes the distances among the conditioning inputs of the likelihood factors. Such an ordering places each input greedily as far as possible from all preceding inputs, so the inputs preceding a target are spread as evenly as the greedy construction allows, and no two of its conditioning inputs are closer to each other than the target is to its nearest one. Compound symmetry nevertheless holds only approximately; Figure 2 empirically shows that these conditioning sets approach compound symmetry as the input dimension increases, while the expected KL divergence from the full-gradient conditional distribution to LITE's in (7) decreases. We quantify the deviation from compound symmetry by the Frobenius distance of from its closest compound-symmetry matrix, normalized by .
Posterior approximation error. For a general conditioning set, replacing with can change the posterior distribution of . Let
with posterior means , and variances , , respectively. In this analysis, we assume that the inputs, conditioning set, and covariance parameters are fixed, and the joint covariance of is positive definite.
Let collect the directional derivatives along an orthonormal basis for the orthogonal complement of span at each conditioning input. After redundant entries of are removed, the map from to is invertible, so the pair contains the same information as . By the definition of and (6), . Under the Gaussian model, and are therefore conditionally independent given . This independence need not hold after conditioning additionally on , so omitting can change the target posterior.
Given , the reduced posterior is fixed, whereas the full posterior additionally depends on . We therefore quantify the information lost by omitting through the expected KL divergence, where the expectation is over . Under the Gaussian model,
Because LITE computes anyway, this error can be evaluated exactly on a subsample of targets by computing with TERA when , or with full gradients otherwise.
To interpret the error, define
(8)
where has the same dimension as , and is the part of that is uncorrelated with both and given . Here measures how informative is about the target beyond , and . The quantities and are defined for and measure how informative is about the reduced posterior mean given , without and with knowledge of , while is the largest such measure over linear combinations . These quantities require , at cost per target, so they serve as diagnostics rather than routine computations.
Theorem 1 (Posterior approximation error). Under the assumptions above, if , then for all values of . If , then and
In this case, for all values of if and only if , which is equivalent to .
Corollary 1 (Two-sided bound). If , then and . Consequently,
(10)
The identity (9) separates the error into how informative is about the target, , and how much of the remaining variation in the reduced posterior mean the omitted derivatives explain, . If for some , the upper bound in (10) is at most , so guarantees a small error even when explains most of the target variance given . The approximation is exact if and only if , which, for , is equivalent to because ; compound symmetry (Proposition 1) is one such setting. Conversely, the lower bound implies a large error when is substantial and is close to one. The proofs are given in Appendix A.2.
4.3 Parameter Learning and Prediction
Conditional likelihood. We estimate the covariance parameters by using the conditional log-likelihood
We use stochastic updates based on minibatches of conditional factors (Cao et al., 2022; Jimenez and Katzfuss, 2023). For each sampled target, we recompute the two directions at the current covariance parameters then hold them fixed in the original coordinates during differentiation. The covariance blocks remain functions of , while the ordering and conditioning sets are held
Table 1: Per-target cost of one Vecchia conditional factor with conditioning inputs in dimensions. TERA's entries assume ; when , the full-gradient factor is smaller.
| Factor size | Time | Memory | |
|---|---|---|---|
| Full grad | |||
| TERA | |||
| LITE | 3m |
fixed during each update (Katzfuss et al., 2020). With the directions fixed, each update differentiates a well-defined Gaussian likelihood of fixed linear statistics of the gradients, just as fixing the ordering and conditioning sets gives a fixed Vecchia approximation within each update.
Batched inference. For each prediction input , we select using the fitted input metric and construct the two directions. Let
where all moments are evaluated at . Both directions lie in the column space of , so and can be assembled directly from .
For a batch of targets, each with conditioning inputs, we stack the matrices of order . Batched Cholesky factorizations and triangular solves then give all predictive means and variances in (3) at once. Thus, covariance assembly and prediction can be parallelized across targets using matrices of order , allowing larger prediction batches within a fixed memory budget. The covariance construction and batched formulas are given in Appendix B.
Computational complexity. For each target, constructing the Gram matrix and computing the directional derivatives cost , while direction coefficient computation, covariance assembly, and factorization cost . A batch of targets therefore requires
Summed over the factors of (11), one likelihood evaluation costs , and the assembly term dominates when . These costs exclude full dataset storage, ordering, and conditioning set construction. Table 1 compares them with TERA and with full gradients.
5 EXPERIMENTS
We evaluate whether two directions per gradient retain useful predictive information at reduced cost, and whether these savings allow larger conditioning sets to improve the accuracy-cost tradeoff. We assess prediction under a known GP, regression on molecular data, and high-dimensional BO. We consider settings where gradient observations are available in existing datasets (Chmiela et al., 2017) or obtained by differentiating the underlying models (Baydin et al., 2015; Bertrand et al., 2020). Our implementation uses PyTorch (Paszke et al., 2019), with GPyTorch (Gardner et al., 2018) and BoTorch (Balandat et al., 2020) where applicable. All experiments run on a single NVIDIA H100 GPU. We use double precision for all methods except DSoftKI, which uses single precision. To compare algorithmic costs under a common batching strategy, we replace TERA's target-wise sequential computations with batched training and prediction, using the same batch sizes as LITE. Unless otherwise specified, they share the same experimental settings. Experimental details and additional results are provided in Appendices C and D, respectively.
5.1 Scaling to Larger Conditioning Sets and Batch Sizes
We first examine whether the lower cost of LITE lets larger conditioning sets improve accuracy. We evaluate prediction under an ARD Matérn-5/2 GP with inputs in and substantial function and gradient observation noise. This noise weakens the screening effect of nearby observations, allowing predictive accuracy to continue improving as grows. With covariance parameters fixed, we compute the RMSE analytically over 256 targets, avoiding joint sampling at this scale. We vary . Evaluating prediction error under the assumed GP with fixed covariance parameters isolates the effect of the conditioning set size from model misspecification and parameter estimation.
Larger conditioning sets at a fraction of the cost. At equal conditioning set size, LITE matches the accuracy of TERA (top panels of Figure 3), so the two-direction budget costs little accuracy in this setting. The error of LITE keeps decreasing up to , whereas TERA exceeds the GPU memory for at the tested batch size of 32. At , LITE attains a lower RMSE than TERA at , approximately 0.39 versus 0.49, while running faster and using only of its memory. Thus, when additional conditioning inputs improve prediction, LITE's lower cost allows larger conditioning sets to outweigh the information lost by the reduction. Both derivative

Wall-clock time (s)
Peak memory (GB)
Conditioning set size
Conditioning set size
Figure 3: RMSE under the assumed GP against total prediction time for 256 targets and peak GPU memory (top). Wall-clock time and peak GPU memory of one training step against m on the Buckyball-catcher dataset (bottom). Point labels in the top panels indicate m. Prediction uses B = 32, while the bottom panels use B = 32 and B = 1,024. TERA exceeds the 80 GB GPU memory for in prediction; missing TERA points in the bottom panels exceed the GPU memory.
methods also achieve lower error than the function-only Vecchia GP at equal m, showing that gradients remain informative in this noisy setting.
Cost per training step. The bottom panels of Figure 3 show the cost of one training step on the MD22 Buckyball-catcher dataset. With batches of 32 targets, the step time of LITE stays nearly constant up to because fixed per-step costs dominate its small factorizations, whereas the step time of TERA grows steeply as its factorization takes over, and TERA exceeds the GPU memory for . With batches of 1,024 targets, LITE is about faster than TERA already at , and TERA exceeds the GPU memory for larger . These fixed per-step costs also explain the moderate speedups at with batches of 32 in the experiments below.
5.2 Large-Scale GP Regression
For GP regression, we use six MD22 molecular benchmarks (Chmiela et al., 2023), with up to 69,753 samples and 1,110 input dimensions. We predict held-out molecular energies from atomic configurations, using observed forces as gradient information. We compare LITE with three derivative GP methods, TERA, DDSVGP, DSoftKI, and a function-only Standard GP. Figure 4 compares test RMSE per atom, wall-clock time, and peak GPU memory.
Competitive accuracy with lowest computational costs. LITE achieves substantially lower RMSE than DDSVGP and DSoftKI and outperforms the function-only Standard GP on every benchmark. Across all six benchmarks, it achieves the lowest runtime and peak GPU memory usage. These savings also extend to the function-only Standard GP, showing that incorporating gradient information need not increase computational cost. Despite retaining only two directions per gradient, it achieves predictive accuracy slightly lower than TERA on several benchmarks. The comparison with TERA illustrates the tradeoff between exact gradient reduction and a fixed two-direction budget. Appendix D.1 examines whether shared covariance parameters, larger conditioning sets, or further training resolve this accuracy gap.
5.3 High-Dimensional Bayesian Optimization
We evaluate BO on Ackley and Levy in 500 and 800 dimensions, respectively, and on the real-world LassoDNA (Šehić et al., 2022) hyperparameter optimiza-

Figure 4: Test RMSE per atom, wall-clock time, and peak GPU memory on six MD22 molecular datasets. LITE achieves the lowest runtime and memory usage on every benchmark, running faster than TERA while using only 13.3–30.2% of its memory. Its RMSE is higher than TERA's but lower than that of the other methods. Standard GP and DSoftKI run out of memory on an 80 GB GPU when applied to DHA, whereas LITE requires only 1.06 GB. Results are averaged over five independent runs, with error bars indicating standard errors.

Figure 5: Simple regret on Ackley (500D, left), Levy (800D, center), and best observed value on LassoDNA (180D, right) versus iteration. With only two directions per gradient, LITE substantially outperforms the function-only baselines, VBO and TuRBO-1, on all three tasks. It achieves the lowest final regret on Levy and a final value comparable to TERA on LassoDNA, while TERA attains lower regret on Ackley. Curves average five independent runs, with shaded bands indicating standard errors.
tion task in 180 dimensions. We compare LITE with the derivative GP method TERA and the function-only methods VBO (Hvarfner et al., 2024) and TuRBO-1 (Eriksson et al., 2019). Figure 5 compares optimization performance.
Effective optimization with two directions. On both synthetic tasks, LITE achieves substantially lower regret than the function-only baselines. It attains the lowest final regret on Levy, while TERA achieves lower regret on Ackley. On LassoDNA, LITE reaches a final objective value comparable to TERA and substantially lower than both function-only baselines. The advantage over function-only baselines thus extends beyond synthetic objectives to a real-world optimization task. These results show that two directions per gradient preserve useful information for effective optimization in the tested 180–800-dimensional tasks. Runtime and memory comparisons are provided in Appendix D.2.
6 CONCLUSIONS
We proposed LITE, a derivative GP that retains two directional derivatives per observed gradient. Within a Vecchia approximation, this reduces the per-target factorization cost to and the covariance memory to , which permits much larger conditioning sets and batched prediction over many targets. The reduction is exact under compound symmetry, and for general conditioning sets we characterized the expected KL divergence from the posterior using full gradients through interpretable variance ratios. Empirically, LITE matches the accuracy of TERA at equal conditioning set size in simulations and, with larger conditioning sets beyond TERA's memory limit, reaches lower error at a small fraction of TERA's time and memory. On the GP regression and high-dimensional BO benchmarks, it remains competitive while using substantially less memory.
References
Jeongyoun Ahn, J. S. Marron, K. Muller, and Yueh-Yun Chi. The high-dimension, low-sample-size geometric representation holds under mild conditions. Biometrika, 94:760–766, 2007.
Sebastian Ament, Sam Daulton, David Eriksson, Maximilian Balandat, and Eytan Bakshy. Unexpected improvements to expected improvement for bayesian optimization. In Advances in Neural Information Processing Systems, 2023.
Maximilian Balandat, Brian Karrer, Daniel R. Jiang, Sam Daulton, Benjamin Letham, Andrew Gordon Wilson, and Eytan Bakshy. Botorch: Programmable bayesian optimization in pytorch. In Advances in Neural Information Processing Systems, 2020.
Atilim Gunes Baydin, Barak A. Pearlmutter, Alexey Radul, and Jeffrey Mark Siskind. Automatic differentiation in machine learning: a survey. Journal of Machine Learning Research, 18:153:1–153:43, 2015.
Quentin Bertrand, Quentin Klopfenstein, Mathieu Blondel, Samuel Vaiter, Alexandre Gramfort, and Joseph Salmon. Implicit differentiation of lasso-type models for hyperparameter optimization. In International Conference on Machine Learning, 2020.
Kevin S. Beyer, Jonathan Goldstein, Raghu Ramakrishnan, and Uri Shaft. When is "nearest neighbor" meaningful? In International Conference on Database Theory, 1999.
Jian Cao, Joseph Guinness, Marc G. Genton, and Matthias Katzfuss. Scalable gaussian-process regression and variable selection using vecchia approximations. Journal of Machine Learning Research, 23:348:1–348:30, 2022.
Stefan Chmiela, Alexandre Tkatchenko, Huziel E. Sauceda, Igor Poltavsky, Kristof T. Schütt, and Klaus-Robert Müller. Machine learning of accurate energy-conserving molecular force fields. Science Advances, 3, 2017.
Stefan Chmiela, Valentin Vassilev-Galindo, Oliver T. Unke, Adil Kabylda, Huziel E. Sauceda, Alexandre Tkatchenko, and Klaus-Robert Müller. Accurate global machine learning force fields for molecules with hundreds of atoms. Science Advances, 9, 2023.
Abhirup Datta, Sudipto Banerjee, Andrew O. Finley, and Alan E. Gelfand. Hierarchical nearest-neighbor Gaussian process models for large geostatistical datasets. Journal of the American Statistical Association, 111(514):800–812, 2016. ISSN 0162-1459. doi: 10.1080/01621459.2015.1044091.
Filip de Roos, Alexandra Gessner, and Philipp Hennig. High-dimensional gaussian process inference with
derivatives. In International Conference on Machine Learning, 2021.
David Eriksson, Kun Dong, Eric Hans Lee, David S. Bindel, and Andrew Gordon Wilson. Scaling gaussian process regression with derivatives. In Advances in Neural Information Processing Systems, 2018.
David Eriksson, Michael Pearce, Jacob R. Gardner, Ryan D. Turner, and Matthias Poloczek. Scalable global optimization via local bayesian optimization. In Advances in Neural Information Processing Systems, 2019.
Jacob R. Gardner, Geoff Pleiss, David S. Bindel, Kilian Q. Weinberger, and Andrew Gordon Wilson. Gpytorch: Blackbox matrix-matrix gaussian process inference with gpu acceleration. In Advances in Neural Information Processing Systems, 2018.
Joseph Guinness. Permutation and grouping methods for sharpening gaussian process approximations. Technometrics, 60:415 – 429, 2018.
Peter Hall, J. S. Marron, and Amnon Neeman. Geometric representation of high dimension, low sample size data. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67, 2005.
Daniel Huang. Scaling gaussian process regression with full derivative observations. Transactions on Machine Learning Research, 2026.
Tzu-Hsiang Hung and Peter Chien. A random fourier feature method for emulating computer models with gradient information. Technometrics, 63:500 – 509, 2021.
Carl Hvarfner, Erik Orm Hellsten, and Luigi Nardi. Vanilla bayesian optimization performs great in high dimensions. In International Conference on Machine Learning, 2024.
Felix Jimenez and Matthias Katzfuss. Scalable bayesian optimization using vecchia approximations of gaussian processes. In International Conference on Artificial Intelligence and Statistics, 2023.
Matthias Katzfuss and Joseph Guinness. A general framework for vecchia approximations of gaussian processes. Statistical Science, 2021.
Matthias Katzfuss, Joseph Guinness, and Earl Christopher Lawrence. Scaled vecchia approximation for fast computer-model emulation. SIAM/ASA Journal on Uncertainty Quantification, 10:537–554, 2020.
Misha Padidar, Xinran Zhu, Leo Huang, Jacob R. Gardner, and David S. Bindel. Scaling gaussian processes with derivative information using variational inference. In Advances in Neural Information Processing Systems, 2021.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor
Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, 2019.
Carl E. Rasmussen and Christopher K. I. Williams. Gaussian Processes for Machine Learning. The MIT Press, 2005.
Florian Schäfer, Matthias Katzfuss, and Houman Owhadi. Sparse Cholesky factorization by Kullback-Leibler minimization. SIAM Journal on Scientific Computing, 43(3):A2019–A2046, 2021. doi:10.1137/20M1336254.
Kenan Šehić, Alexandre Gramfort, Joseph Salmon, and Luigi Nardi. LassoBench: A high-dimensional hyperparameter optimization benchmark suite for Lasso. In International Conference on Automated Machine Learning, 2022.
Hyunseok Seung and Matthias Katzfuss. Scalable derivative gaussian processes via exact gradient reduction. In Advances in Neural Information Processing Systems, 2026.
Ercan Solak, Roderick Murray-Smith, William E. Leithead, Douglas J. Leith, and Carl Edward Rasmussen. Derivative observations in gaussian process models of dynamic systems. In Advances in Neural Information Processing Systems, 2002.
Michael L. Stein, Zhiyi Chi, and L.J. Welty. Approximating likelihoods for large spatial data sets. Journal of the Royal Statistical Society: Series B, 66(2):275–296, 2004.
William R. Thompson. On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika, 25:285–294, 1933.
Aldo V. Vecchia. Estimation and model identification for continuous spatial processes. Journal of the royal statistical society series b-methodological, 50:297–312, 1988.
Appendix
A PROOFS FOR SECTION 4
A.1 Proof of Proposition 1
Proof. Recall that
In the original coordinates, the Gram condition is
The transformation and is invertible and leaves the directional derivative statistics unchanged. It therefore suffices to prove the result in scaled coordinates, where the Gram condition becomes . As in Section 4.1, we omit the tildes here for notational simplicity.
We will show that each gradient block of
lies in span. By (5), this implies that the full conditional mean depends on the gradients only through .
The assumed identity implies that
(12)
where the second equality follows from
Thus all conditioning inputs have the same distance to the target, and all distinct conditioning inputs have the same distance to one another.
Let . By definition,
The Gram condition gives
Averaging over yields
Since this holds for every , averaging again over gives
We now use to compute the inner products after centering. For any ,
Similarly,
Thus
(13)
In particular, each centered input difference is orthogonal to the vector from the target to the mean of the conditioning inputs.
Under the independent observation noise model,
Since , (12) gives
Stacking these identical entries yields
Similarly, for ,
Thus can be written as
Applying the Sherman-Morrison formula gives
Therefore, we obtain
Since for every , the first direction is
For the second direction, all entries of are equal and whenever . The term with vanishes, so
The expressions for the two directions and their assumed linear independence imply
because .
Accordingly, let S be the space of stacked vectors whose blocks satisfy
for common coefficients . Every block of a vector in thus belongs to the corresponding span of the two directions.
We will verify that
The second property, together with positive definiteness, ensures that the inverse conditional covariance also maps S into itself. The two properties therefore place the required coefficient vector in S.
The expressions for the two directions, together with in (6), give
For the second property, write
We show that both terms on the right map into itself. Take . For , (13) gives
Also,
Substituting these identities into (16) yields
The coefficients are again independent of , so .
It remains to show that the conditioning adjustment
belongs to . Each entry corresponding to in is
Thus is proportional to 1. The Sherman-Morrison expression in (14) shows that is also proportional to 1.
Finally, each gradient block of is
where the term with vanishes. Combining these expressions shows that each block of is a common scalar multiple of . Thus this vector belongs to . Together with , this proves (15). By (15) and assumed positive definiteness,
Hence its block corresponding to lies in span. Each gradient then enters the conditional mean only through and , with the centering terms determined by .
Thus the full conditional mean is a function of only. Since is a function of , the tower property gives
The full conditional variance does not depend on the observed values, so the law of total variance gives
Therefore, replacing with preserves both the conditional mean and variance updates in (5). Both and are Gaussian, so equality of their means and variances proves the result.
Positive definiteness of the Gram matrix. The assumptions of Proposition 1 imply that is positive definite, and hence that . Its eigenvalues are , with multiplicity , and , and both are nonnegative because is a Gram matrix. If , then (12) gives for all , so and the expression for in the proof gives . If , then , so , and and are both multiples of . Either case contradicts the linear independence of and , so both eigenvalues are positive. A positive definite Gram matrix of vectors in requires .
A.2 Proof of Theorem 1 and Corollary 1
Proof. Throughout the proof, the inputs, conditioning set, and covariance parameters are fixed. We remove redundant entries of , so that the transformation from to is invertible. The joint covariance of is therefore positive definite.
By (6),
Each omitted direction at input is orthogonal to both and . Hence
If , the Gaussian conditional variance formula gives
Since is positive definite, this implies . Thus is conditionally independent of given , and for all values of . If there are no omitted directions, then and , so all claims hold. We henceforth assume and that is nonempty.
All remaining moments are conditional on , which we suppress from the notation; for example, stands for . Write , , , , and , so that and .
Step 1: moments of the reduced mean. We have and . Hence
Step 2: decomposition of . Let be a matrix whose rows form a basis of the orthogonal complement of , and let ; if has a single entry, is empty and the statements involving below hold trivially. Then and . Because , the vector is not orthogonal to , so is an invertible affine function of , and conditioning on is equivalent to conditioning on . The vector in (8) is an affine function of with linear part , whose null space is spanned by , so its row space equals that of , and conditioning on is equivalent to conditioning on . Since and are uncorrelated with , conditioning on leaves , , , and unchanged.
Step 3: the variance gap. Let and , which is positive definite. Since , we have , so
Because , we have and , so that . Let . Positive definiteness of gives , and the Sherman-Morrison formula gives
Step 4: the identity. By Step 2, , , and , so . Since conditioning on is equivalent to conditioning on , the definition of and Step 1 give
and because . Substituting , , and into Step 3 gives
and hence
The identity (9) now follows from (7).
Step 5: exact recovery. Since and ,
so both and vanish if and only if . If , then and Step 3 gives . By the law of total variance, . Since is an affine function of with zero mean and zero variance, and has a positive definite covariance matrix, for all values of , and hence . Conversely, if for all values of , then , so by Step 3 and . This completes the proof of Theorem 1.
Step 6: proof of Corollary 1. Conditioning additionally on cannot increase a conditional variance, so and . Since is increasing on , (9) gives the lower bound in (10).
For the upper bound, let and
Then , so is positive semidefinite with positive definite, and Steps 4 and 5 give and . By its definition, is the largest generalized eigenvalue of relative to , which is also the largest eigenvalue of
This matrix does not change when is replaced by the invertible affine function . Given , the covariance matrix of is block diagonal with blocks and , and , so the matrix equals . Moreover, is positive definite, so .
If , then by Step 5, and both bounds hold with equality. Otherwise, let , so that and . The Rayleigh quotient at gives
By the Cauchy-Schwarz inequality, , so and
which is equivalent to . Together with (9), this gives the upper bound in (10).
B CONSTRUCTION OF COVARIANCE BLOCKS
The gradient covariance block omitted from Section 3.1 follows by differentiating the kernel twice:
(16)
In the scaled coordinates of Section 4.1, .
Fix a target input and a conditioning set . As in Section 4.1, we work in scaled coordinates and omit the tildes. Both retained directions lie in the column space of . We use this representation to construct the reduced covariance blocks directly from the Gram matrix , as in TERA.
Recall that
Let denote the th coordinate vector in . Then
The squared distances in scaled coordinates are
Thus the function covariance and target cross-covariance are
and is obtained by solving .
For each , define
By (6),
The reduced observations can therefore be computed from without explicitly forming the direction vectors.
To express the covariance blocks, write
Applying (2) and (16) to (17), with gradient noise covariance in scaled coordinates, gives
Stacking these blocks gives , , and .
Batched training and prediction. For a batch of prediction targets, we stack the reduced covariance matrices of Section 4.3 as
Batched Cholesky factorizations and triangular solves compute
By (3), the predictive means and variances then follow from
C EXPERIMENTAL SETTINGS
C.1 Scaling Conditioning Sets and Batch Sizes
We evaluate conditioning set scaling under an ARD Matérn-5/2 GP and scaling with and on the MD22 Buckyball-catcher dataset. The GP experiment examines how predictive accuracy changes with the conditioning set size when covariance parameters are fixed. The MD22 experiment separately measures how conditioning set and batch sizes affect the computational cost of training. Table 2 summarizes the settings. All methods use identical inputs, conditioning sets, and batch sizes. For the MD22 experiment, we use the initial covariance parameters in Table 3.
Table 2: Settings for conditioning set and batch size scaling.
| Setting | Value |
|---|---|
| GP prediction | |
| Training/test inputs | 100,000 / 256 |
| Input dimension | |
| Input design | Sobol in |
| Kernel | ARD Matérn-5/2 |
| Signal variance | 1 |
| Lengthscales | Logarithmically spaced; 5.82–23.27 |
| Function-noise variance | 4 |
| Gradient-noise variance | 0.36 per coordinate |
| Conditioning set sizes | 20, 40, 80, 160, 320 |
| Prediction batch size | 32 |
| Repeats | 5 |
| Covariance parameters | Fixed at their true values |
| MD22 training step | |
| Dataset | Buckyball-catcher |
| Train/test split | 90/10 |
| Repeats | 5 |
| Kernel | Isotropic SE |
| Conditioning set sizes | 10, 20, 30, 40, 50, 60, 80, 100, 150, 200 |
| Batch sizes | 32, 1, 024 |
| Measured computation | One forward and backward pass |
| Covariance parameters | Fixed at their initial values |
Dense joint sampling is infeasible at this scale. Instead, we evaluate prediction error analytically under the assumed GP. For each target , let collect the observations retained by the method, with
The observation covariance includes both function and gradient noise. Under the zero-mean GP, the predictor is , where . With inputs and covariance parameters fixed,
Thus, we have
GP runtime covers prediction over all 256 targets, including covariance assembly, Cholesky factorization, and triangular solves. MD22 runtime covers one forward and backward pass, excluding preprocessing, conditioning-set construction, and optimizer updates.
C.2 MD22 Regression
We use six MD22 benchmarks, DHA (, ), AT-AT (, ), Stachyose (, ), AT-AT-CG-CG (, ), Buckyball-catcher (, ), and Double-walled nanotube (, ). Table 3 summarizes the experimental settings adapted from Huang (2026); Seung and Katzfuss (2026). For LITE, we use the same settings as TERA, including conditioning set size, learning rate, parameter update step, and batch size. We use and batches of 32 targets to compare the methods in a regime where TERA's exact reduction remains computationally affordable. This comparison evaluates the accuracy and cost of LITE's two-direction approximation at a common conditioning set size. Its ability to accommodate larger conditioning sets and batches is evaluated separately in the scaling experiments.
Table 3: Settings for MD22 regression.
| Setting | Value |
|---|---|
| Train/test split | 90/10 |
| Seeds | 1,27,42,86,99 |
| Kernel | isotropic SE |
| Initial lengthscale | 1.0 |
| Initial signal variance | 1.0 |
| Initial value-noise variance | |
| Initial gradient-noise variance | for DSoftKI, otherwise |
| Conditioning set size | |
| Optimizer | Adam; learning rates below |
| Standard GP | 50 updates; lr 0.01, or 0.005 for nanotube |
| TERA | 1 epoch; lr 0.01, batch size 32 |
| LITE | 1 epoch; lr 0.01, batch size 32 |
| DDSVGP | 50 epochs, 512 inducing inputs; 2 directions |
| DSoftKI | 50 epochs, 512 interpolation points, float32 |
| DDSVGP and DSoftKI training schedule | |
| batch 1024; lr 0.012 / 0.008 | |
| batch 512; lr 0.006 / 0.004 | |
| batch 256; lr 0.003 / 0.002 | |
| batch 128; lr 0.0015 / 0.001 | |
C.3 Bayesian Optimization
We evaluate Ackley, Levy, and LassoDNA using the settings in Table 4, adapted from Seung and Katzfuss (2026). The synthetic objectives test optimization performance in hundreds of dimensions, while LassoDNA evaluates gradient-informed BO on a real-world hyperparameter optimization task. The function-only methods use objective values, whereas TERA and LITE additionally use gradients at the evaluated inputs. All methods share the initial Sobol design within each run, and objective values are standardized before surrogate fitting. TuRBO-1 uses LogEI (Ament et al., 2023) on the synthetic objectives and Thompson sampling (Thompson, 1933) on LassoDNA. TERA and LITE use the same conditioning set size and acquisition optimization settings. Wall-clock time includes surrogate fitting, acquisition optimization, and objective evaluation, including hypergradient computation for TERA and LITE.
Table 4: Settings for BO synthetic objectives and LassoDNA benchmark.
| Benchmarks | Ackley (), Levy (), LassoDNA () |
|---|---|
| Domain | |
| Iterations / initial design | 100 iterations / 30 Sobol points |
| Seeds | 1, 27, 42, 86, 99 |
| Noise parameters | , fixed on synthetic tasks; initialized at and learned on LassoDNA |
| VBO | TuRBO-1 | TERA | LITE | |
|---|---|---|---|---|
| Kernel | SE | Matérn-5/2 | Matérn-5/2 | Matérn-5/2 |
| Conditioning-set size | – | – | 30 | 30 |
| Parameter estimation | MAP | Adam | Adam | Adam |
| Lengthscale prior | Dimension-scaled | – | – | – |
| Initial Adam updates | – | 50 | 50 | 50 |
| Adam updates per refit | – | 50 | 10 | 10 |
| Refit interval | Every iteration | Every iteration | 20 iterations | 20 iterations |
| Acquisition on synthetic tasks | LogEI | LogEI | LogEI | LogEI |
| Acquisition on LassoDNA | LogEI | TS | LogEI | LogEI |
| Raw candidates | 512 | 512 | 256 | 256 |
| Restarts | 4 | 4 | 4 | 4 |
| Maximum L-BFGS iterations | 300 | 300 | 30 | 30 |
LassoDNA is a hyperparameter optimization task in which BO selects 180 regularization weights for a weighted Lasso model, searching on a logarithmic scale. The objective is the mean validation MSE across cross-validation folds. TERA and LITE compute derivatives of the validation loss with respect to these weights by implicitly differentiating the fitted Lasso optimality condition (Bertrand et al., 2020). We apply the chain rule to express these derivatives in the BO coordinates and average them across folds.
D ADDITIONAL RESULTS
D.1 Examining the Accuracy Gap on MD22
We examine whether the accuracy gap between LITE and TERA on MD22 is removed by sharing covariance parameters, increasing the conditioning set size, or further training.
Prediction with shared covariance parameters. For each dataset and seed, we train TERA at for one epoch and freeze its learned covariance parameters. Using these parameters for all methods, we evaluate LITE and a function-only Vecchia GP at , and TERA at . The function-only Vecchia GP uses the same conditioning inputs but retains only the energy (function value) observations. This baseline is distinct from the Standard GP used in the main MD22 comparison.
Figure 6 shows that LITE's RMSE remains higher than TERA's at matched conditioning set sizes, even when both methods use the same covariance parameters. Increasing provides little improvement for LITE or the function-only Vecchia GP. Under these TERA-estimated parameters, LITE has lower RMSE than the function-only Vecchia GP on AT-AT and Buckyball-catcher, but higher RMSE on the other four datasets. Thus, using common covariance parameters and larger conditioning sets does not remove the accuracy gap in these comparisons.

Figure 6: Test RMSE versus conditioning set size on six MD22 datasets, with all methods using the covariance parameters learned by TERA at after one epoch. Parameters remain fixed throughout prediction. Increasing provides little improvement for LITE and the function-only Vecchia GP, and LITE's RMSE remains higher than TERA's at matched .
Further training from shared parameters. We next initialize LITE with the same TERA estimates and independently train it for one additional epoch at each conditioning set size. TERA’s parameters remain fixed. Figure 7 compares these results with prediction using the frozen parameters.
Further training substantially reduces LITE’s RMSE on DHA, AT-AT, Stachyose, and Double-walled nanotube, but changes little on AT-AT-CG-CG and increases RMSE on Buckyball-catcher. The effect of further parameter estimation is therefore dataset dependent, and increasing again provides little additional improvement.

AT-CG
Bucky
DWNT
Conditioning set size
Conditioning set size
Conditioning set size
Figure 7: Test RMSE versus conditioning set size on six MD22 datasets, using the same TERA estimates as in Figure 6. Solid curves keep these parameters fixed; the dashed curve trains LITE for one additional epoch at each m, starting independently from the same estimates. Further training improves LITE on four datasets, changes little on AT-AT-CG-CG, and worsens prediction on Buckyball-catcher.
Learning curves from a common initialization. In a separate experiment, we train TERA and LITE from the same initial covariance parameters for five epochs at m = 20, using training and prediction batches of 32 targets. This experiment examines how additional training affects test error without initializing either method from the other's parameter estimates.
Figure 8 shows that test RMSE does not decrease monotonically with training. On several datasets, it increases after an early minimum, and later improvements vary across datasets. These learning curves complement the shared-parameter comparisons by showing that additional training does not uniformly improve predictive accuracy.

AT-AT-CG-CG
buckyball-catcher
double-walled-nanotube
Figure 8: Test RMSE versus training step on six MD22 datasets. Both methods use m = 20, training and prediction batch sizes of 32, and five training epochs. Additional updates do not uniformly improve predictive accuracy, with RMSE increasing after early minima on some datasets. Curves average five independent runs.
Summary of the diagnostics. These diagnostics show that common covariance parameters do not by themselves remove the accuracy gap, while the effect of further training varies across datasets. On MD22, all three Vecchia methods show little improvement from larger conditioning sets over the tested ranges. The main MD22 comparison demonstrates an accuracy-cost tradeoff, with LITE achieving substantial runtime and memory savings at the cost of higher RMSE than TERA. The GP simulation in Section 5.1 demonstrates the predictive benefit of larger conditioning sets. In that setting, LITE uses sets beyond TERA's memory limit to achieve lower error at substantially lower computational and memory cost.
D.2 Computational Cost of Bayesian Optimization
Figure 9 complements the optimization curves in Figure 5 by comparing wall-clock time and peak GPU memory for the same BO runs. Across all three tasks, LITE uses only approximately 13–23% of TERA's peak GPU memory. Its resource advantages also extend to function-only baselines. On Levy, LITE runs faster than VBO and uses only 35% of TuRBO-1's peak GPU memory. On LassoDNA, it uses only 12% of TuRBO-1's memory and requires less wall-clock time than VBO, including the cost of hypergradient computation. These savings accompany the effective optimization shown in the main text.

Figure 9: Wall-clock time and peak GPU memory on Ackley (500D, left), Levy (800D, center), and LassoDNA (180D, right). Time includes objective evaluations and gradient computation where used, including hypergradient computation on LassoDNA. Bars average five independent runs, with error bars indicating standard errors.