Distributional Properties of Subword Regularization
Preprint
Abstract
Subword regularization, used widely in NLP, improves model performance by reducing the dependency on exact tokenizations, augmenting the training corpus, and exposing the model to more unique contexts during training. BPE and MaxMatch, two popular subword tokenization schemes, have stochastic dropout regularization variants. However, there has not been an analysis of the distributions formed by them. We show that these stochastic variants are heavily biased towards a small set of tokenizations per word. If the benefits of subword regularization are as mentioned, we hypothesize that biasedness artificially limits the effectiveness of these schemes. Thus, we propose an algorithm to uniformly sample tokenizations that we use as a drop-in replacement for the stochastic aspects of existing tokenizers, and find that it improves machine translation quality.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- Navigating the Metrics Maze: Reconciling Score Magnitudes and Accuracies2024
- Tokenization and the Noiseless Channel2023
- From characters to words: the turning point of BPE merges2021
- BPE-Dropout: Simple and Effective Subword Regularization2020
- fairseq: A Fast, Extensible Toolkit for Sequence Modeling2019
- SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing2018
- Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidates2018
- Neural Machine Translation of Rare Words with Subword Units2016
- Japanese and Korean voice search2012
- OpenFst: A General and Efficient Weighted Finite-State Transducer Library2007