Randomised Language Modelling for Statistical Machine Translation

David Talbot, Miles OsborneACL 2007

Introduction

In Statistical Machine Translation (SMT), the Language Model (LM) is a critical component that ensures output fluency. Performance generally scales with the size of the training data and the order of the n-grams tracked. However, this creates a significant memory bottleneck. For instance, the English Gigaword corpus contains over 1.2 billion 5-grams, requiring gigabytes of RAM for traditional lossless storage. To fit these models into memory for fast decoding, researchers often resort to "pruning" rare n-grams, which inevitably degrades translation quality.

Methodology: Randomized, Lossy Storage

This paper proposes using Bloom filters (BFs) as a space-efficient, randomized alternative to traditional hash maps or tries. A Bloom filter is a probabilistic data structure that can represent a set of items with a small, controllable false positive rate but zero false negatives.

The authors explore three primary techniques:

  1. Boolean Bloom Filters: These store the existence of n-grams using a bit-array and multiple hash functions.
  2. Log-frequency Bloom Filters: To store n-gram counts, frequencies are quantized on a logarithmic scale and inserted as composite events.
  3. Sub-sequence Filtering: A clever optimization where the filter leverages the property that an n-gram cannot be more frequent than its constituent sub-sequences, effectively lowering the error rate.

Evaluation

The approach was evaluated using the Europarl (EP) French-English corpus and the massive English Gigaword (GW) corpus. Translation quality was measured using the BLEU score on a standard test set of 500 sentences.

Key Insights

  • Zipf’s Law Efficiency: Since most queries to an LM involve rare or non-existent n-grams, a data structure optimized for "no" responses (like a Bloom filter) is highly effective.
  • Acceptable One-Sided Errors: In SMT, it is preferable to occasionally overestimate the frequency of a rare phrase (false positive) than to completely omit a common one (false negative).
  • Information Theory Arbitrage: By trading absolute certainty for space, Bloom filters can represent a complete, albeit lossy, dataset more effectively than a perfect representation of a heavily pruned dataset.

Key Results

The researchers demonstrated remarkable memory savings. A 4-gram Bloom filter for Europarl achieved performance comparable to lossless models while using a fraction of the memory.

BLEU score performance of 4-gram Bloom filters on Europarl data compared to Kneser-Ney (KN) baselines.

A critical finding was the relationship between the false positive rate and translation quality. The authors observed a performance threshold: BLEU scores remain stable until the false positive rate exceeds approximately 20%. Beyond this point, "hallucinated" n-grams begin to significantly degrade the output.

The trade-off between memory, false positive rate, and translation quality (BLEU score).

Furthermore, the Bloom filter approach allowed for scaling to the entire Gigaword corpus, outperforming standard pruned models while maintaining a manageable memory footprint.

Conclusion and Future Work

While the Bloom filters in this study were primarily used to augment existing models, they demonstrate the power of randomized data structures for large-scale NLP. Future work includes developing standalone smoothed Bloom filter LMs and applying these techniques to other memory-intensive tasks like web-scale parsing.

Reference: Talbot, D., & Osborne, M. (2007). Randomised Language Modelling for Statistical Machine Translation. Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics (ACL).

Summary updated

BibTeX
@inproceedings{talbot2007randomised,
  author = {David Talbot and Miles Osborne},
  title = {{Randomised Language Modelling for Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2007},
}
Figure