Natural continual learning: success is a journey, not (just) a destination

Ta-Chu Kao, Kristopher T. Jensen, Alberto Bernacchia, Guillaume Hennequin

Abstract

Biological agents are known to learn many different tasks over the course of their lives, and to be able to revisit previous tasks and behaviors with little to no loss in performance. In contrast, artificial agents are prone to 'catastrophic forgetting' whereby performance on previous tasks deteriorates rapidly as new ones are acquired. This shortcoming has recently been addressed using methods that encourage parameters to stay close to those used for previous tasks. This can be done by (i) using specific parameter regularizers that map out suitable destinations in parameter space, or (ii) guiding the optimization journey by projecting gradients into subspaces that do not interfere with previous tasks. However, these methods often exhibit subpar performance in both feedforward and recurrent neural networks, with recurrent networks being of interest to the study of neural dynamics supporting biological continual learning. In this work, we propose Natural Continual Learning (NCL), a new method that unifies weight regularization and projected gradient descent. NCL uses Bayesian weight regularization to encourage good performance on all tasks at convergence and combines this with gradient projection using the prior precision, which prevents catastrophic forgetting during optimization. Our method outperforms both standard weight regularization techniques and projection based approaches when applied to continual learning problems in feedforward and recurrent networks. Finally, the trained networks evolve task-specific dynamics that are strongly preserved as new tasks are learned, similar to experimental findings in biological circuits.

Introduction

Artificial intelligence systems typically struggle with continual learning: the ability to acquire a sequence of tasks without overwriting knowledge from earlier ones. In standard deep learning, training on a new Task B often leads to "catastrophic forgetting" of Task A. Existing solutions generally follow two philosophies:

  1. Weight Regularization (The Destination): Methods like Elastic Weight Consolidation (EWC) penalize changes to weights deemed important for previous tasks. They focus on finding a final parameter set that satisfies all tasks.
  2. Gradient Projection (The Journey): Methods like Orthogonal Weights Memory (OWM) constrain the optimization path by projecting updates into subspaces that do not interfere with prior knowledge.

While both approaches have merits, they often fail in complex, non-convex landscapes where the optimization "journey" can lead the model through regions of high error for previous tasks before reaching a suitable destination.

The Natural Continual Learning (NCL) Framework

Natural Continual Learning (NCL) bridges these two philosophies by applying trust-region optimization to the Bayesian posterior. The core innovation is using the prior precision matrix (the inverse of the parameter covariance from previous tasks) as a preconditioner for the gradient.

Comparison of optimization paths for Laplace, Projected, and NCL methods in convex (A) and non-convex (B) loss landscapes.

As shown in the figure above, NCL effectively "warps" the optimization landscape. This ensures the model moves rapidly in directions that are "flat" (unimportant) for old tasks while moving very slowly in directions that would cause forgetting. Mathematically, the authors prove that many heuristic projection-based methods are actually specific approximations of this natural gradient approach. To maintain scalability for deep networks, NCL utilizes a Kronecker-factored approximation (KFAC) of the Fisher Information Matrix, optimized via a novel KL-divergence minimization technique.

Experimental Evaluation

The researchers evaluated NCL against standard benchmarks and neuroscience-inspired tasks:

  • Computer Vision: On Split MNIST and Split CIFAR-100, NCL significantly outperformed baselines. In the challenging "class-incremental" setting, NCL achieved ~69% accuracy on Split MNIST, whereas EWC struggled at ~20%.
  • Recurrent Neural Networks (RNNs): NCL demonstrated particular dominance in RNNs, solving complex sequences like the 15-task Stroke MNIST (SMNIST) with significantly lower error than competing methods.
  • Biological Realism: Analysis of the trained RNNs revealed stable internal "latent dynamics." Much like biological motor cortex activity, the neural patterns for a learned skill remained consistent even as the network acquired new behaviors.

Discussion and Key Insights

The primary insight of NCL is that the journey matters. Even if a set of weights exists that solves all tasks, standard gradient descent may temporarily forget Task A while learning Task B. In non-convex landscapes, this transient forgetting often becomes permanent. By regularizing the path itself, NCL prevents this failure mode.

Despite its success, NCL currently requires explicit task boundaries to update the Fisher Information Matrix. Future work aims to extend the framework to "streaming" data distributions where task transitions are not clearly defined. Additionally, while KFAC improves efficiency, the computational overhead remains higher than simple SGD, prompting interest in simpler diagonal approximations.

Conclusion

Natural Continual Learning provides a theoretically grounded unification of weight regularization and gradient projection. By ensuring that the optimization process respects the constraints of previous knowledge throughout the entire learning journey, NCL achieves state-of-the-art performance across diverse architectures and tasks, offering a robust path toward more flexible, human-like artificial intelligence.

Summary updated

BibTeX
@inproceedings{kao2021natural,
  author = {Ta-Chu Kao and Kristopher T. Jensen and Alberto Bernacchia and Guillaume Hennequin},
  title = {{Natural continual learning: success is a journey, not (just) a destination}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=W9250bXDgpK},
}
Figure