# Scalable Gaussian Processes with Latent Kronecker Structure

LKGP keeps exact Gaussian processes fast when grid data has missing values

Jihao Andreas Lin, Sebastian Ament, Maximilian Balandat, David Eriksson, José Miguel Hernández-Lobato, Eytan Bakshy · arXiv · 2025-6-7

- **Problem** Exact GP inference on large datasets is too slow, and missing grid cells break the Kronecker shortcut that speeds it up.
- **Method** LKGP projects a full-grid Kronecker kernel onto the observed entries. It pads a vector with zeros, applies the Kronecker product, and keeps only observed entries, which iterative solvers can use.
- **Results** On temperature at 10% missing, LKGP reached a test RMSE of 0.08 against 0.21 for SVGP, and it beat sparse and variational GPs on datasets up to five million examples.

![Figure 1: Illustrative example considering input data points {(s1, t1), (s1, t2), (s2, t1), (s2, t2), (s2, t3)}, consisting of two out of three time steps at s…](https://refivu.com/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd/figures/figure-59178af4447f8e306ea64eb663abe957.png?thumb=512)

**Figure 1** . Illustrative example considering input data points {(s1, t1), (s1, t2), (s2, t1), (s2, t2), (s2, t3)}, consisting of two out of three time steps at spatial location s1 and three out of three time steps at spatial locations2. Due to the missing observation at (s1, t3), the inputs cannot be expressed as a Cartesian product and the joint covariance matrix cannot be directly expressed as a Kronecker product. Latent Kronecker structure assumes that missing observations exist, such that a latent Kronecker product can be leveraged for computational benefits. The original joint covariance matrix is exactly recovered by removing the missing rows and columns via projections.

[Original paper](https://arxiv.org/abs/2506.06895v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jihao Andreas Lin, Sebastian Ament, Maximilian Balandat, David Eriksson, José Miguel Hernández-Lobato, Eytan Bakshy · Scalable Gaussian Processes with Latent Kronecker Structure · Original paper figure · Extracted the figure area from page 2 of the original PDF.

## Why exact GPs stall on partly observed grids

Exact GP inference solves an \\(n \\times n\\) linear system with the kernel matrix, and direct solvers cost \\(O(n^3)\\). Sparse GPs cut that cost by adding inducing points, but they approximate the prior itself. Iterative solvers keep the exact model up to a numerical tolerance, and they need only matrix-vector products.

Product kernels on a Cartesian grid offer a shortcut, because the kernel matrix becomes a Kronecker product of a \\(p \\times p\\) spatial matrix and a \\(q \\times q\\) temporal matrix. A matrix-vector product then costs \\(O(p^2q + pq^2)\\) instead of \\(O(p^2q^2)\\), and storage falls from \\(O(p^2q^2)\\) to \\(O(p^2 + q^2)\\). The catch is that real observations often miss some grid cells.

Once a cell is missing, the observed covariance is no longer a Kronecker product, so the shortcut disappears. A weather station that skips a day is one everyday case, and ordinary Kronecker methods then can't be applied.

One workaround fills the gaps with imaginary observations that carry a large noise variance. That approximation only converges as the artificial noise grows, and it leads to ill-conditioning. The open question is how to keep the Kronecker speed while leaving the missing cells out of the model.

## Projecting a latent Kronecker product onto observed entries

LKGP writes the covariance of the observed values as a projection of a full-grid Kronecker product, so the observed block is exact. The projection matrix P starts from the identity and drops the rows that belong to missing cells. This identity is exact, not an approximation, and P is never built explicitly in code. The Kronecker structure stays latent, because it lives on the full grid that includes the missing cells.

Once P is present, the eigenvalues and eigenvectors of the observed kernel matrix no longer factor through the Kronecker factors. Direct factorization is therefore lost, but matrix-vector products still work. The method pads the vector with zeros, applies the Kronecker product on the full grid, and keeps only the observed entries. Padding and slicing are reshapes and index operations, so they add little overhead.

Because iterative solvers only need these products, LKGP runs them directly on the observed data. With lazy kernel evaluation, memory falls from O(n) to O(p + q), and the asymptotic MVM cost falls from O(n2) to O(p2q + pq2).

The memory gain matters most when the kernel matrix doesn't fit in memory, because its values must then be rebuilt in every matrix product. Figure 2 shows memory and timing on ten-dimensional synthetic data with a balanced factorization p = q = √n.

![Figure 2: Illustration of computational resources used during kernel evaluation and matrix multiplication on ten-dimensional synthetic datasets of different si…](https://refivu.com/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd/figures/figure-1e560a3ce5cea138a345ba35a90ffae5.png?thumb=512)

**Figure 2** . Illustration of computational resources used during kernel evaluation and matrix multiplication on ten-dimensional synthetic datasets of different sizes. Without latent Kronecker structure, memory usage escalates quickly and kernel evaluation time dominates matrix multiplication time asymptotically. With latent Kronecker structure, computations can be scaled to several orders of magnitude larger datasets under similar computational resource usage, and matrix multiplication time dominates kernel evaluation time asymptotically. Reported results are the mean over one hundred repetitions using a squared exponential kernel.

[Original paper](https://arxiv.org/abs/2506.06895v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Posterior samples follow the same logic, as a prior sample plus a correction computed from the solved linear system. Maddox et al. (2021) proposed drawing posterior samples this way to exploit Kronecker structure on gridded data. LKGP adds the projections to this correction, so its samples are exact samples from the exact posterior. For the experiments, predictive means and variances come from 64 posterior samples obtained via pathwise conditioning.

## Where padding stops paying off

LKGP pads the n observations to a full grid of pq cells, so the missing ratio γ = 1 − n/pq measures how much of that grid is padding. The asymptotic break-even point for MVM time is γ\*time = 1 − sqrt(1/p + 1/q), and for memory it is γ\*mem = 1 − sqrt(1/p² + 1/q²). Below these ratios LKGP has the lower asymptotic cost, while above them a kernel matrix without factorization becomes the better choice.

The break-even analysis therefore tells a practitioner how much missing data a grid can tolerate before the padding stops paying off.

The SARCOS experiment predicts the inverse dynamics of a seven-joint robot arm, mapping positions, velocities and accelerations to seven torques. The authors set p = 5000 and q = 7, and they removed 10% to 90% of the values uniformly at random, which gives n ≤ 35k. The spatial inputs use a squared exponential kernel, and the torque dimension uses a full-rank ICM kernel.

They chose p so that the dense kernel matrix still fits in GPU memory, which lets both methods amortize kernel evaluations.

At small missing ratios LKGP needs significantly less time and memory than the iterative baseline. As the missing ratio grows, the iterative methods become slightly more efficient. The empirical break-even points match the asymptotic ones predicted by Proposition 3.1. Test RMSE and test NLL stay equivalent across all missing ratios, so the authors conclude that LKGP adds no model approximation.

![Figure 3: Predicting the inverse dynamics of an anthropomorphic robot arm with seven degrees of freedom. Compared to standard iterative methods, leveraging lat…](https://refivu.com/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd/figures/figure-5e63f6a683461e525a8f2867b9c80cc3.png?thumb=512)

**Figure 3** . Predicting the inverse dynamics of an anthropomorphic robot arm with seven degrees of freedom. Compared to standard iterative methods, leveraging latent Kronecker structure results in significantly lower runtime and memory requirements while maintaining the same predictive performance. The asymptotic break-even point, at which both methods asymptotically require the same amount of time or memory, closely matches the empirical break-even point. Reported results are the mean over 10 different random splits of the data.

[Original paper](https://arxiv.org/abs/2506.06895v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Learning curves: uncertainty against RMSE

The authors predict the rest of partially observed LCBench learning curves, which form a grid of hyperparameter configurations by epochs. Each dataset holds p = 2000 curves over q = 52 steps, so n can reach 104000. LKGP treats the configurations as S and the steps as T, with squared exponential kernels for both. Ten percent of curves are fully observed, and the other 90 percent stop at a uniformly random step, which mimics early stopping during hyperparameter search.

LKGP is compared with SVGP, VNNGP and CaGP, which all approximate the GP in some way.

Table 1 covers every fifth LCBench dataset, averaged over 10 random seeds. On test NLL, LKGP has the best average rank, 1.257 ± 0.602, ahead of SVGP at 2.543 ± 1.024. CaGP and VNNGP follow with average ranks of 3.000 and 3.200. On test RMSE the order flips: SVGP ranks 1.657 ± 1.068 and CaGP 2.000 ± 0.000, both ahead of LKGP at 2.600 ± 0.901.

![Table 1: \[Learning Curve Prediction\] Predictive performances and total runtimes of learning curve prediction on every fifth LCBench dataset. On average, LKGP p…](https://refivu.com/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd/figures/figure-a5761c3bdd2f34366c0b6fceb9a48671.png?thumb=512)

**Table 1** . \[Learning Curve Prediction\] Predictive performances and total runtimes of learning curve prediction on every fifth LCBench dataset. On average, LKGP produces the best negative log-likelihood while also requiring the least time. Reported numbers are the mean over 10 random seeds. Results of the best model are boldfaced and results of the second best model are underlined. See Tables 3 to 7 in Appendix B for the results on all datasets.

[Original paper](https://arxiv.org/abs/2506.06895v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The authors suggest LKGP may overfit, because missing values sit at the end of each curve and observed and test data differ in distribution. LKGP reaches the best training performance, which the authors read as support for that overfitting hypothesis. Its training RMSE is the lowest on every dataset, for example 0.006 ± 0.000 on segment. They credit the better test NLL to the uncertainty quantification of the exact model compared to variational approximations.

LKGP also has the lowest total runtime on every dataset, at 2.012 min on segment against 6.475 min for SVGP. Figure 4 shows Fashion-MNIST curves, where LKGP keeps its uncertainty low on observed steps and raises it into the missing part. That figure is qualitative, so the test NLL ranking in Table 1 supplies the quantitative evidence.

## Millions of climate observations

The climate experiment asks whether LKGP keeps its advantage at millions of observations when the temporal kernel is seasonal. The authors predict daily temperature and precipitation on the Nordic Gridded Climate Dataset, using p = 5000 spatial locations and q = 1000 days. This gives datasets with n ≤ 5M observations, with 10% to 50% of values missing.

Latitude and longitude form the spatial input S, and time in days forms the temporal input T. The spatial kernel is squared exponential, and the temporal kernel multiplies a squared exponential by a periodic kernel to capture seasonality. The same sparse and variational baselines as in the learning curve study are used: SVGP, VNNGP and CaGP.

On temperature at 10% missing, LKGP reaches a test RMSE of 0.08, compared to 0.21 for SVGP. The table shows the same ordering for the training RMSE, where LKGP reaches 0.06 against 0.21 for SVGP. LKGP has the lowest test RMSE and NLL in every column of Table 2, across both datasets and all missing ratios. On precipitation at 10% missing, LKGP's test RMSE is 0.24, compared to 0.70 for SVGP in the same column.

The authors state that LKGP clearly outperforms the other sparse and variational methods in RMSE and NLL on this large dataset.

The authors attribute the speed to latent Kronecker structure, which keeps the exact model cheap to compute.

VNNGP is the second-best method on this data, consistently ahead of SVGP and CaGP. The authors don't test whether this nearest neighbour advantage holds on data without real spatial coordinates.

## What the experiments leave untested

LKGP assumes a product kernel, so two points correlate only when they are close in both space and time. The data also has to lie on a partial grid, which the authors call a less restrictive requirement. The authors suggest building an artificial grid by local interpolation when the data doesn't sit on a partial grid. They didn't test that route in the experiments.

The memory and timing curves in Figure 2 use ten-dimensional synthetic datasets with a balanced factorization. That factorization sets p = q = √n, so the curves describe this one grid shape only. The reported time and memory costs for SARCOS therefore depend on that value of p. The SARCOS comparison averages 10 different random splits, with n at most 35k.

On LCBench, SVGP and CaGP achieve better average test RMSE than LKGP. The authors suggest that LKGP overfits, because missing values sit at the end of each learning curve. LKGP scores best on the training data, which the authors read as support for that overfitting hypothesis. The LCBench results cover every fifth dataset and average 10 random seeds.

The climate experiment covers two variables, daily temperature and precipitation, from the Nordic Gridded Climate Dataset. Missing ratios run from 10% to 50%, and the results average 5 random seeds. The authors suspect that VNNGP beats SVGP and CaGP there because nearest neighbors work well on real spatial dimensions. They didn't test missing ratios above 50% on the climate data.

## Paper info

- **Authors**: Jihao Andreas Lin, Sebastian Ament, Maximilian Balandat, David Eriksson, José Miguel Hernández-Lobato, Eytan Bakshy
- **Venue**: arXiv · Preprint
- **First published**: 2025-6-7
- **Added**: 2026-10-30
- **Updated**: 2025-8-16
- **Version**: v2
- **arXiv**: 2506.06895
- **Category**: cs.LG · stat.ML
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2506.06895v2) · [PDF ↗](https://arxiv.org/pdf/2506.06895v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Applying Gaussian processes (GPs) to very large datasets remains a challenge due to limited computational scalability. Matrix structures, such as the Kronecker product, can accelerate operations significantly, but their application commonly entails approximations or unrealistic assumptions. In particular, the most common path to creating a Kronecker-structured kernel matrix is by evaluating a product kernel on gridded inputs that can be expressed as a Cartesian product. However, this structure is lost if any observation is missing, breaking the Cartesian product structure, which frequently occurs in real-world data such as time series. To address this limitation, we propose leveraging latent Kronecker structure, by expressing the kernel matrix of observed values as the projection of a latent Kronecker product. In combination with iterative linear system solvers and pathwise conditioning, our method facilitates inference of exact GPs while requiring substantially fewer computational resources than standard iterative methods. We demonstrate that our method outperforms state-of-the-art sparse and variational GPs on real-world datasets with up to five million examples, including robotics, automated machine learning, and climate applications.

## Quote from the paper

Jihao Andreas Lin, Sebastian Ament, Maximilian Balandat, David Eriksson, José Miguel Hernández-Lobato, Eytan Bakshy (2025). Scalable Gaussian Processes with Latent Kronecker Structure. arXiv:2506.06895v2. https://arxiv.org/abs/2506.06895v2

**BibTeX**

```
@misc{lin2025scalable,
  title = {{Scalable Gaussian Processes with Latent Kronecker Structure}},
  author = {Jihao Andreas Lin and Sebastian Ament and Maximilian Balandat and David Eriksson and José Miguel Hernández-Lobato and Eytan Bakshy},
  year = {2025},
  eprint = {2506.06895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.06895v2}
}
```

## Related papers

- [SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantization](https://refivu.com/en/papers/5328df78-371a-4c98-b607-4082e43abef7-sageattention2-efficient-attention-with-thorough-outlier.md)
- [An Overview of Multi-Task Learning in Deep Neural Networks](https://refivu.com/en/papers/ec3f88d3-e942-4848-9ca0-597d43563c84-an-overview-of-multi-task-learning-in-deep.md)
- [Posterior contraction rates for banded approximations of Gaussian processes](https://refivu.com/en/papers/39b2feed-2c3a-4f79-b50f-498773f8d0d9-posterior-contraction-rates-for-banded-approximations-of.md)
- [Data-Free Metrics Don't Work: The Missing Invariance Under Functionally Preserving Reparameterisations](https://refivu.com/en/papers/fc25b6b1-5380-409c-a68f-e908f390f16e-data-free-metrics-don-t-work-the-missing.md)
- [From AutoResearch to Continual AutoResearch: Do Agents Learn Across Tasks?](https://refivu.com/en/papers/9dffba31-2edb-48c7-8770-8675f1f716c3-from-autoresearch-to-continual-autoresearch-do-agents-learn.md)

## Other paper commentary

- [On the Computational Complexity of Performative Prediction](https://refivu.com/en/papers/7a4b721a-31e6-4690-bc6d-b8f8286675f0-on-the-computational-complexity-of-performative-prediction.md)
- [Learning to Discover at Test Time](https://refivu.com/en/papers/16b1e431-51ac-4e6b-a951-6aa5a5c017bb-learning-to-discover-at-test-time.md)
- [A unified framework for learning with nonlinear model classes from arbitrary linear samples](https://refivu.com/en/papers/cd3c393f-7a82-47bc-9d3e-9770cfc27865-a-unified-framework-for-learning-with-nonlinear-model.md)
- [Scaling Tractable Probabilistic Circuits: A Systems Perspective](https://refivu.com/en/papers/e32b51bf-5311-4420-bc25-ec49bc5d82ec-scaling-tractable-probabilistic-circuits-a-systems.md)
- [Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning](https://refivu.com/en/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed-dolphin-a-programmable-framework-for-scalable-neurosymbolic.md)
- [The Look-Elsewhere Effect in Searches for New Physics: from Classical Methods to Machine Learning](https://refivu.com/en/papers/40749a33-958c-4352-8394-19db350aef80-the-look-elsewhere-effect-in-searches-for-new.md)
- [Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusions](https://refivu.com/en/papers/64d5ed83-79ac-4425-8629-7aff772bd0c4-train-for-the-worst-plan-for-the-best.md)
- [InfAlign: Inference-aware language model alignment](https://refivu.com/en/papers/c8a29ed9-8ab2-4e59-9865-5055bb8ee487-infalign-inference-aware-language-model-alignment.md)
- [Learning to (Learn at Test Time): RNNs with Expressive Hidden States](https://refivu.com/en/papers/6a02f8bd-d757-4f00-9d97-6829bf6db29f-learning-to-learn-at-test-time-rnns-with.md)
- [Understanding and Improving Length Generalization in Recurrent Models](https://refivu.com/en/papers/f9cd6a9a-de1d-4e94-a91d-e03ad7e1036c-understanding-and-improving-length-generalization-in.md)
- [Diffusion Posterior Sampling is Computationally Intractable](https://refivu.com/en/papers/ac02f2c2-04dc-4800-8421-4bd7e87ecef5-diffusion-posterior-sampling-is-computationally-intractable.md)
- [Weight-sparse transformers have interpretable circuits](https://refivu.com/en/papers/57b058ed-824e-41f1-9bf7-37d4673924a5-weight-sparse-transformers-have-interpretable-circuits.md)

## Terms in this paper

- [stochastic gradient descent](https://refivu.com/en/terms/a49650824022-stochastic-gradient-descent)
- [negative log-likelihood](https://refivu.com/en/terms/e6d7135ed9ca-negative-log-likelihood)
- [projection matrix](https://refivu.com/en/terms/b70dd62f03b2-projection-matrix)
- [pathwise conditioning](https://refivu.com/en/terms/2ebdd17ba4b8-pathwise-conditioning)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd-scalable-gaussian-processes-with-latent-kronecker-structure)
