Faster decoding for subword level Phrase-based SMT between related languages

Anoop Kunchukuttan, Pushpak BhattacharyyaarXiv 2016

TL;DR

Subword-level translation is a powerful tool for related languages with limited data, but it often results in a massive "length explosion" that makes decoding painfully slow. This paper demonstrates that by optimizing decoder parameters—specifically using cube-pruning and reducing stack pop limits—researchers can achieve up to a 10x speedup in translation time with negligible impact on accuracy.

What Problem Does This Paper Address?

When translating between related languages (like Hindi and Marathi or Slavic languages), words often share the same roots or structures. Translating at the subword level (using characters or syllables instead of whole words) is highly effective because it bypasses the "out-of-vocabulary" problem and leverages lexical similarities.

However, there is a catch: a sentence that is 10 words long might become 40 syllables or 70 characters long. Because the time complexity of Statistical Machine Translation (SMT) decoding is proportional to sentence length, subword-level models can be 70 to 500 times slower than word-level models. This makes them impractical for real-time use and makes the "tuning" phase of research (which requires thousands of decoding runs) incredibly time-consuming.

Methods

The authors systematically investigated how to reclaim this lost speed in a phrase-based SMT framework (specifically using the Moses decoder). They experimented with:

  1. Translation Units: Comparing Orthographic Syllables (OS) and character-level models.
  2. Decoder Algorithms: Comparing standard Stack Decoding against Cube Pruning (a faster search algorithm originally designed for hierarchical SMT).
  3. Search Parameters: Adjusting the Beam Size (how many hypotheses are kept), Table Limit (how many translation options per phrase are considered), and Pop Limit (the number of hypotheses created for each stack in cube pruning).
  4. Data Formats: Testing three ways to represent subword boundaries:
  5. Boundary Marker: Marking the end of a word (e.g., thi s_).
  6. Internal Marker: Marking every subword except the end (e.g., thi_ s).
  7. Space Marker: Treating the word boundary as its own separate token.
Examples of different data formats for subword segmentation

Datasets

The study utilized the ILCI corpus, which contains parallel sentences in the tourism and health domains. They evaluated four Indian language pairs:

  • Bengali-Hindi
  • Malayalam-Hindi
  • Hindi-Malayalam
  • Telugu-Malayalam

These pairs were chosen to represent different combinations of morphological complexity (e.g., the highly agglutinative Dravidian languages vs. Indo-Aryan languages).

Key Insights and Ideas

  • The Small Vocabulary Advantage: Because subword models have a much smaller vocabulary than word-level models, the search space is naturally more constrained. The authors hypothesized (and proved) that you don't need a massive "beam" or "table limit" to find the best translation.
  • Cube Pruning is the "Silver Bullet": While originally for hierarchical models, cube pruning is exceptionally efficient for the long sequences generated by subword units.
  • Tuning Speedups: By using these optimized settings during the tuning phase (where the model learns its weights), the authors significantly reduced the overall time required to build a system without hurting the final BLEU score.
  • Format Matters: The "Internal Marker" format actually introduced data sparsity and performed worse than the "Space" or "Boundary" markers.

Key Results

The authors found that default settings for subword models are overkill. By tweaking parameters, they achieved dramatic improvements:

  • Speed: Using a beam size of 10 (instead of the default 100) provided a 7x speedup. Cube pruning with a pop-limit of 1000 was roughly 12x faster than default stack decoding for syllable-level models.
  • Accuracy: These speedups came with a translation accuracy drop of less than 1% BLEU.
  • Character vs. Syllable: Character-level models are significantly slower (4-5x) than syllable-level models because the sequences are even longer. However, cube pruning still provided a 20x speedup for character models compared to their default settings.
Comparison of translation accuracy and relative decoding time for syllable-level models
Table 3: Translation accuracy and Relative decoding time for character level translation using different decoding methods and parameters. Relative decoding time is indicated as a multiple of word-level decod- ing time. Translation accuracy and decode time per sentence for word-level decoding (in milliseconds) is shown on the last line for comparison.

Limitations and Future Work

  • Alignment Bottleneck: While this paper solves the decoding speed issue, the authors note that aligning long subword sequences during the training phase is still computationally expensive.
  • SMT Focus: The study is strictly within the realm of Phrase-Based SMT. While they briefly mention that Neural MT (NMT) is also sensitive to sentence length, the specific parameter optimizations discussed here are unique to SMT decoders like Moses.
  • Monotone Decoding: The experiments focused on monotone decoding (translating in order), which is common for related languages but might not apply to language pairs with significant word-order differences.

Summary updated

BibTeX
@misc{kunchukuttan2016faster,
  author = {Anoop Kunchukuttan and Pushpak Bhattacharyya},
  title = {{Faster decoding for subword level Phrase-based SMT between related languages}},
  year = {2016},
  eprint = {1611.00354},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.00354},
}
Figure