atlas

Research map / Architectures and efficiency / Attention and transformers

SpaceByte: Towards Deleting Tokenization from Large Language Modeling

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Language model pretraining and induction · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SpaceByte, a byte-level Transformer decoder that inserts larger global blocks only after spacelike bytes, closing most of the gap to subword Transformers under compute-controlled training.

Problem

Byte-level autoregressive language models lag subword tokenized Transformers when compared under matched training and inference compute, despite avoiding tokenization's biases and vulnerabilities.

Approach

Dynamically partition bytes into patches aligned with word boundaries (a spacelike-byte rule over UTF-8) and apply larger-dimension global Transformer blocks only at patch starts, with local blocks before and after; this beats fixed-patch MegaByte-style multiscale modeling.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use dynamically sized, text-aligned patches instead of fixed-size patches (ablation)SpaceByte · PG-19bits-per-byte: 1.112 -> 1.009Helped
use dynamically sized, text-aligned patches instead of fixed-size patches (ablation)SpaceByte · arXivbits-per-byte: 0.804 -> 0.748Helped
use dynamically sized, text-aligned patches instead of fixed-size patches (ablation)SpaceByte · Githubbits-per-byte: 0.552 -> 0.500Helped
replace SentencePiece subword tokenization with SpaceByte byte-level modelingTransformer (SentencePiece) · PG-19bits-per-byte: 0.989 -> 1.009Hurt
replace SentencePiece subword tokenization with SpaceByte byte-level modelingTransformer (SentencePiece) · arXivbits-per-byte: 0.768 -> 0.748Helped
replace SentencePiece subword tokenization with SpaceByte byte-level modelingTransformer (SentencePiece) · Githubbits-per-byte: 0.508 -> 0.500Helped
replace GPT2 subword tokenization with SpaceByte byte-level modelingTransformer (GPT2 tokenizer) · PG-19bits-per-byte: 1.013 -> 1.009Helped
replace GPT2 subword tokenization with SpaceByte byte-level modelingTransformer (GPT2 tokenizer) · arXivbits-per-byte: 0.796 -> 0.748Helped
replace GPT2 subword tokenization with SpaceByte byte-level modelingTransformer (GPT2 tokenizer) · Githubbits-per-byte: 0.554 -> 0.500Helped
use SpaceByte instead of MegaByteMegaByte · PG-19bits-per-byte: 1.083 -> 1.009Helped
use SpaceByte instead of MegaByteMegaByte · arXivbits-per-byte: 0.822 -> 0.748Helped
use SpaceByte instead of MegaByteMegaByte · Githubbits-per-byte: 0.570 -> 0.500Helped

Surprising findings

Limitations

Experimental setup

Datasets: PG-19 arXiv (The Pile) Github (The Pile) Stories

Benchmarks: PG-19 arXiv Github Stories

Metrics: bits-per-byte FLOPs-per-byte training FLOPs

Baselines: MegaByte MambaByte-353M Transformer (GPT2 tokenizer) Transformer (SentencePiece) Transformer (Window Attention) PerceiverAR-248M Transformer-320M

Builds on: MegaByte MambaByte Hourglass Transformer RoPE FlashAttention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy