Abstract
Gaussian Process (GP) regression is a cornerstone of non-parametric Bayesian modeling, yet its application to large-scale datasets is traditionally hindered by $O(N^3)$ computational complexity. While various sparse approximations exist, they frequently require recomputing the entire model when hyperparameters—such as lengthscale or smoothness—are updated. This paper presents a novel framework that represents GPs using a fixed set of Fourier basis functions derived from generalized Gaussian quadratures. By leveraging the Non-Uniform Fast Fourier Transform (NUFFT), the proposed method achieves $O(N)$ scaling for initial data processing and renders subsequent hyperparameter tuning entirely independent of the number of observations $N$. Empirical results demonstrate the ability to process $10^8$ data points in seconds on standard hardware.
Introduction
The computational bottleneck of Gaussian Processes stems from the necessity of inverting an $N \times N$ covariance matrix. For datasets exceeding a few thousand points, this becomes computationally prohibitive. While the field has seen significant progress in "reduced-rank" or "sparse" GP methods, these techniques often struggle with the "inner loop" of model selection. In standard implementations, any change to the kernel hyperparameters necessitates a full re-evaluation of the approximation, making the search for optimal parameters a grueling process for massive datasets.
This research addresses this challenge by decoupling the data-dependent precomputation from the hyperparameter-dependent inference step. The result is a method that scales linearly with $N$ during a one-time setup and becomes $O(m^3)$ (where $m \ll N$) during model selection.
Methodology
Spectral Representation and Bochner’s Theorem
The foundation of the approach lies in the spectral domain. According to Bochner’s Theorem, any stationary covariance kernel $K(x, y) = K(x - y)$ can be represented as the Fourier transform of a positive finite measure (the power spectrum). The GP can thus be approximated as a finite sum of $m$ sine and cosine functions:
$$K(x, y) \approx \sum_{i=1}^{m} w_i e^{i \xi_i (x - y)}$$
Generalized Gaussian Quadrature
The core innovation is the selection of the frequencies $\xi_i$ and weights $w_i$. Rather than using random Fourier features or equispaced grids, the author employs generalized Gaussian quadratures. These are numerically optimized sets of points designed to integrate an entire family of kernels—such as the Matérn family with varying lengthscales—to high precision. Because these quadrature points are valid across a range of hyperparameters, the basis functions do not need to be updated when the lengthscale or smoothness parameters change.
Acceleration via NUFFT
To efficiently construct the projection of $N$ data points onto $m$ basis functions, the method utilizes the Type-3 Non-Uniform Fast Fourier Transform (NUFFT). This reduces the complexity of building the necessary system matrices from $O(Nm)$ to $O(N + m^2 \log m)$. Once these matrices are constructed, the GP inference transforms into a weight-space linear regression.
Crucially, the $O(N)$ step is performed only once. Subsequent hyperparameter tuning involves solving a small $2m \times 2m$ system, which is independent of $N$.
Empirical Results
The algorithm was evaluated using synthetic 1D datasets ranging from $10^5$ to $10^8$ points, generated uniformly on the interval $[-1, 1]$. The target function was a non-linear oscillation, $y_i = \cos(3e^{x_i}) + \epsilon_i$, tested against Matérn and Squared-Exponential kernels.
Scaling and Speed
The performance gains are substantial. For a dataset of 100 million points ($N=10^8$), the total time for precomputation and initial inference was approximately 12 seconds on a standard laptop.
Hyperparameter Independence
Once the initial precomputation was complete, the time required to evaluate a new set of hyperparameters was approximately 0.005 seconds. This cost remained constant regardless of whether the dataset contained $10^5$ or $10^8$ points, effectively removing the data-size penalty from the model selection loop.
Numerical Precision
The approximation maintains high fidelity to the true GP. The effective kernel matched the analytical kernel with an $L^2$ error between $10^{-5}$ and $10^{-6}$. The research noted that smoother kernels (like the Squared-Exponential) require significantly fewer basis functions ($m \approx 20$) compared to less smooth kernels like the Matérn family ($m \approx 86$).
Discussion and Limitations
While the method offers a breakthrough in 1D GP scaling, it faces two primary limitations:
- Dimensionality: The current implementation relies on tensor-product constructions for higher dimensions. This leads to the "curse of dimensionality," where the number of basis functions $m$ grows exponentially ($m^d$) with the dimension $d$.
- Stationarity: The Fourier-based approach is inherently limited to stationary (translation-invariant) kernels. Non-stationary kernels, such as the dot-product kernel used in linear regression, cannot be represented this way without significant modification.
Conclusion
By combining generalized Gaussian quadratures with NUFFT acceleration, this work demonstrates that Gaussian Processes can be scaled to hundreds of millions of points without the traditional computational headache. The ability to decouple hyperparameter optimization from the size of the dataset represents a significant step forward for non-parametric modeling in the era of big data.
Summary updated