Functional Regularisation for Continual Learning with Gaussian Processes

Michalis K. Titsias, Jonathan Schwarz, Alexander G. de G. Matthews, Razvan Pascanu, Yee Whye Teh

Introduction

The "holy grail" of Continual Learning (CL) is creating a system that can learn a sequence of tasks without forgetting older ones. Standard deep learning models fail at this due to catastrophic forgetting: as a network learns a new task, it overwrites the weights that were optimized for previous tasks.

Existing solutions generally fall into two camps:

  1. Weight Regularization (e.g., EWC): These methods try to keep weights close to their previous values. However, they suffer from "representation drift"—as the network's lower layers evolve to accommodate new data, the old weight values no longer produce the correct outputs.
  2. Replay Buffers: These store a subset of old data to "rehearse" past tasks. While effective, they often rely on heuristics to choose which data to keep and fail to account for the model's uncertainty.

This paper introduces a novel framework that bridges these gaps by regularizing the model in function space rather than parameter space. By using sparse Gaussian Processes and optimized "inducing points," the model remembers the outputs it should produce for past tasks, leading to state-of-the-art performance and the ability to detect task boundaries automatically.

Methods: Functional Regularisation for Continual Learning (FRCL)

The authors propose a method that avoids forgetting by constructing and memorizing an approximate posterior belief over the underlying task-specific function.

Overview of the FRCL framework, showing how inducing points from Task 1 are used to regularize the learning of Task 2 via KL divergence.

Here is the technical breakdown of the FRCL approach:

  • Gaussian Processes (GP) at the Top: The researchers treat the last layer of a neural network as a Gaussian Process. By treating the weights of this layer as random and Gaussian distributed, they can perform Bayesian inference over the functions the network represents.
  • Inducing Points as Task Summaries: Instead of storing thousands of raw images in a replay buffer, the model identifies a tiny, fixed-size set of "inducing points." These are inputs selected specifically because they optimally represent the "shape" and geometry of the task's function.
  • KL Divergence Regularization: When the model moves on to learn a new task, it adds a Kullback-Leibler (KL) divergence penalty. This penalty ensures that the new function does not deviate too far from the stored posterior distributions of previous tasks at those specific inducing points.
  • Automated Task Detection: Because GPs provide a principled measure of uncertainty, the model can detect a task switch by measuring "Bayesian surprise." If a new batch of data yields high predictive uncertainty (meaning it looks nothing like what the model has seen), it triggers the creation of a new task summary.

Key Insights and Results

By regularizing the predictions at specific points, the model becomes immune to representation drift. Even if the internal weights change significantly to accommodate new features, the functional output for old tasks remains stable.

The researchers evaluated FRCL on three standard but challenging benchmarks: Split-MNIST, Permuted-MNIST, and Sequential Omniglot (a complex dataset featuring 50 different alphabets to test scaling to many small tasks).

Performance of FRCL on Split-MNIST and Permuted-MNIST, demonstrating that optimized inducing point selection (Trace term) outperforms random selection, especially at low memory budgets.
  • State-of-the-Art Performance: On Permuted-MNIST, FRCL achieved 94.3% accuracy, outperforming previous Bayesian methods like VCL (90%) and EWC (84%). In the complex Omniglot benchmark, FRCL set a new SOTA, significantly outperforming baselines like "Progress & Compress" and "Online EWC."
  • High Efficiency: On Split-MNIST, the model achieved 97.8% accuracy using only 40 inducing points per task.
  • Principled Compression vs. Random: The "inducing points" are optimized using a "trace-term" criterion rather than random sampling. As shown in the results, optimizing which points to remember is crucial. When memory is very limited (e.g., 1-2 points per character), the optimized selection significantly beats random sampling.
  • Unsupervised Boundary Detection: Unlike most CL models that require a "task ID" or an explicit signal that a new task has started, FRCL can infer this purely from the data distribution, making it highly viable for real-world learning.

Limitations and Future Work

While highly effective, FRCL has a few limitations to address in future research:

  • Linear Memory Growth: Although the "summary" for each task is extremely small, the total memory required still grows linearly with the number of tasks. Future work could focus on compressing summaries of all previous tasks into a single fixed-size buffer.
  • Task Boundary Sensitivity: The boundary detection method works best when there are clear shifts in the input distribution. It may struggle in "streaming" scenarios where tasks blend into one another gradually.
  • Scope: The current framework is focused on supervised classification. Extending this functional approach to Reinforcement Learning (RL) remains an open challenge.

Summary updated

BibTeX
@inproceedings{titsias2020functional,
  author = {Michalis K. Titsias and Jonathan Schwarz and Alexander G. de G. Matthews and Razvan Pascanu and Yee Whye Teh},
  title = {{Functional Regularisation for Continual Learning with Gaussian Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=D0ZeVou-ZHh},
}
Figure