[Paper Review] On Tiny Episodic Memories in Continual Learning
The paper shows that very small episodic memories with Experience Replay (ER) substantially outperform specialized continual learning methods, even with as little as one example per class, and that repetitive memory training can improve generalization.
In continual learning (CL), an agent learns from a stream of tasks leveraging prior experience to transfer knowledge to future tasks. It is an ideal framework to decrease the amount of supervision in the existing learning algorithms. But for a successful knowledge transfer, the learner needs to remember how to perform previous tasks. One way to endow the learner the ability to perform tasks seen in the past is to store a small memory, dubbed episodic memory, that stores few examples from previous tasks and then to replay these examples when training for future tasks. In this work, we empirically analyze the effectiveness of a very small episodic memory in a CL setup where each training example is only seen once. Surprisingly, across four rather different supervised learning benchmarks adapted to CL, a very simple baseline, that jointly trains on both examples from the current task as well as examples stored in the episodic memory, significantly outperforms specifically designed CL approaches with and without episodic memory. Interestingly, we find that repetitive training on even tiny memories of past tasks does not harm generalization, on the contrary, it improves it, with gains between 7\% and 17\% when the memory is populated with a single example per class.
Motivation & Objective
- Motivate continual learning (CL) to leverage prior experience via memory to transfer knowledge to new tasks.
- Quantitatively assess the effectiveness of a very small episodic memory under single-pass data settings.
- Compare Experience Replay (ER) against regularization-based and memory-based CL methods across multiple benchmarks.
- Analyze why repetitive training on tiny memories does not harm, and can improve, generalization.
- Propose and evaluate memory-writing strategies to populate tiny episodic memories.
Proposed method
- Use a single-pass through data with two task streams: cross-validation tasks and evaluation tasks. Train with Experience Replay (ER) by concatenating current task minibatches with memory minibatches and updating memory each step. Compare ER to baselines: finetune, EWC, A-GEM, and MER on four benchmarks. Evaluate different memory-writing strategies (reservoir sampling, ring buffer, k-means, mean-of-features). Analyze how memory size impacts average accuracy and forgetting across datasets. Provide insights into why repetitive memory training can regularize learning via data-dependent effects.
Experimental results
Research questions
- RQ1Does Experience Replay with tiny episodic memories outperform existing CL methods on diverse benchmarks?
- RQ2How does memory size (even as small as one example per class) affect average accuracy and forgetting?
- RQ3Why does training on memory examples alongside current-task data improve generalization rather than cause overfitting?
- RQ4Which memory-writing strategies best utilize tiny memories, and can a hybrid approach outperform individual strategies?
- RQ5What is the computational overhead of ER compared to stronger CL baselines?
Key findings
- ER with tiny episodic memories substantially outperforms finetune, EWC, A-GEM, and MER across MNIST, CIFAR, CUB, and miniImageNet.
- Gains of 7% to 17% are observed when the memory contains a single example per class, compared to state-of-the-art CL methods.
- Repetitive training on memory examples does not harm generalization and can act as a data-dependent regularizer when training on subsequent tasks.
- Reservoir sampling excels with larger memories, while ring buffer, k-means, and mean-of-features perform best with extremely small memories to ensure class balance.
- A hybrid memory-writing strategy (switching from reservoir to ring buffer when any class is under-represented) achieves strong performance and favorable compute time.
- ER generally incurs only modest overhead over finetuning, and is cheaper than A-GEM or MER.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.