Abstract
Instruction-tuning (IT) is essential for making LLMs follow directions, but it surprisingly harms the model's ability to be fine-tuned on new tasks—a phenomenon known as catastrophic forgetting. This paper demonstrates that a model's "transferability" is deeply linked to its in-context learning (ICL) performance; by improving multi-task optimization and mixing in pre-training data, researchers can mitigate this forgetting and significantly boost ICL generalization.
Introduction
Instruction-tuning—training a model on hundreds of diverse tasks with explicit instructions—is the standard way to create "chat" models that generalize to new tasks. However, the underlying mechanics remain poorly understood. Does the model learn a general "learning algorithm" (In-Context Learning), or is it simply getting better at recognizing task patterns it has already seen?
The authors investigate the tension between Multi-Task Learning (MTL) and Generalization. In traditional machine learning, training on too many tasks simultaneously can cause "interference," where the model struggles to find a parameter space that satisfies everything at once. This paper asks if the "catastrophic forgetting" of general knowledge during instruction-tuning actually hinders the model's ability to learn in-context, and whether better multi-task training strategies can fix it.
Methodology
The researchers used LM-Adapted T5-Large models as their base. To probe the mechanics of instruction-tuning, they employed several key techniques:
- Measuring Transfer via LoRA: They measured "model transfer" by performing few-shot fine-tuning on unseen tasks using Low-Rank Adaptation (LoRA). This allowed them to see how "adaptable" the model's parameters remained after instruction-tuning.
- Sampling Strategies: They compared Proportional Sampling (weighting by dataset size), Uniform Sampling, and Reverse Annealing.
- Continual Learning: They tested a "replay" method where they mixed unsupervised pre-training data (from the C4 dataset) into the instruction-tuning process to see if it prevented the model from forgetting its original capabilities.
The Transfer-ICL Connection
The most striking finding is a massive correlation (Spearman $R = 0.936$) between how easily a model can be fine-tuned on a task and how well it performs that same task in-context. This suggests that ICL isn't just "task inference"; it relies heavily on the model's parameters being "close" to a valid solution for that task.
However, instruction-tuning acts as a double-edged sword. While IT makes models better at following instructions, it actually harms their general ability to adapt to new tasks via fine-tuning compared to the raw pre-trained model. The model becomes "stiff," specializing in the training tasks at the expense of general flexibility.
Data Limits and the "Less is More" Paradox
Surprisingly, training on fewer samples per task (e.g., 50 vs. 5,000) resulted in better in-context learners. By limiting the data per task, the authors prevented the model from over-fitting to specific training tasks, thereby preserving more of the pre-trained knowledge necessary for general transfer.
Catastrophic forgetting happens very early in the instruction-tuning process. However, as training continues, the model eventually begins to "re-learn" how to transfer, and ICL performance starts to climb in lockstep with this regained adaptability.
Key Results and Conclusion
- Optimization Matters: Proportional sampling was the most effective strategy, achieving the lowest test loss on seen tasks and the best ICL performance on unseen tasks.
- C4 Mixing Works: Adding unsupervised data during instruction-tuning significantly reduced forgetting. For every 3 steps of instruction-tuning, adding 1 step of C4 training led to a noticeable increase in ICL generalization.
- Data Limits: Reducing the per-task data limit from 5,000 to 50 samples improved the Rouge-L score on unseen tasks significantly, confirming that "over-instruction-tuning" is a real risk.
In conclusion, the next frontier of instruction-tuning isn't just "more data," but better Multi-Task Learning algorithms. Incorporating techniques that explicitly balance task gradients or mitigate interference could lead to much more capable and flexible LLMs.
Summary updated