Abstract
Exploiting large pretrained models for various NMT tasks have gained a lot of visibility recently. In this work we study how BERT pretrained models could be exploited for supervised Neural Machine Translation. We compare various ways to integrate pretrained BERT model with NMT model and study the impact of the monolingual data used for BERT training on the final translation quality. We use WMT-14 English-German, IWSLT15 English-German and IWSLT14 English-Russian datasets for these experiments. In addition to standard task test set evaluation, we perform evaluation on out-of-domain test sets and noise injected test sets, in order to assess how BERT pretrained representations affect model robustness.
Introduction
By 2019, BERT had revolutionized tasks like sentiment analysis and question answering, but its role in Neural Machine Translation (NMT) was less clear. Most NMT research focused on using BERT for unsupervised translation or extremely low-resource settings. This paper addresses whether a pretrained BERT model helps in standard, supervised NMT. Specifically, the authors investigate the optimal integration of BERT into a Transformer-based NMT system, its impact on domain generalization, and its effect on model robustness against noisy inputs.
The study utilizes several benchmark datasets including WMT-14 (English-German) for large-scale evaluation, and IWSLT15 (English-German) and IWSLT14 (English-Russian) for low-resource simulations. Generalization is tested on out-of-domain sets like Wikipedia, OpenSubtitles, and KDE technical documentation.
Methods
The researchers focused on the encoder side of the NMT system, comparing four main architectures against a standard "Transformer-big" baseline:
- Embedding (Emb): BERT serves as a trainable word embedding layer.
- Fine-Tuning (FT): The entire NMT encoder is initialized with BERT's weights and then trained for translation.
- Freeze: The encoder is initialized with BERT but weights are frozen, forcing only the decoder and attention mechanisms to learn.
- NMT-src BERT: BERT is pretrained only on the source side of the translation data.
The study found that BERT's Masked Language Modeling (MLM) task provides the primary value for NMT, while Next Sentence Prediction (NSP) is largely unnecessary.
Results and Analysis
Architecture Performance and Domain Adaptation
The "Fine-Tuning" (FT) approach consistently outperformed other methods. Notably, the "Freeze" approach performed poorly, suggesting that NMT encoders must learn translation-specific representations rather than just general language understanding.
As shown in Figure 4, BERT-initialized models (particularly News.FT and Wiki.FT) significantly outperformed the baseline on out-of-domain data. For instance, on the KDE technical documentation set, the BERT-based model improved performance by nearly 1.0 BLEU point over the baseline, despite neither being trained on technical data.
Low-Resource Scenarios
In low-resource settings, BERT initialization acts as a powerful regularizer. Standard large Transformers often fail to converge on small datasets like IWSLT14 English-Russian.
Figure 6 highlights the dramatic impact in low-resource conditions. On English-Russian, the baseline achieved only 9.6 BLEU, whereas the BERT-initialized model reached 18.1 BLEU—nearly doubling the performance.
Robustness to Noise
While BERT models achieved higher absolute BLEU scores on noisy data (typos, unknown tokens), the relative performance drop when noise was introduced remained similar to the baseline. BERT provides a stronger starting point but does not inherently solve the sensitivity of Transformers to character-level perturbations.
Conclusion
This work demonstrates that BERT provides a significantly better starting point for NMT models, especially in low-resource or out-of-domain scenarios. Effective integration requires fine-tuning the encoder rather than freezing it. Future work may explore integrating pretrained models into the decoder and developing more specialized pretraining objectives to further enhance robustness to real-world noisy text.
Summary updated