English

SpaceByte: Towards Deleting Tokenization from Large Language Modeling

Computation and Language 2024-10-08 v3 Artificial Intelligence Machine Learning

Abstract

Tokenization is widely used in large language models because it significantly improves performance. However, tokenization imposes several disadvantages, such as performance biases, increased adversarial vulnerability, decreased character-level modeling performance, and increased modeling complexity. To address these disadvantages without sacrificing performance, we propose SpaceByte, a novel byte-level decoder architecture that closes the performance gap between byte-level and subword autoregressive language modeling. SpaceByte consists of a byte-level Transformer model, but with extra larger transformer blocks inserted in the middle of the layers. We find that performance is significantly improved by applying these larger blocks only after certain bytes, such as space characters, which typically denote word boundaries. Our experiments show that for a fixed training and inference compute budget, SpaceByte outperforms other byte-level architectures and roughly matches the performance of tokenized Transformer architectures.

Keywords

Cite

@article{arxiv.2404.14408,
  title  = {SpaceByte: Towards Deleting Tokenization from Large Language Modeling},
  author = {Kevin Slagle},
  journal= {arXiv preprint arXiv:2404.14408},
  year   = {2024}
}

Comments

9+10 pages, 3+1 figures, 2+4 tables

R2 v1 2026-06-28T16:02:38.667Z