Skip to main content
QUICK REVIEW

[Paper Review] On the Weaknesses of Reinforcement Learning for Neural Machine Translation

Leshem Choshen, Lior Fox|arXiv (Cornell University)|Jul 3, 2019
Adversarial Robustness in Machine LearningComputer Science21 citations
TL;DR

This paper demonstrates that common reinforcement learning (RL) methods for neural machine translation—particularly Reinforce and Contrastive Minimum Risk Training (CMRT)—fail to optimize expected reward due to theoretical flaws and infeasibly slow convergence. The authors show that performance gains in practice stem not from improved alignment with reference translations, but from increased peakiness in the output distribution, with improvements only occurring when the pre-trained model is already nearly correct.

ABSTRACT

Reinforcement learning (RL) is frequently used to increase performance in text generation tasks, including machine translation (MT), notably through the use of Minimum Risk Training (MRT) and Generative Adversarial Networks (GAN). However, little is known about what and how these methods learn in the context of MT. We prove that one of the most common RL methods for MT does not optimize the expected reward, as well as show that other methods take an infeasibly long time to converge. In fact, our results suggest that RL practices in MT are likely to improve performance only where the pre-trained parameters are already close to yielding the correct translation. Our findings further suggest that observed gains may be due to effects unrelated to the training signal, but rather from changes in the shape of the distribution curve.

Motivation & Objective

  • To investigate why reinforcement learning (RL) methods in neural machine translation (NMT) often yield only marginal gains despite strong theoretical motivation.
  • To analyze the theoretical soundness of widely used RL methods like Reinforce and CMRT in the context of NMT’s high-dimensional, sparse, and discrete action space.
  • To determine whether observed performance improvements in RL-based NMT are due to actual optimization of the target translation or to unintended distributional shifts.
  • To evaluate the convergence behavior of RL methods under realistic NMT conditions, especially when fine-tuning pre-trained models.
  • To identify practical and theoretical limitations of current RL practices in NMT and suggest alternative approaches for future research.

Proposed method

  • Theoretical analysis of gradient updates in Reinforce and CMRT, showing they do not converge to optimal parameters when the expected reward is constant.
  • Use of controlled simulations with synthetic reward functions (informative vs. constant) to isolate the effect of reward structure on model behavior.
  • Empirical evaluation on real NMT datasets comparing models trained with informative rewards vs. constant rewards, measuring BLEU and distributional shifts.
  • Analysis of the peakiness effect (PkE), defined as increased concentration of probability mass on the most likely tokens, as a primary driver of performance gains.
  • Comparison of on-policy sampling (Reinforce) with off-policy methods, highlighting limitations due to poor exploration in high-dimensional discrete spaces.
  • Investigation of hyperparameter choices such as gradient clipping and reference token inclusion in sampling, showing they may violate RL assumptions and hinder convergence.

Experimental results

Research questions

  • RQ1Does the commonly used Reinforce algorithm in NMT truly optimize the expected reward, or are its updates theoretically flawed?
  • RQ2To what extent do performance gains in RL-based NMT stem from changes in the output distribution's peakiness rather than improved alignment with reference translations?
  • RQ3Under what conditions—specifically, how close the pre-trained model is to the correct translation—can RL methods like Reinforce or CMRT successfully improve NMT performance?
  • RQ4Why do RL methods converge extremely slowly or fail to converge in standard NMT settings, despite theoretical convergence guarantees?
  • RQ5Can off-policy RL methods or alternative exploration strategies overcome the limitations of on-policy training in high-dimensional discrete NMT action spaces?

Key findings

  • The Reinforce algorithm does not optimize the expected reward when the reward is constant, as its expected gradient update becomes zero, rendering learning impossible.
  • Performance improvements observed in RL-based NMT are primarily due to increased peakiness in the output distribution (PkE), not because the model learns to generate the correct reference translation.
  • RL methods such as Reinforce and CMRT only show meaningful improvements when the pre-trained model already assigns high probability (among the top 2–3) to the correct translation token.
  • Convergence to optimal parameters is asymptotically unattainable in realistic NMT settings due to sparse rewards and limited exploration, even with proper gradient estimation.
  • Gradient clipping, commonly used in NMT, violates the assumptions of Reinforce and is expected to further hinder convergence.
  • Including the reference translation in the sampling set during training can destabilize learning and reduce generalization, despite potentially improving training signal alignment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.