We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Computation and Language

Title: Byte Pair Encoding is Suboptimal for Language Model Pretraining

Abstract: 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.
Comments: 5 pages, 3 figures. To be published in Findings of EMNLP 2020
Subjects: Computation and Language (cs.CL)
ACM classes: I.2.7
Cite as: arXiv:2004.03720 [cs.CL]
  (or arXiv:2004.03720v2 [cs.CL] for this version)

Submission history

From: Kaj Bostrom [view email]
[v1] Tue, 7 Apr 2020 21:21:06 GMT (61kb,D)
[v2] Mon, 5 Oct 2020 17:35:44 GMT (4618kb,D)

Link back to: arXiv, form interface, contact.