Learn to Grow: A Continual Structure Learning Framework for Overcoming Catastrophic Forgetting

Xilai Li, Yingbo Zhou, Tianfu Wu, Richard Socher, Caiming Xiong

Deep Neural Networks (DNNs) are notoriously prone to catastrophic forgetting. When trained on a sequence of tasks, learning a new task typically overwrites the internal weights necessary for performing previous ones.

The "Learn to Grow" framework tackles this challenge by decoupling neural structure optimization from parameter learning. Instead of forcing every task into the same fixed architecture, the model uses a differentiable architecture search to decide whether to reuse, adapt, or spawn new layers for each incoming task. This effectively balances knowledge transfer with model capacity.

The Problem with Current Approaches

Historically, solutions to catastrophic forgetting fall into two main camps, both of which have significant drawbacks:

  1. Regularization-based methods: Techniques like Elastic Weight Consolidation (EWC) constrain weight changes to protect old knowledge. However, this often limits the model's ability to learn complex new tasks because the "available" parameter space shrinks over time.
  2. Fixed Expansion methods: Approaches like Progressive Neural Networks add a fixed number of parameters for every new task. This inevitably leads to a "parameter explosion," making the model prohibitively large as the number of tasks grows.

The authors argue that these methods fail because they tightly couple network structure and parameter estimation. Different tasks require different structures; a digit recognizer and a face recognizer, for instance, shouldn't be forced to share the exact same low-level feature extractors if their visual primitives are fundamentally different.

The "Learn to Grow" Framework

The core of the paper is a two-component framework that separates the search for the right architecture from the training of its weights.

1. Neural Structure Optimization

When a new task arrives, the model performs a search to find the best "wiring." Inspired by DARTS (Differentiable Architecture Search), it treats the choice of each layer as a continuous optimization problem. For every layer in the network, the model chooses between three distinct options:

  • Reuse: Use a layer's weights from a previous task (these can be fixed or fine-tuned).
  • Adapt: Keep a previous layer's weights fixed but add a small, trainable "adapter" (like a 1x1 convolution) to modify the output.
  • New: Initialize and train a completely new layer from scratch.
The three structural choices for a new task: Reuse, Adapt, or New.

To prevent the model from simply choosing "New" for everything—which would stop forgetting but waste memory—the authors include a penalty term in the loss function that accounts for model complexity and parameter count.

2. Parameter Learning

Once the optimal structure is found and locked in, the model performs standard training to estimate the weights for the newly added or adapted components, leaving the strictly reused components intact.

Key Insights and Ideas

  • Semantic Sharing: The model is highly intelligent about what it shares. In experiments, when tasks were visually similar (e.g., ImageNet $\rightarrow$ CIFAR-100), the search chose to reuse most layers. When tasks were drastically different (e.g., ImageNet $\rightarrow$ Omniglot), it chose to create new layers.
Semantic sharing behavior: similar tasks (CIFAR100) reuse layers, while distinct tasks (Omniglot) spawn new ones.
  • Decoupling is Key: By separating the "search for structure" from the "search for weights," the model avoids the optimization difficulties found in previous dynamic expansion methods that try to do both simultaneously via standard SGD.
  • Efficiency via NAS: Even though the model grows, it does so surgically. It achieves better accuracy than standard adapter methods while maintaining a significantly smaller total parameter count than training individual models for every task.
  • Positive Backward Transfer: The authors found that fine-tuning reused layers with light $L_2$ regularization can actually lead to positive backward transfer—meaning learning a new task slightly improves performance on older tasks without triggering catastrophic forgetting.

Performance and Results

The framework was evaluated on three major benchmarks, showing strong improvements over existing baselines:

  • Permuted MNIST: Achieved 98.48% average accuracy across 10 tasks, outperforming EWC (96.75%) and HAT (97.98%) while using fewer parameters than most expansion-based baselines.
  • Split CIFAR-100: Reached 76.21% accuracy, representing a massive jump over the next best baseline, Progressive Neural Networks (68.32%).
  • Visual Domain Decathlon (VDD): On this challenging suite of 10 diverse datasets, the framework achieved a state-of-the-art average accuracy of 77.68%. Notably, it performed exceptionally well on tasks with small datasets (like VGG-Flowers and Aircraft) by effectively "borrowing" structural representations from the ImageNet base.

Limitations and Future Work

While highly effective, the framework does have a few limitations. First, the current implementation assumes a fixed global topology (e.g., a ResNet backbone) and only optimizes the "wiring" within that topology; it doesn't yet search for entirely different types of layers, such as switching between convolutions and attention mechanisms.

Additionally, performing a Neural Architecture Search (NAS) for every new task adds computational overhead during the training phase. For systems that need to learn hundreds of tasks rapidly, this could become a bottleneck. Finally, while the authors suggest using a priority queue to manage the search space, the overarching "Super-Network" could eventually become memory-intensive to store as the number of tasks scales indefinitely.

Summary updated

BibTeX
@inproceedings{li2019learn,
  author = {Xilai Li and Yingbo Zhou and Tianfu Wu and Richard Socher and Caiming Xiong},
  title = {{Learn to Grow: A Continual Structure Learning Framework for Overcoming Catastrophic Forgetting}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HJ4REsZuWr},
}
Figure