Local vs Global continual learning

Giulia Lanzillotta, Sidak Pal Singh, Benjamin F. Grewe, Thomas Hofmann · DOI

Abstract: Continual learning (CL) aims to train neural networks on a sequence of tasks without catastrophic forgetting. This paper, presented at CoLLAs 2024, introduces a theoretical framework categorizing CL algorithms into "local" and "global" approximations of past task losses. We demonstrate that local algorithms (e.g., EWC, OGD) rely on a "locality assumption" that is violated at high learning rates, leading to significant forgetting. In contrast, global algorithms (e.g., ER) exhibit greater robustness to parameter shifts.

Introduction

Neural networks are notoriously susceptible to catastrophic forgetting: when trained on a new task, they abruptly lose performance on previously learned ones. While numerous algorithms have been proposed to mitigate this, the field lacks a unified theoretical understanding of why certain methods succeed or fail in different regimes. This research addresses this gap by viewing CL through the lens of loss approximation. Since storing all past data is often infeasible, CL algorithms must approximate the cumulative loss of all seen tasks. The authors categorize these approximations as either "local" or "global."

Theoretical Framework

The core contribution of this work is the formal distinction between two approximation strategies:

  1. Local Approximations: These rely on information about the model's state immediately after learning a specific task (e.g., the weights $\theta_t$ and the Hessian matrix). A classic example is the Taylor expansion used in Elastic Weight Consolidation (EWC). These methods operate under a Locality Assumption: they only remain accurate if the model stays within a small neighborhood (the $\epsilon$-region) of the original solution.
  2. Global Approximations: These do not depend on the specific final state of the network for a given task. Experience Replay (ER), which maintains a random buffer of past samples, is a prime example because the buffer remains a valid representation of the task regardless of how far the model's weights move later.

Theoretically, the authors derive optimal objectives for quadratic local approximations and prove that Orthogonal Gradient Descent (OGD)—which keeps updates orthogonal to past gradients—implements this optimal local objective.

The Impact of Plasticity on Locality

To test the locality assumption, the researchers used the learning rate (LR) as a proxy for plasticity. Higher learning rates increase the "distance travelled" in parameter space, effectively forcing the model out of the local region where Taylor-based approximations are valid.

This figure illustrates that higher learning rates directly correlate with the model "travelling" further away from its starting point in parameter space across Rotated MNIST, Split CIFAR-10, and Split Tiny-ImageNet.

Experimental Results

The framework was evaluated on standard benchmarks: Split CIFAR-10, Split Tiny-ImageNet, and Rotated-MNIST. The results strongly support the local/global distinction:

  • Local algorithms (EWC, iCaRL, OGD) are highly effective at low learning rates where the locality assumption holds. However, they show a sharp increase in forgetting (FGT) as the learning rate increases and the model moves further in parameter space.
  • Global algorithms (ER, A-GEM, SI) are significantly more robust. Their forgetting rates remain relatively stable regardless of the learning rate or the distance the model travels.
  • The iCaRL Case: Interestingly, iCaRL is classified as "local" because its herding strategy for sample selection depends on the model's state at the end of a task. By simply switching herding to random sampling, the authors transformed iCaRL into a global algorithm that is no longer sensitive to high learning rates.
Main experimental results showing Accuracy (ACC) and Forgetting (FGT) across different learning rates. Local algorithms (highlighted in red) show high sensitivity to LR, while global algorithms (blue) are more robust.

Discussion and Limitations

While this categorization provides a powerful abstraction, some nuances remain. The analysis primarily focuses on approximating the standard multi-task loss rather than other objectives like forward transfer. Additionally, even "global" algorithms like standard SGD exhibit some local-like behavior due to implicit regularization, suggesting that the inherent biases of optimization algorithms in CL warrant further study.

Conclusion

This work provides a vital sanity check for the development of continual learning systems. It highlights that if a researcher chooses a local method, they must either ensure the model remains within a local neighborhood or accept that the approximation of past knowledge will eventually fail as the model evolves.

Summary updated

BibTeX
@inproceedings{lanzillotta2024local,
  author = {Giulia Lanzillotta and Sidak Pal Singh and Benjamin F. Grewe and Thomas Hofmann},
  title = {{Local vs Global continual learning}},
  booktitle = {CoLLAs},
  year = {2024},
}
Figure