EsaCL: An Efficient Continual Learning Algorithm

Weijieying Ren, Vasant G. Honavar

TL;DR

This paper introduces EsaCL, an efficient continual learning algorithm that prunes neural networks without retraining, significantly reducing memory and computational costs. It achieves this by leveraging sharpness-aware minimization to find flat regions in the loss landscape and an intelligent data selection strategy to improve training efficiency.

What Problem Does This Paper Address?

Continual learning (CL) aims to train models on a sequence of tasks without forgetting previously learned ones. A major challenge is "catastrophic forgetting," where learning new tasks degrades performance on old ones. Existing solutions often involve retraining on old data (memory-intensive) or expanding model capacity (computationally expensive). For sparse models, re-training after pruning is particularly costly. This paper addresses the need for efficient CL that minimizes memory, computation, and data requirements while maintaining performance, especially for sparse models.

Methods

EsaCL introduces two core strategies:

  • Sharpness-Aware Pruning (SAP): Instead of traditional magnitude-based pruning followed by retraining, EsaCL searches for "flat" regions in the loss landscape. By regularizing backpropagated gradients, it guides the model to converge to a minimum where small parameter perturbations have minimal impact on the loss. This allows for pruning without significant accuracy degradation. The method uses a min-max optimization framework inspired by Sharpness-Aware Minimization (SAM) and a projection-free optimization approach (Frank-Wolfe algorithm) to achieve this.
  • Intelligent Data Selection (IDS): To further boost efficiency, EsaCL employs strategies to select only the most informative training samples for each task. This includes:
  • Support Example Selection (SSE): Identifying critical instances for estimating the loss landscape's sharpness.
  • Redundant Example Elimination (ERE): Removing samples that have minimal impact on model performance.

Datasets

The paper evaluates EsaCL on three standard continual learning benchmarks:

  • Split CIFAR-10
  • Split CIFAR-100
  • Tiny-ImageNet

These datasets are split into 5, 10, and 10 tasks, respectively, with each task containing 2, 10, and 20 classes.

Key Insights and Ideas

  • Flat Loss Landscapes Enable Pruning Without Retraining: The core insight is that by finding and exploiting flat regions in the loss landscape, models can be pruned without the need for expensive retraining. This is because small parameter changes in flat regions don't drastically alter the loss, preserving performance.
  • Sharpness and Sparsity are Complementary: The paper demonstrates that both sharpness-aware minimization and sparse projection contribute to improved efficiency and accuracy, and their benefits are additive.
  • Intelligent Data Selection Significantly Reduces Computational Load: By carefully selecting training samples, EsaCL drastically reduces the computational cost (FLOPs) without sacrificing performance, making it more practical for real-world applications.
  • EsaCL Offers Robustness: The method shows greater robustness to varying levels of data removal compared to other approaches.

Key Results

  • EsaCL achieves performance competitive with state-of-the-art methods on the tested benchmarks.
  • It uses substantially reduced memory and computational resources compared to existing methods, particularly SparCL. For example, on CIFAR-100, EsaCL-ER500 achieves comparable accuracy to SparCL-ER500 but with significantly lower training time and memory footprint (e.g., 16h vs. 23h training time and 40.0 vs. 83.3 memory footprint at 0.6 sparsity).
  • The ablation studies confirm that both sharpness-aware pruning and intelligent data selection are crucial for EsaCL's effectiveness and efficiency.

Limitations and Future Work

  • Limitations: The paper acknowledges that while EsaCL offers significant improvements, there's still room for enhancement. The performance decline in EsaCL without SA is noted as more pronounced than without SP, highlighting the importance of SA.
  • Future Work: The authors suggest several promising directions:
  • Developing improved methods for data subset selection.
  • Creating better approaches for searching and optimizing within flat regions of the objective function.
  • Conducting more rigorous theoretical analyses of EsaCL.

Summary updated

BibTeX
@inproceedings{ren2024esacl,
  author = {Weijieying Ren and Vasant G. Honavar},
  title = {{EsaCL: An Efficient Continual Learning Algorithm}},
  booktitle = {SDM},
  year = {2024},
  doi = {10.1137/1.9781611978032.19},
}
Figure