TL;DR
Continual learning in Large Language Models (LLMs) usually triggers catastrophic forgetting because updates for new tasks overwrite parameters critical to old ones. To solve this, the authors introduce Attribution-Guided Fine-Tuning (AGFT), a framework that uses Layer-wise Relevance Propagation (LRP) to identify and protect task-critical parameters via a gradient mask. This mechanistic approach significantly reduces forgetting while preserving the model's ability to adapt to new domains.
What Problem Does This Paper Address?
When LLMs are sequentially trained on a series of new tasks (continual learning), they suffer from catastrophic forgetting—their performance on previously learned tasks degrades sharply.
Existing remedies like data replay (re-training on old data buffers), parameter freezing (locking certain layers), or regularization (penalizing parameter deviations) treat the LLM as a black box. They lack a mechanistic understanding of where knowledge is actually distributed across the millions or billions of parameters. As a result, they might accidentally freeze parameters needed for learning new tasks or modify parameters vital to retaining prior knowledge.
The authors demonstrate that while independent tasks naturally utilize different parameter subsets, standard sequential fine-tuning forces these task-critical parameters to highly overlap, creating severe interference and subsequent forgetting.
Methods
The authors propose Attribution-Guided Fine-Tuning (AGFT), which shifts the focus from input-token attribution to parameter attribution.
- LRP-Based Parameter Attribution: The authors adapt Layer-wise Relevance Propagation (LRP)—specifically utilizing bilinear attribution principles—to calculate element-wise importance scores directly for the LLM's internal weights and biases. This allows next-token prediction logits to be mathematically backpropagated through Feed-Forward Networks (FFN) and Multi-Head Attention (MHA) blocks to map exactly which parameters contributed to a correct output.
- Gradient Masking: For a new task, AGFT computes a historical importance prior by taking the element-wise maximum of parameter relevance scores across all previous tasks. During fine-tuning, this prior acts as an element-wise "gradient gate" (ranging from 0 to 1). Parameters critical to past tasks receive a gate value near 0 (suppressing updates), while less relevant parameters remain close to 1, allowing them to adapt freely to the new task.
AGFT is highly flexible and works seamlessly for both full-parameter fine-tuning and parameter-efficient methods like LoRA.
Datasets
The framework was evaluated on two major benchmarks:
- Concept-1K: A benchmark consisting of 10 diverse tasks designed to evaluate instance-incremental learning and generalization across distinct concepts.
- TRACE: A comprehensive continual learning benchmark. The authors selected 7 representative tasks covering financial text understanding (FOMC), meeting summarization (MeetingBank), code completion (PY150), scientific QA (ScienceQA), numerical reasoning (NumGLUE-cm, NumGLUE-ds), and long-context comprehension (20Minute).
Key Insights and Ideas
- The Overlap Trap: In isolated single-task training, different tasks rely on largely distinct subsets of parameters (low overlap). However, sequential continual learning naturally drives the important parameters of new tasks to heavily overlap with old ones, causing catastrophic interference.
- Sparse Deep Encoding: By analyzing the "Top-$k$ mass ratio" of parameter importance, the authors discovered that task-specific knowledge is encoded in a highly sparse manner, particularly within the deeper transformer blocks.
- Mechanistic vs. Statistical Importance: Traditional regularization methods like Elastic Weight Consolidation (EWC) rely on the Fisher Information Matrix, which is often poorly estimated in massive LLMs. AGFT's LRP-based approach tracks the actual internal computational flow, providing a much more reliable signal for parameter importance.
Key Results
AGFT consistently outperformed strong baselines (Sequential fine-tuning, EWC, Replay, and Layer Freezing) across both GPT-2 (full fine-tuning) and Llama-3.2-3B-Instruct (LoRA).
- Concept-1K Performance: On Llama-3.2-3B, AGFT achieved the highest average score of 16.35, compared to 13.75 for standard sequential tuning (SEQ) and 13.58 for Replay.
- TRACE Performance: On the challenging TRACE benchmark, AGFT achieved an average score of 41.99, significantly beating SEQ (36.45) and Replay (33.36). It achieved the top score in 5 out of 7 individual tasks.
Limitations and Future Work
The primary limitation acknowledged by the authors is computational overhead. Calculating element-wise parameter importance via LRP requires an extra attribution step (running independent single-task training or forward/backward passes to compute priors), which introduces additional computational and memory costs during the training pipeline. Future work may focus on optimizing this attribution step to make it more efficient for ultra-large scale models.
Summary updated