Conditional Computation for Continual Learning

Min Lin, Jie Fu, Yoshua BengioarXiv 2019

Introduction

Catastrophic forgetting remains a primary obstacle in training neural networks on non-stationary data distributions. When a standard network learns new tasks, global parameter sharing often leads to the overwriting of weights essential for previous knowledge. This paper proposes a solution rooted in conditional computation, introducing a "clipped minout" architecture that mathematically isolates the impact of weight updates. By identifying the exact subset of historical data affected by a new update—a process termed conditional rehearsal—the model can learn continually without the abrupt loss of prior information.

Addressing Global Interference

The core of catastrophic forgetting lies in the "Goldilocks" problem of parameter sharing. While global sharing (standard networks) leads to forgetting, zero sharing (look-up tables) prevents generalization. The authors seek a middle ground of partial parameter sharing.

They identify that standard maxout networks, while routing inputs through specific linear neurons, still suffer from global interference. Updating one neuron shifts decision boundaries that may affect the entire input space. To mitigate this, the authors introduce clipped minout units. By clipping linear outputs (e.g., at zero) before the min/max operation, they create hard mathematical boundaries.

Visualization of the 'blast radius' of a weight update. The clipped minout architecture ensures that updating a neuron only affects historical examples within a specific region (yellow), allowing for surgical rehearsal.

As shown in the figure above, when a new example (red dot) triggers a weight update, the clipping function guarantees that only a bounded convex set of historical examples (the yellow region) will have their outputs altered. This "blast radius" allows the system to ignore the vast majority of historical data (pink region) that remains unaffected.

Conditional Rehearsal

Leveraging these mathematical guarantees, the authors propose conditional rehearsal. Unlike traditional experience replay, which randomly samples past data, conditional rehearsal is surgical. The system maintains a key-value store to track which historical examples activate which neurons. When a neuron is updated, the model retrieves and rehearses only the specific examples that rely on that neuron. This ensures that the network only spends computational resources on data actively in danger of being corrupted.

Experimental Evaluation

The proposed method was evaluated on MNIST-ol (MNIST with ordered labels), a challenging benchmark where examples are presented one at a time in strict label order (e.g., all 0s, then all 1s). This setup typically causes standard Stochastic Gradient Descent (SGD) to fail completely, as the model forgets previous digits as soon as a new class is introduced.

Accuracy comparison on the MNIST-ol benchmark. Conditional rehearsal (blue/orange) significantly outperforms random rehearsal (green/red), showing monotonic improvement and higher final accuracy.

Key Results

  • Zero Forgetting: On the MNIST-ol setup with 100 examples per class, the clipped minout network achieved 100% training accuracy, demonstrating a complete elimination of catastrophic forgetting.
  • Monotonic Improvement: As illustrated in the accuracy plots, test performance increased steadily throughout the training process. The model successfully integrated new classes without sacrificing performance on previously seen ones.
  • Efficiency in Low-Data Regimes: In extreme cases with only 10 examples per class, conditional rehearsal vastly outperformed random rehearsal. Because random sampling often misses critical data modes in small sets, the precision of conditional rehearsal becomes a decisive advantage.

Conclusion and Future Directions

The clipped minout architecture provides a theoretical framework for isolating interference in neural networks. By transforming rehearsal from a stochastic process into a deterministic, surgical operation, the authors demonstrate a path toward robust continual learning.

Current limitations include the use of a shallow single-layer architecture and the reliance on explicit memory storage for historical examples. Future work aims to extend these principles to deep architectures and develop connectionist methods for storing historical data, moving away from external look-up tables toward fully integrated neural memory systems.

Summary updated

Abstract

Catastrophic forgetting of connectionist neural networks is caused by the global sharing of parameters among all training examples. In this study, we analyze parameter sharing under the conditional computation framework where the parameters of a neural network are conditioned on each input example. At one extreme, if each input example uses a disjoint set of parameters, there is no sharing of parameters thus no catastrophic forgetting. At the other extreme, if the parameters are the same for every example, it reduces to the conventional neural network. We then introduce a clipped version of maxout networks which lies in the middle, i.e. parameters are shared partially among examples. Based on the parameter sharing analysis, we can locate a limited set of examples that are interfered when learning a new example. We propose to perform rehearsal on this set to prevent forgetting, which is termed as conditional rehearsal. Finally, we demonstrate the effectiveness of the proposed method in an online non-stationary setup, where updates are made after each new example and the distribution of the received example shifts over time.
BibTeX
@misc{lin2019conditional,
  author = {Min Lin and Jie Fu and Yoshua Bengio},
  title = {{Conditional Computation for Continual Learning}},
  year = {2019},
  eprint = {1906.06635},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.06635},
}
Figure