Introduction
Standard neural sequence models, such as the Transformer, are typically autoregressive (AR), meaning they generate tokens sequentially from left to right. While effective, this process is inherently non-parallelizable, creating a significant latency bottleneck for real-time applications like machine translation and image captioning.
Non-autoregressive (NAR) models attempt to generate all tokens simultaneously to improve inference speed. However, they often suffer from the "multimodality problem," where independent token predictions lead to incoherent or redundant outputs. This paper proposes a deterministic NAR model that bridges the quality gap through iterative refinement, treating sequence generation as a series of denoising steps.
Methodology
Architecture
The proposed model utilizes three primary Transformer-based components to balance speed and quality:
- Encoder: Processes the source sequence into a continuous representation.
- Decoder 1: Generates an initial "rough draft" of the translation in a single parallel step.
- Decoder 2: A refinement block that iteratively improves the sequence. Crucially, the weights of Decoder 2 are shared across all refinement iterations, allowing the model to refine the output as many times as necessary during inference.
Training Framework
The model is grounded in two frameworks: a Latent Variable Model, where intermediate drafts are marginalized to reach the final output, and a Conditional Denoising Autoencoder (DAE). During training, the model learns to reconstruct a target sequence from a corrupted version.
To optimize performance, the authors employ a hybrid loss function combining draft likelihood and reconstruction error. Additionally, knowledge distillation is used to simplify the training data; by training on the output of a high-quality autoregressive "teacher" model, the NAR model can more easily learn the underlying data distribution.
Experimental Results
The model was evaluated across several benchmarks, including IWSLT’16 (En-De), WMT’14 (En-De), WMT’16 (En-Ro), and MS COCO for image captioning.
Quality and Speed Trade-offs
As shown in the results table below, the model achieves a significant speedup over standard Transformers while maintaining 90–95% of the translation quality. On the WMT’14 En-De task, the model reached 21.54 BLEU with adaptive refinement, compared to the AR baseline of 23.77.
Key Insights
- Hardware Efficiency: The speedups are most pronounced on GPUs (2–3x for translation), where the model can fully leverage parallel computing hardware. On CPU-intensive tasks like image captioning, speedups reached up to 5x.
- Refinement Beyond Training: The model demonstrates the ability to improve output quality even when the number of refinement steps during inference exceeds those seen during training.
- Adaptive Refinement: By using a stopping criterion based on the Jaccard distance between successive iterations, the model can dynamically optimize the trade-off between speed and accuracy.
Discussion and Limitations
While the iterative refinement approach significantly narrows the gap between AR and NAR models, some challenges remain. NAR models are still prone to token repetition (e.g., "the the"), requiring simple heuristics like collapsing consecutive identical tokens. Furthermore, while the gap is closing, the highest-quality AR models still outperform NAR models in absolute BLEU scores. Future work may involve exploring more sophisticated corruption processes during training to further enhance the denoising capability of the refinement decoder.
Summary updated