Efficient Minimum Error Rate Training and Minimum Bayes-Risk Decoding for Translation Hypergraphs and Lattices

Shankar Kumar, Wolfgang Macherey, Chris Dyer, Franz Josef OchACL 2009

Abstract

Shankar Kumar, Wolfgang Macherey, Chris Dyer, Franz Och. Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP.

2009.

Introduction

In Statistical Machine Translation (SMT), the primary objective is to identify translations that minimize error metrics such as the BLEU score. Historically, this optimization was performed using $N$-best lists—small subsets of top candidate translations. However, $N$-best lists represent only a fraction of the vast search space available to modern translation models.

To capture more hypotheses, researchers transitioned to using lattices and hypergraphs (packed forests), which can represent an exponential number of translations in a compact format. While these structures are more expressive, they are computationally demanding. Previous methods for Minimum Bayes-Risk (MBR) decoding on lattices were slow, and extending these techniques to hypergraphs produced by Synchronous Context-Free Grammar (SCFG) systems remained a significant technical hurdle. This paper introduces efficient algorithms for both Minimum Error Rate Training (MERT) and MBR decoding on these complex structures.

Methodology: Bottom-Up Propagation

The authors propose a "bottom-up" framework to manage hypergraph complexity, treating the structure as a factor graph to propagate "upper envelopes" (the convex hull of scoring lines) from leaves to the root.

Hypergraph MERT

The optimization process involves two core operations:

  • $\wedge$-operation (Sum): Combines envelopes from multiple "tail" nodes of a hyperedge using a Minkowski sum.
  • $\vee$-operation (Max): Computes the convex hull over the union of envelopes from different incoming paths at a vertex.
Transformation of a hypergraph into a factor graph for bottom-up envelope propagation.

Efficient MBR and Parameter Tuning

To accelerate MBR decoding, the authors replace expensive global $n$-gram probability calculations with a local approximation. By tracking $n$-gram prefixes and suffixes at each node, they estimate posterior probabilities significantly faster than previous Weighted Finite State Automata (WFSA) approaches. Furthermore, they use MERT to learn the optimal weights for the MBR decoder itself, rather than relying on heuristic settings. This "tuning the tuner" approach allows the system to adapt to diverse language pairs.

Experimental Evaluation

The algorithms were evaluated on NIST Arabic-to-English (aren) and Chinese-to-English (zhen) tasks, as well as a large-scale task covering 39 language pairs with up to 300 million word tokens.

Key Results

The proposed methods yielded substantial improvements in both computational efficiency and translation quality:

  • Computational Speed: The new Lattice MBR algorithm (LatMBR) achieved a 20x speedup over the previous FSAMBR implementation. For hypergraphs, the HGMBR approach was 7x faster than $N$-best MBR.
  • Translation Quality: Tuning MBR parameters with MERT improved performance in 26 out of 39 language pairs. As shown in the results table below, HGMBR consistently matched or outperformed $N$-best MBR in BLEU scores while maintaining a much lower runtime.
Comparison of BLEU scores and runtimes for Hiero and SAMT systems.

Conclusion

This work demonstrates that geometric optimization and local approximations can overcome the bottlenecks of processing large-scale translation hypergraphs. By extending MERT and MBR to these structures, the authors achieved significant speedups without sacrificing quality. Future work may explore different linear approximations of the BLEU score and the application of this envelope propagation framework to other structured prediction tasks in Natural Language Processing.

Summary updated

BibTeX
@inproceedings{kumar2009efficient,
  author = {Shankar Kumar and Wolfgang Macherey and Chris Dyer and Franz Josef Och},
  title = {{Efficient Minimum Error Rate Training and Minimum Bayes-Risk Decoding for Translation Hypergraphs and Lattices}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2009},
  url = {https://openreview.net/forum?id=rkVXLhl_ZH},
}
Figure