Moses: Open Source Toolkit for Statistical Machine Translation

Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Chris Dyer, Ondrej Bojar, Alexandra Constantin, Evan HerbstACL 2007

Abstract: Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Chris Dyer, Ondřej Bojar, Alexandra Constantin, Evan Herbst. Proceedings of the 45th Annual Meeting of the Association for Computational Linguistics Companion Volume Proceedings of the Demo and Poster Sessions.

2007.

Introduction

In the mid-2000s, Phrase-Based Statistical Machine Translation (SMT) represented the state-of-the-art. However, the field faced a significant bottleneck: high-performing systems were largely proprietary or restricted "in-house" research tools, such as the Pharaoh decoder. This created a barrier to entry for new researchers, who were forced to spend months re-implementing foundational components before they could begin original research.

Furthermore, standard SMT systems at the time were linguistically "blind," treating words as simple surface forms and ignoring underlying morphological relationships (e.g., "walking" vs. "walked"). They also struggled with ambiguous inputs, such as noisy speech-to-text hypotheses, often forcing premature and erroneous choices before translation.

Methods and Core Innovations

Moses was developed as a comprehensive, open-source pipeline for training and decoding SMT models. Its architecture introduced several key technical contributions:

Factored Translation Models

A primary innovation of Moses is the representation of words as vectors of "factors" rather than single strings. These factors include the surface form, lemma, and Part-of-Speech (POS) tags. This approach allows the system to model morphology and syntax explicitly. By decomposing translation into steps—mapping lemmas separately and then applying a generation step for grammatical endings—Moses effectively addresses data sparsity issues.

Factored translation model showing mapping of linguistic factors between French and English.

Phrase-Based Decoding and Confusion Networks

Moses utilizes a phrase-based approach where translation is performed using a phrase dictionary. To better integrate with speech recognition systems, it supports "confusion network" decoding. Instead of a single word sequence, the decoder can process a graph of multiple word hypotheses, finding the optimal translation path through the network.

Phrase-based translation process using a phrase dictionary to map English phrases to French.

Computational Efficiency

To manage the massive memory requirements of SMT, Moses introduced:

  • Prefix Trees: Phrase tables are stored in tree structures with on-demand loading, significantly reducing RAM usage.
  • Quantization: Reducing the precision of language model probabilities (e.g., from 8-byte floats to 1-byte bins) allows for drastic model size reduction with minimal impact on quality.

Key Insights

The success of Moses was driven by strategic design choices:

  • The "Drop-in" Strategy: By acting as a drop-in replacement for the popular Pharaoh decoder, Moses ensured immediate adoption by researchers who could switch tools without disrupting existing workflows.
  • Software Engineering Excellence: The toolkit emphasized C++ efficiency and modular, object-oriented design, ensuring it could serve as a maintainable community standard.

Key Results

Moses achieved translation quality and run-times comparable to the best proprietary systems of its era. A notable benchmark on the Chinese-English NIST task demonstrated its efficiency: the memory requirement for the phrase table was reduced from 1.7 GB to less than 20 MB using its optimized data structures. Within months of release, the toolkit surpassed 1,000 downloads, effectively becoming the "lingua franca" for MT research.

Limitations and Future Work

While factored models provide significant power, they also introduce a vast configuration space. Determining the optimal set and order of factors for specific language pairs remains a complex experimental challenge. The authors noted that the full potential of linguistic factors is an ongoing area of research, requiring more flexible frameworks for consistent application.

Summary updated

BibTeX
@inproceedings{koehn2007moses,
  author = {Philipp Koehn and Hieu Hoang and Alexandra Birch and Chris Callison-Burch and Marcello Federico and Nicola Bertoldi and Brooke Cowan and Wade Shen and Christine Moran and Richard Zens and Chris Dyer and Ondrej Bojar and Alexandra Constantin and Evan Herbst},
  title = {{Moses: Open Source Toolkit for Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2007},
  url = {https://openreview.net/forum?id=ryWk9olOZB},
}
Figure