Understanding and Improving Sequence-to-Sequence Pretraining for Neural Machine Translation

Wenxuan Wang, Wenxiang Jiao, Yongchang Hao, Xing Wang, Shuming Shi, Zhaopeng Tu, Michael R. Lyu

Introduction

Sequence-to-sequence (Seq2Seq) pretraining, exemplified by models like mBART, has significantly advanced the state-of-the-art in Neural Machine Translation (NMT). By pretraining both the encoder and the decoder on massive monolingual corpora, these models capture rich linguistic knowledge. However, the exact role and impact of the pretrained decoder remain under-explored. This research identifies that while the pretrained decoder enhances translation diversity and adequacy, it also introduces "objective discrepancies" that can lead to hallucinations and beam search degradation.

The Challenges of Seq2Seq Pretraining

The transition from pretraining to finetuning involves two primary gaps: domain discrepancy and objective discrepancy.

Domain Discrepancy

Pretraining typically utilizes massive, general-purpose web crawls like CommonCrawl (CC). In contrast, NMT tasks often target specific domains such as News or TED talks. This mismatch is particularly evident in the "long tail" of vocabulary. Low-frequency words in the target domain may be rare or absent in the pretraining data, hindering the model's ability to generalize.

Comparison of word frequency distributions between CommonCrawl (CC) and WMT19 English datasets.

Objective Discrepancy

During pretraining, the model learns a denoising objective—reconstructing a noisy sentence in the same language. During finetuning, it learns to translate between languages. This shift can cause the model to over-rely on its language modeling capabilities, prioritizing fluency over source-text faithfulness. This "over-estimation" leads the model to assign high probabilities to fluent but irrelevant "distractor" sentences, a primary cause of hallucinations.

Proposed Solutions

To mitigate these discrepancies, the authors propose two straightforward strategies:

  1. In-Domain Pretraining: The model undergoes an additional phase of denoising pretraining on monolingual data that matches the target domain (e.g., NewsCrawl for news translation) before finetuning.
  2. Input Adaptation: During finetuning, noise (masking, deletion, and permutation) is introduced to the source sentences of the bilingual training data. This encourages the model to maintain its denoising capabilities while learning to translate, enhancing its robustness against noisy inputs.

Key Insights and Results

The study reveals that the benefits of a pretrained decoder are often masked by standard metrics like BLEU on single-reference datasets. When evaluated against multiple human references, the pretrained decoder shows a significant performance jump (+2.0 BLEU), indicating it produces more diverse and valid translations.

Robustness and Probability Calibration

The proposed fixes significantly improve model behavior. As shown in the per-token probability analysis, the "General" pretrained model often assigns dangerously high probabilities to distractor sentences. The "Ours" approach (combining in-domain pretraining and input adaptation) successfully lowers these distractor probabilities toward the baseline level while keeping the reference sentence probabilities high.

Per-token probability for reference and distractor sentences across different models.

Quantitatively, these methods yielded a +4.4 BLEU improvement on small-scale WMT19 En-De and a +2.7 BLEU gain on En-Ro. Furthermore, the Hallucination under Perturbation (HUP) score dropped from 15.5% to 3.0%, marking a substantial increase in reliability.

Conclusion

The pretrained decoder in Seq2Seq models is a powerful but sensitive component. By addressing domain and objective discrepancies through in-domain pretraining and input adaptation, researchers can harness the decoder's potential for diversity and adequacy while minimizing the risks of hallucination and over-estimation.

Summary updated

BibTeX
@inproceedings{wang2022understanding,
  author = {Wenxuan Wang and Wenxiang Jiao and Yongchang Hao and Xing Wang and Shuming Shi and Zhaopeng Tu and Michael R. Lyu},
  title = {{Understanding and Improving Sequence-to-Sequence Pretraining for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.185},
}
Figure