[Paper Review] Episodic Memory in Lifelong Language Learning
The paper proposes an episodic memory model with sparse experience replay and local adaptation to enable lifelong language learning from a stream of datasets without dataset identifiers, improving performance on text classification and question answering while reducing memory usage.
We introduce a lifelong language learning setup where a model needs to learn from a stream of text examples without any dataset identifier. We propose an episodic memory model that performs sparse experience replay and local adaptation to mitigate catastrophic forgetting in this setup. Experiments on text classification and question answering demonstrate the complementary benefits of sparse experience replay and local adaptation to allow the model to continuously learn from new datasets. We also show that the space complexity of the episodic memory module can be reduced significantly (~50-90%) by randomly choosing which examples to store in memory with a minimal decrease in performance. We consider an episodic memory component as a crucial building block of general linguistic intelligence and see our model as a first step in that direction.
Motivation & Objective
- Motivate continual lifelong language learning where data come from multiple datasets without explicit dataset boundaries.
- Introduce an episodic memory module to support sparse experience replay and local adaptation in an encoder–decoder language model.
- Demonstrate that memory-based approaches mitigate catastrophic forgetting and enable positive transfer across datasets.
- Show that memory space can be reduced significantly with random write while maintaining performance.
- Compare with baselines and state-of-the-art continual learning methods across classification and QA tasks.
Proposed method
- Use a Transformer/BERT-based example encoder and a separate pretrained key network to generate memory keys.
- Store each seen example as a key–value pair in a two-sided episodic memory (keys from the memory's key network, values are input–label pairs).
- Perform sparse experience replay by periodically sampling memory and updating the base model with retrieved examples.
- At inference, perform local adaptation by retrieving K nearest neighbors from memory and updating model parameters briefly to improve the current prediction.
- Keep the key network fixed to avoid representation drift and explore memory-writing via random selection to control space complexity.
- Compare against Enc-Dec, A-GEM, Replay, MbPA variants, and Multitask learning (MTL) on text classification and QA.
Experimental results
Research questions
- RQ1Can an episodic memory with sparse replay and local adaptation support lifelong language learning from a stream of datasets without dataset identities?
- RQ2Does combining sparse experience replay with local adaptation outperform single-component baselines in text classification and question answering?
- RQ3How does memory usage (space) affect performance, and can memory be reduced with minimal performance loss?
- RQ4What is the impact of using a fixed key network versus updating keys during training on forgetting and transfer?
Key findings
- MbPA++ (memory-based parameter adaptation with sparse replay) yields the strongest performance among continual learning baselines on both text classification and QA.
- Sparse experience replay with a 1% replay rate provides measurable benefits without converting the task into full multitask learning.
- Local adaptation using memory-nearest neighbors significantly improves predictions over random neighbor selection, highlighting the importance of retrieving relevant examples.
- A fixed key network prevents drift and is crucial for stable memory-based adaptation; updating keys during training degrades performance relative to a fixed-key MbPA variant.
- MbPA++ narrows the gap to multitask learning (MTL) and demonstrates positive transfer in text classification across datasets (though QA still lags behind single-dataset models).
- Memory capacity experiments show reasonable performance even with as little as 10% of full memory, and increasing the number of memory neighbors (K) generally improves results within limits.
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.