La-MAML: Look-ahead Meta Learning for Continual Learning

Gunshi Gupta, Karmesh Yadav, Liam Paull

Abstract

The continual learning problem involves training models with limited capacity to perform well on a set of an unknown number of sequentially arriving tasks. While meta-learning shows great potential for reducing interference between old and new tasks, the current training procedures tend to be either slow or offline, and sensitive to many hyper-parameters. In this work, we propose Look-ahead MAML (La-MAML), a fast optimisation-based meta-learning algorithm for online-continual learning, aided by a small episodic memory. Our proposed modulation of per-parameter learning rates in our meta-learning update allows us to draw connections to prior work on hypergradients and meta-descent. This provides a more flexible and efficient way to mitigate catastrophic forgetting compared to conventional prior-based methods. La-MAML achieves performance superior to other replay-based, prior-based and meta-learning based approaches for continual learning on real-world visual classification benchmarks.

Introduction

In Continual Learning (CL), an agent must learn a sequence of tasks without forgetting previous ones—a phenomenon known as catastrophic forgetting. Standard deep learning assumes data is independent and identically distributed (i.i.d.), but in CL, the data distribution shifts constantly. While meta-learning (learning how to learn) has shown promise in reducing interference between tasks, existing methods are often computationally slow, require offline pre-training, or are highly sensitive to hyper-parameter tuning.

La-MAML (Look-ahead Meta-Learning) is designed to address these challenges. It is a fast, optimization-based algorithm for online continual learning that introduces learnable, per-parameter learning rates. By responding to gradient alignment between new and old tasks, it achieves state-of-the-art accuracy while remaining significantly more efficient than previous meta-learning approaches.

Methods

La-MAML builds on the Model-Agnostic Meta-Learning (MAML) framework but adapts it for the "streaming" nature of continual learning through two primary components:

1. C-MAML (The Base)

Continual-MAML uses a small episodic replay buffer. For every new batch of data, the model performs "inner updates" (fast adaptation) on the current task. A subsequent "meta-update" (outer update) is performed using a "meta-loss" calculated on a mixture of current and replayed data. This encourages the model to find a weight initialization that is naturally resistant to forgetting.

2. La-MAML (The Innovation)

The core contribution is the modulation of per-parameter learning rates (LRs).

  • Asynchronous Updates: Unlike standard MAML, La-MAML updates the LRs before the weights in the meta-update.
  • Gradient Alignment: The LR for a specific parameter increases if the gradient for the new task aligns with the gradient for old tasks (positive transfer). If they conflict (interference), the LR decreases or is clipped to zero.
  • Look-ahead Mechanism: This acts as a "trust-region" optimizer, dampening updates for specific weights if they are predicted to hurt performance on previous tasks.
Overview of the La-MAML update cycle, showing inner updates on current task data and the meta-update using a mix of current and replayed data.

Experiments and Results

The algorithm was evaluated on several standard CL benchmarks, including MNIST Rotations/Permutations, CIFAR-100 (20 disjoint tasks), and TinyImagenet-200 (40 sequential tasks).

Key Results

  • Speed: La-MAML matches the performance of Meta Experience Replay (MER) on MNIST but runs in less than 20% of the time, providing a massive speedup for online applications.
  • Accuracy: On CIFAR-100 and TinyImagenet, La-MAML consistently outperformed strong baselines like GEM, iCARL, and standard Experience Replay (ER). For example, on TinyImagenet (Multiple-pass), it achieved 66.99% Retained Accuracy, whereas the next best (Sync) was 65.40%.
  • Forgetting: It achieved significantly lower Backward Transfer and Interference (BTI) scores, indicating superior retention of old knowledge compared to standard replay methods.
Performance comparison on CIFAR-100 and TinyImagenet benchmarks. La-MAML achieves superior retained accuracy (RA) and lower backward transfer interference (BTI) compared to baselines.

Conclusion

La-MAML provides a scalable and efficient solution for online continual learning. By making learning rates learnable and responsive to task interference, the model automatically identifies which weights are "safe" to update and which should be preserved. While it still relies on an episodic replay buffer, its ability to handle real-world visual data in a single pass marks a significant step forward for optimization-based meta-learning.

Summary updated

BibTeX
@inproceedings{gupta2020la,
  author = {Gunshi Gupta and Karmesh Yadav and Liam Paull},
  title = {{La-MAML: Look-ahead Meta Learning for Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=EveI8iQI-S},
}
Figure