Abstract
This paper addresses the scaling bottleneck in phrase-based statistical machine translation (SMT) caused by massive pre-computed phrase lookup tables. By implementing a suffix array-based data structure for on-the-fly phrase retrieval, the authors demonstrate a significant reduction in memory requirements—from tens of gigabytes to approximately two gigabytes—without sacrificing translation quality. A novel sampling technique further optimizes retrieval speed for frequent phrases, enabling the use of arbitrarily long phrases and larger training corpora.
Introduction
In the early 2000s, phrase-based SMT became the standard approach, capturing local context by translating contiguous sequences of words. However, this method faced a significant "Memory Wall." To achieve optimal results, researchers needed to utilize the largest available corpora and the longest possible phrases. Storing every possible phrase pair in a static lookup table is computationally expensive; for large datasets, tables for phrases up to 10 words long could require over 30GB of RAM, far exceeding the hardware capabilities of the time. This forced researchers to prune their data, which often degraded translation quality.
Methodology
The authors propose a shift from static pre-computation to dynamic, on-the-fly retrieval using suffix arrays. A suffix array is an alphabetically sorted index of all substrings within a corpus, allowing the system to locate any phrase of arbitrary length in $O(\log n)$ time.
When the translator encounters a phrase, it identifies all occurrences in the source corpus, retrieves the corresponding translations from the target corpus using word alignments, and calculates translation probabilities on the spot. To address the latency of frequent phrases (e.g., "of the"), the authors introduced a sampling technique. By capping the number of occurrences checked (e.g., to 100 or 1,000), the system provides a statistically accurate estimate of translation probabilities while drastically reducing retrieval time.
Experimental Results
The study utilized the NIST 2004 Arabic-English dataset (3.75 million sentence pairs) and the Europarl corpus. The results highlight the efficiency of the suffix array approach compared to traditional methods.
As shown in Table 1, the memory footprint for traditional tables grows exponentially with phrase length. For the NIST dataset, a standard table for 10-word phrases would require approximately 37.85 GB. In contrast, the suffix array approach required only 2 GB. Furthermore, sampling enabled dramatic speedups: retrieving phrases for a test set without sampling took over 1.7 hours, whereas sampling just 100 occurrences reduced this to 10 seconds.
The authors also observed that while long phrases are relatively rare, they are highly effective for capturing context; in their test set, they identified matching phrases as long as 18 words. Suffix arrays handle these arbitrarily long phrases naturally, whereas traditional tables would require prohibitive memory. Crucially, translation quality (BLEU score) remained virtually identical (0.290 vs 0.288), proving that redundancy in frequent phrases allows for effective sampling.
Conclusion
By replacing static lookup tables with suffix arrays and on-the-fly calculation, the authors successfully bypassed the memory constraints of traditional phrase-based SMT. This approach allows for the inclusion of arbitrarily long phrases and scales linearly with corpus size. The introduction of sampling ensures that this flexibility does not come at the cost of translation speed, laying the groundwork for scaling SMT to even larger datasets.
Summary updated