Gaussian Processes (GPs) are the gold standard for probabilistic modeling of continuous functions, but they suffer from a notorious "cubic bottleneck." To compute the posterior of a GP with $n$ data points, one must invert a covariance matrix, a process that scales at $O(n^3)$. This makes standard GPs impractical for the long-duration time series common in neuroscience, audio processing, and finance.
A growing body of research overcomes this limitation by reframing Gaussian Processes as State-Space Models (SSMs). By treating the GP as the solution to a Stochastic Differential Equation (SDE), researchers can swap expensive global matrix inversions for efficient local recursions, reducing computational complexity from cubic to linear ($O(n)$) or even logarithmic ($O(\log n)$) time.
The Markovian Bridge
The core intuition behind this shift is the Markov property. In a standard GP, every point in a sequence is potentially correlated with every other point, requiring a dense $n \times n$ covariance matrix. However, many widely used kernels—most notably the Matérn family—can be represented as the output of a linear time-invariant SDE driven by white noise.
As Alexander Vandenberg‐Rodes explains in Dependent Matérn Processes for Multivariate Time Series, this SDE representation implies that the process is Markovian in a higher-dimensional state space. If you know the current "state" of the system (which might include the function value and its derivatives), the future is independent of the past. This realization transforms a global optimization problem into a sequential filtering problem.
Inference as Kalman Smoothing
Once a GP is expressed as an SSM, the machinery of classical control theory becomes available. Instead of $O(n^3)$ batch processing, we use Kalman filtering and Rauch-Tung-Streibel (RTS) smoothing.
These algorithms process data points one by one, updating the "state" estimate as they go. Because each update only depends on the previous step, the total time scales linearly with the number of observations. Arno Solin and Simo Särkkä demonstrated in State Space Methods for Efficient Inference in Student-t Process Regression that this approach provides exact inference for temporal processes while remaining computationally feasible for massive datasets.
Handling Non-Gaussian Data
The state-space approach is not limited to simple Gaussian regression. Real-world data often involves "likelihoods" that aren't Gaussian, such as binary classifications or the discrete counts of neural spike trains.
To handle this, researchers like Paul Edmund Chang and William J. Wilkinson have integrated state-space models with approximate Bayesian inference techniques. In State Space Expectation Propagation: Efficient Inference Schemes for Temporal Gaussian Processes, they show that methods like Expectation Propagation (EP) and Variational Inference (VI) can be implemented as iterative Kalman smoothing passes. This allows for Fast Variational Learning in State-Space Gaussian Process Models that scale to millions of points without the accuracy trade-offs of traditional "inducing point" approximations.
Scaling Across Dimensions and Regions
The power of the state-space formulation is increasingly being applied to complex, multi-dimensional problems:
- Neuroscience: Matthew Dowling and Yuan Zhao use these models in Linear Time GPs for Inferring Latent Trajectories from Neural Spike Trains to extract smooth patterns from thousands of firing neurons.
- Audio Analysis: By reformulating audio filter banks as state-space systems, William J. Wilkinson enables End-to-End Probabilistic Inference for Nonstationary Audio Analysis, preserving phase information in linear time.
- Spatiotemporal Modeling: In Functional Bayesian Tucker Decomposition for Continuous-indexed Tensor Data, Shikai Fang applies state-space GP priors to tensor decomposition, allowing for the analysis of data indexed by continuous variables like latitude and longitude.
Beyond Linear: Parallel Scans
While $O(n)$ is a massive improvement over $O(n^3)$, sequential filtering still creates a bottleneck on modern parallel hardware like GPUs. The latest frontier in this research direction involves parallel associative scans.
As explored by Weihan Li and Anqi Wu in Learning Time-Varying Multi-Region Brain Communications via Scalable Markovian Gaussian Processes, the sequential operations of a Kalman filter can be reformulated as an associative operation. This allows the inference to be parallelized across time steps, achieving logarithmic complexity ($O(\log n)$). This leap enables the real-time analysis of high-frequency data that was previously unthinkable for any kernel-based method.