TL;DR
This paper introduces Relational Experience Replay (RER), a novel bi-level learning framework for continual learning. RER adaptively tunes the relationships between tasks and the importance of individual samples, leading to improved performance and a better balance between learning new information and retaining old knowledge.
What Problem Does This Paper Address?
Continual learning (CL) aims to train models on a sequence of tasks without forgetting previously learned knowledge. A major challenge is "catastrophic forgetting," where learning a new task overwrites knowledge from old tasks. Rehearsal-based methods, which store a subset of old data in a memory buffer, are effective but often treat all tasks and samples equally. This overlooks the fact that tasks can be related or dissimilar, and individual samples within a task have varying importance for learning. These limitations lead to suboptimal performance and a poor trade-off between "stability" (retaining old knowledge) and "plasticity" (learning new knowledge).
Methods
The core of RER is a bi-level learning framework. It consists of two main components:
- Main Net: This is the primary model responsible for learning.
- Relation Replay Net (RRN): This is a novel neural network that learns to assign adaptive weights to training samples.
The bi-level optimization works as follows:
- Inner Loop: The Main Net is trained on a batch of data containing both new task samples and samples from the memory buffer. The RRN provides dynamic weights for these samples, influencing how much each contributes to the loss. This loop focuses on plasticity.
- Outer Loop: The RRN is trained using a separate batch of data from the memory buffer. This loop focuses on stability by ensuring the RRN learns to assign weights that preserve old knowledge.
The RRN takes as input abstract information about paired samples (loss values and logit norms) from new and old tasks. This allows it to capture task relationships and sample importance. The paper theoretically shows that the RRN implicitly models task relationships by considering the similarity between gradients.
Datasets
The proposed method was evaluated on three standard image datasets:
- CIFAR-10
- CIFAR-100
- Tiny ImageNet
The paper also mentions experiments on two text datasets (20News and DBpedia) in the abstract, but these are not detailed in the provided text.
Key Insights and Ideas
- Task relationships matter: The similarity or dissimilarity between new and old tasks significantly impacts how knowledge is retained or forgotten. RER explicitly models this.
- Sample importance is crucial: Not all samples within a dataset contribute equally to learning. "Hard" samples near decision boundaries are more valuable for refining the model. RER assigns adaptive weights to account for this.
- Bi-level optimization is key: Separating the learning of sample weights (RRN) from the main task learning (Main Net) through a bi-level framework allows for better adaptation and avoids issues with direct end-to-end training.
- Adaptive weighting is more flexible: Manually tuning hyperparameters for stability-plasticity trade-off is suboptimal. RER's automated, adaptive weighting strategy offers a more dynamic and effective solution.
Key Results
- RER consistently improves the performance of various rehearsal-based baselines (ER, ER-ACE, DER++) across different datasets and settings.
- On CIFAR-10, RER achieved significant performance gains, for example, improving DER++ by up to 3.08% in accuracy with a buffer size of 50.
- The method demonstrated a better balance between "stability" and "plasticity," leading to higher average accuracy (ACC) and reduced forgetting (improved Backward Transfer, BWT).
- Ablation studies showed the importance of the warm-up stage for the RRN and that the bi-level optimization is superior to end-to-end training.
Limitations and Future Work
- Warm-up Stage: The RRN requires an adequate warm-up stage to learn meaningful sample weights. Insufficient warm-up can lead to performance degradation, while excessively long warm-up might not leave enough iterations for the Main Net to be guided by the learned weights. The paper suggests an empirical setting for the warm-up stage.
- Computational Cost: While the bi-level optimization is effective, it introduces computational overhead compared to simpler methods.
- Future Work: The paper suggests integrating RER with other rehearsal-based baselines and exploring its application in more complex CL scenarios. The authors also highlight the potential for further research into optimizing the RRN's architecture and input features.
Summary updated