Skip to main content
QUICK REVIEW

[Paper Review] Gradient Episodic Memory with a Soft Constraint for Continual Learning

Guannan Hu, Wu Zhang|arXiv (Cornell University)|Nov 16, 2020
Domain Adaptation and Few-Shot LearningComputer Science20 references9 citations
TL;DR

This paper proposes ε-SOFT-GEM, a novel continual learning method that enhances Average Gradient Episodic Memory (A-GEM) by introducing a soft constraint ε ∈ [0,1] to balance learning new tasks and preserving old knowledge. By enforcing a gradient angle constraint between episodic memory and updated gradients, ε-SOFT-GEM achieves state-of-the-art accuracy with minimal computational and memory overhead, outperforming A-GEM and other benchmarks in single-epoch training.

ABSTRACT

Catastrophic forgetting in continual learning is a common destructive phenomenon in gradient-based neural networks that learn sequential tasks, and it is much different from forgetting in humans, who can learn and accumulate knowledge throughout their whole lives. Catastrophic forgetting is the fatal shortcoming of a large decrease in performance on previous tasks when the model is learning a novel task. To alleviate this problem, the model should have the capacity to learn new knowledge and preserve learned knowledge. We propose an average gradient episodic memory (A-GEM) with a soft constraint $ε\in [0, 1]$, which is a balance factor between learning new knowledge and preserving learned knowledge; our method is called gradient episodic memory with a soft constraint $ε$ ($ε$-SOFT-GEM). $ε$-SOFT-GEM outperforms A-GEM and several continual learning benchmarks in a single training epoch; additionally, it has state-of-the-art average accuracy and efficiency for computation and memory, like A-GEM, and provides a better trade-off between the stability of preserving learned knowledge and the plasticity of learning new knowledge.

Motivation & Objective

  • To address catastrophic forgetting in continual learning, where neural networks degrade on previous tasks when learning new ones.
  • To improve upon A-GEM by introducing a soft constraint ε that balances learning new knowledge and preserving old knowledge.
  • To enable models to not only avoid increasing loss on old tasks but actively decrease it, acquiring novel knowledge from episodic memory.
  • To maintain computational and memory efficiency comparable to A-GEM while improving performance.
  • To explore adaptive strategies for optimizing ε through heuristic search over multiple training repeats.

Proposed method

  • Introduces a soft constraint ε ∈ [0,1] that balances the trade-off between plasticity (learning new tasks) and stability (preserving old tasks).
  • Modifies the gradient update rule so that the angle between the episodic memory gradient and the updated gradient is ≤ 90°, ensuring loss reduction on old tasks.
  • Proposes ε-SOFT-GEM as a variant of A-GEM that uses a reference gradient from episodic memory and applies the soft constraint during optimization.
  • Introduces A-A-GEM, which averages gradients from episodic memory and new task data, with the same angular constraint to maintain old task performance.
  • Employs a heuristic optimization strategy to search for optimal ε values across multiple training repeats, updating ε based on performance trends.
  • Uses gradient normalization and constraint enforcement with minimal additional computation, preserving A-GEM’s efficiency.

Experimental results

Research questions

  • RQ1Can a soft constraint ε improve the balance between plasticity and stability in continual learning compared to fixed constraints?
  • RQ2Does enforcing a gradient angle constraint ≤ 90° between episodic memory and updated gradients lead to active knowledge acquisition from old tasks?
  • RQ3Can ε-SOFT-GEM achieve higher average accuracy than A-GEM and other baselines while maintaining similar computational and memory efficiency?
  • RQ4How does the size of episodic memory affect performance in ε-SOFT-GEM, A-GEM, and A-A-GEM?
  • RQ5What is the optimal value of ε for different continual learning benchmarks like Permuted MNIST and Split-CIFAR?

Key findings

  • ε-SOFT-GEM outperforms A-GEM and several continual learning benchmarks in terms of average accuracy and forgetting reduction, especially in a single training epoch.
  • The optimal ε value was found to be 0.07185 for Permuted MNIST and 0.5 for Split-CIFAR after five training repeats using the heuristic optimization strategy.
  • ε-SOFT-GEM achieves better stability (lower forgetting) and plasticity (faster learning) than regularization-based methods like EWC and MAS.
  • A-A-GEM performs nearly as well as ε-SOFT-GEM but without requiring hyperparameter tuning, suggesting the angular constraint is effective even without ε.
  • Larger episodic memory sizes improve performance in ε-SOFT-GEM, A-GEM, and A-A-GEM, with A-T and F-T metrics increasing due to better representation of old task gradients.
  • The method maintains near-identical computational and memory efficiency to A-GEM, as it adds only one extra gradient normalization step.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.