Abstract
Byte Pair Encoding (BPE) is the standard for subword tokenization in Neural Machine Translation (NMT), but its deterministic nature limits model robustness. We present BPE-Dropout, a simple stochastic regularization method that randomly skips merges during training. This forces the model to encounter multiple segmentations of the same word, improving morphological awareness and robustness to noise. Our results show consistent BLEU improvements across various language pairs and significant gains in handling misspelled text without increasing inference overhead.
Introduction
Most modern NMT systems rely on Byte Pair Encoding (BPE) to handle the "open vocabulary" problem by breaking rare words into smaller subword units. However, standard BPE is deterministic: a specific word is always segmented the same way. This lack of "morphological awareness" makes models brittle; if a model only ever sees "unrelated" as a single token, it may fail to learn that "un-" is a prefix or "-ed" is a suffix. Consequently, a single typo or a slightly different segmentation at test time can completely confuse the system.
Previous attempts to solve this required training complex language models. BPE-Dropout offers a solution that is simpler and fully compatible with the standard BPE framework.
Methodology: BPE-Dropout
The core algorithm of BPE-Dropout is elegantly simple. During training, when segmenting a word using a pre-trained merge table, there is a probability $p$ (the dropout rate) that any given merge will be randomly skipped.
Because merges are skipped randomly, the same word can result in many different segmentations across different training steps. This forces the model to learn the compositionality of language—for instance, learning that "un-" consistently means negation regardless of the root it precedes. Crucially, at inference time, the dropout rate is set to 0, ensuring the system reverts to deterministic BPE with no extra computational overhead.
Experimental Results
We evaluated BPE-Dropout across a diverse set of language pairs (English to Vietnamese, Chinese, French, Arabic, German, and Japanese) and corpus sizes.
As shown in the results, BPE-Dropout consistently outperformed standard BPE and previous state-of-the-art subword regularization methods. It showed improvements of up to 2.3 BLEU points on some tasks. Furthermore, the model demonstrated remarkable robustness to noise. When tested on data with synthetic misspellings, the gap between standard BPE and BPE-dropout widened significantly, as the regularized model had learned to be "segmentation-agnostic."
Discussion and Conclusion
While BPE-Dropout is highly effective, the optimal dropout rate $p$ is not universal. While $p=0.1$ worked well for most European languages, logographic languages like Chinese and Japanese required a higher rate ($p=0.6$) to see benefits. Additionally, on very large datasets, the benefit of applying dropout to the target side diminished, suggesting that source-side regularization is the primary driver in high-resource scenarios.
In conclusion, BPE-Dropout is a simple yet powerful tweak that significantly improves translation quality and makes models remarkably robust to typos and noise without increasing inference time.
Summary updated