Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidates

Taku KudoACL 2018

Introduction

Neural Machine Translation (NMT) systems typically address the "open vocabulary" problem by segmenting words into subword units. While Byte-Pair-Encoding (BPE) has become the standard for this task, its deterministic nature—always splitting a word in the same way—limits the model's ability to learn linguistic compositionality and makes it brittle to segmentation noise. This paper introduces subword regularization, a technique that exposes NMT models to multiple segmentation variants during training to improve translation quality and robustness.

Methods

The proposed approach consists of two main components:

  1. Subword Regularization: Instead of using a fixed segmentation, the model samples different subword sequences for the same sentence on-the-fly during training. This acts as a powerful data augmentation strategy, forcing the model to learn that various subword combinations represent the same underlying meaning.
  2. Unigram Language Model Segmenter: To enable probabilistic sampling, the authors developed a new subword algorithm based on a unigram language model. Unlike the bottom-up merge process of BPE, this model uses an iterative EM-style algorithm to find a vocabulary that maximizes the likelihood of the training data. This allows for sampling the $l$-best segmentations or using a smoothing parameter ($\alpha$) to control segmentation diversity.
Example of multiple valid subword segmentations for the same input string.

Experimental Setup

The method was evaluated across diverse language pairs and corpus sizes, ranging from low-resource (IWSLT15/17) to high-resource (WMT14) settings. The authors also tested the model's robustness in out-of-domain scenarios using Web, patent, and query log datasets.

Results

Subword regularization consistently outperformed the BPE baseline across all tested datasets. In low-resource tasks like English-Vietnamese, the method provided gains of +1 to +2 BLEU points.

BLEU score comparison between the BPE baseline and the proposed subword regularization across various corpora.

Key findings include:

  • Improved Robustness: The most significant gains were observed in out-of-domain settings, where the model's ability to handle unfamiliar segmentations proved crucial.
  • Decoding Flexibility: Using "n-best" decoding at inference time—averaging results from multiple possible source segmentations—offered additional performance improvements.
  • Implicit Compositionality: By encountering various splits of the same word (e.g., book+s vs. books), the model better captures morphological structures.

Conclusion

Subword regularization effectively addresses the limitations of deterministic subword segmentation in NMT. By treating segmentation ambiguity as a form of training noise, the method enhances model robustness and translation quality. This technique has since been integrated into widely used tools like the SentencePiece library, becoming a cornerstone of modern NLP preprocessing.

Summary updated

BibTeX
@inproceedings{kudo2018subword,
  author = {Taku Kudo},
  title = {{Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidates}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-1007},
}
Figure