Introduction
Neural Machine Translation (NMT) typically faces a trade-off between quality and efficiency. High-quality translations are usually achieved through beam search, which explores multiple hypotheses simultaneously but is computationally slow. Conversely, greedy decoding is fast but often yields lower quality as it lacks look-ahead capabilities and cannot correct early mistakes. Previous attempts to bridge this gap using Reinforcement Learning (RL) have been hampered by training instability. This work proposes a "trainable greedy decoding" strategy that uses a stable supervised learning approach to achieve beam-search quality at greedy-decoding speeds.
Methodology: The Actor-Decoder Framework
The core innovation is the introduction of a small actor network integrated into a pre-trained, fixed NMT decoder. The authors experimented with various architectures, finding that a gated feed-forward network offered an optimal balance of speed and performance.
The Actor's Role
At each decoding step $t$, the actor network observes the current decoder state and generates a small "action" vector. This vector is added to the decoder's hidden state, effectively "nudging" the model's internal representation to favor better long-term outcomes without completely overwriting the pre-trained knowledge. This mechanism is model-agnostic and can be applied to various architectures.
Stable Training via Pseudo-Parallel Corpora
To avoid the high variance and instability of RL, the authors employ a supervised learning strategy. They first generate a "pseudo-parallel" corpus by running a high-quality (large beam) search on the original training data to find the best possible translations according to metrics like BLEU. The actor is then trained via standard backpropagation to minimize the difference between the greedy decoder's output and these high-quality "pseudo-target" sentences. This approach effectively distills the knowledge of a slow beam search into a fast greedy decoder.
Key Insights
Nudging, Not Overwriting
Analysis of the learned action vectors reveals that the actor performs subtle modifications. As shown in Figure 3, the $L_2$ norm of the action vector remains significantly smaller than the norms of the state and context vectors. This confirms that the actor "steers" the existing model toward better outcomes rather than replacing its fundamental logic.
Likelihood vs. Quality
Interestingly, the trainable greedy decoder often produces sequences with lower log-likelihood according to the base model but higher BLEU scores. This suggests the actor helps the model overcome "exposure bias"—the discrepancy between the training objective (maximum likelihood) and the evaluation metric (BLEU).
Experimental Results
The method was evaluated on IWSLT16 and WMT benchmarks across RNN, ConvS2S, and Transformer architectures.
- Performance: On IWSLT16 (ConvS2S), standard greedy decoding achieved 27.44 BLEU, while beam search (k=4) reached 28.80. The trainable greedy decoder achieved 28.74 BLEU, essentially matching beam search quality.
- Efficiency: While beam search reduced throughput from 191 to 87 tokens/sec, the trainable greedy decoder maintained a high speed of 167 tokens/sec, providing a significant speedup with minimal quality loss.
- Consistency: The gains were consistent across all tested architectures and language pairs, proving the method is robust and model-agnostic.
Conclusion
By reframing the optimization of greedy decoding as a supervised learning task on pseudo-parallel data, this research provides a stable and effective way to accelerate NMT. The "nudging" mechanism allows for significant quality improvements with minimal computational overhead, making high-quality translation more accessible for real-time applications.
Summary updated