Exploiting Hankel-Toeplitz Structures for Fast Computation of Kernel Precision Matrices

Frida Marie Viset, Anton Kullberg, Frederiek Wesel, Arno Solin

Abstract

The Hilbert-space Gaussian process (HGP) approach offers a hyperparameter-independent basis function approximation for speeding up Gaussian process (GP) inference by projecting the GP onto $M$ basis functions. These properties result in a favorable data-independent $\mathcal{O}(M^3)$ computational complexity during hyperparameter optimization but require a dominating one-time precomputation of the precision matrix costing $\mathcal{O}(NM^2)$ operations. In this paper, we lower this dominating computational complexity to $\mathcal{O}(NM)$ with no additional approximations. We can do this because we realize that the precision matrix can be split into a sum of Hankel-Toeplitz matrices, each having $\mathcal{O}(M)$ unique entries. Based on this realization we propose computing only these unique entries at $\mathcal{O}(NM)$ costs. Further, we develop two theorems that prescribe sufficient conditions for the complexity reduction to hold generally for a wide range of other approximate GP models, such as the Variational Fourier features approach. The two theorems do this with no assumptions on the data and no additional approximations of the GP models themselves. Thus, our contribution provides a pure speed-up of several existing, widely used, GP approximations, without further approximations.

Introduction

Gaussian Processes (GPs) are a cornerstone of non-parametric modeling, prized for their robust uncertainty estimates. However, their standard implementation scales cubically with the number of data points, $\mathcal{O}(N^3)$, making them impractical for large-scale datasets. To mitigate this, Hilbert Space Gaussian Processes (HGPs) approximate the GP by projecting it onto $M$ basis functions. While this reduces hyperparameter optimization to $\mathcal{O}(M^3)$, it introduces a significant precomputation bottleneck: calculating the precision matrix ($\Phi^\top \Phi$), which scales as $\mathcal{O}(NM^2)$. For high-fidelity models requiring many basis functions, this step can dominate training time and memory.

Methodology: Exploiting Matrix Structure

The core contribution of this work is the realization that the precision matrix $\Phi^\top \Phi$ is not arbitrary. For commonly used basis functions—such as sinusoids, polynomials, or complex exponentials—the matrix exhibits a highly structured internal geometry.

Structural Decomposition

We prove that the precision matrix can be decomposed into a sum of Hankel and Toeplitz matrices. A Toeplitz matrix is characterized by constant values along its diagonals, while a Hankel matrix has constant values along its anti-diagonals. This inherent symmetry means that instead of $M^2$ unique entries, the matrix contains only $\mathcal{O}(M)$ unique values.

Visualizing the structured precision matrix components in 1D, 2D, and 3D.

By developing algorithms that compute only these unique entries, we reduce the computational cost from $\mathcal{O}(NM^2)$ to $\mathcal{O}(NM)$. This is a "pure" speedup; it involves no additional approximations, meaning the resulting matrix is mathematically identical to the one produced by the standard $\mathcal{O}(NM^2)$ approach.

Theoretical Generalization

The paper establishes two formal theorems (Theorems 3.1 and 3.4) that define the sufficient conditions for basis functions to yield this structure. This allows the method to be applied beyond HGPs to other popular frameworks like Variational Fourier Features (VFF), regardless of the underlying data distribution.

Experiments and Results

The proposed method was evaluated on both simulated and high-dimensional real-world datasets, including a 1.4-million-point underwater magnetic field mapping task and a U.S. precipitation benchmark.

Computational Scaling

The empirical results confirm the theoretical complexity reduction. As shown in the scaling analysis, the wall-clock time for the proposed method grows linearly with the number of basis functions $M$, whereas the standard HGP approach exhibits quadratic growth.

Wall-clock time comparison showing the linear scaling of the proposed method versus the quadratic scaling of standard HGP.

Key Performance Gains

  • Time Efficiency: In the magnetic field experiment ($N \approx 1.4M$, $M = 6,400$), precomputation time plummeted from 2.7 hours to just 1.7 minutes.
  • Memory Efficiency: By storing only unique entries, memory requirements for $M=14,000$ dropped from 1.5 GB to 2.8 MB. This enables the deployment of high-fidelity models on standard consumer hardware.
  • Scalability: The method successfully scaled to $M=64,000$ basis functions, a regime previously inaccessible due to memory and time constraints.

Conclusion

By exploiting the Hankel-Toeplitz structure of basis function projections, we have removed a major bottleneck in GP approximation. This advancement allows for significantly more expressive models (higher $M$) on larger datasets (higher $N$) without sacrificing accuracy. While the $\mathcal{O}(M^3)$ matrix inversion remains a future challenge for extremely large $M$, this work provides a substantial, exact speedup for a wide class of existing GP models.

Summary updated

BibTeX
@article{viset2024exploiting,
  author = {Frida Marie Viset and Anton Kullberg and Frederiek Wesel and Arno Solin},
  title = {{Exploiting Hankel-Toeplitz Structures for Fast Computation of Kernel Precision Matrices}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=s9ylaDLvdO},
}
Figure