Introduction
Modern Large Language Models (LLMs) are almost exclusively trained on token sequences produced by fixed, external tokenizers like Byte-Pair Encoding (BPE). While tokenization is essential for compressing raw text into shorter, computationally efficient sequences, it fundamentally couples the model to the tokenizer. This coupling introduces significant artifacts, including "glitch tokens" (under-trained sequences), biases against low-resource languages, and extreme sensitivity to prompt boundaries—where adding a single trailing space can completely alter how a model perceives an input.
The natural alternative is byte-level modeling, which treats every UTF-8 byte as a token. Byte-level models are universally robust, but they result in much longer sequences, making training prohibitively expensive. This paper introduces Proxy Compression, a novel training scheme that allows language models to reap the efficiency benefits of tokenization during training while remaining pure, robust byte-level models at inference time.
The Mechanics of Proxy Compression
Proxy Compression treats the external compressor as a temporary training scaffold rather than a permanent component of the model pipeline. The training process relies on a few key mechanisms:
- Mixed-Representation Training: During training, the model is exposed to a mixed dataset. Approximately 90% of the samples are compressed using a "proxy" (such as a standard tokenizer or a neural compressor), while the remaining 10% are kept as raw UTF-8 bytes.
- Sentinel Tokens: The model uses special tags, such as
<raw>...</raw>and<comp>...</comp>, to distinguish between the two formats. - In-Context Translation Pairing: During an initial warmup phase, the model is shown the same data in both raw and compressed formats within the same context window. This encourages the model to learn an internal alignment or "translation" between the two representations.
- Pure Byte-Level Inference: Once training is complete, the proxy compressor is entirely discarded. The model is deployed with an end-to-end, raw-byte interface.
The researchers tested three types of proxy compressors: standard BPE-style tokenizers, a small 40M-parameter neural compressor using arithmetic coding, and standard Gzip.
Key Insights and Scaling Dynamics
The most significant finding of this work is cross-representation transfer. Models can learn complex logic from compressed data and successfully transfer that knowledge to the raw byte representation. Even though the model sees raw bytes only 10% of the time during training, it performs at inference as if it had been trained extensively on bytes.
However, this alignment is a complex task that heavily depends on model scale:
- The Scaling Catalyst: Small models (e.g., 0.5B parameters) struggle to align the representations, often exhibiting "negative transfer." But as models scale to 14B parameters, they become highly adept at this internal translation, eventually matching or outperforming standard tokenized models.
- Compressor Stability: Not all compressors make good proxies. Gzip failed because it is highly unstable—minor changes in the input text lead to massive, unpredictable shifts in the compressed output. Effective proxies, like tokenizers and neural compressors, are "regular" and preserve semantic structure. Interestingly, "fuzzy" neural compression—where one compressed sequence might represent several slightly different raw versions (like code with varying indentation)—actually helps the model focus on semantic meaning over superficial formatting.
Performance and Robustness
The study primarily evaluated Proxy Compression on code generation using the RefineCode corpus (a 270GB Python subset and a 3.3TB full GitHub split), testing against benchmarks like HumanEval-Plus, MBPP-Plus, and ReCode.
At the 14B parameter scale, proxy-trained models matched or surpassed standard tokenizer-based models on standard benchmarks. Because they could consume vastly more data during the compressed portion of their training, proxy models significantly outperformed pure byte-level baselines under a fixed compute budget.
Crucially, proxy models inherited the superior robustness of byte-level modeling. On the ReCode benchmark—designed to test robustness against perturbations like formatting changes or docstring paraphrasing—standard tokenizer-based models swung wildly, showing a performance standard deviation of ~14%. In stark contrast, the proxy model remained highly stable, with a standard deviation of only 0.88%.
Limitations and Future Directions
While Proxy Compression elegantly solves the training efficiency problem for byte-level models, challenges remain at inference. Because the model operates entirely on bytes during deployment, sequences are inherently longer, which can be slower and more memory-intensive than token-based inference. Although the authors utilized the EvaByte architecture to mitigate this, inference cost remains a general hurdle for byte-level modeling.
Additionally, while initial natural language experiments (using Nemotron-CLIMB) are promising, the bulk of the large-scale results in this study focus on the coding domain. Massive-scale validation on multilingual and mixed-domain data is the next logical step. Future work may also explore integrating proxy compression directly into the model architecture, rather than treating it primarily as a data preprocessing and scaffolding technique.
Summary updated