Memory-Based Dual Gaussian Processes for Sequential Learning

Paul Edmund Chang, Prakhar Verma, S. T. John, Arno Solin, Mohammad Emtiyaz Khan

TL;DR

This paper introduces a novel framework for sequential Gaussian Process (GP) learning that prevents error accumulation by combining dual sparse variational inference with an active memory of past data. By leveraging a new "Bayesian Leverage Score" to select the most informative past examples, the method achieves near-batch performance in continual and active learning tasks while remaining computationally efficient.

What Problem Does This Paper Address?

Gaussian Processes are a gold standard for uncertainty-aware machine learning, making them popular for sequential tasks like Bayesian Optimization (BO) and Active Learning (AL). However, they have a major "memory" problem: exact GP inference requires access to every single data point ever seen, which becomes computationally impossible as data grows.

Existing "sparse" GP methods try to summarize data using a small set of "inducing points," but these methods typically assume all data is available at once (batch learning). In truly sequential or "continual" settings—where data arrives in chunks and past data is discarded—errors start to pile up. These errors come from three main sources:

  1. Inaccurate posteriors: The model's belief about the function becomes warped over time.
  2. Poor hyperparameters: The model loses track of the underlying data scales and noise levels.
  3. Misplaced inducing points: The summary points no longer represent the current data distribution.

Previous attempts to solve this often used a "patchwork" of different techniques that led to computational complexity or "catastrophic forgetting," where the model completely forgets old tasks when learning new ones.

Methods

The authors propose a unified method based on the dual sparse variational GP (dual-SVGP). Their approach has three main pillars:

  • Dual Parameterization: Instead of just tracking the mean and covariance, they work with "dual parameters" ($\alpha$ and $\beta$). These parameters have a "pseudo-data" interpretation that makes it much easier to update the model sequentially without losing information.
  • Active Memory: They maintain a small "memory" of actual past data points. This memory is used to mimic the "full-batch" objective function, effectively "reminding" the model of what it has seen before.
  • Bayesian Leverage Score (BLS): This is the paper's standout innovation. To decide which points to keep in their limited memory, they developed the BLS. It generalizes classical leverage scores to work with non-Gaussian data. It identifies "difficult" or "unusual" points that are most critical for defining the model's decision boundaries.

The entire system is updated using natural gradients (the Bayesian Learning Rule), which allows for fast, stable updates even with complex, non-Gaussian data.

Overview of the sequential learning method showing how inference, hyperparameter learning, and representation (inducing points + memory) evolve over tasks.

Datasets

The authors evaluated their method across a diverse set of benchmarks:

  • Streaming UCI Tasks: Standard regression and classification datasets (e.g., Adult, Bank, Mushroom) converted into streaming formats.
  • Split MNIST: A classic continual learning benchmark where the model learns to classify digits in pairs (0 vs 1, then 2 vs 3, etc.).
  • Lunar Lander: A high-dimensional Bayesian Optimization task involving landing a spacecraft.
  • Schistosomiasis Hotspot Modelling: An active learning task for spatial disease mapping.
  • Magnetic Anomaly Mapping: A real-world robotics task where a robot maps magnetic fields in an indoor space.

Key Insights and Ideas

  • Memory is the "Secret Sauce": The authors show that even a tiny amount of memory (just 5% of the total data) can dramatically improve performance, allowing a sequential model to nearly match a "gold-standard" offline model that has access to all data at once.
  • The Power of "Difficult" Examples: The Bayesian Leverage Score (BLS) is significantly better than random sampling for memory. It tends to pick points that are "unusual" or near decision boundaries. High-leverage digits are often the ones that are messy or atypical, which are exactly the ones the model needs to remember to stay accurate.
  • Unified Error Control: By using the dual-SVGP framework, the authors can update the posterior, the hyperparameters, and the inducing points simultaneously in a single coherent step, rather than treating them as separate problems.
Ablation study on Split MNIST showing that BLS-based memory selection outperforms random selection, highlights difficult 'high leverage' examples, and achieves high accuracy even with small memory sizes.

Key Results

  • No More Forgetting: On the Split MNIST task, the proposed method maintained high accuracy across all tasks, whereas previous state-of-the-art methods suffered from catastrophic forgetting.
  • Speed and Efficiency: In streaming tasks, the method was significantly faster than competitors while achieving comparable or better accuracy. For example, it was roughly 25% faster than "Online Variational Conditioning" (OVC) on active learning tasks.
  • Real-World Robustness: The method successfully enabled a robot to map magnetic anomalies in an ever-expanding domain, outperforming baselines in terms of Root Mean Square Error (RMSE).

Limitations and Future Work

The authors noted one interesting edge case: in the highly non-stationary Split MNIST task, they found that "double-counting" memory points (not subtracting their contribution from the prior) actually improved performance. This suggests that in very difficult, non-stationary environments, the standard variational objective might need further refinement to balance "remembering" vs. "learning new things."

Future work could explore more sophisticated memory management strategies or apply this framework to even larger-scale reinforcement learning problems where uncertainty and sequential updates are paramount.

Summary updated

BibTeX
@inproceedings{chang2023memory,
  author = {Paul Edmund Chang and Prakhar Verma and S. T. John and Arno Solin and Mohammad Emtiyaz Khan},
  title = {{Memory-Based Dual Gaussian Processes for Sequential Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=UxQsrlM6mY},
}
Figure