Lattice-based Minimum Error Rate Training for Statistical Machine Translation

Wolfgang Macherey, Franz Josef Och, Ignacio Thayer, Jakob UszkoreitEMNLP 2008

Abstract

Minimum Error Rate Training (MERT) is an effective means to estimate the feature function weights of a linear model such that an automated evaluation criterion for measuring system performance can directly be optimized in training. To accomplish this, the training procedure determines for each feature function its exact error surface on a given set of candidate translations. The feature function weights are then adjusted by traversing the error surface combined over all sentences and picking those values for which the resulting error count reaches a minimum. Typically, candidates in MERT are represented as N-best lists which contain the N most probable translation hypotheses produced by a decoder. In this paper, we present a novel algorithm that allows for efficiently constructing and representing the exact error surface of all translations that are encoded in a phrase lattice. Compared to N-best MERT, the number of candidate translations thus taken into account increases by several orders of magnitudes. The proposed method is used to train the feature function weights of a phrase-based statistical machine translation system. Experiments conducted on the NIST 2008 translation tasks show significant runtime improvements and moderate BLEU score gains over N-best MERT.

Introduction

In Statistical Machine Translation (SMT), log-linear models are employed where various features—such as word frequency or grammatical rules—are assigned specific weights. To achieve optimal translation quality, these weights must be tuned using Minimum Error Rate Training (MERT).

Traditionally, MERT operates on $N$-best lists, which are small subsets (typically 50 to 100) of the top translations generated by a decoder. However, $N$-best lists represent only a tiny, sparse sample of the possible translation space. This sparsity often leads to poor convergence, overfitting to the small sample, and the optimizer becoming trapped in local optima because it cannot perceive the full error surface.

Methodology: From Lists to Lattices

To overcome the limitations of $N$-best lists, this research proposes using phrase lattices. A lattice is a directed acyclic graph where every path from the start node to the end node represents a potential translation. While an $N$-best list is limited, a lattice can compactly represent octillions ($10^{27}$) of hypotheses.

The algorithm traverses the lattice in topological order, merging upper envelopes at each node to efficiently compute the error surface.

The core contribution is an algorithm that computes the upper envelope of the error surface directly from the lattice using the following techniques:

  • Topological Propagation: The algorithm traverses the lattice in topological order. At each node, it merges the "upper envelopes" (the set of best-scoring partial paths) from all incoming arcs.
  • Sweep-Line Algorithm: A geometric approach is used to prune paths that can never be the optimal translation, regardless of weight changes.
  • Complexity Management: The authors prove that the number of segments in the resulting error surface is bounded by the number of arcs in the lattice ($|E|$), rather than the number of paths. This ensures the method remains computationally efficient despite the massive search space.

Experimental Setup

The method was evaluated on the NIST 2008 translation tasks across three language pairs: Arabic-to-English (aren), Chinese-to-English (zhen), and English-to-Chinese (enzh). Development sets were drawn from NIST 2002 and 2004 data, utilizing four reference translations per sentence to calculate BLEU scores.

Key Results and Discussion

Lattice MERT demonstrates significant advantages over the traditional $N$-best approach in terms of both speed and quality:

  • Rapid Convergence: Lattice MERT typically reaches its optimum in approximately 5 iterations, whereas $N$-best MERT often requires up to 25 iterations to reach a comparable level of performance.
  • Enhanced Translation Quality: The method consistently yields higher BLEU scores. For instance, on the Arabic-to-English test set, Lattice MERT achieved a 43.9 BLEU score, a +1.0 gain over the 42.9 achieved by $N$-best MERT.
  • Robustness and Stability: By considering a much denser search space (over $2 \times 10^{27}$ entries), the algorithm is less prone to the "fragility" seen in early iterations of $N$-best MERT, where performance can drop due to over-optimization on a sparse set of candidates.
Comparison of BLEU score improvement over iterations: Lattice MERT converges significantly faster and more stably than N-best MERT.

Conclusion

Lattice MERT effectively addresses the sparsity issues of $N$-best lists by optimizing over the entire neighborhood of the decoder's search space. While the algorithm can still encounter local optima, its ability to process exponential numbers of hypotheses with linear complexity relative to the number of edges makes it a powerful tool for SMT tuning. Future work may extend these principles to hypergraphs and forests to support hierarchical and syntax-based translation models.

Summary updated

BibTeX
@inproceedings{macherey2008lattice,
  author = {Wolfgang Macherey and Franz Josef Och and Ignacio Thayer and Jakob Uszkoreit},
  title = {{Lattice-based Minimum Error Rate Training for Statistical Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2008},
  url = {https://openreview.net/forum?id=HkNlwzMdbS},
}
Figure