Abstract
In Neural Machine Translation (NMT), Byte-Pair Encoding (BPE) is the standard for handling subword vocabularies. However, the choice of BPE merge operations is often treated as a fixed constant rather than a hyperparameter. This paper demonstrates that the common "32k merges" recipe is frequently sub-optimal, particularly for Transformer models in low-resource settings, where it can lead to performance drops of up to 4 BLEU points.
1. Introduction
NMT models face a "closed vocabulary" problem due to memory constraints. BPE solves this by breaking words into subword units based on a set number of merge operations. Despite its ubiquity, there is no consensus on the optimal number of merges. Most researchers default to 32,000 merges, a trend clearly visible in submissions to major shared tasks like WMT.
This study challenges this "one-size-fits-all" approach, investigating how BPE granularity interacts with model architecture, language morphology, and data scale.
2. Methodology
The researchers conducted a systematic sweep across several dimensions:
- BPE Merge Operations: Tested a range from 0 (character-level) to 32k.
- Architectures: Evaluated five variants including "tiny," "shallow," and "deep" versions of LSTMs and Transformers.
- Language Pairs: 10 pairs from IWSLT 2016 and the TED corpus, covering diverse morphological types (e.g., Arabic, Turkish, German).
- Data Scale: Primarily low-resource (IWSLT/TED), with a high-resource comparison using WMT 2017 Russian-English (2.6M pairs).
3. Key Findings
Transformers Prefer Small BPE in Low-Resource Settings
For Transformer architectures in low-resource scenarios, the optimal BPE size is consistently small—usually between 0 and 1k merges. Using the traditional 32k setting on these models can lead to a massive performance drop. For example, in a deep-transformer for Arabic-English, performance peaked at 30.8 BLEU with 0.5k merges but fell to 27.5 BLEU at 32k merges.
Architecture and Resource Interactions
- LSTMs are Unpredictable: Unlike Transformers, LSTM-based models do not show a consistent optimal BPE range, requiring more extensive hyperparameter tuning for each specific dataset.
- High-Resource Reversal: The "small is better" rule applies only to low-resource settings. In high-resource Russian-English tests, larger BPE sizes (16k–32k) performed better, suggesting that data volume dictates the optimal granularity of subwords.
- Joint vs. Separate BPE: The study found negligible differences in BLEU scores between training a joint vocabulary for both languages versus training them separately.
4. Results: The 4-Point Swing
The choice of BPE size is critical. In several experiments, choosing a sub-optimal configuration reduced performance by 3 to 4 BLEU points. This magnitude of change is significant, often exceeding the improvements reported for major architectural innovations.
5. Conclusion
The study serves as a "call for prudent choice," urging researchers to treat BPE merge operations as a critical hyperparameter. While 32k merges may be a safe default for high-resource settings, it is frequently detrimental for low-resource Transformers. For these models, starting with a much smaller BPE size (e.g., 500 or 1000 merges) is likely to yield substantial performance gains.
Reference: Ding, S., Renduchintala, A., & Duh, K. (2019). A Call for Prudent Choice of Subword Merge Operations in Neural Machine Translation. Proceedings of MT Summit XVII, volume 1.
Summary updated