[Paper Review] Meta-Learning with Sparse Experience Replay for Lifelong Language Learning
This paper proposes a meta-learning framework with sparse experience replay for lifelong language learning that prevents catastrophic forgetting in a realistic, single-pass, no-task-identifier setting. By integrating meta-learning with a lightweight, randomly written episodic memory, the method achieves state-of-the-art performance on text classification and relation extraction benchmarks using BERT, while maintaining low computational and memory costs.
Lifelong learning requires models that can continuously learn from sequential streams of data without suffering catastrophic forgetting due to shifts in data distributions. Deep learning models have thrived in the non-sequential learning paradigm; however, when used to learn a sequence of tasks, they fail to retain past knowledge and learn incrementally. We propose a novel approach to lifelong learning of language tasks based on meta-learning with sparse experience replay that directly optimizes to prevent forgetting. We show that under the realistic setting of performing a single pass on a stream of tasks and without any task identifiers, our method obtains state-of-the-art results on lifelong text classification and relation extraction. We analyze the effectiveness of our approach and further demonstrate its low computational and space complexity.
Motivation & Objective
- To address catastrophic forgetting in lifelong language learning without task identifiers or multiple training passes.
- To develop a memory-efficient continual learning method for pre-trained language models like BERT.
- To enable effective knowledge transfer across sequential NLP tasks using meta-learning and sparse replay.
- To evaluate methods under realistic continual learning constraints, avoiding common experimental flaws.
- To demonstrate that episodic meta-learning with sparse replay outperforms existing replay-based and regularization-based approaches.
Proposed method
- Extends online meta-learning (OML) and a neuromodulatory meta-learning algorithm (ANML) to NLP by adding an episodic memory module for experience replay.
- Uses a sparse, random write mechanism to store a limited number of past examples in memory, with replay performed periodically during meta-optimization.
- Treats experience replay as a query set in meta-learning, directly optimizing for forgetting prevention through gradient alignment.
- Employs a shared output head and trains on a single pass over data streams, simulating real-world continual learning.
- Performs inner-loop updates only on a small, learnable projection layer (PLN) on top of BERT, minimizing parameter updates and computational cost.
- Uses a meta-optimizer that alternates between learning on new tasks and fine-tuning on replayed memory examples to stabilize learning.
Experimental results
Research questions
- RQ1Can meta-learning with sparse experience replay prevent catastrophic forgetting in lifelong language learning without task identifiers?
- RQ2How does the frequency and sparsity of experience replay affect model performance in continual NLP tasks?
- RQ3Does episodic meta-learning with periodic replay outperform standard replay-based methods in terms of accuracy and efficiency?
- RQ4How does the method scale under reduced memory capacity, and is it more memory-efficient than prior approaches?
- RQ5Can a simple random write strategy for memory selection achieve strong performance compared to more complex heuristics?
Key findings
- OML-ER achieves state-of-the-art performance on lifelong text classification and relation extraction under realistic continual learning settings.
- The method maintains high accuracy even with only 1% memory capacity, showing significant memory efficiency compared to MbPA++ which drops by 3% at 10% capacity.
- Performance remains stable with reduced memory, with no significant drop in accuracy (p=0.952) at 1% capacity for text classification.
- A 1% memory capacity causes a small but significant drop in relation extraction accuracy (p=0.040), but performance remains strong overall.
- Episodic meta-learning with replay every ~101 meta-optimizer steps outperforms standard replay every 600 optimizer steps (p=0.001), indicating the importance of meta-optimization timing.
- The method achieves fast training and inference, with most updates focused on a single linear layer on top of BERT, minimizing computational overhead.
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.