Abstract
While pre-trained language models like BERT have revolutionized many NLP tasks, directly fine-tuning them for high-resource Neural Machine Translation (NMT) often yields disappointing results due to "catastrophic forgetting." This paper introduces CTNMT (Concerted Training framework for NMT), a novel approach combining asymptotic distillation, dynamic switching gates, and rate-scheduled learning to successfully integrate BERT into NMT, achieving state-of-the-art BLEU score improvements even on massive datasets.
Introduction: The Challenge of Catastrophic Forgetting
In many NLP tasks, initializing a model with BERT and fine-tuning it leads to massive performance gains. However, Neural Machine Translation (NMT) is a different beast. In resource-rich NMT scenarios (where training data exceeds millions of sentence pairs), simply plugging BERT into a Transformer and fine-tuning it often provides little to no benefit, and can sometimes even degrade performance compared to a baseline model.
The authors identify the core culprit as catastrophic forgetting. High-capacity NMT models require hundreds of thousands of training steps to fit massive translation datasets. When BERT is updated alongside the NMT model for this long, it "forgets" the universal language knowledge it acquired during its pre-training phase. The paper aims to find a way to inject BERT's deep contextual knowledge into NMT models without letting the grueling translation training regimen overwrite that valuable pre-trained information.
The CTNMT Framework
To tackle catastrophic forgetting, the authors propose a three-pronged Concerted Training framework (CTNMT):
- Asymptotic Distillation: Instead of just using BERT's weights as a starting point, the authors treat a frozen BERT model as a "teacher" and the NMT encoder as a "student." They add a mean-squared-error (MSE) loss penalty to force the NMT encoder's hidden states to mimic BERT's hidden states. This acts as a regularization technique to constantly remind the NMT model of BERT's knowledge without adding any new trainable parameters that would slow down inference.
- Dynamic Switch: Not all sentences need the same amount of pre-trained knowledge. The authors introduce a gating mechanism that dynamically controls how much information flows from the BERT model versus the standard NMT encoder. It calculates a weight between 0 and 1 for each element, allowing the network to adaptively fuse the two representations based on the input context.
- Rate-Scheduled Learning: Traditionally, all parts of an NMT model are updated at the same learning rate. CTNMT decouples the learning rates. It uses a "slanted triangular learning rate" policy for the BERT parameters—meaning the learning rate briefly increases and then undergoes a long decay. This allows the NMT parameters to converge quickly while only modestly updating the BERT parameters, further preventing catastrophic forgetting.
Experimental Setup
The authors evaluated their framework on three standard, large-scale machine translation benchmarks:
- WMT14 English-German (En-De): 4.5 million sentence pairs.
- WMT14 English-French (En-Fr): 36 million sentence pairs (a massive dataset to test high-resource limits).
- WMT18 English-Chinese (En-Zh): 2.2 million sentence pairs.
Key Insights
- Layer Selection: Counterintuitively, using the last hidden layer of BERT is not optimal for NMT. The authors found that the second-to-last layer works significantly better because it contains more generalized linguistic representations compared to the task-biased final layer.
- Encoder vs. Decoder: Pre-trained language models are highly effective when applied to the NMT encoder, but less so for the decoder. The decoder's reliance on cross-attention from the source sequence makes pre-trained LM integration more complex.
- Bidirectionality: When comparing BERT (bidirectional) and GPT-2 (unidirectional) as feature extractors for the NMT encoder, BERT performed better, highlighting the importance of bidirectional context for source sentence understanding.
Results and Performance
The combination of the three CTNMT techniques yielded impressive quantitative gains across all benchmarks.
- WMT14 En-De: The CTNMT base model achieved a 30.1 BLEU score, a +2.9 BLEU improvement over the standard Transformer base. It even outperformed the much larger Transformer Big model (28.4 BLEU).
- WMT14 En-Fr: On this massive 36M pair dataset, CTNMT improved upon the state-of-the-art Transformer Big model by over 1.2 BLEU (reaching 42.3 BLEU).
- WMT18 En-Zh: The model achieved a +1.6 BLEU improvement over the baseline (reaching 38.9 BLEU).
Ablation studies showed that while each technique (distillation, switching, scheduling) provided a ~2 BLEU boost on En-De individually, combining all three provided an additional ~0.5 to 1.0 BLEU, proving they are highly complementary.
Conclusion and Future Work
The CTNMT framework successfully mitigates catastrophic forgetting, allowing NMT models to leverage the rich representations of BERT even in high-resource settings. The primary remaining challenge is the effective integration of pre-trained models into the NMT decoder. While experiments with GPT-2 were conducted, the gains were not significant due to the decoder's fundamental difference from standard language models. This remains a key area for future research.
Summary updated