Infinite-Horizon Gaussian Processes

Arno Solin, James Hensman, Richard E. Turner

Gaussian Processes (GPs) are the gold standard for probabilistic time-series modeling, offering principled uncertainty estimates. However, their standard $O(n^3)$ computational complexity makes them impractical for long sequences. Recent state-space formulations reduce this to $O(m^3 n)$ using Kalman filtering, but the cubic dependence on the state dimension $m$ remains a severe bottleneck for complex models.

This paper introduces Infinite-Horizon Gaussian Processes (IHGP), which leverage steady-state Kalman filtering to reduce the complexity to $O(m^2 n)$. This critical speedup enables GPs to perform real-time, online hyperparameter learning on massive streaming datasets—even on resource-constrained mobile devices.

The Steady-State Approximation

The core innovation of IHGP is the steady-state approximation. In a long time series with stationary kernels, the Kalman filter's predictive covariance and gain eventually converge to a constant "steady state." The uncertainty no longer depends on specific data values, only on the time steps and noise.

Instead of updating the covariance matrix at every time step—an $O(m^3)$ operation—IHGP solves the Discrete Algebraic Riccati Equation (DARE) once to find this limiting stationary covariance. This reduces the filter step to a simple matrix-vector multiplication, bringing the cost down to $O(m^2)$.

Interpolation of steady-state covariance and gain across likelihood variances.

To handle non-Gaussian likelihoods (like Poisson or Probit) where the "effective noise" changes at each step, IHGP avoids re-solving the DARE constantly. Instead, it pre-calculates steady-state solutions across a grid of noise levels and uses a fast 1D cubic interpolation scheme to find the correct covariance on the fly.

Performance and Scalability

Because the IHGP forward pass is exceptionally efficient, the authors derive an incremental gradient descent approach to calculate the gradient of the marginal likelihood and update kernel parameters in real-time as new data arrives.

Comparison of IHGP and Full GP predictive posterior and marginal likelihood.

The approximation error of IHGP is remarkably low. In regression tasks, the maximum RMSE between IHGP and the exact state-space solution was less than 0.001, and the negative log marginal likelihood landscape closely matches the full GP.

The paper evaluates IHGP across several challenging scenarios, demonstrating significant gains:

  • Speedup: On a dataset of 10,000 points, IHGP was roughly 4x faster than standard state-space GPs for small $m$, with the gap widening as state dimensionality increased.
  • Massive Scale: The algorithm processed 2 million electricity consumption data points in just 624 seconds on a standard laptop.
  • Edge Deployment: Implemented in C++ on an iPhone 6s, IHGP successfully updated hyperparameters and re-predicted at 10 Hz while processing a 100 Hz accelerometer data stream.

Limitations

While highly efficient, IHGP relies on a few key assumptions. The steady-state assumption is most accurate when data is sampled at regular intervals; handling irregular sampling requires interpolation, which adds complexity. Additionally, the approximation exhibits slight edge effects at the very beginning of a time series before the filter naturally reaches its steady state. Finally, the method is currently optimized specifically for 1D inputs (time), and extending these $O(m^2)$ benefits to higher-dimensional spatial GPs remains a challenge.

Summary updated

BibTeX
@inproceedings{solin2018infinite,
  author = {Arno Solin and James Hensman and Richard E. Turner},
  title = {{Infinite-Horizon Gaussian Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure