A Call for Prudent Choice of Subword Merge Operations

Shuoyang Ding, Adithya Renduchintala, Kevin Duh

Abstract

Most neural machine translation systems are built upon subword units extracted by methods such as Byte-Pair Encoding (BPE) or wordpiece. However, the choice of number of merge operations is generally made by following existing recipes. In this paper, we conduct a systematic exploration on different numbers of BPE merge operations to understand how it interacts with the model architecture, the strategy to build vocabularies and the language pair. Our exploration could provide guidance for selecting proper BPE configurations in the future. Most prominently: we show that for LSTM-based architectures, it is necessary to experiment with a wide range of different BPE operations as there is no typical optimal BPE configuration, whereas for Transformer architectures, smaller BPE size tends to be a typically optimal choice. We urge the community to make prudent choices with subword merge operations, as our experiments indicate that a sub-optimal BPE configuration alone could easily reduce the system performance by 3-4 BLEU points.

Introduction

In Neural Machine Translation (NMT), the granularity of subword units—often determined by the number of Byte-Pair Encoding (BPE) merge operations—is a critical but frequently overlooked hyperparameter. Many researchers default to a "standard" of 32,000 merge operations, a recipe established primarily on high-resource language pairs using older LSTM-based architectures.

This paper argues that this "one-size-fits-all" approach is fundamentally flawed. Through a systematic investigation, we demonstrate that the optimal BPE configuration varies wildly depending on the model architecture and data availability. Choosing a sub-optimal setting is not a minor oversight; it can degrade system performance by as much as 4 BLEU points, a margin that often exceeds the total improvements reported in many NMT publications.

Experimental Methodology

To understand the impact of subword granularity, we conducted a massive sweep across several dimensions:

  • Merge Counts: We tested a range of operations from 0 (character-level) up to 32k.
  • Architectures: We evaluated "tiny," "shallow," and "deep" variants of both LSTM and Transformer models.
  • Data Scenarios: Our primary focus was on low-resource settings using IWSLT 2016 and the TED Corpus, with WMT 2017 Russian-English serving as a high-resource control.

The Transformer "Sweet Spot"

Our findings reveal a distinct "sweet spot" for Transformer architectures in low-resource environments. Contrary to the 32k standard, these models consistently perform best with very small vocabularies, typically in the range of 500 to 1,000 merge operations.

BLEU scores for ar-en and en-ar across different BPE sizes, showing a preference for smaller vocabularies in low-resource settings.

As illustrated in the figure above, translation quality for Transformers tends to peak early and then decline as the BPE size increases. In low-resource English-to-German tasks, for example, a 1k setting outperformed the 32k setting by 3.6 BLEU points.

LSTM Sensitivity and the "4-BLEU Penalty"

While Transformers show a predictable trend, LSTM-based architectures exhibit what we term "LSTM Chaos." There is no typical optimal BPE configuration for LSTMs; the best setting varies significantly based on the language pair and model depth.

BLEU scores for various LSTM configurations and language pairs. The delta column highlights the performance gap between the best and worst BPE settings.

The table above illustrates this sensitivity. In extreme cases, such as deep-LSTM French-to-English translation, the difference between the best and worst BPE configuration reached a staggering 9.2 BLEU points. Across most tested scenarios, the performance gap (indicated by the $\delta$ column) frequently exceeded 3 BLEU points, highlighting the severe penalty of a sub-optimal choice.

Key Insights and Discussion

  • Linguistic Influence: Our regression analysis suggests that morphologically rich languages, particularly those with agglutinative features like Turkish, are more sensitive to BPE choices.
  • Vocabulary Strategy: We found that the choice between "Joint BPE" (combined source and target) and "Separate BPE" has a negligible impact on final translation quality compared to the number of merge operations.
  • The Role of Data Scale: On high-resource datasets, the trend reverses, and larger BPE sizes (16k-32k) become more effective. This confirms that the 32k recipe is a product of high-resource research and should not be blindly applied to low-resource settings.

Conclusion

We urge the NMT community to move away from "set-and-forget" BPE defaults. Our results show that subword granularity is a high-impact hyperparameter that interacts deeply with model architecture and data scale. For practitioners working with limited data or exploring diverse architectures, a systematic sweep of BPE settings is not just a best practice—it is essential for achieving competitive performance.

Summary updated

BibTeX
@inproceedings{ding2019call,
  author = {Shuoyang Ding and Adithya Renduchintala and Kevin Duh},
  title = {{A Call for Prudent Choice of Subword Merge Operations}},
  booktitle = {MTSummit},
  year = {2019},
  url = {https://openreview.net/forum?id=pSMea7AQNIg},
}
Figure