Reward Optimization for Neural Machine Translation with Learned Metrics

Raphael Shu, Kang Min Yoo, Jung-Woo HaarXiv 2021

Introduction

Traditional Neural Machine Translation (NMT) models are typically trained using token-level Cross-Entropy loss. While effective for learning language structure, this objective often fails to align with human perceptions of translation quality. To address this, researchers have turned to Reinforcement Learning (RL) to optimize models directly for sequence-level metrics. However, the standard metric, BLEU, relies on exact $n$-gram overlaps and struggles with synonyms or word reordering. This paper explores the optimization of NMT models using BLEURT, a sophisticated learned metric based on BERT that correlates much more closely with human judgment.

The Challenge: Stability and Efficiency

Optimizing for a large, Transformer-based metric like BLEURT introduces significant hurdles. Standard "Risk Loss" approaches require scoring numerous candidate translations, which is computationally prohibitive when both the NMT model and the reward metric are large. Furthermore, simple max-margin losses can be unstable if the model's top choice is already high-quality but still incurs a penalty.

To overcome these issues, the authors introduce a contrastive-margin loss. Instead of comparing the best candidate to its nearest competitor, this method compares the candidate with the highest reward ($Y^*_R$) to the one with the lowest reward ($Y^\sim_R$) within a generated set. This approach is memory-efficient, requiring scores for only two sequences per instance, and provides a "safer" gradient by penalizing the worst outcomes.

Analysis: The BLEU-BLEURT Divergence

A core insight of this work is the fundamental difference in how traditional and learned metrics evaluate quality. BLEU is a "spiky" reward where minor lexical changes can cause large score swings, whereas BLEURT provides a smoother semantic signal.

Correlation heatmaps for De-En and Ja-En showing low agreement between traditional BLEU/SBLEU and the learned BLEURT metric.

As shown in the correlation analysis above, BLEU and BLEURT exhibit surprisingly low correlation (often between 0.15 and 0.24). In practice, optimizing for BLEURT can actually cause BLEU scores to drop significantly—by as much as 8 points in Japanese-English—even as human preference for the translations increases.

Key Results

The researchers evaluated their approach across four language pairs: WMT14 De-En, WMT16 Ro-En, WMT19 Ru-En, and ASPEC Ja-En. The results demonstrate that the contrastive-margin loss is both effective and stable.

BLEURT score progression during fine-tuning on the De-En dataset, showing steady improvement in both mean and top-tier rewards.

Key findings include:

  • Metric Gains: BLEURT scores increased by over 10% relatively across all datasets, while smoothed BLEU optimization yielded negligible gains.
  • Human Preference: Pairwise human evaluations confirmed that BLEURT-optimized models were preferred for their superior coverage (retaining source meaning) and adequacy.
  • Semantic Flexibility: Unlike BLEU-tuning, which encourages literal $n$-gram repetition, BLEURT-tuning allows the model to select semantically appropriate synonyms that may not match the reference exactly.

Limitations and Future Work

While BLEURT improves semantic adequacy, it can occasionally be indifferent to rare words or specific entities (like proper nouns) if the rest of the sentence is semantically sound. Future research will focus on reward ensembling, combining learned metrics with rule-based metrics like METEOR to ensure both semantic richness and factual accuracy for specific entities.

Summary updated

BibTeX
@misc{shu2021reward,
  author = {Raphael Shu and Kang Min Yoo and Jung-Woo Ha},
  title = {{Reward Optimization for Neural Machine Translation with Learned Metrics}},
  year = {2021},
  eprint = {2104.07541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.07541},
}
Figure