ByT5: Towards a Token-Free Future with Pre-trained Byte-to-Byte Models

By Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, Colin Raffel. 2021

725 citations recorded by the source corpus.

Most widely used pre-trained language models operate on sequences of tokens corresponding to word or subword units. By comparison, token-free models that operate directly on raw text (bytes or characters) have many benefits: They can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Because byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with minimal modifications to process byte sequences. We characterize the trade-offs in terms of parameter count, training FLOPs, and inference speed, and show that byte-level models are competitive with their token-level counterparts. We also demonstrate that byte-level models are significantly more robust to noise and perform better on tasks that are sensitive to spelling and pronunciation. As part of our contribution, we release a new set of pre-trained byte-level Transformer models based on the T5 architecture, as well as all code and data used in our experiments.1

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, Natural Language Processing

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. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Quoc V. Le
  4. Jianfeng Gao
  5. Graham Neubig
  6. Percy Liang
  7. Noah A. Smith
  8. Yejin Choi

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Trevor Darrell
  4. Andrew Zisserman
  5. Xiaogang Wang
  6. Jitendra Malik
  7. Ming-Hsuan Yang
  8. Cordelia Schmid

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Yi Tay
  3. Hinrich Schütze
  4. Quoc V. Le
  5. Yejin Choi
  6. Jianfeng Gao
  7. Noah A. Smith
  8. Timo Schick

In Natural Language Processing

  1. Graham Neubig
  2. Mohit Bansal
  3. Luke S. Zettlemoyer
  4. Jianfeng Gao
  5. Kyunghyun Cho
  6. Caiming Xiong
  7. Yejin Choi
  8. Richard Socher

Citations in the corpus