Introduction
Neural Machine Translation (NMT) models are typically trained using Maximum Likelihood Estimation (MLE). While effective, MLE suffers from exposure bias, where the model is never exposed to its own errors during training. Reinforcement Learning (RL) offers a potential remedy by optimizing sequence-level quality directly. However, traditional RL rewards like BLEU are sparse and shallow, rewarding only exact lexical matches and failing to account for semantic equivalence or fluency.
To address these challenges, we present SURF (Semantic-level Unsupervised Reward Function), a novel dense reward mechanism that combines sentence fluency and semantic similarity to provide a continuous, step-by-step training signal.
Methodology: The SURF Reward
SURF mimics human evaluation by integrating two qualitative dimensions into a single reward signal:
- Sentence Fluency: Measured as the average log-likelihood of the generated sequence using a pre-trained OpenAI GPT model.
- Sentence-level Semantic Similarity (SLSS): Measured via the cosine similarity between cross-lingual embeddings (XLM-RoBERTa) of the source and generated sentences.
Architecture and Training
The authors utilize a multi-agent actor-critic framework to leverage SURF. This setup includes parallel agents that explore the hypothesis space using diverse strategies like Top-K and Nucleus sampling. These agents interact with a global agent through asynchronous updates, stabilizing the training process despite the high variance often found in RL for NLP.
To ensure effective learning, SURF employs score normalization against the reference target sequence as a "soft" upper bound and reward shaping to provide feedback at every timestep rather than just at the end of a sequence.
Experimental Results
The proposed method was evaluated on the OpenSubtitles (in-domain) and IWSLT 2014 (out-of-domain) German-English datasets.
Performance and Generalization
Models trained with SURF consistently outperformed those using standard BLEU rewards. The most significant gains were observed in asynchronous architectures. For instance, the A3C model saw a performance jump of +10.6 BLEU on the IWSLT test set when switching from sparse BLEU rewards to SURF.
As shown in the table above, SURF-trained models (specifically Async-ACQ) achieved state-of-the-art performance on out-of-domain tasks, significantly outperforming the Transformer baseline and previous RL-based approaches like MIXER and SAC-BLEU. Human evaluators also consistently ranked SURF-trained models higher for fluency and adequacy.
Discussion and Conclusion
The success of SURF highlights that reward density is critical for RL in NMT. By providing a semantic signal at every word choice, the agent learns the underlying logic of translation rather than just memorizing reference strings. Furthermore, the "soft" upper bound normalization reduces lexical bias, allowing the model to explore valid synonymous translations.
While SURF is computationally more expensive than BLEU—requiring 3-5 days of training due to the overhead of large pre-trained models—the resulting improvements in fluency, adequacy, and generalization represent a significant step forward for RL-based machine translation.
Summary updated