Exact Decoding for Phrase-Based Statistical Machine Translation

Wilker Aziz, Marc Dymetman, Lucia SpeciaEMNLP 2014

Abstract

The combinatorial space of translation derivations in phrase-based statistical machine translation is given by the intersection between a translation lattice and a target language model. We replace this intractable intersection by a tractable relaxation which incorporates a low-order upperbound on the language model. Exact optimisation is achieved through a coarse-to-fine strategy with connections to adaptive rejection sampling. We perform exact optimisation with unpruned language models of order 3 to 5 and show search-error curves for beam search and cube pruning on standard test sets. This is the first work to tractably tackle exact optimisation with language models of orders higher than 3.

Introduction

In Statistical Machine Translation (SMT), "decoding" is the process of finding the best translation ($d^*$) for an input sentence among an exponentially large number of possibilities. Because this problem is NP-complete, the field has historically relied on approximate search algorithms like beam search or cube pruning. While these heuristics are fast, they introduce "search errors"—situations where the decoder misses the best translation the model could have produced.

Without an exact decoder, researchers cannot definitively determine if a poor translation results from a flawed model or a search failure. Previous attempts at exact decoding were limited to very short sentences or simplified models. This paper introduces the first tractable method for exact decoding in phrase-based SMT using high-order language models (up to 5-grams), bridging the gap for realistic, state-of-the-art SMT settings.

Methodology

The authors employ a framework called OS (Optimisation and Sampling), which treats decoding as a sequence of increasingly refined approximations. The core innovation is a Coarse-to-Fine Strategy* that avoids the massive, complex search space of high-order language models (LMs) by starting with a simplified hypergraph.

Iterative refinement of upper bounds $g^{(i)}$ to find the exact optimum $d^*$.

To ensure exactness, the algorithm utilizes LM Upper Bounds (Max-ARPA). By precomputing optimistic upper bounds for n-gram probabilities, the search ensures that the score in the coarse space ($g(d)$) is always greater than or equal to the true score ($f(d)$). As illustrated in the figure above, the algorithm finds the best path in the coarse space. If the coarse score matches the true score, the exact optimum is found. If not, the hypergraph is refined locally—splitting nodes to expose more LM state—and the process repeats. To maintain tractability, the authors maintain a standard distortion limit, reducing complexity from factorial to polynomial.

Experimental Setup

The approach was evaluated on a standard German-to-English translation task using the WMT (Workshop on Statistical Machine Translation) dataset:

  • Training: Europarl and News Commentaries (~2.2M sentences).
  • Tuning: newstest2010.
  • Evaluation: newstest2012 (3,003 sentences).
  • Models: Unpruned language models of orders 3, 4, and 5.

Results and Discussion

The study provides a rare "ground truth" for SMT, yielding several key insights:

  • Tractability: The algorithm successfully produced exact decodings for all 3,003 test sentences, even with 5-gram language models. This demonstrates that exact decoding is feasible for modern SMT tasks.
  • Search Errors in Heuristics: While beam search is effective, it still makes search errors in a significant number of cases. For a 3-gram LM with a distortion limit of 4, a beam size of 10 resulted in search errors in approximately 31% of cases (938 out of 3,003). Cube pruning was found to be even more prone to search errors than beam search at equivalent beam sizes.
  • Variable-Order Representation: The final hypergraph does not require a full 5-gram LM everywhere. The algorithm only refines the LM state to the degree necessary to prove optimality, meaning some parts of a sentence may only need a 2-gram context to be "solved."
  • BLEU Impact: Interestingly, search errors do not always significantly hurt the final BLEU score. This suggests that when heuristics fail, they often select a translation that is nearly as good as the mathematical optimum.

Conclusion

While exact decoding is significantly slower than beam search (taking seconds per sentence rather than milliseconds), it provides a vital tool for research and evaluation. It allows researchers to isolate model errors from search errors. Future work may involve using reinforcement learning to guide the refinement process or implementing "error-safe pruning" to further increase speed while maintaining exactness guarantees.

Summary updated

BibTeX
@inproceedings{aziz2014exact,
  author = {Wilker Aziz and Marc Dymetman and Lucia Specia},
  title = {{Exact Decoding for Phrase-Based Statistical Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  url = {https://openreview.net/forum?id=HJWmMfMd-B},
}
Figure