Skip to main content
QUICK REVIEW

[Paper Review] Trainable Greedy Decoding for Neural Machine Translation

Jiatao Gu, Kyunghyun Cho|arXiv (Cornell University)|Feb 8, 2017
Natural Language Processing TechniquesComputer Science33 references14 citations
TL;DR

This paper proposes trainable greedy decoding for neural machine translation, where a small neural network actor learns to improve translation quality by observing and modifying the decoder's hidden state. Trained via a critic-aware deterministic policy gradient, the method boosts target decoding objectives like BLEU or perplexity with minimal computational overhead, outperforming standard greedy and beam search on four language pairs across two objectives.

ABSTRACT

Recent research in neural machine translation has largely focused on two aspects; neural network architectures and end-to-end learning algorithms. The problem of decoding, however, has received relatively little attention from the research community. In this paper, we solely focus on the problem of decoding given a trained neural machine translation model. Instead of trying to build a new decoding algorithm for any specific decoding objective, we propose the idea of trainable decoding algorithm in which we train a decoding algorithm to find a translation that maximizes an arbitrary decoding objective. More specifically, we design an actor that observes and manipulates the hidden state of the neural machine translation decoder and propose to train it using a variant of deterministic policy gradient. We extensively evaluate the proposed algorithm using four language pairs and two decoding objectives and show that we can indeed train a trainable greedy decoder that generates a better translation (in terms of a target decoding objective) with minimal computational overhead.

Motivation & Objective

  • To address the underexplored problem of decoding in neural machine translation, despite significant advances in model architecture and training.
  • To develop a generic, trainable decoding algorithm that optimizes arbitrary decoding objectives without retraining the main model.
  • To improve translation quality beyond standard greedy or beam search by learning dynamic decoding strategies.
  • To enable efficient inference by training a lightweight actor with negligible computational cost.

Proposed method

  • A trainable actor network observes and manipulates the hidden state of a pre-trained neural machine translation decoder.
  • The actor is trained using a variant of deterministic policy gradient, specifically critic-aware actor learning, to maximize a target decoding objective.
  • The critic estimates the expected return of actions taken by the actor, enabling stable policy optimization.
  • The method is applied post-training, requiring no retraining of the main translation model.
  • The actor is small and shallow, ensuring minimal inference-time computational overhead.
  • The approach is generic and applicable to any sequence modeling task with a recurrent decoder.

Experimental results

Research questions

  • RQ1Can a trainable decoding algorithm be learned to improve translation quality beyond standard greedy or beam search?
  • RQ2Does training a decoder to optimize a specific objective (e.g., BLEU or perplexity) lead to measurable improvements in translation output?
  • RQ3Can a lightweight actor network effectively manipulate the hidden state of a pre-trained model to improve decoding?
  • RQ4Is the critic-aware actor learning method stable and effective enough to train 16 different actors across multiple language pairs?
  • RQ5Can the trained actor improve not only greedy decoding but also beam search performance?

Key findings

  • The trainable greedy decoder achieved significant improvements in both BLEU and negative perplexity when trained to optimize those objectives, confirming the method's effectiveness.
  • When trained for sentence-level BLEU, the method improved BLEU scores while often degrading perplexity, and vice versa when trained for perplexity, validating objective-specific optimization.
  • Even when used with beam search, the trained actor produced statistically significant BLEU improvements, marked with red stars in the results.
  • The method incurred negligible computational overhead due to the small size of the actor network and the removal of the critic after training.
  • The critic-aware actor learning stabilized training, enabling successful training of 16 actors across eight language pair-directions.
  • Manual analysis showed the actor focused on correcting prepositions and eliminating unnecessary token generations, indicating meaningful intervention in the decoding process.

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.