Abstract
Teaching Large Language Models (LLMs) new languages often results in "catastrophic forgetting," where the model loses its original task-solving capabilities in English. This paper investigates Continual Fine-Tuning (CFT) strategies to mitigate this trade-off. By analyzing dataset similarity and representation drift, the authors demonstrate that aligning the structure of multilingual training data with original English tasks can preserve, and even enhance, model performance. We evaluate mitigation techniques such as Generative Replay (GR) and Heuristic-based Layer Freezing (LF), finding that GR effectively bridges the distributional gap between training phases.
Introduction
As LLMs are deployed globally, the need for multilingual proficiency without sacrificing core reasoning and instruction-following skills (Task Ability, or TA) has become paramount. Continual Fine-Tuning (CFT) offers a computationally efficient path to add Language Ability (LA) to pre-trained models. However, the sequential nature of CFT often leads to weight interference. This study explores the mechanisms behind this forgetting and proposes metrics and strategies to maintain a balance between LA and TA.
Methodology
The researchers employed a two-phase CFT framework:
- Phase 1 (Task Alignment): Fine-tuning a base model on English instruction datasets (e.g., Alpaca) to establish robust Task Ability.
- Phase 2 (Language Expansion): Fine-tuning the Phase 1 model on multilingual data (e.g., MultiAlpaca, mOpenOrca) to acquire Language Ability.
To combat forgetting, two primary interventions were tested:
- Generative Replay (GR): Incorporating a small fraction of English data generated by the Phase 1 model into the Phase 2 training set. This serves as a rehearsal mechanism to stabilize the model's task-solving representations.
- Heuristic-based Layer Freezing (LF): Identifying and freezing layers that exhibited the most significant parameter shifts during Phase 1, hypothesized to be the primary repositories of Task Ability.
Representation Drift and Dataset Similarity
A central finding of this work is that the degree of forgetting is heavily dependent on the similarity between the Phase 1 and Phase 2 datasets. The authors introduced Dataset Embedding Similarity (DES) and Model Parameter Difference (MPD) to quantify this relationship.
As shown in Figure 1, when the multilingual data (MultiAlpaca) mirrors the task structure of the English data (Alpaca), the internal representations remain aligned. In such cases, the model often shows improved performance across both languages, as the underlying task logic is reinforced. Conversely, dissimilar tasks cause the model's "thought space" to drift, leading to catastrophic forgetting.
Quantifying Weight Interference
To understand which parts of the model are most affected during fine-tuning, the researchers measured the MPD across different layers.
Figure 2 illustrates that weight shifts are not uniform across the network. In Mistral-7B, specific layers (particularly toward the end of the model) show higher variance. This observation informed the "LF_H2" strategy, which freezes the top-10 most changed layers to preserve the learned task structures.
Key Results and Discussion
- Mitigation Success: Generative Replay (specifically the GR_5 variant) emerged as the most robust strategy. For Mistral-7B, it improved average Language Ability from 0.203 to 0.249 while significantly curbing the decline in instruction-following performance compared to standard fine-tuning.
- Model-Specific Dynamics: Mistral-7B demonstrated superior cross-lingual transfer and LA gains. In contrast, Llama-3-8B exhibited higher resistance to representation drift but was less responsive to the proposed mitigation strategies for boosting LA.
- The Bridge Hypothesis: The success of Generative Replay suggests it acts as a "distributional bridge," preventing the model from over-specializing in the new language and maintaining a path back to its original task-solving state.
Conclusion
This research highlights that catastrophic forgetting in LLMs is not an inevitable consequence of multilingual expansion but is largely driven by task dissimilarity. By utilizing Generative Replay and monitoring representation drift, researchers can effectively expand the linguistic reach of LLMs while preserving their core cognitive capabilities. Future work will focus on scaling these findings to larger model architectures and optimizing layer-specific regularization techniques.
Summary updated