Abstract
Incremental learning (IL) is essential to realize human-level intelligence in neural networks. However, existing IL scenarios and datasets are unqualified for assessing forgetting in Pre-trained Language Models (PLMs), giving an illusion that PLMs do not suffer from catastrophic forgetting. To this end, we propose a challenging IL scenario called instance-incremental learning (IIL) and a novel dataset called Concept-1K, which supports an order of magnitude larger IL steps. Based on experiments on Concept-1K, we reveal that billion-parameter PLMs still suffer from catastrophic forgetting, and the forgetting is affected by model scale, pretraining, and buffer size. Furthermore, existing IL methods and the popular finetuning technique, LoRA, fail to achieve satisfactory performance. Our study provides a novel scenario for future studies to explore catastrophic forgetting in PLMs and encourages the design of more powerful techniques to alleviate it.
Introduction: The Challenge of Catastrophic Forgetting
Large Language Models (LLMs) excel at diverse tasks but face a significant hurdle: catastrophic forgetting. This phenomenon occurs when a model loses previously acquired knowledge while learning new information. Incremental Learning (IL) aims to mimic human intelligence by enabling sequential learning without overwriting past knowledge.
A critical flaw in current IL research is data leakage. Many benchmarks utilize concepts that were likely present in the model's pretraining data. If a model already "knows" a concept like "Bitcoin," testing its ability to learn it incrementally is misleading. Additionally, simple classification tasks often fail to challenge billion-parameter models.
The Concept-1K Dataset
To address these issues, the authors introduced Concept-1K, a benchmark featuring 1,023 concepts across six domains: Economy, Culture, Science, Environment, Education, and Health.
Key features of Concept-1K include:
- Anti-Leakage: All concepts emerged after January 2022 (e.g., specific modern contexts of "Metaverse" or "Web3.0"), ensuring they were not in the pretraining data of models like LLaMA.
- Interpretable Structure: Knowledge is represented as triplets (e.g., Groundwater Recharge, IsA, Hydrological Process), allowing precise tracking of what is remembered or forgotten.
- Scale: It supports ten times more incremental steps than traditional benchmarks, providing a more rigorous test of long-term retention.
Methodology: Instance-level Incremental Learning (IIL)
The researchers propose Instance-level Incremental Learning (IIL), where individual concepts serve as the unit of learning rather than broad tasks. They evaluated several approaches:
- Full Fine-Tuning: Updating all model parameters.
- LoRA (Low-Rank Adaptation): A parameter-efficient method updating only a small fraction of weights.
- In-Context Learning (ICL): Providing examples in the prompt without weight updates.
- Data Replay: Maintaining a small buffer of old data to mix with new training samples.
Success was measured using Memorization Accuracy (MA), Generalization Accuracy (GA), and their respective forgetting rates (MF and GF).
Key Insights: The LoRA Paradox and Model Scale
One of the most striking findings is the LoRA Paradox. Despite its popularity for efficiency, LoRA performed worse than full fine-tuning in incremental learning scenarios.
As shown in Figure 5, LoRA restricts the model's capacity to integrate new knowledge deeply. It can lead to higher forgetting rates because it lacks the parameter flexibility to accommodate new information alongside the old. Other insights include:
- Concrete vs. Abstract: LLMs retain "concrete" technical terms better than rapidly evolving abstract fields.
- Limits of Scale: While larger models (e.g., 2.8B vs. 70M) generalize better, they still suffer from catastrophic forgetting without specific mitigation.
- Pretraining Dynamics: Early pretraining builds "learning muscles," but late-stage pretraining can make a model more rigid, improving generalization at the cost of raw memorization for new concepts.
Experimental Results
- Zero-Shot Baseline: Models scored near 0% on Concept-1K initially, confirming the absence of data leakage.
- Forgetting in LLaMA-2: When fine-tuned on 10 sequential tasks, LLaMA-2-7B achieved 100% immediate accuracy on new tasks, but performance on the first task plummeted as the sequence progressed.
- Effectiveness of Replay: Data Replay remains the most effective defense. A small buffer of 2,000 samples (12% of the total) increased Memorization Accuracy from ~58% to over 77%.
- ICL Limitations: In-context learning did not facilitate true learning; performance depended entirely on the prompt containing the specific answer.
Conclusion and Future Directions
The study highlights that current techniques like LoRA and standard fine-tuning are insufficient for true incremental learning in LLMs. While Data Replay helps, it requires storing old data, which is not always feasible. Future research should focus on developing algorithms that allow LLMs to integrate new information into their neural architecture more like humans, without relying on external "cheat sheets" of past data.
Summary updated