Expected Sequence Similarity Maximization

Cyril Allauzen, Shankar Kumar, Wolfgang Macherey, Mehryar Mohri, Michael RileyNAACL 2010

Abstract

This paper introduces highly efficient algorithms for Expected Sequence Similarity Maximization (ESM), a framework that generalizes Minimum Bayes Risk (MBR) decoding for natural language processing. By leveraging the properties of rational kernels and finite-state transducers (FSTs), the authors achieve a massive 100x speedup in machine translation decoding compared to previous state-of-the-art methods, without sacrificing translation quality.

The Challenge of MBR Decoding

In tasks like machine translation (MT) or speech recognition, systems typically output a "lattice"—a probabilistic graph representing a vast space of possible sentences. While selecting the single most likely sentence (one-best) is computationally simple, it often fails to capture the full distribution of the model. Minimum Bayes Risk (MBR) decoding addresses this by selecting the sentence that minimizes the expected loss (or maximizes expected similarity) relative to all other likely hypotheses in the lattice.

The primary hurdle for MBR is its computational cost. Traditional exact methods require iterating through every $n$-gram in the lattice or performing complex operations like weighted determinization, which can lead to exponential memory and time consumption. This paper proposes a solution by reframing MBR as a similarity maximization problem using rational kernels.

Methods: Efficient ESM Algorithms

The authors treat similarity functions as rational kernels—functions that can be represented by weighted finite-state transducers (FSTs). This mathematical formulation allows the use of efficient FST algorithms for decoding.

1. General ESM Framework

The authors provide a general framework to compute the expected similarity between a hypothesis set and a probabilistic lattice using FST composition and optimization. This approach allows for a wide variety of similarity measures to be used in MBR decoding.

Figure 1: Example of a weighted finite-state transducer (FST) used to represent a rational kernel.

2. Specialized $n$-gram Kernel Algorithm

For the specific and widely used case of $n$-gram kernels, the authors introduce a specialized algorithm that bypasses the costly weighted determinization step. The algorithm follows these steps:

  1. Expected Counts: Compute expected $n$-gram counts directly from the lattice.
  2. Context-Dependency Model: Construct a deterministic model (similar to an Aho-Corasick automaton) to represent the $n$-grams.
  3. Optimization: Find the highest-weight path in the resulting transducer using a standard shortest-path algorithm in the tropical semiring.
Figure 4: Step-by-step construction of the efficient n-gram kernel algorithm, illustrating the transformation from the initial lattice to the final search space.

This method enables the simultaneous processing of all $n$-grams, drastically reducing the time complexity of the search.

Experimental Results

The researchers evaluated their algorithms on large-scale Machine Translation datasets from the NIST Open Machine Translation (OpenMT) evaluations, focusing on Arabic-English (aren) and Chinese-English (zhen) pairs.

  • Speed: The proposed ngram1 method is approximately 100 times faster than the exact method proposed by Tromble et al. (2008) and more than 3 times faster than the previous best approximate algorithm.
  • Quality: On the NIST datasets, the efficient ESM approach matched the BLEU scores of the exact MBR method within a negligible margin (0.1–0.4% BLEU), demonstrating that efficiency does not come at the cost of accuracy.

Conclusion

By viewing similarity as a kernel and leveraging FST properties, the authors have made MBR-style decoding practical for large-scale, real-time applications. This efficiency opens the door to discriminative training of kernel weights, allowing systems to learn which $n$-grams are most important for a specific domain—a task that was previously computationally prohibitive.

Summary updated

BibTeX
@inproceedings{allauzen2010expected,
  author = {Cyril Allauzen and Shankar Kumar and Wolfgang Macherey and Mehryar Mohri and Michael Riley},
  title = {{Expected Sequence Similarity Maximization}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2010},
  url = {https://openreview.net/forum?id=rkbFVmZdWH},
}

Loading related content...

Figure