NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Making the Most of BERT in Neural Machine Translation

Jiacheng Yang, Mingxuan Wang, Hao Zhou, Chengqi Zhao, Weinan Zhang, Yong Yu, Lei Li

Introduction

Pre-trained language models like BERT have set new benchmarks across various natural language processing tasks. However, their integration into Neural Machine Translation (NMT) has historically been challenging, particularly in "resource-rich" scenarios where datasets contain millions of sentence pairs. In these settings, standard fine-tuning often fails due to catastrophic forgetting: the extensive gradient updates required for NMT convergence eventually overwrite the universal linguistic knowledge BERT acquired during pre-training.

This paper introduces Concerted Training (CTNMT), a framework designed to effectively harness BERT's power for NMT without losing its pre-trained advantages. By treating BERT as a persistent knowledge source rather than a simple initialization point, CTNMT achieves significant gains even on massive datasets.

The CTNMT Framework

The CTNMT framework rests on three primary technical pillars designed to stabilize training and preserve pre-trained features:

  1. Asymptotic Distillation (AD): Rather than just initializing the encoder with BERT, the system treats BERT as a "teacher." During training, the NMT encoder (the student) is penalized via Mean Squared Error (MSE) if its hidden states drift too far from BERT’s original representations. This acts as a continuous regularizer.
  2. Dynamic Switching Gate (DS): Recognizing that not every token requires the same level of external context, the authors implement a gating mechanism. This gate adaptively fuses representations from the pre-trained BERT model and the NMT’s task-specific encoder, deciding word-by-word how much to trust pre-trained knowledge versus newly learned features.
  3. Rate-Scheduled Updating: To prevent noise from the NMT decoder from corrupting BERT's weights, the authors use a "slanted triangular learning rate" for BERT parameters. The learning rate for BERT peaks early and decays to zero well before the rest of the model finishes training, effectively "freezing" the knowledge in place.
The CTNMT framework architecture featuring Dynamic Switch and Asymptotic Distillation.

Experimental Setup and Results

The framework was evaluated on three major benchmarks: WMT14 English-German (En-De, ~4.5M pairs), WMT14 English-French (En-Fr, ~36M pairs), and WMT18 English-Chinese (En-Zh, ~2.2M pairs).

As shown in the results below, the CTNMT framework consistently outperforms baseline Transformer models and previous state-of-the-art methods. Notably, on the English-French task—a massive dataset where BERT integration typically yields diminishing returns—the CTNMT "Base" model outperformed the much larger "Transformer Big" architecture.

Performance comparison of CTNMT against existing NMT systems across three language pairs.

Key Performance Highlights:

  • English-German: Achieved a gain of up to 3.0 BLEU points over the baseline Transformer.
  • English-French: Improved by 1.2 BLEU over the Transformer Big model, demonstrating scalability to very large datasets.
  • English-Chinese: Showed a 1.6 BLEU improvement over the baseline.

Key Insights and Discussion

  • Encoder Dominance: The authors found that BERT is significantly more effective when integrated into the NMT encoder. Because the NMT decoder is autoregressive, BERT's bidirectional nature can introduce inconsistencies during the generation process.
  • BERT vs. GPT-2: Despite GPT-2 being a causal model similar to an NMT decoder, BERT remained the superior choice for encoder initialization due to its more powerful bidirectional context for source sentence understanding.
  • Layer Selection: The second-to-last layer of BERT often provided more useful features for translation than the final layer, which can be overly specialized for BERT's original masked language modeling objective.

Conclusion and Future Work

CTNMT successfully bridges the gap between pre-trained language models and large-scale NMT. While the framework significantly boosts translation quality, it does come with a computational cost; training throughput is approximately 9.2x slower than a standard NMT model. Future research will focus on more efficient decoder integration and model compression techniques to allow these high-performance models to run on resource-constrained devices.

Summary updated

BibTeX
@inproceedings{yang2020towards,
  author = {Jiacheng Yang and Mingxuan Wang and Hao Zhou and Chengqi Zhao and Weinan Zhang and Yong Yu and Lei Li},
  title = {{Towards Making the Most of BERT in Neural Machine Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6479},
}
Figure