CLApr 7, 2020

Byte Pair Encoding is Suboptimal for Language Model Pretraining

arXiv:2004.03720v21047 citations
Originality Incremental advance
AI Analysis

This addresses a gap in the literature for NLP researchers and developers by showing that a less common tokenization method can improve model performance, though it is incremental as it compares existing methods.

The paper tackles the problem of evaluating tokenization methods for language model pretraining, finding that unigram LM tokenization outperforms or matches byte-pair encoding (BPE) across downstream tasks in English and Japanese, with concrete performance gains reported.

The success of pretrained transformer language models (LMs) in natural language processing has led to a wide range of pretraining setups. In particular, these models employ a variety of subword tokenization methods, most notably byte-pair encoding (BPE) (Sennrich et al., 2016; Gage, 1994), the WordPiece method (Schuster and Nakajima, 2012), and unigram language modeling (Kudo, 2018), to segment text. However, to the best of our knowledge, the literature does not contain a direct evaluation of the impact of tokenization on language model pretraining. We analyze differences between BPE and unigram LM tokenization, finding that the latter method recovers subword units that align more closely with morphology and avoids problems stemming from BPE's greedy construction procedure. We then compare the fine-tuned task performance of identical transformer masked language models pretrained with these tokenizations. Across downstream tasks and two languages (English and Japanese), we find that the unigram LM tokenization method matches or outperforms BPE. We hope that developers of future pretrained LMs will consider adopting the unigram LM method over the more prevalent BPE.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes