Introduction
Gaussian Processes (GPs) are widely considered "gold standard" probabilistic models due to their excellent uncertainty quantification. However, they suffer from a prohibitive computational cost of $O(N^3)$, where $N$ is the number of data points. While "sparse" approximations reduce this complexity to $O(NM^2)$ by using $M$ representative pseudo-points, most of these methods are strictly designed for batch settings where all data is available at once.
In many real-world applications—such as robotics, sensor networks, or financial tracking—data arrives in a continuous stream. A naive approach would be to retrain the model from scratch every time new data arrives (which is computationally infeasible) or to only train on a sliding window of recent data (which leads to catastrophic forgetting). Previous attempts at "online" GPs often relied on hand-crafted heuristics for hyperparameter learning or struggled with stability when the data distribution shifted over time.
This paper introduces a principled framework for Streaming Sparse Gaussian Processes (SSGP), allowing GP models to learn from data arriving sequentially in real-time. By leveraging variational inference, the method enables the simultaneous update of the model's posterior, hyperparameters, and pseudo-input locations without needing to store or revisit old data.
A Principled Framework for Streaming Data
The authors propose a new framework based on Variational Free Energy (VFE) and $\alpha$-divergence minimization. The approach is built on four core pillars:
- The Recursive Update: Instead of keeping old data, the model treats the approximate posterior from the previous time step as a "prior" for the next step. Specifically, it "inverts" the previous posterior to extract an approximate likelihood of the old data, which is then combined with the exact likelihood of the new incoming batch.
- Variational Projection: Because the combined posterior can become overly complex, the framework "projects" it back into a tractable Gaussian form defined by a set of $M$ pseudo-points.
- Online Hyperparameter Learning: Unlike earlier seminal work, this framework provides a closed-form lower bound on the marginal likelihood. This allows the model to optimize kernel parameters (like lengthscales) and noise levels on-the-fly as new data arrives.
- Moving Pseudo-inputs: As the stream reveals new regions of the input space, the pseudo-inputs (the points that "summarize" the data) are optimized to move and cover these new areas, ensuring the approximation remains accurate.
The framework is highly general: by adjusting a parameter $\alpha$, it can recover existing algorithms like Expectation Propagation (EP) or Assumed Density Filtering (ADF) as special cases.
Key Insights: The VFE Advantage
- Principled Forgetting: The core realization of this framework is that you do not need to store old data if you have a sufficiently accurate probabilistic summary of it. By propagating the posterior, the model "remembers" the past through its current state.
- The VFE Advantage: The authors found that for streaming data, smaller $\alpha$ values (closer to the Variational Free Energy approach) performed significantly better. Higher $\alpha$ values (closer to EP) tended to cause pseudo-points to "clump" together. This clumping is disastrous when the data stream moves into new territory, as the model lacks the flexibility to adapt.
- SVI vs. SSGP: While Stochastic Variational Inference (SVI) is popular for big data, it assumes data is sampled i.i.d. (independent and identically distributed) and requires multiple passes over the dataset. SSGP, on the other hand, is explicitly designed for non-i.i.d. streams where the model only gets to see each data point once.
Empirical Evaluation
The authors evaluated SSGP across several domains, including synthetic time-series, audio data (TIMIT database), spatial data (OS Terrain 50), and binary classification (Banana dataset).
Key Results: * Accuracy vs. Speed: SSGP significantly outperformed "memory-limited" versions of standard Sparse GPs. For a fixed computational budget, SSGP achieved a much higher Mean Log-Likelihood (MLL) and lower Root Mean Squared Error (RMSE) because it successfully leveraged information from the entire history of the stream. * Hyperparameter Tracking: The model successfully "tracked" the true hyperparameters of synthetic GPs, demonstrating its ability to adapt its internal understanding of the data's smoothness and noise level in real-time. * Memory Efficiency: On the OS Terrain dataset, SSGP maintained high accuracy while using only a fraction of the memory required by an exact GP, as it only needed to store the $M$ pseudo-points and the current batch.
Limitations and Future Directions
While highly effective, the framework has a few limitations. For non-Gaussian likelihoods (like binary classification), the "optimal" update isn't analytically closed-form and requires numerical optimization, adding computational overhead. Additionally, while pseudo-points can be optimized spatially, the number of points $M$ is fixed. In an infinite stream covering an ever-growing space, $M$ might eventually need to increase dynamically.
Future work suggests that extending this framework to more complex structures, such as Deep Gaussian Processes or models with non-stationary kernels, represents a promising next step for online probabilistic learning.
Summary updated