Introduction
Non-autoregressive translation (NAT) models offer significant speed advantages by generating all words in a sentence simultaneously. However, they often suffer from degraded translation quality due to the "independence assumption," where the model fails to capture syntactic dependencies between output tokens. This leads to multi-modality errors such as token repetition or omission. This paper introduces DePA (Dependency-Aware Decoder), which addresses these limitations through a novel pre-training curriculum and input transformation.
Methodology: The Dependency-Aware Decoder (DePA)
To address the independence assumption, the authors propose the DePA framework, which enhances the NAT decoder through two primary mechanisms.
Forward-Backward Dependency (FBD) Modeling
DePA utilizes a curriculum learning approach for pre-training. The model is sequentially trained to predict tokens in forward (left-to-right), backward (right-to-left), and again forward directions. This "Forward-Backward-Forward" (FBF) sequence, illustrated in Figure 1, teaches the decoder to understand bidirectional dependencies before transitioning to full NAT training. By using triangular attention masks during this phase, the model learns to "look around" the sentence before it is forced to predict everything simultaneously.
Attentive Input Transformation (IT)
Standard NAT models often copy source embeddings directly, which may not align with the target language representation space. DePA introduces an Attentive Input Transformation process that maps source inputs into the target language space. It uses the source text as a "query" to select relevant information from the target vocabulary's embedding matrix. To maintain efficiency, the authors also implement Target-side Embedding Compression.
Experimental Results
The researchers evaluated DePA on standard benchmarks including WMT14 (EN-DE), WMT16 (EN-RO), and IWSLT14/16 (DE-EN). All models utilized Knowledge Distillation (KD) from an autoregressive Transformer-base teacher model.
Performance and Speed
As shown in the results table below, DePA consistently improves performance across various NAT baselines, including Vanilla NAT, GLAT, and CTC-based models. Notably, DePA achieves significant BLEU gains—up to 1.88 points—while maintaining a massive ~15x speedup over the autoregressive teacher.
Key Insights
- Curriculum Learning is Essential: The FBF pre-training sequence is crucial for smoothing the transition to non-autoregressive generation, suggesting that "warming up" the model's understanding of natural language flow is vital.
- Bridging the Representation Gap: Transforming source embeddings into the target space significantly aids the decoder in capturing cross-lingual dependencies, solving the "blueprint" mismatch problem.
- Alleviating Multi-Modality Errors: Case studies indicate that DePA effectively reduces common NAT errors like "stuttering" (token repetition) and word omissions by explicitly modeling inter-word relationships.
Conclusion
DePA demonstrates that modeling dependencies is key to closing the quality gap between NAT and AT models without sacrificing the inherent speed advantages of non-autoregressive generation. The framework is model-agnostic and provides a robust path forward for high-speed, high-quality neural machine translation.
Summary updated