Distributed Word Clustering for Large Scale Class-Based Language Modeling in Machine Translation

Jakob Uszkoreit, Thorsten BrantsACL 2008

Introduction

In statistical machine translation (SMT), n-gram language models are essential for predicting the probability of word sequences. However, these models frequently encounter the "data sparsity" problem: even with massive datasets, many valid word sequences never appear in training data, leading to unreliable probability estimates. Word clustering, or class-based modeling, offers a powerful solution by grouping words into classes (e.g., "apple" and "orange" as "fruit"), allowing the model to generalize across similar terms and improve its predictive power.

While effective, traditional clustering algorithms—such as the Brown algorithm or the standard Exchange algorithm—are computationally prohibitive for the massive datasets used in modern SMT. This paper presents a highly scalable, distributed version of the exchange word clustering algorithm using MapReduce, enabling the processing of billions of tokens and millions of words.

Methodology

The authors introduced several innovations to scale word clustering to the magnitude of the entire web:

Predictive Exchange Clustering

The standard exchange algorithm is "two-sided," considering classes for both the history and the predicted word. This leads to quadratic complexity relative to the number of classes, making it slow for large-scale applications. By simplifying this to a "predictive" one-sided model, the authors reduced the complexity to linear, significantly improving performance without sacrificing the model's utility in translation tasks.

Distributed MapReduce Implementation

The algorithm was parallelized using MapReduce. The vocabulary is partitioned across hundreds of workers that independently propose word moves to maximize global log-likelihood. To prevent conflicting moves between workers (e.g., two workers moving words in ways that cancel each other out), a convergence heuristic was implemented: in each iteration, the vocabulary is re-partitioned so that all words currently in the same cluster are processed by the same worker. This approach ensures nearly monotone convergence and faster execution.

Convergence of the distributed exchange algorithm across iterations for different cluster sizes.

Experimental Setup

The approach was evaluated on massive real-world datasets:

  • English: Corpora ranging from 405 million tokens (en_target) to 31 billion tokens (en_webnews), with a baseline word model trained on 2 trillion tokens (en_web).
  • Arabic: ar_gigaword (629 million tokens) and ar_webnews (600 million tokens).
  • Evaluation: Performance was measured using BLEU scores on NIST Machine Translation evaluation sets from 2003–2006.

Results and Discussion

The distributed implementation demonstrated remarkable efficiency. Using 200 workers, the system could process one iteration of clustering 500,000 words from a 31-billion-token corpus into 1,000 clusters in just 30 minutes.

Impact on Translation Quality

A common intuition in the mid-2000s was that if you have enough data (trillions of tokens), you don't need fancy clustering because you've seen every word sequence. This paper proves that intuition wrong: adding class-based features consistently improved translation quality even when the underlying word-based model was already enormous. As shown in the table below, increasing the number of clusters generally led to better BLEU scores, with a 512-cluster model providing a significant boost on the NIST06 set, moving from a baseline of 0.5088 to 0.5140.

BLEU score improvements on Arabic-to-English translation with varying cluster sizes.

Cluster Quality

The algorithm produced highly intuitive clusters. For example, one cluster contained surnames (Bai, Bi, Bu...), another contained financial terms (approvals, bonus, cash...), and another contained various fruits and vegetables. This demonstrates that the mathematical optimization successfully captured meaningful linguistic and semantic regularities.

Conclusion

This work demonstrates that word clustering remains a vital tool for SMT even in the era of "big data." By leveraging MapReduce and algorithmic simplifications, the authors made it possible to apply these techniques to datasets of unprecedented scale. This was an early demonstration of how MapReduce could be used not just for simple counting, but for complex, iterative optimization problems in linguistics. Future work may involve more sophisticated model integration methods, such as linear interpolation where weights change based on how often a word has been seen, to further enhance translation performance.

Summary updated

BibTeX
@inproceedings{uszkoreit2008distributed,
  author = {Jakob Uszkoreit and Thorsten Brants},
  title = {{Distributed Word Clustering for Large Scale Class-Based Language Modeling in Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2008},
}
Figure