Open Interpretability Models Contributors Research Posts About

Gradient Episodic Memory for Continual Learning

Source

Citation. David Lopez-Paz and Marc'Aurelio Ranzato (both Facebook Artificial Intelligence Research). "Gradient Episodic Memory for Continual Learning". Advances in Neural Information Processing Systems 30 (NIPS 2017), Long Beach. arXiv:1706.08840, version 6 of 13 September 2022 (version 1: 26 June 2017, version 5: 4 November 2017). The arXiv comment says "Published at NIPS 2017", and the venue agrees with the dates. Code: facebookresearch/GradientEpisodicMemory. The paper gives no funding statement. The acknowledgements thank Martin Arjovsky for the quadratic-program view of the method.

Status. Planned. #4782 (catastrophic interference, weight-space programming and LoRA) would use it. The maintainer designs any campaign to fix a model, so this page reports evidence and records questions only.

Read. On 2026-11-19 we downloaded the arXiv PDF (version 6) and read its text, extracted with pdftotext. We read in the source's own text the abstract, sections 1 to 6, Algorithm 1, Tables 1 to 3 and Appendix A (the hyper-parameter grids). From Appendix B we read the summary lines (final accuracy, backward and forward transfer) of all 15 evaluation matrices, and the full MNIST-permutation matrices. We skimmed the reference list. We did not see Figure 1 as an image: its bars and curves came back as axis labels only. No model read the source for us.

Summary

Claim. A learner sees a stream of tasks, each example once. It can keep a small memory of examples from each past task. Before each update, it projects the gradient so that the loss on no past task's memory goes up. This limits forgetting and still lets learning on a new task improve old tasks.

Method.

Findings, as the source reports them.

Setting Result
MNIST permutations, final ACC / BWT / FWT (Appendix B.1) single 0.6018 / −0.1980 / 0.0093. independent 0.4523 / 0 / 0. multimodal 0.7561 / −0.0275 / 0.0059. EWC 0.6185 / −0.1653 / 0.0054. GEM 0.8260 / 0.0247 / 0.0088
MNIST rotations, final ACC / BWT / FWT (Appendix B.2) single 0.5307 / −0.0896 / 0.4254. independent 0.6241 / 0 / 0. multimodal 0.7585 / −0.0243 / 0.0177. EWC 0.5461 / −0.2047 / 0.5524. GEM 0.8607 / 0.0048 / 0.6647
CIFAR-100, final ACC / BWT / FWT (Appendix B.3) single 0.4631 / −0.1226 / −0.0006. independent 0.4235 / 0 / 0. iCARL 0.5462 / −0.0830 / 0. EWC 0.4984 / −0.0799 / −0.0077. GEM 0.6783 / 0.0042 / −0.0078
CPU training time, seconds (Table 1) Permutations: single 11, independent 11, multimodal 14, EWC 179, GEM 77. Rotations: 11, 16, 13, 169 and 135
CIFAR-100 ACC against total memory size 200 / 1,280 / 2,560 / 5,120 (Table 2) GEM 0.487 / 0.579 / 0.633 / 0.654. iCARL 0.436 / 0.494 / 0.500 / 0.508
MNIST rotations ACC/BWT after 1, 2 and 5 epochs per task (Table 3) single on shuffled data 0.83/−0.00, 0.87/−0.00, 0.89/−0.00. single 0.53/−0.08, 0.49/−0.25, 0.43/−0.40. EWC 0.55/−0.19, 0.59/−0.17, 0.61/−0.11. GEM 0.86/+0.05, 0.88/+0.02, 0.89/−0.02
The cost (section 4.4) The dual has T = 20 variables, against p = 1,109,240 parameters for CIFAR-100. The bottleneck is one gradient for each past task at each step

The authors read Table 3 as GEM matching the "oracle performance upper-bound" of training on shuffled data from all tasks.

Where the claims go beyond the evidence

The authors name three limits themselves. GEM makes no use of structured task descriptors, and its memory policy is simple. Each step needs one backward pass for each task.

Use in this repo