Cited by 330Topic ModelingNatural Language Processing TechniquesMultimodal Machine Learning Applications

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

Open access
Xue, Linting, Barua, Aditya, Constant, Noah, Al-Rfou, Rami, Narang, Sharan, Kale, Mihir, Roberts, Adam, Raffel, Colin·2022·Transactions of the Association for Computational Linguistics

Abstract

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

Integrity signals

Registry

Crossref · 10.1162/tacl_a_00461

Cites

70 of 70 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • In ByT5, the text is processed as UTF-8 bytes, with spans of approximately 20 bytes being masked.

    “In contrast, ByT5 (Xue et al. 2022) processes the text as UTF-8 bytes, with spans of approximately 20 bytes being masked.”
  • Character-level tokenization is advantageous when dealing with languages lacking clear word boundaries or for specific tasks like character-level language modeling.

    “Character-level tokenization is advantageous when dealing with languages lacking clear word boundaries or for specific tasks like character-level language modeling (Sutskever et al. 2011; Al-Rfou et al. 2019; Xue et al. 2022).”
  • In ByT5, the encoder is three times deeper than the decoder.

    “Additionally, the encoder in ByT5 is three times deeper than the decoder.”

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Xue, L., Barua, A., Constant, N., Al-Rfou, R., Narang, S., Kale, M., Roberts, A., & Raffel, C.
Affiliations
  • Google (United States) (US)
  • Google Research, USA. rmyeid@google.com
Corresponding author
  • Xue, Linting
  • Barua, Aditya
  • Constant, Noah
  • Narang, Sharan
  • Kale, Mihir
  • Roberts, Adam
  • Raffel, Colin
Venue
Transactions of the Association for Computational Linguistics
Publisher
MIT Press
Published
2022
Volume
10
Pages
291-306
ISSN
2307-387X (ISSN-L)
OpenAlex
W3164045210
Cited by
330
References
70
Citations by year
2026: 48 · 2025: 62 · 2024: 39 · 2023: 112 · 2022: 46 · 2021: 23
FWCI
21.30
Type
journal article
Language
en
Open access
Locations
  • Transactions of the Association for Computational Linguistics (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
Keywords
character-level language models, pre-trained language models, T5, transformer models, noise robustness, parameter efficiency, training and inference efficiency

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review