Improving Non-autoregressive Neural Machine Translation with Monolingual Data

Jiawei Zhou, Phillip Keung

Abstract

Non-autoregressive (NAR) neural machine translation is usually done via knowledge distillation from an autoregressive (AR) model. Under this framework, we leverage large monolingual corpora to improve the NAR model's performance, with the goal of transferring the AR model's generalization ability while preventing overfitting. On top of a strong NAR baseline, our experimental results on the WMT14 En-De and WMT16 En-Ro news translation tasks confirm that monolingual data augmentation consistently improves the performance of the NAR model to approach the teacher AR model's performance, yields comparable or better results than the best non-iterative NAR methods in the literature and helps reduce overfitting in the training process.

Introduction

Standard Neural Machine Translation (NMT) models are typically autoregressive (AR), meaning they generate translations sequentially, one token at a time. While this approach yields high accuracy, it is computationally expensive and slow during inference. Non-autoregressive (NAR) models aim to solve this by generating all tokens in parallel, potentially offering speedups of 2x to 15x.

However, NAR models face significant challenges, most notably the multimodality problem, where independent token generation can lead to inconsistent translations (e.g., mixing two valid phrases into a nonsensical one). Furthermore, NAR models often suffer from overfitting when trained via knowledge distillation from AR "teacher" models. This paper demonstrates that large-scale monolingual data augmentation can effectively address these issues.

Methodology

The authors propose a robust framework for boosting NAR performance through three primary mechanisms:

1. Monolingual Data Augmentation

The core strategy involves treating the NAR model as a function approximator for a high-quality AR teacher. By translating massive amounts of source-language monolingual text with the AR teacher, the researchers create a synthetic parallel corpus. Training the NAR model on this "distilled" data allows it to better capture the underlying translation distribution of the teacher model.

2. Structural Improvements

To improve the flow of information, the researchers implemented several architectural tweaks:

  • Gaussian Kernel Smoothing: Instead of simple source-to-decoder copying, they use a Gaussian kernel to smooth and interpolate encoded source embeddings, providing a more continuous and usable input for the decoder.
  • Decoder Modifications: They removed the "future mask" in the Transformer decoder, allowing the model to see the entire target sequence during training. Positional embeddings were also added to every decoder layer to maintain structural awareness.

3. Length Prediction and Decoding

Since NAR models must determine the output length beforehand, the model predicts a target length and employs "length-parallel decoding." This involves generating multiple candidate translations of varying lengths and using the AR teacher to select the most probable output.

Experimental Results

The model was evaluated on the WMT16 English-Romanian (En-Ro) and WMT14 English-German (En-De) benchmarks. The results demonstrate that adding monolingual data significantly narrows the gap between NAR and AR performance.

Comparison of BLEU scores across different translation tasks and models.

As shown in the results table, the proposed NAR baseline with monolingual data achieved state-of-the-art results for non-iterative models. Specifically, on the Ro→En task, the model reached 33.57 BLEU, coming within 0.11 points of the AR teacher (beam 1). On En→De, it achieved 25.73 BLEU, outperforming previous non-iterative methods like FlowSeq.

Analysis of Overfitting

A key insight of this research is the role of monolingual data as a regularizer. In standard NAR training, there is often a massive gap between training loss and test loss, indicating poor generalization.

Average loss of converged model vs. percentage of monolingual data used.

Figure 1 illustrates this phenomenon: as the percentage of monolingual data increases, the training loss actually rises while the test loss drops. This convergence of losses indicates that the model is learning more generalizable features rather than simply memorizing the synthetic training set. This regularization effect is particularly noticeable in long sentences (80+ words), where the NAR model's performance often doubles compared to the baseline without monolingual data.

Conclusion

This work proves that the performance of non-autoregressive translation models can be significantly enhanced through better data utilization rather than just architectural complexity. By leveraging large-scale monolingual data and a teacher-student framework, the researchers achieved state-of-the-art non-iterative translation quality while maintaining the high inference speeds that make NAR models desirable. Future work may explore the impact of domain mismatch in monolingual corpora and the potential for combining these data-driven gains with iterative refinement techniques.

Summary updated

Abstract

Non-autoregressive (NAR) neural machine translation is usually done via knowledge distillation from an autoregressive (AR) model. Under this framework, we leverage large monolingual corpora to improve the NAR model's performance, with the goal of transferring the AR model's generalization ability while preventing overfitting. On top of a strong NAR baseline, our experimental results on the WMT14 En-De and WMT16 En-Ro news translation tasks confirm that monolingual data augmentation consistently improves the performance of the NAR model to approach the teacher AR model's performance, yields comparable or better results than the best non-iterative NAR methods in the literature and helps reduce overfitting in the training process.
BibTeX
@inproceedings{zhou2020improving,
  author = {Jiawei Zhou and Phillip Keung},
  title = {{Improving Non-autoregressive Neural Machine Translation with Monolingual Data}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.171},
}
Figure