Abstract
Non-autoregressive (NAR) and semi-autoregressive (SAR) models offer significant speedups in machine translation by generating tokens in parallel. However, they often suffer from a performance gap compared to traditional autoregressive models due to a discrepancy between training and inference conditions. We present SMART (Semi-Autoregressive Training), a novel training method that bridges this gap by incorporating model predictions into the training process. SMART enables models to learn error correction, achieving translation quality nearly identical to state-of-the-art autoregressive models while maintaining a substantial speed advantage.
Introduction
The standard for Machine Translation (MT) has long been autoregressive decoding, which generates sentences token-by-token from left to right. While accurate, this sequential process is computationally slow. To address this, Non-Autoregressive (NAR) and Semi-Autoregressive (SAR) models were developed to predict multiple words in parallel. A prominent SAR method, Mask-Predict, iteratively refines a sentence starting from a fully masked sequence.
A major challenge in these models is the "training-inference discrepancy." During standard Non-Autoregressive Training (NART), models are provided with perfect "gold" tokens as context. At inference, however, they must rely on their own imperfect previous predictions. This mismatch leads to degraded performance. SMART aims to resolve this by aligning the training environment with the actual decoding process.
Methods: Semi-Autoregressive Training (SMART)
SMART introduces a two-step training procedure designed to mimic the iterative nature of inference:
- Practice Pass: The model starts with a gold target sequence, masks a random subset of tokens, and predicts the entire sequence. This generates a "predicted" sequence ($Y^{pred}$) containing both correct tokens and model-generated errors.
- Correction Pass: A different random subset of tokens in $Y^{pred}$ is masked. The model is then trained to recover the original gold sequence ($Y^{gold}$) from this noisy, prediction-based input.
By using $Y^{pred}$ as input, the model learns to handle and correct its own mistakes. Crucially, SMART optimizes the loss for all tokens, not just the masked ones. This forces the model to actively verify and correct "observed" tokens rather than just filling gaps.
Results
The researchers evaluated SMART on the WMT’14 English-German (EN-DE) and WMT’17 English-Chinese (EN-ZH) benchmarks using BLEU scores.
SMART consistently improved Mask-Predict performance by 0.5 to 1.0 BLEU points. As shown in the table below, SMART achieves near-parity with strong autoregressive baselines. On WMT’14 EN-DE, SMART reached a BLEU score of 27.65 with only 10 decoding iterations, compared to 27.75 for an Autoregressive Transformer with Beam Search and Knowledge Distillation.
Ablation studies confirmed that predicting all tokens is essential for the model to function as an effective error-corrector. Furthermore, the method's simplicity—requiring no complex latent variables—makes it a robust alternative to existing SAR approaches.
Discussion and Conclusion
SMART effectively closes the performance gap between fast parallel models and slower sequential models. By training the model to "practice" on its own errors, it transforms SAR models from simple gap-fillers into sophisticated error-correcting systems.
While SMART significantly improves quality, some limitations remain. The model still requires an external mechanism for target length prediction, and the "double forward pass" during training increases computational overhead. Future research may focus on optimizing SMART for even fewer decoding iterations to further enhance its speed advantage without sacrificing the quality gains achieved here.
Summary updated