Modern Large Language Models (LLMs) do not "read" text the way humans do. Instead, they rely on a process called tokenization—typically Byte Pair Encoding (BPE)—to chunk strings of characters into subword units. While this makes processing efficient, it introduces a "necessary evil" Buu Phan that distorts the model's perception of language, arithmetic, and code.
A growing body of research suggests that the future of language modeling lies in moving away from fixed subword vocabularies toward more granular, robust, and "tokenization-free" representations.
The Tokenization Bottleneck
Tokenization is a heuristic-based compression step that happens before a model even sees the data. This creates several fundamental issues:
- The Prompt Boundary Problem (PBP): As Jonathan Hayase and Alisa Liu demonstrate in ByteSampler, LLMs struggle when a prompt ends in the middle of a potential token. Because the model only predicts the next token, it cannot easily "reach back" to fix a partial subword.
- Linguistic Unfairness: Standard tokenizers are often biased toward Latin scripts. Orevaoghene Ahia and Hila Gonen show in MAGNET that non-Latin languages are often over-segmented into tiny, semantically meaningless fragments, increasing computational costs and decreasing performance for those speakers.
- Numerical Fragility: Traditional models treat numbers as strings of digits. Siavash Golkar and Miles Cranmer address this in xVal, arguing that digit-by-digit tokenization inflates sequence lengths and prevents models from learning the continuous nature of mathematics.
Bytes as the Universal Unit
To solve these issues, researchers are returning to the most basic unit of digital text: the raw UTF-8 byte. By using a fixed vocabulary of just 256 bytes, models can process any script, handle misspellings, and eliminate the "unknown word" ([UNK]) problem entirely.
Bo Li and colleagues demonstrated in Bytes are All You Need that byte-level models are superior for multilingual tasks and code-switching. Similarly, Omer Levy and Uri Shaham showed in Neural Machine Translation without Embeddings that representing text as raw bytes can actually improve translation performance while reducing the number of parameters.
The Sequence Length Challenge
The primary reason we use tokenization is efficiency. Because the computational cost of the Transformer's self-attention mechanism scales quadratically with sequence length, switching from subwords to bytes (which are much shorter units) can increase sequence lengths by 4x or more. This leads to:
- Higher Latency: More decoding steps are required to generate the same amount of text.
- Memory Pressure: Longer sequences consume the model's context window more quickly.
- Training Difficulty: Capturing long-range dependencies becomes harder when the "distance" between related concepts (in terms of tokens) increases.
As Yann LeCun and Xiang Zhang noted in their early work on Text Understanding from Scratch, character-level models require massive datasets and hardware to learn the hierarchical structure of language that word-level models get "for free."
Bridging the Gap: Fusion and Merging
To get the robustness of bytes without the computational penalty, researchers are developing methods to compress byte streams dynamically.
- Dynamic Merging: Julie Kallini and Christopher D Manning introduced MrT5, which "deletes" redundant tokens within the encoder. By compressing raw byte streams by up to 75% after a few layers, the model achieves the speed of subword models with the robustness of byte models.
- Local Fusion: Makesh Narsimhan Sreedhar proposed Local Byte Fusion (LOBEF), which uses local convolutions to fuse bytes into meaningful units before they reach the expensive attention layers.
- Inference-Time Adaptation: Saibo Geng and Maxime Peyrard developed zip2zip, which uses online data compression (LZW) to merge frequent token sequences into "hypertokens" on the fly, boosting generation speed by up to 40%.
Beyond Natural Language
The shift toward fine-grained, tokenization-free modeling extends to specialized domains where traditional text-based chunking is even more destructive.
In genomics, Aditya Malusare and Vaneet Aggarwal developed ENBED, which treats DNA nucleotides as individual tokens. This "byte-level" precision allows the model to predict viral mutations and understand the "natural language" of life more accurately than models that group nucleotides into arbitrary k-mers. Similarly, in music, Nathan Fradet explored how BPE for Symbolic Music can be optimized to reduce sequence lengths while maintaining the structural integrity of musical attributes.
By treating data—whether it is text, DNA, or numbers—as a continuous or granular stream rather than a sequence of pre-defined "words," these models are becoming more flexible, fair, and capable of handling the messy reality of real-world information.