Abstract
Pre-trained multilingual models, such as mBERT, are widely used for zero-shot cross-lingual transfer. However, standard fine-tuning on a specific downstream task in a single language often results in "catastrophic forgetting," where the model loses its foundational cross-lingual alignment and language modeling capabilities. This paper proposes a continual learning approach using Gradient Episodic Memory (GEM) to mitigate this issue. By treating the original pre-training objectives—Masked Language Modeling (MLM) and Cross-lingual Sentence Retrieval (XSR)—as "previous tasks" to be preserved, GEM constrains the fine-tuning process to maintain the model's cross-lingual integrity. Our results show that this method significantly reduces the degradation of pre-training metrics and improves zero-shot transfer performance on Part-of-Speech (POS) tagging and Named Entity Recognition (NER) tasks by over 1% on average.
Introduction
The success of multilingual models like mBERT and XLM-R stems from their ability to learn shared representations across languages during pre-training. This enables zero-shot cross-lingual transfer, where a model fine-tuned on a task in a source language (e.g., English) can be directly applied to target languages (e.g., Spanish or Greek). Despite this success, the standard fine-tuning process is inherently destructive to the model's original cross-lingual properties.
The Problem: Catastrophic Forgetting
When a model is fine-tuned naively on a downstream task, its weights are updated solely to minimize the loss for that specific task. This often leads to catastrophic forgetting of the pre-training objectives. As shown in Figure 1, naive fine-tuning on an English POS task causes the English MLM perplexity to skyrocket from 10.68 to 216.84, indicating a near-total loss of the original language modeling capability. Simultaneously, Cross-lingual Sentence Retrieval (XSR) accuracy drops across all tested language pairs, signifying a breakdown in cross-lingual alignment.
Methodology: Fine-tuning as Continual Learning
To address this, the authors frame fine-tuning as a continual learning problem. They compare three main approaches:
- Naive Fine-Tuning: Standard weight updates for the new task.
- Multi-Task Fine-Tuning (MTF): Jointly training on the new task and original pre-training tasks.
- Gradient Episodic Memory (GEM): A constrained optimization approach that uses a small "episodic memory" of examples from the pre-training tasks (MLM and XSR).
GEM acts as a regularizer by ensuring that the gradient updates for the downstream task do not increase the loss on the memory tasks. This allows the model to adapt to the new task while strictly preserving its foundational cross-lingual knowledge.
Experimental Setup
The researchers evaluated these methods on two primary downstream tasks: Part-of-Speech (POS) tagging using Universal Dependencies 2.0 and Named Entity Recognition (NER) using CoNLL datasets. English served as the source language, with target languages including Spanish, French, Greek, Russian, German, and Dutch. The episodic memory for GEM was populated with English Wikipedia data for MLM and Europarl parallel corpus data for XSR.
Key Results and Discussion
The GEM framework proved highly effective at preserving pre-training performance. For instance, GEM with an MLM constraint maintained English MLM perplexity at 12.99, a stark contrast to the 216.80 observed with naive fine-tuning.
More importantly, this preservation translated into superior zero-shot transfer performance. As detailed in Figure 4, GEM-based models consistently outperformed both naive fine-tuning and MTF across POS and NER tasks. Specifically, GEM constrained by both MLM and XSR achieved an average accuracy of 86.95% for POS tagging and 75.46% for NER, representing significant gains over the baseline.
An interesting finding was that using only English-language data in the episodic memory was sufficient to preserve cross-lingual transfer to other languages. This suggests that the cross-lingual parameters in mBERT are highly interconnected; anchoring the model's performance in one language effectively stabilizes its performance across others.
Conclusion
Catastrophic forgetting is a significant hurdle in the fine-tuning of multilingual models. By employing continual learning techniques like GEM, researchers can effectively regularize the fine-tuning process to preserve the model's cross-lingual alignment. This approach not only maintains the model's general language understanding but also leads to measurable improvements in zero-shot cross-lingual transfer for critical NLP tasks.
Summary updated