Most modern language models do not "read" text the way humans do. Instead, they process text through a lossy intermediate step called subword tokenization. While efficient, this process creates a "vocabulary bottleneck" that obscures the internal structure of words and creates significant biases against low-resource languages and noisy data.
A growing body of research suggests a more robust alternative: discarding tokenizers entirely and modeling language as a raw stream of UTF-8 bytes.
The Problem with the Opaque Token
To a standard Transformer, the word "apple" is a single atomic ID. The model has no inherent way of knowing that "apple" starts with 'a' or rhymes with "chapel" unless it sees those patterns across millions of examples. Subword tokenization (like BPE) attempts to bridge this by breaking words into frequent chunks, but this remains a heuristic-based compromise.
As Sabrina J. Mielke and colleagues argue in Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLP, the choice of how to segment text is a critical engineering trade-off. When tokenizers encounter rare words, typos, or complex morphology, they fragment the text into nonsensical pieces, leading to the "unknown word" problem.
Seeing Inside the Word
By operating directly on raw bytes, models gain "X-ray vision" into the internal structure of language. This is particularly powerful for tasks where the surface form of a word is as important as its meaning.
For instance, Jonas Belouadi and Steffen Eger introduced ByGPT5, a token-free model designed for poetry. Because it "sees" every character, it can master formal constraints like rhyme, meter, and alliteration—features that are often hidden within the boundaries of a subword token. Similarly, Jian Zhu and others demonstrated that ByT5 excels at grapheme-to-phoneme conversion because it preserves the fine-grained relationship between characters and sounds.
Universal Representation for a Multilingual World
One of the most compelling arguments for byte-level modeling is its inherent universality. A byte-level model uses a fixed vocabulary of just 256 values (the possible values of a single byte). This allows a single model to process any language, script, or emoji without needing a language-specific tokenizer.
Early work by Cliff Brunk and Oriol Vinyals on Byte-to-Span (BTS) showed that compact models could perform NLP tasks across multiple languages simultaneously by treating UTF-8 streams as a universal interface. More recently, the XTREME-UP benchmark by Sebastian Ruder and Jonathan H. Clark highlighted that byte-based models significantly outperform subword models in under-represented languages. They avoid the "vocabulary bias" where a tokenizer trained on English data fails to efficiently represent the morphology of a language like Icelandic or Arabic.
Overcoming the Sequence Length Tax
The primary reason the field has resisted byte-level modeling is the "tax" on sequence length. A sentence that is 10 tokens long might be 60 bytes long. Since the computational cost of standard Transformers scales quadratically with sequence length, byte-level models are traditionally 5-6 times slower, as noted by Lukas Edman in Are Character-level Translations Worth the Wait?.
To solve this, researchers are developing hierarchical and linear-scaling architectures:
- MEGABYTE: Lili Yu and Luke Zettlemoyer proposed MEGABYTE, which uses a "Global-Local" hierarchy. A large model processes patches of bytes, while a smaller model handles the intra-patch details, enabling the modeling of sequences over a million bytes long.
- MambaByte: Junxiong Wang and Tushaar Gangavarapu introduced MambaByte, which swaps the Transformer for a State Space Model (SSM). This allows for linear scaling, making token-free modeling computationally competitive with subword models.
- SpaceByte: Kevin Slagle developed SpaceByte, which dynamically applies heavy computation only after "spacelike" bytes (word boundaries), matching the efficiency of tokenized models without their fragility.
Beyond Text: Bytes as a Unified Modality
If a model can learn to understand language from raw bytes, can it learn other modalities the same way? Maxwell Horton and colleagues explored this with ByteFormer. By treating JPEGs and MP3s as raw byte streams, they achieved high accuracy on image and audio classification using the exact same architecture.
This suggests that byte-level modeling isn't just a fix for NLP—it's a path toward truly modality-agnostic AI. As Alec Radford and Ilya Sutskever famously discovered in Learning to Generate Reviews and Discovering Sentiment, a model trained simply to predict the next byte can spontaneously discover high-level semantic concepts like sentiment. By removing the human-designed abstraction of the "token," we allow the model to discover the most efficient representations of the world directly from the raw data.