Improving Statistical Machine Translation with Word Class Models

Joern Wuebker, Stephan Peitz, Felix Rietig, Hermann NeyEMNLP 2013

Abstract

Statistical Machine Translation (SMT) systems often suffer from data sparsity, particularly when dealing with rare words. This paper demonstrates that SMT performance can be significantly improved by incorporating features based on automatically learned word classes. By clustering words into groups and training auxiliary models on these classes, the authors provide a simple, "plug-and-play" method to combat sparsity, yielding gains of up to 1.4% BLEU.

Introduction: The Challenge of Data Sparsity

The primary obstacle in Statistical Machine Translation is data sparsity. Even with massive training corpora, many words and phrases appear only a handful of times. Because natural language vocabularies are vast, it is difficult for a model to accurately estimate the probability of rare word sequences.

If a model encounters a specific word it hasn't seen frequently during training, it struggles to translate it correctly. However, many words behave similarly (e.g., "Monday" and "Tuesday," or "red" and "blue"). By treating these similar words as a single "class," a model can leverage much more data to learn general patterns of translation and ordering.

Methodology

The authors propose a straightforward approach to integrate word classes into existing SMT frameworks.

Clustering and Re-parameterization

  1. Clustering: The mkcls tool is used to automatically cluster source and target vocabularies into a fixed number of classes (typically 100 or 200).
  2. Model Re-parameterization: Instead of training models solely on actual word identities, auxiliary models are trained on these class IDs. This is applied to several standard SMT components:
  3. Phrase-based and Lexical Models (wcTM): Mapping phrases to their class equivalents.
  4. Reordering Models (wcHRM): Learning how classes of words move relative to each other.
  5. Language Models (wcLM): Training an $n$-gram model on class sequences. Due to the small vocabulary of classes, a 7-gram class model can be used, providing much longer context than standard 4-gram word models.
Conceptual framework of word class translation models.

Integration

Crucially, these class-based models do not replace the original word-based models. Instead, they are added as additional features in the system's log-linear framework. The weights for these features are tuned using Minimum Error Rate Training (MERT). This approach functions as a simplified version of "Factored Translation Models" without the associated computational complexity.

Experimental Setup

The method was evaluated on two distinct tasks:

  • French -> German: A medium-sized task using WMT 2012 data (approx. 1.9M sentences).
  • German -> English: A smaller task using TED talk transcripts from IWSLT 2012.

Testing was conducted using both standard phrase-based decoders and hierarchical phrase-based decoders (via the Jane toolkit).

Key Results and Insights

The addition of word class models led to consistent improvements across different languages and translation paradigms.

Performance Gains

On the French -> German task, the system improved the baseline by 1.4% BLEU and reduced the Translation Edit Rate (TER) by 1.0%. For German -> English, the gains were 0.3% BLEU and 1.1% TER. Most of these improvements were statistically significant at the 95% confidence level.

Results for the French-German translation task showing the impact of various word class features.

Analysis of Word Classes

  • Complementary Nature: Replacing word models with class models degrades performance. The two are complementary: word models provide precision for frequent terms, while class models provide robust generalizations for the "long tail" of rare words.
  • Optimal Class Count: For the tasks studied, 100 to 200 classes were optimal. Increasing the count to 500 classes caused performance to drop, as classes became too specific, re-introducing sparsity.
  • Contextual Benefits: The 7-gram class-based Language Model was particularly effective, as it allowed the system to capture longer-range dependencies without the memory overhead of high-order word models.

Conclusion

Word class models offer a simple yet powerful way to improve SMT systems. By abstracting words into classes, models can better handle rare vocabulary and learn more robust reordering patterns. While this study focused on SMT, the principles of using discrete word classes to complement specific word identities remain relevant in the broader context of natural language processing.

Summary updated

BibTeX
@inproceedings{wuebker2013improving,
  author = {Joern Wuebker and Stephan Peitz and Felix Rietig and Hermann Ney},
  title = {{Improving Statistical Machine Translation with Word Class Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2013},
  doi = {10.18653/v1/d13-1138},
}
Figure