Byte Pair Encoding is Suboptimal for Language Model Pretraining

By Kaj Bostrom, Greg Durrett. 2020

317 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Natural Language Processing, Evaluation & Benchmarks

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Sebastian Ruder
  2. Mohit Bansal
  3. Quoc V. Le
  4. Yi Tay
  5. Luke S. Zettlemoyer
  6. Graham Neubig
  7. Jianfeng Gao
  8. Ivan Vulic

In Natural Language Processing

  1. Sebastian Ruder
  2. Ivan Vulic
  3. Graham Neubig
  4. Yi Tay
  5. Donald Metzler
  6. Sebastian Gehrmann
  7. Colin Raffel
  8. Anders Søgaard

In Evaluation & Benchmarks

  1. Sebastian Ruder
  2. Andrew Zisserman
  3. João Carreira
  4. Ivan Vulic
  5. Jean-Baptiste Alayrac
  6. Carl Doersch
  7. Sebastian Gehrmann
  8. Dara Bahri

Citations in the corpus