Skip to main content
QUICK REVIEW

[Paper Review] Differentiable lower bound for expected BLEU score

V. B. Zhukov, Eugène Golikov|arXiv (Cornell University)|Dec 13, 2017
Topic ModelingComputer Science15 references6 citations
TL;DR

This paper proposes a differentiable lower bound (LB) for the expected BLEU score, enabling end-to-end training of neural machine translation models with gradient-based optimization without sampling, as required in reinforcement learning. The method achieves higher BLEU scores than cross-entropy or REINFORCE-based training, with improvements up to +1.23 BLEU points on IWSLT’14 and +1.53 on WMT’14, while maintaining computational efficiency and full differentiability.

ABSTRACT

In natural language processing tasks performance of the models is often measured with some non-differentiable metric, such as BLEU score. To use efficient gradient-based methods for optimization, it is a common workaround to optimize some surrogate loss function. This approach is effective if optimization of such loss also results in improving target metric. The corresponding problem is referred to as loss-evaluation mismatch. In the present work we propose a method for calculation of differentiable lower bound of expected BLEU score that does not involve computationally expensive sampling procedure such as the one required when using REINFORCE rule from reinforcement learning (RL) framework.

Motivation & Objective

  • Address the loss-evaluation mismatch in NLP by optimizing a surrogate loss that correlates with the non-differentiable BLEU metric.
  • Eliminate the need for computationally expensive REINFORCE-style sampling in reinforcement learning-based BLEU optimization.
  • Develop a fully differentiable training objective that approximates the expected BLEU score without variance reduction techniques.
  • Improve generalization and final BLEU performance in sequence-to-sequence translation models using a simple modification to standard training protocols.
  • Enable a smooth transition from cross-entropy training to BLEU-optimized training by replacing the final training phase with the proposed LB loss.

Proposed method

  • Formulate BLEU score in matrix form using one-hot encoded word sequences and compute n-gram overlap via matrix products.
  • Define a differentiable lower bound (LB) for the expected BLEU score by approximating the min(1, v_y^n / v_x^n) term in the overlap calculation.
  • Construct the LB as a differentiable function of model outputs, enabling backpropagation through the BLEU computation graph.
  • Apply additive smoothing to precision estimates to improve training stability: (LB[O_n] + 1) / (len_x - n + 2).
  • Integrate the LB loss into standard training pipelines by replacing cross-entropy loss in later training epochs.
  • Use standard sequence-to-sequence models with attention and teacher forcing, optimizing with Adam and a reduced initial learning rate for REINFORCE.

Experimental results

Research questions

  • RQ1Can a differentiable lower bound for expected BLEU score be constructed without requiring sampling, as in REINFORCE?
  • RQ2Does optimizing this lower bound lead to higher final BLEU scores compared to standard cross-entropy training?
  • RQ3How does the performance of the proposed LB loss compare to REINFORCE-based direct BLEU optimization in terms of BLEU gain and training efficiency?
  • RQ4To what extent does the LB loss reduce the loss-evaluation mismatch in sequence generation tasks?
  • RQ5Can the LB loss be seamlessly integrated into standard training protocols with minimal architectural changes?

Key findings

  • Optimizing the proposed differentiable lower bound (LB) loss achieved a BLEU score of 27.83 ± 0.17 on IWSLT’14 DE-EN with beam size 1, outperforming cross-entropy (26.60 ± 0.14) and REINFORCE (27.16 ± 0.18).
  • On WMT’14 DE-EN, the LB loss achieved 18.65 ± 0.13 BLEU with beam size 1, surpassing cross-entropy (17.12 ± 0.2), demonstrating consistent gains on larger datasets.
  • With beam size 5, the LB loss achieved 19.23 ± 0.19 BLEU on WMT’14, slightly outperforming cross-entropy (19.03 ± 0.15), indicating improved robustness at higher beam sizes.
  • The LB loss eliminated the need for variance-reduction techniques and sampling in reinforcement learning, simplifying the training pipeline.
  • The method achieved higher BLEU scores than both cross-entropy and REINFORCE baselines, with improvements of up to +1.23 BLEU points on IWSLT’14.
  • The LB loss was computationally efficient and fully differentiable, enabling end-to-end training without introducing sampling or complex regularization.

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.