Introduction
Standard Neural Machine Translation (NMT) models typically operate in an autoregressive (AR) fashion, generating text one token at a time. While this sequential approach ensures high accuracy, it introduces significant latency. Non-autoregressive (NAR) models aim to overcome this by generating sequences in parallel, offering substantial speedups. However, NAR models often struggle with "exposure bias"—the discrepancy between training on ground-truth data and inferring from their own previous predictions—and difficulty in capturing complex linguistic dependencies.
This paper explores how Reinforcement Learning (RL) can bridge the performance gap between NAR models and their AR counterparts. Specifically, the authors focus on the Levenshtein Transformer (LevT), an edit-based NAR model that translates by iteratively deleting, inserting, and replacing tokens.
Methodological Framework
The core contribution involves integrating the REINFORCE algorithm into the LevT framework. The authors compare two primary RL strategies to optimize the model's edit policies:
- Stepwise Reward Maximization: Rewards, measured by BLEU score gains, are calculated after every individual edit operation (deletion, insertion, or replacement).
- Episodic Reward Maximization: The entire sequence of edits is treated as a single "episode," with rewards calculated only at the final stage of generation.
To stabilize training, a "leave-one-out" baseline is employed to reduce gradient variance. Furthermore, the authors emphasize the importance of Temperature Control during softmax sampling. They found that maintaining a constant mid-range temperature ($\tau=0.5$) or using an annealing schedule (e.g., $1.0 \to 0.1$) is crucial for balancing exploration and exploitation.
Experimental Results
The models were evaluated on the WMT’14 English-German (EN-DE) and WAT’17 English-Japanese (EN-JA) benchmarks. The results demonstrate that Episodic Reward Maximization consistently outperforms both the baseline LevT and the stepwise approach.
As shown in the table above, the episodic RL approach improved the BLEU score on EN-DE from 24.03 to 25.72 (+1.69) and on EN-JA from 31.76 to 32.75 (+0.99). Notably, the RL-enhanced model approaches the performance of knowledge distillation methods without requiring the computational overhead of a large AR teacher model.
Key Insights and Analysis
- Superiority of Episodic Rewards: Contrary to intuition, stepwise rewards performed worse. Analysis revealed that stepwise rewards exhibit high variance in early iterations, causing the model to over-optimize initial edits at the expense of final sentence quality.
- Mitigating Exposure Bias: By training on self-generated data rather than just "gold" teacher data, the model learns to identify and correct its own errors, directly tackling the exposure bias that plagues parallel translation.
- Architectural Orthogonality: The RL-based optimization is independent of the underlying architecture, suggesting it could be applied to other edit-based NAR models like the Insertion Transformer without changing the neural network structure.
Conclusion
Reinforcement learning, particularly through episodic reward maximization, provides a robust mechanism for improving NAR translation quality. By addressing exposure bias through self-generation and fine-tuning exploration via temperature control, the authors demonstrate that NAR models can achieve competitive accuracy while maintaining their inherent speed advantages. Future work will focus on developing self-adaptive temperature control and refining stepwise reward systems to address training inequalities.
Summary updated