Table of Contents
Fetching ...

Sampling-Based Approximations to Minimum Bayes Risk Decoding for Neural Machine Translation

Bryan Eikema, Wilker Aziz

TL;DR

This work analyses an approximation to minimum Bayes risk (MBR) decoding and establishes that it has no equivalent to the beam search curse, and designs approximations that decouple the cost of exploration from thecost of robust estimation of expected utility.

Abstract

In NMT we search for the mode of the model distribution to form predictions. The mode and other high-probability translations found by beam search have been shown to often be inadequate in a number of ways. This prevents improving translation quality through better search, as these idiosyncratic translations end up selected by the decoding algorithm, a problem known as the beam search curse. Recently, an approximation to minimum Bayes risk (MBR) decoding has been proposed as an alternative decision rule that would likely not suffer from the same problems. We analyse this approximation and establish that it has no equivalent to the beam search curse. We then design approximations that decouple the cost of exploration from the cost of robust estimation of expected utility. This allows for much larger hypothesis spaces, which we show to be beneficial. We also show that mode-seeking strategies can aid in constructing compact sets of promising hypotheses and that MBR is effective in identifying good translations in them. We conduct experiments on three language pairs varying in amounts of resources available: English into and from German, Romanian, and Nepali.

Sampling-Based Approximations to Minimum Bayes Risk Decoding for Neural Machine Translation

TL;DR

This work analyses an approximation to minimum Bayes risk (MBR) decoding and establishes that it has no equivalent to the beam search curse, and designs approximations that decouple the cost of exploration from thecost of robust estimation of expected utility.

Abstract

In NMT we search for the mode of the model distribution to form predictions. The mode and other high-probability translations found by beam search have been shown to often be inadequate in a number of ways. This prevents improving translation quality through better search, as these idiosyncratic translations end up selected by the decoding algorithm, a problem known as the beam search curse. Recently, an approximation to minimum Bayes risk (MBR) decoding has been proposed as an alternative decision rule that would likely not suffer from the same problems. We analyse this approximation and establish that it has no equivalent to the beam search curse. We then design approximations that decouple the cost of exploration from the cost of robust estimation of expected utility. This allows for much larger hypothesis spaces, which we show to be beneficial. We also show that mode-seeking strategies can aid in constructing compact sets of promising hypotheses and that MBR is effective in identifying good translations in them. We conduct experiments on three language pairs varying in amounts of resources available: English into and from German, Romanian, and Nepali.

Paper Structure

This paper contains 22 sections, 6 equations, 8 figures, 4 tables.

Figures (8)

  • Figure 1: NMT spreads probability roughly uniformly over a large set of promising hypotheses (left). MBR (right) assigns hypotheses an expected utility, revealing clear preferences against those that are too idiosyncratic.
  • Figure 2: Motivation for coarse-to-fine MBR. We sort 300 candidates sampled from the model along the x-axis from best to worst according to a robust MC estimate (using 1,000 samples) of expected BEER under the model. Left: feasible MC estimates (5 samples) of each candidate's expected BEER. Right: robust and inexpensive MC estimates (100 samples) of expected utility w.r.t. a simpler metric (skip-bigram F1). As estimates are stochastic, we perform 100 repetitions and plot mean $\pm$ two deviations. We can see that the robust estimates (right) correlate fairly well with the expensive ranking we intend to approximate (x-axis), despite of the simpler utility. As we can afford more evaluations of the proxy utility, we obtain estimates of reduced variance, which leads to safer pruning.
  • Figure 3: Estimates of expected utility for various hypotheses. We plot practical estimates of expected utility (x-axis) using either ancestral, nucleus or 'beam' samples against an accurate MC estimate using 1,000 ancestral samples. The gray line depicts a perfect estimator.
  • Figure 4: MBR$_{\text{N-by-N}}$ for various sizes of $N$ using BEER as target utility. We report both BEER and BLEU scores.
  • Figure 5: MBR$_{\text{N-by-S}}$: we estimate the expected utility of $N$ hypotheses using $S$ samples. We show average performance over 3 runs with 1 standard deviation. The dashed line shows MBR$_{\text{N-by-N}}$ performance at $N=405$.
  • ...and 3 more figures