TL;DR
Continual learning in aligned Large Language Models (LLMs) remains severely broken: sequentially fine-tuning models on new tasks causes catastrophic drops in reasoning, coding, and instruction-following. To rigorously test this, the authors introduce TRACE, a benchmark covering domain-specific, multilingual, coding, and mathematical tasks, and propose Reasoning-augmented Continual Learning (RCL)—a method that leverages generated rationales to preserve foundational reasoning and accelerate new task adaptation.
What Problem Does This Paper Address?
Retraining state-of-the-art LLMs from scratch every time they need new domain expertise, languages, or tools is computationally prohibitive. Continual learning (CL)—updating an existing model incrementally on sequential tasks—is the natural alternative.
However, existing NLP continual learning benchmarks rely on simplistic classification tasks (e.g., AG News, DBpedia) that models have likely already encountered during pre-training. Furthermore, traditional benchmarks only assess performance on the target sequential tasks, neglecting the crucial capabilities introduced during alignment: instruction following, safety, and general multi-step reasoning.
Methods
The authors introduce both an evaluation framework and a mitigation strategy:
- TRACE Benchmark & Novel CL Metrics: TRACE introduces three metrics to measure post-training degradation alongside classic metrics like Overall Performance (OP) and Backward Transfer (BWT):
- General Ability Delta ($\Delta R^G$): Performance drift across standard general NLP benchmarks.
- Instruction Following Delta ($\Delta R^I$): Evaluated via pairwise GPT-4 comparisons against the un-tuned base model.
- Safety Delta ($\Delta R^S$): Evaluated using expert-annotated harmful prompts to monitor guardrail decay.
- Evaluated Training Baselines: Sequential Full-Parameter Fine-Tuning (SeqFT), Parameter-Efficient Fine-Tuning via sequential LoRA (LoRASeqFT), Replay (mixing in 10% past task data + alignment data from LIMA), and In-Context Learning (ICL).
- Reasoning-augmented Continual Learning (RCL): Inspired by the observation that learning tasks with explanatory rationales preserves cognitive skills, RCL uses GPT-4 to generate step-by-step reasoning annotations for target training datasets. The student LLM is trained to generate the explanation before producing the final answer, nudging it to leverage inherent reasoning rather than memorizing surface patterns.
[Standard Continual Learning] Input Question ───────────────────────► Answer
[Reasoning-augmented (RCL)] Input Question ──► Reasoning Path ──► Answer
Datasets
- TRACE Benchmark (Sequential Training Tasks): 8 diverse datasets standardized to 5,000 training and 2,000 testing instances each:
- Domain-Specific: ScienceQA, FOMC (financial sentiment), MeetingBank (meeting summarization).
- Multilingual: C-STANCE (Chinese stance detection), 20Minuten (German text simplification).
- Code Completion: Py150 (Python line completion).
- Mathematical Reasoning: NumGLUE-cm and NumGLUE-ds.
- Evaluation Sets:
- General Ability: MMLU (knowledge), BBH and GSM8K (reasoning/math), TyDiQA (multilingual QA), BoolQ (reading comprehension), PIQA (commonsense), and MBPP (code).
- Instruction Adherence & Safety: Self-Instruct, LIMA prompts, and CoNa (hate-speech mitigation).
Key Insights and Ideas
- Scale does not solve forgetting: Moving from 7B to 70B parameters does not inoculate models against catastrophic forgetting. LLaMA-2-70B-Chat exhibited severe degradation on earlier tasks (a backward transfer score of -17.5%).
- Math and reasoning are exceptionally fragile: When sequentially fine-tuned, reasoning capabilities collapse first. For instance, LLaMA-2-13B-Chat's GSM8K accuracy plummeted from 43.14% down to just 2.12%.
- LoRA is worse for alignment retention: Counterintuitively, while LoRA restricts weight updates to low-rank matrices, it suffered a worse drop in instruction following than full-parameter tuning (losing 94% of head-to-head evaluations against the base model).
- Reasoning acts as a regularizer: Tasks that naturally contain step-by-step rationales (e.g., ScienceQA) actually boosted general reasoning benchmarks (BBH) during sequential training, whereas purely label-focused math tasks eroded it. RCL exploits this mechanism intentionally.
- Task order introduces high variance: Task sequence order heavily dictates final retention; shuffling the sequence caused average performance on LLaMA-2-7B to drop from 48.7 to 32.9.
Key Results
- Sample Efficiency with RCL: On LLaMA-2-7B-Chat, RCL achieved 46.6 OP with just 500 training samples per task, drastically outperforming standard SeqFT at 500 samples (23.0 OP) and approaching SeqFT trained on 5,000 samples (48.7 OP).
- Reasoning Preservation: On GSM8K, RCL outperformed standard SeqFT and Replay by 12.7 and 13.2 percentage points, respectively.
- Instruction Following: RCL enhanced the model's win rate on instruction-following evaluations by 8% over SeqFT and 5% over Replay.
- Safety Stability: Unlike general capabilities, safety behavior remained largely stable across continual training across all baseline methods (most evaluations resulted in ties against the base model).
Limitations and Future Work
- Hardware and Scale Limits: Due to resource constraints, 70B models could only be evaluated using LoRA rather than full-parameter sequential tuning.
- Order Sensitivity: The paper highlights that task ordering significantly influences catastrophic forgetting, but leaves formal strategies for order optimization to future research.
- Data Contamination Risks: As future base LLMs scrape broader public web corpora, benchmark datasets like TRACE risk being internalized during pre-training, requiring continual updates to the benchmark suite.
Summary updated