Modern natural language processing almost universally relies on subword tokenization algorithms like Byte-Pair Encoding (BPE). While subword tokenizers make sequence lengths manageable, they introduce a host of brittle failure modes: they struggle with typos, exhibit bias against morphologically rich or non-Latin languages, and require fixed, immutable vocabularies.
The alternative—processing raw characters or bytes directly—offers a elegant, vocabulary-free solution. However, shifting granularity from words to bytes introduces a severe computational tax: sequence length inflation. When text is decomposed into its finest constituent parts, sequence lengths expand by a factor of three to five. Because the self-attention mechanism in Transformers scales quadratically ($O(N^2)$) with sequence length, this expansion creates a prohibitive computational bottleneck during both training and inference.
To make tokenization-free models practical, recent architectural innovations focus on a shared goal: compressing raw byte streams into dense latent representations before or during core transformer processing.
The Root Cause: The Quadratic Cost of Granularity
To understand why character-level models struggle to scale, consider how sequence length impacts a Transformer's computational footprint. As noted by Tom Kenter et al. in their work on byte-level machine reading, decomposing a single word into multiple byte tokens drastically inflates the sequence length.
This inflation triggers two distinct computational penalties:
- Memory and Attention Overhead: A sequence that is $5\times$ longer requires $25\times$ more memory and compute for full self-attention layers. The authors of Why don't people use character-level machine translation? demonstrate that this quadratic scaling causes character-level models to be up to five times slower than subword alternatives during training and inference.
- Long-Range Dependency Dilution: When the distance between related words spans dozens of characters instead of a few tokens, it becomes significantly harder for standard architectures to capture global sentence structure and long-distance context, as observed by Christopher D. Manning et al. in early hybrid word-character models.
To bypass these limitations, researchers have developed mechanisms to dynamically or structurally compress byte sequences, achieving the robustness of character-level modeling at the speed of subword tokenization.
Strategy 1: Dynamic Patching and Token Merging
Rather than treating every byte as an independent token throughout the entire network, modern tokenization-free architectures group bytes into variable-length units based on information density.
Entropy-Based Patching
In the Byte Latent Transformer (BLT), Artidoro Pagnoni et al. introduce a dynamic grouping mechanism based on data complexity (entropy). The intuition is straightforward: predictable character sequences (like the letters inside a common word) contain low entropy and can be grouped into a single large "patch." Unpredictable transitions (like spaces, punctuation, or rare characters) signal high entropy and trigger smaller, more granular patches. By processing these dynamically sized patches in the core transformer layers, BLT matches the efficiency of subword models while operating entirely on raw bytes.
Raw Bytes: [ t ][ h ][ e ][ ][ a ][ l ][ g ][ o ][ r ][ i ][ t ][ h ][ m ]
\_____________/ \__________________________________________/
Entropy Group: Low Entropy High/Variable Entropy
Latent Patches: [ Patch 1 ] [ Patch 2 ]
Learned Token Deletion
An alternative approach is to let the model actively prune redundant information as a sequence flows through its layers. Julie Kallini et al. propose MrT5, an architecture that dynamically "deletes" or merges redundant byte tokens within the early layers of an encoder. By compressing raw byte streams by up to 75% after just a few layers of initial processing, MrT5 eliminates the downstream quadratic attention bottleneck while retaining the linguistic fairness and noise-robustness of a full byte-level model.
Strategy 2: Local Feature Fusion
Instead of dynamically dropping tokens, some architectures use structural layers to aggregate fine-grained byte information into dense representations before the sequence ever reaches the self-attention layers.
Makesh Narsimhan Sreedhar et al. implement this via Local Byte Fusion (LOBEF). LOBEF uses localized convolutions or word-boundary attention mechanisms to explicitly fuse adjacent byte representations. This creates a fixed-rate temporal compression:
$$\text{Raw Bytes} \xrightarrow{\text{Convolution / Local Fusion}} \text{Compressed Latent Vectors}$$
By handling the high-frequency, local character interactions in cheap linear-time convolutional layers, the expensive quadratic attention mechanism is reserved for a much shorter sequence of dense latent vectors. This approach mirrors findings by Colin Cherry et al., who demonstrated that character-based models scale exceptionally well with depth if paired with learned temporal compression.
Strategy 3: Differentiable, End-to-End Tokenization
A third paradigm bridges the gap between traditional tokenizers and byte-level models by making the tokenization process itself differentiable and learnable.
Standard BPE: Raw Text ──[Static Rules]──> Fixed Tokens ──> Embedding Matrix
Gradient-Based: Raw Bytes ──[Neural Boundary Predictor (Trainable)]──> Latent Blocks
Nathan Godey et al. developed MANTa, a module for adaptive neural tokenization that learns to segment text into multi-character blocks end-to-end with the language model. Because the segmentation boundaries are determined by gradients rather than static lookup tables, the model can adaptively compress text based on context.
Expanding on this concept to address multilingual inequities, Orevaoghene Ahia et al. introduced MAGNET. MAGNET uses script-specific boundary predictors to ensure that non-Latin languages are not unfairly over-segmented into massive character sequences. By learning optimal, balanced compression rates across different writing systems, it mitigates sequence length inflation while preserving cross-lingual performance and fairness.
Summary
The transition away from rigid subword vocabularies toward tokenization-free modeling is fundamentally a challenge of managing sequence length. Whether through entropy-driven patching (Pagnoni et al.), early layer token deletion (Kallini et al.), or localized convolutional fusion (Sreedhar et al.), the core insight remains the same: process locally at the byte level for robustness, but compress early into latent representations for efficiency.