Gaussian Processes (GPs) are widely considered the gold standard for non-parametric Bayesian regression. They do not merely output point predictions; they provide mathematically rigorous uncertainty bounds that naturally widen in the absence of data. However, standard GPs suffer from a notorious computational bottleneck: evaluating them requires constructing and manipulating a dense covariance matrix $K \in \mathbb{R}^{N \times N}$, where $N$ is the number of observations. Inverting this matrix or computing its log-determinant scales cubically—requiring $\mathcal{O}(N^3)$ time complexity.
If you are tracking a lithium-ion battery's degradation over millions of data points, as explored by Joachim Schaeffer et al. in Gaussian process-based online health monitoring and fault analysis of lithium-ion battery systems from field data, exact cubic-time GP regression is completely intractable. Traditional workarounds rely on global sparse approximations or inducing points. Yet, as noted by Oliver Hamelijnck in Spatio-Temporal Variational Gaussian Processes, these sparse approximations often smooth over high-frequency temporal spikes and intricate short-scale structures.
State-space Gaussian Process reformulations bypass this bottleneck entirely. By shifting our perspective from a global function-space view to a local state-space view, we can reduce the computational complexity of temporal inference from $\mathcal{O}(N^3)$ to a perfectly linear $\mathcal{O}(N)$.
The Markovian Bridge: From Kernels to SDEs
To understand why this speedup is possible, we must look at how a Gaussian Process defines relationships between points. In a standard GP, the smoothness and characteristics of the target function are dictated by a choice of covariance kernel (such as the Matérn or Squared Exponential kernel). This kernel explicitly dictates how a point at time $t$ correlates with a point at any arbitrary time $t'$.
State-space methods reframe this relationship by viewing the GP prior not as a static collection of correlated random variables, but as the continuous output of a physical dynamic system driven by white noise. The bridge between these two perspectives is the frequency domain.
Stationary covariance kernels possess a spectral density. As explained by Francesco Crocetti et al. in GaPT: Gaussian Process Toolkit for Online Regression with Application to Learning Quadrotor Dynamics, representing these kernels via their spectral densities allows the underlying stochastic process to be rewritten as a Linear Time-Invariant Stochastic Differential Equation (LTI-SDE):
$$\frac{d\mathbf{x}(t)}{dt} = \mathbf{F}\mathbf{x}(t) + \mathbf{L}\mathbf{w}(t)$$
Here, $\mathbf{x}(t)$ is a latent state vector, $\mathbf{F}$ is a feedback matrix derived from the kernel parameters, and $\mathbf{w}(t)$ is a white noise process. Simo Särkkä et al. leverage this spectral factorization in Gaussian Process Latent Force Models for Learning and Stochastic Control of Physical Systems to map non-parametric GPs directly into linear state-space forms, allowing high-fidelity uncertainty quantification to be embedded directly within real-time control loops.
Why It Works: The Sparsity of the Precision Matrix
The fundamental reason an SDE formulation drops the computational cost from cubic to linear lies in the Markov property.
In the function-space view, every single observation is explicitly coupled to every other observation, creating a dense covariance matrix $K$. However, an SDE describes a system where the future state depends only on the current state $\mathbf{x}(t)$, completely independent of its past trajectory.
When we transition from analyzing the covariance matrix $K$ to analyzing its inverse—the precision matrix $Q = K^{-1}$—a structural miracle occurs. Because each state only interacts with its immediate temporal neighbors, the dense matrix dissolves into a highly sparse, banded (or tridiagonal) matrix.
Alexander Grigorievskiy exploits this structural property in Parallelizable sparse inverse formulation Gaussian processes (SpInGP), demonstrating that mapping standard GP kernels to linear state-space representations converts global dependency structures into local Markovian structures optimized for sparse matrix operations. Similarly, Byron Boots et al. show in Continuous-Time Gaussian Process Motion Planning via Probabilistic Inference that generating trajectories via linear time-varying SDEs guarantees a tridiagonal precision matrix, drastically simplifying trajectory optimization.
Function-Space View (Dense Covariance K) State-Space View (Banded Precision Q = K⁻¹)
[ * * * * * ] [ * * 0 0 0 ]
[ * * * * * ] [ * * * 0 0 ]
[ * * * * * ] ───► [ 0 * * * 0 ]
[ * * * * * ] [ 0 0 * * * ]
[ * * * * * ] [ 0 0 0 * * ]
Requires O(N³) Global Inversion Requires O(N) Sequential Filtering
Because the precision matrix is banded, we no longer need to perform global matrix inversions. Instead, we can solve the system sequentially using classical signal processing tools: Kalman filtering for the forward pass and Rauch-Tung-Striebel (RTS) smoothing for the backward pass. As highlighted by Elad Gilboa et al. in Scaling Multidimensional Gaussian Processes using Projected Additive Approximations, this transformation converts a global matrix inversion problem into a local filtering problem, allowing exact inference to scale linearly with the number of observations.
Non-Gaussian Likelihoods as Smoothing Passes
The linear-time magic of state-space GPs becomes even more compelling when moving beyond simple Gaussian noise to complex, non-Gaussian likelihoods (such as binary classification or count data). In standard function-space setups, non-Gaussian likelihoods break mathematical conjugacy, requiring expensive, custom batch approximations.
State-space models elegantly unify this process. Hannes Nickisch et al. demonstrate in State Space Gaussian Processes with Non-Gaussian Likelihood that by decomposing GP operations into core computational primitives like linear system solutions and log-determinants, one can apply standard approximate inference algorithms (such as Laplace or Variational Bayes) via linear-time state-space recursions.
Taking this further, Paul Edmund Chang et al. show in State Space Expectation Propagation: Efficient Inference Schemes for Temporal Gaussian Processes that advanced approximate inference schemes like Expectation Propagation (EP) can be implemented directly as iterated Kalman smoothing passes. This achieves the exact same accuracy as state-of-the-art batch methods while scaling effortlessly to hundreds of thousands of data points.
Scaling to Higher Dimensions
While the state-space formulation is natively suited for one-dimensional inputs like time series, the same underlying intuition can be extended to spatiotemporal fields.
Instead of an ordinary differential equation, a spatiotemporal process can be framed as a solution to a Stochastic Partial Differential Equation (SPDE), where the state vector becomes infinite-dimensional to capture spatial variations. Simo Särkkä et al. pioneered this extension in Infinite-Dimensional Kalman Filtering Approach to Spatio-Temporal Gaussian Process Regression, showing that treating the spatial field as an infinite-dimensional state vector yields a linear computational scaling relative to the number of time steps.
To make this practically computable, the infinite-dimensional spatial field must be discretized into a finite set of basis functions. Arno Solin et al. demonstrate this in Infinite-dimensional Bayesian filtering for detection of quasiperiodic phenomena in spatiotemporal data, utilizing spatial resonators to track complex, periodic environmental and biological phenomena across space and time in linear time. By combining the non-parametric flexibility of Gaussian processes with the sequential efficiency of state-space filters, researchers can deploy robust, real-time Bayesian inference on massive, continuous-time streaming data.