Bilevel Continual Learning

Ammar Shaker, Francesco Alesiani, Shujian Yu, Wenzhe Yin

TL;DR

This paper introduces Bilevel Continual Learning (BiCL), a novel framework that tackles the challenge of catastrophic forgetting in AI models. By framing continual learning as a bilevel optimization problem, BiCL effectively balances learning new tasks with retaining knowledge from previous ones, demonstrating superior performance in both discriminative and generative tasks.

What Problem Does This Paper Address?

Artificial intelligence systems often struggle to learn new information without forgetting what they've already learned. This phenomenon, known as "catastrophic forgetting," is a major hurdle in developing AI that can continuously learn and adapt over time, much like humans do. Imagine an AI learning to identify different dog breeds; after learning about German Shepherds, it might completely forget how to recognize Golden Retrievers. This paper aims to solve this by creating a framework that allows AI to learn sequentially without this detrimental memory loss.

Methods

The core innovation of BiCL lies in its formulation as a bilevel optimization problem. This means the learning process is structured into two nested optimization levels:

  • Inner Problem (Task-Specific Learning): This level focuses on learning the parameters (w) for the current task, using the standard training data.
  • Outer Problem (Task-Agnostic Learning): This level optimizes "hyper-parameters" (λ) that are shared across all tasks. These hyper-parameters guide the inner problem's learning process, ensuring that updates are beneficial not only for the current task but also for retaining knowledge from past tasks.

This bilevel structure allows the model to learn task-specific knowledge while simultaneously optimizing for long-term knowledge retention. The paper proposes using Reptile dynamics, a meta-learning algorithm, to efficiently solve this bilevel optimization problem. BiCL is designed to be general, applicable to both discriminative (e.g., classification) and generative (e.g., image generation) tasks.

Datasets

The paper evaluates BiCL on several standard datasets for continual learning:

  • MNIST Permutations: A variation of MNIST where each task involves a fixed permutation of the input pixels.
  • MNIST Rotations: Another MNIST variant where tasks involve rotating images by a fixed angle.
  • Fashion-MNIST: A dataset containing images of clothing items.
  • NotMNIST: A dataset of handwritten characters.

These datasets are used to simulate sequential learning scenarios, with tasks being presented one after another.

Key Insights and Ideas

  • Bilevel Optimization as a Natural Fit for Continual Learning: The paper argues that the hierarchical nature of bilevel optimization mirrors the need to balance immediate task learning (inner loop) with long-term knowledge retention (outer loop).
  • Task-Agnostic Hyper-parameters for Knowledge Preservation: By treating certain network components as hyper-parameters optimized across all tasks, BiCL effectively learns a "meta-strategy" for learning that prevents catastrophic forgetting.
  • Unified Framework for Discriminative and Generative Tasks: BiCL's bilevel formulation is shown to be flexible enough to handle both classification-style problems and image generation tasks, a significant advantage for a general continual learning solution.
  • Effective Knowledge Transfer: The bilevel approach encourages positive transfer learning, where knowledge gained from previous tasks helps in learning new ones, while simultaneously mitigating negative transfer (interference).

Key Results

BiCL demonstrates strong performance across various benchmarks:

  • Discriminative Tasks: BiCL consistently achieves competitive or superior Retained Accuracy (RA), indicating its effectiveness in preventing forgetting. In 75% of cases with constrained memory, BiCL provided better RA. It also shows comparable Learning Accuracy (LA) for new tasks.
  • Generative Tasks: BiCL produces higher quality generated images compared to baseline methods like EWC, particularly in retaining the ability to generate images from earlier tasks. While EWC might show slightly better performance on the current task, BiCL excels in long-term performance and reducing forgetting.

Limitations and Future Work

  • Computational Cost: Bilevel optimization can be computationally intensive. While the paper uses Reptile dynamics to approximate solutions, further research into more efficient optimization strategies could be beneficial.
  • Parameter Splitting: The paper discusses intuitive ways to split network parameters into task-specific (w) and task-agnostic (λ) components, but exploring optimal splitting strategies for different architectures and tasks remains an open area.
  • Generalizability to Other ML Problems: The authors suggest that the BiCL framework could be extended to other areas like meta-learning, where tasks are available simultaneously, or for generating new models for specific datasets. This indicates a broad potential for the proposed bilevel approach beyond just continual learning.

Summary updated

BibTeX
@inproceedings{shaker2021bilevel,
  author = {Ammar Shaker and Francesco Alesiani and Shujian Yu and Wenzhe Yin},
  title = {{Bilevel Continual Learning}},
  booktitle = {IJCNN},
  year = {2021},
  doi = {10.1109/ijcnn52387.2021.9533824},
}
Figure