ByteDistill: Cross-Tokenizer Distillation via Chunk-wise Byte-Level Distribution Alignment
Yang Chen, Xianqi Yu, SHAOWEI YAO, Fuyu Lv, Dan Ou, Haihong Tang
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › RL Rollout Acceleration · Type: new method · Keywords: cross-tokenizer distillation, byte-level distribution alignment, knowledge distillation, tokenizer mismatch, language model compression
Summary
ByteDistill introduces a byte-level distribution alignment loss that projects token softmaxes into a shared observable next-byte distribution, handling tokenizer mismatch without aligning token spaces or discarding probability mass.
Explained to a 5-year-old
ByteDistill is a way to teach a small language model from a big one even when they use different words. It looks at the tiny pieces of text called bytes that both models see, instead of the words themselves. By comparing how likely each next byte is, the small model learns the same patterns as the big model. This helps the small model do better on math problems without needing a lot of extra training. In short, ByteDistill makes it easier to share knowledge between different language models.
Explained to a 5-year-old, longer
ByteDistill is a new trick for teaching a small computer program how to understand words. It works when the big and small programs cut text into words differently. Instead of comparing the words directly, it looks at the tiny building blocks called bytes. Every letter and symbol is made of bytes that both programs can see. The method watches how likely the next byte is after each byte. By matching these byte chances, the small program learns the same patterns. This helps it solve math problems better, even if it has fewer words. The approach also works when the small program is already learning from the big one. It beats older ways of teaching that sometimes lose information. In practice, using ByteDistill gives a small boost on tests like GSM8K. The improvement is small but consistent across different settings. Overall, ByteDistill makes it easier to share knowledge between different language models.
For a technical reader
ByteDistill addresses tokenizer mismatch in knowledge distillation by aligning byte-level distributions rather than token spaces. It projects each model's softmax into a shared 256-way next-byte distribution within aligned decoded chunks. The loss marginalizes token-ending probability mass as a latent boundary transition, preserving overall probability. Evaluations on GSM8K show a 1.75 pp gain over prior cross-tokenizer methods in off-policy settings. The approach is simple to implement and works with both supervised fine-tuning and existing baselines.
Problem
Adapting large language models to new tokenizers is challenging because token-level distillation assumes a shared categorical support, which is violated when teacher and student tokenizers segment text differently.
Method
The approach compares the conditional distribution of the next observable byte rather than aligning token identities, projecting each native softmax into a 256-way observable next-byte distribution inside aligned decoded chunks, and marginalizing token-ending mass as a latent boundary transition.
Results
The approach improves GSM8K accuracy by 1.75 percentage points over the current state of the art in off-policy settings and consistently outperforms supervised fine-tuning and prior baselines in both off-policy and on-policy settings.
Contributions
It introduces a byte-level distribution alignment loss that projects token softmaxes into a shared observable next-byte distribution, handling tokenizer mismatch without aligning token spaces or discarding probability mass, and demonstrates superior performance across multiple settings.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction