Overcoming Multi-model Forgetting

Yassine Benyahia, Kaicheng Yu, Kamil Bennani-Smires, Martin Jaggi, Anthony C. Davison, Mathieu Salzmann, Claudiu Musat

TL;DR

This paper identifies multi-model forgetting, a phenomenon where training a new neural network architecture degrades the performance of previously trained architectures that share the same weights. To solve this, the authors introduce Weight Plasticity Loss (WPL), a statistically grounded regularization technique that protects important shared weights, leading to significantly better results in Neural Architecture Search (NAS) for both vision and language tasks.

What Problem Does This Paper Address?

In modern machine learning, especially in Neural Architecture Search (NAS), researchers often use "weight sharing" to make training thousands of candidate models tractable. Instead of training every architecture from scratch, different models share a common pool of weights.

However, the authors discover a major downside: multi-model forgetting. When you optimize Model B, you might overwrite weights that were crucial for Model A.

Illustration of multi-model forgetting where training a new model degrades a previously trained model sharing the same weights.

Because these models are often trained sequentially or in a population, the "best" architectures found early in the search are often ruined by the time the search ends. While this sounds like "catastrophic forgetting," it is distinct: catastrophic forgetting usually refers to one model learning multiple tasks, whereas multi-model forgetting involves multiple models learning the same task using shared parameters.

Methods

The authors propose Weight Plasticity Loss (WPL). The core idea is to evaluate how "important" each shared weight is to the models already trained and then penalize changes to those weights proportionally to their importance.

Conceptual comparison between Elastic Weight Consolidation (EWC) for multi-task learning and Weight Plasticity Loss (WPL) for multi-model learning.

Key technical components include:

  • Bayesian Framework: They formulate the problem as maximizing the posterior probability of all model parameters given the data.
  • Laplace Approximation: Since the true posterior is intractable, they use a second-order Taylor expansion (Laplace approximation) to estimate it.
  • Fisher Information Matrix (FIM): To make the math computationally feasible, they approximate the Hessian of the loss function using the diagonal of the Fisher Information Matrix. This provides a "weight importance" score using only first-order gradients, which are already calculated during backpropagation.
  • WPL vs. EWC: While it looks similar to Elastic Weight Consolidation (EWC), WPL is mathematically derived for the single-task, multi-model scenario. It specifically accounts for the interaction terms between different architectures sharing the same parameters.

Datasets

The researchers evaluated WPL across three main benchmarks:

  1. MNIST: Used for initial proof-of-concept experiments to demonstrate how shared weights lead to accuracy drops in simple feed-forward networks.
  2. Penn Treebank (PTB): Used for language modeling via RNN cell search.
  3. CIFAR-10: Used for image classification via CNN micro-cell search.

Key Insights and Ideas

  • The Weight-Sharing Paradox: While weight sharing provides massive speedups (making NAS possible on a single GPU), it inherently destabilizes the search by constantly "corrupting" the memory of what worked for previous architectures.
  • Importance is Inversely Proportional to Plasticity: By making "important" weights less "plastic" (harder to change), the system retains the knowledge of high-performing architectures without preventing the discovery of new ones.
  • Robustness to "Loose Convergence": In NAS, models are rarely trained to full completion (strict convergence). The authors show that WPL remains effective even when models are only partially trained, which is the standard "loose convergence" setting in efficient NAS.
  • Controller Synergy: In reinforcement learning-based NAS (like ENAS), WPL helps the "controller" (the part that picks architectures) receive more reliable reward signals because the architectures it samples don't degrade as quickly.

Key Results

  • MNIST Proof-of-Concept: WPL reduced the forgetting effect by up to 99% when models were fully converged and by 52% in the more realistic "loose" training setting.
  • Language Modeling (PTB): Integrating WPL into the ENAS (Efficient Neural Architecture Search) framework reduced perplexity from 65.01 to 61.9, outperforming the original ENAS results even after their extensive hyper-parameter tuning.
  • Image Classification (CIFAR-10): WPL dropped the top-1 error rate from 4.87% to 3.81% compared to standard ENAS.
  • Generalization: The authors also applied WPL to NAO (Neural Architecture Optimization), showing that it consistently reduces forgetting across different dropout rates and speeds up the training process.

Limitations and Future Work

  • Optimality Assumption: The mathematical derivation assumes that the previously trained models have reached a local optimum (Maximum Likelihood Estimate). In very fast NAS settings, this assumption might be stretched thin.
  • Computational Overhead: While calculating the Fisher Information is relatively cheap (using squared gradients), it still adds a small amount of computational and memory overhead to store the importance scores for shared weights.
  • Future Directions: The authors suggest that WPL could be extended beyond NAS to ensemble learning, where multiple models are trained to work together, or to other scenarios where large-scale parameter sharing is required.

Summary updated

BibTeX
@inproceedings{benyahia2019overcoming,
  author = {Yassine Benyahia and Kaicheng Yu and Kamil Bennani-Smires and Martin Jaggi and Anthony C. Davison and Mathieu Salzmann and Claudiu Musat},
  title = {{Overcoming Multi-model Forgetting}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=ByNp_2bOZS},
}
Figure