[Paper Review] Towards Making the Most of BERT in Neural Machine Translation
This paper proposes CTnmt, a concerted training framework that integrates BERT into neural machine translation (NMT) by combining asymptotic distillation, a dynamic switching gate, and rate-scheduled learning to mitigate catastrophic forgetting. The method achieves state-of-the-art performance, improving BLEU scores by up to 3.0 on WMT14 English-German and surpassing the previous SOTA by 1.4 BLEU on the same benchmark.
GPT-2 and BERT demonstrate the effectiveness of using pre-trained language models (LMs) on various natural language processing tasks. However, LM fine-tuning often suffers from catastrophic forgetting when applied to resource-rich tasks. In this work, we introduce a concerted training framework (CTNMT) that is the key to integrate the pre-trained LMs to neural machine translation (NMT). Our proposed CTNMT consists of three techniques: a) asymptotic distillation to ensure that the NMT model can retain the previous pre-trained knowledge; b) a dynamic switching gate to avoid catastrophic forgetting of pre-trained knowledge; and c) a strategy to adjust the learning paces according to a scheduled policy. Our experiments in machine translation show CTNMT gains of up to 3 BLEU score on the WMT14 English-German language pair which even surpasses the previous state-of-the-art pre-training aided NMT by 1.4 BLEU score. While for the large WMT14 English-French task with 40 millions of sentence-pairs, our base model still significantly improves upon the state-of-the-art Transformer big model by more than 1 BLEU score. The code and model can be downloaded from https://github.com/bytedance/neurst/ tree/master/examples/ctnmt.
Motivation & Objective
- Address the catastrophic forgetting problem that arises when fine-tuning BERT in resource-rich neural machine translation (NMT) settings.
- Overcome the limitations of direct BERT integration into NMT, which often fails to yield gains on large-scale benchmarks like WMT14.
- Develop a unified framework that effectively fuses pre-trained language model knowledge with NMT’s sequence-to-sequence learning.
- Improve NMT performance by preserving BERT’s universal knowledge while adapting to translation-specific tasks through joint training.
- Demonstrate the effectiveness of the proposed method on large-scale, high-resource translation datasets such as WMT14 English-French and English-Chinese.
Proposed method
- Apply asymptotic distillation to transfer knowledge from the pre-trained BERT (teacher) to the NMT encoder (student) by minimizing L2 or cross-entropy loss between their hidden representations.
- Introduce a dynamic switching gate that adaptively fuses BERT-encoded representations with the NMT encoder’s output based on input-dependent attention, enabling context-aware fusion.
- Implement a rate-scheduled learning strategy that separately controls the learning rates of BERT and NMT components, preventing overfitting and preserving pre-trained knowledge.
- Train the NMT model end-to-end with the three components—distillation, dynamic gate, and scheduled learning—without adding extra parameters.
- Use the last layer of BERT as the initial encoder representation, while allowing the NMT encoder to learn task-specific features during joint training.
- Optimize the combined model using a multi-task objective that includes NMT loss and distillation loss, ensuring both translation quality and knowledge retention.
Experimental results
Research questions
- RQ1Can pre-trained BERT be effectively fine-tuned in high-resource NMT settings without catastrophic forgetting?
- RQ2How can the complementary strengths of BERT’s contextual representations and NMT’s sequence modeling be jointly optimized in translation tasks?
- RQ3What training strategies are most effective in preserving BERT’s pre-trained knowledge while adapting it to NMT?
- RQ4Does dynamic fusion of BERT and NMT encoder features lead to better performance than fixed or direct replacement of embeddings?
- RQ5Can scheduled learning rates for BERT and NMT components improve convergence and final performance compared to uniform fine-tuning?
Key findings
- CTnmt achieves a 3.0 BLEU score improvement on the WMT14 English-German translation benchmark, surpassing the previous state-of-the-art by 1.4 BLEU.
- On the large-scale WMT14 English-French dataset with 40 million sentence pairs, CTnmt outperforms the SOTA Transformer-big model by over 1.0 BLEU.
- The method yields a 1.6 BLEU gain on the English-Chinese WMT14 benchmark, demonstrating consistent gains across diverse language pairs.
- Asymptotic distillation effectively preserves BERT’s pre-trained knowledge, as evidenced by stable performance during fine-tuning.
- The dynamic switching gate enables better representation fusion, particularly for sentences where BERT or NMT alone performs suboptimally.
- The rate-scheduled learning strategy significantly improves model convergence and final performance by decoupling the update pace of BERT and NMT components.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.