Abstract
We develop an exact and scalable algorithm for one-dimensional Gaussian process regression with Matérn correlations whose smoothness parameter $\nu$ is a half-integer. The proposed algorithm only requires $\mathcal{O}(\nu^3 n)$ operations and $\mathcal{O}(\nu n)$ storage. This leads to a linear-cost solver since $\nu$ is chosen to be fixed and usually very small in most applications. The proposed method can be applied to multi-dimensional problems if a full grid or a sparse grid design is used. The proposed method is based on a novel theory for Matérn correlation functions. We find that a suitable rearrangement of these correlation functions can produce a compactly supported function, called a "kernel packet". Using a set of kernel packets as basis functions leads to a sparse representation of the covariance matrix that results in the proposed algorithm. Simulation studies show that the proposed algorithm, when applicable, is significantly superior to the existing alternatives in both the computational time and predictive accuracy.
Introduction
Gaussian Process (GP) regression is a cornerstone of non-parametric modeling, prized for its ability to provide robust uncertainty quantification. However, its practical application is often bottlenecked by the "curse of dimensionality" regarding sample size. Standard GP inference requires the inversion of a covariance matrix, a task with cubic time complexity ($\mathcal{O}(n^3)$) and quadratic storage requirements ($\mathcal{O}(n^2)$). For datasets exceeding 100,000 points, these requirements become computationally prohibitive on standard hardware.
To circumvent this, researchers typically rely on approximations such as Inducing Points (Nyström approximation) or Random Fourier Features (RFF). While these methods improve speed, they introduce approximation errors that can compromise predictive accuracy. This paper introduces "Kernel Packets" (KP), a novel framework that achieves the efficiency of these approximations while maintaining the mathematical exactness of the original GP model.
The Kernel Packet Framework
The core innovation lies in the construction of the Kernel Packet. The authors demonstrate that for Matérn correlation functions where the smoothness parameter $\nu$ is a half-integer (e.g., 1.5, 2.5), one can construct a linear combination of kernels that possesses compact support.
Unlike standard Matérn kernels, which are "global" and never truly reach zero, a Kernel Packet acts as a "local" basis function. By strategically combining five Matérn components, the resulting function becomes zero outside a specific central interval. This localization is the key to transforming dense covariance matrices into sparse, banded structures.
Computational Efficiency and Comparative Analysis
By utilizing KPs as basis functions, the resulting covariance matrix becomes banded. Solving a banded linear system is significantly more efficient than solving a dense one. For 1D problems, the time complexity is reduced to $\mathcal{O}(\nu^3 n)$ and storage to $\mathcal{O}(\nu n)$. Since $\nu$ is typically a small constant, the algorithm effectively scales linearly with the number of data points.
As shown in the table below, the Proposed Method is unique in its ability to offer both linear scaling and exact accuracy, whereas competing methods like RFF or Nyström approximations are inherently limited by their approximation errors or specific design requirements.
Experimental Validation
The authors validated the KP method using a mix of synthetic and real-world datasets, including the Mauna Loa $\text{CO}_2$ dataset and intraday stock prices for Apple Inc.
- Scalability: In 1D simulations, the KP method successfully processed over 67 million grid points, a scale that is impossible for standard GP methods.
- Accuracy: In financial and environmental benchmarks, the KP method provided superior interpolations and more reliable uncertainty bounds compared to Inducing Points or RFF, which often over-smooth local fluctuations.
- Speed: For sparse grid designs with $10^5$ training points, the KP algorithm was at least twice as fast as the next best direct method.
Conclusion and Future Work
The Kernel Packet algorithm represents a significant leap in GP regression, offering a path to exact inference at a linear cost. While currently optimized for Matérn kernels with half-integer smoothness and grid-based multi-dimensional data, its performance on large-scale datasets is unmatched. Future research may focus on extending this framework to scattered multi-dimensional data and exploring its potential unification with State-Space models (Kalman filtering).
Summary updated