TL;DR
This paper introduces a sequence-level training framework to bridge the quality gap between fast, non-autoregressive translation (NAT) models and their slower, word-by-word counterparts. By moving beyond simple word-matching to more holistic objectives—specifically novel reinforcement learning algorithms and a differentiable "Bag-of-Ngrams" loss—the authors achieve state-of-the-art NAT performance while maintaining a 15x speedup over standard models.
What Problem Does This Paper Address?
Standard Neural Machine Translation (NMT) is autoregressive: it generates text one word at a time, using previous words as context. While accurate, this is slow. Non-Autoregressive Translation (NAT) generates all words simultaneously, which is much faster but introduces the multimodality problem.
Because NAT models predict every position independently, they struggle when a source sentence has multiple valid translations. If the model is trained with standard word-level cross-entropy loss, it gets heavily penalized for choosing a valid word that doesn't match the specific reference word at that exact position. This leads to "overcorrection," where the model produces garbled, repetitive text (e.g., "I have to up up start start working") just to satisfy the loss function. The authors argue that we need training objectives that evaluate the translation as a whole sequence rather than a series of independent slots.
Methods
The authors propose two main sequence-level approaches and a strategy to combine them:
- Customized Reinforcement Learning (RL): Standard RL (like the REINFORCE algorithm) often suffers from high variance, making training unstable. The authors exploit the independent nature of NAT to create more stable variants:
- Reinforce-Step: Assigns a unique reward to each word position rather than one reward for the whole sentence.
- Reinforce-Topk: Reduces variance by calculating gradients exactly for the most likely words and sampling for the rest.
- Traverse-Ref: A novel method that calculates gradients by only traversing words present in the reference sentence, effectively eliminating much of the "noise" in RL training.
- Bag-of-Ngrams (BoN) Objective: The authors introduce a differentiable loss that minimizes the difference between the n-gram counts (sequences of n words) of the model's output and the reference. Unlike standard NMT, the independence of NAT allows this to be calculated efficiently and exactly without expensive approximations.
- Three-Stage Training Strategy: To get the best of all worlds, they use a pipeline:
- Stage 1: Pretrain with standard cross-entropy (fast warmup).
- Stage 2: Finetune with BoN (improves global n-gram distribution).
- Stage 3: Finetune with RL (optimizes for specific metrics like BLEU or ROUGE).
Datasets
The models were evaluated on four standard translation benchmarks:
- WMT14 English-German (En-De) (Both directions)
- WMT16 English-Romanian (En-Ro) (Both directions)
They used the newstest2013 set for validation and newstest2014/2016 for final testing. Knowledge distillation (using a standard autoregressive model to "teach" the NAT model) was used to simplify the training data, a common practice in NAT research.
Key Insights and Ideas
- Independence as a Feature: Usually, the fact that NAT models predict words independently is seen as a weakness. Here, the authors turn it into a mathematical advantage, showing it allows for exact, differentiable n-gram matching and more efficient RL gradient estimation that would be impossible in autoregressive models.
- Robustness to Misalignment: The BoN objective is particularly powerful because it doesn't care where a word appears, only that it appears. This makes it robust to the "shifting" errors common in NAT, where a model might produce a perfect translation that is simply one or two positions off from the reference.
- Correlation with Quality: The authors demonstrate that the BoN loss correlates much more strongly with human-judged translation quality (Pearson correlation of 0.87) than standard cross-entropy (0.56), especially for long sentences.
Key Results
- Significant Quality Gains: The proposed "Seq-NAT" method improved BLEU scores by over 5 points on WMT14 En-De compared to the NAT baseline.
- Competitive Performance: On WMT14 En-De, the model achieved 29.91 BLEU, coming within 1.7 points of the state-of-the-art Transformer while being 15.6x faster at inference time.
- Reduced Errors: Qualitative analysis showed that Seq-NAT significantly reduced "over-translation" (repeated words) and "under-translation" (missing information) compared to baseline NAT models.
Limitations and Future Work
- Computational Cost on CPU: While the model is fast on a GPU during inference, the RL training methods (especially Traverse-Ref) require significant CPU calculations to estimate rewards, which can slow down the training process.
- Metric Dependency: The RL stage is often tuned to a specific metric like BLEU. While this raises scores, it might not always capture all nuances of human language.
- Distance Metrics: The BoN objective currently relies on $L_1$ distance. The authors suggest that exploring other distance metrics or more complex n-gram structures could further improve results.
Summary updated