ByteDistill: Cross-Tokenizer Distillation via Chunk-wise Byte-Level Distribution Alignment
Abstract
Teacher and student language models often use different tokenizers, so their next-token probabilities cannot be compared directly. ByteDistill expresses both predictions over the same 256 byte values. It groups overlapping teacher and student token spans into chunks covering the same text and, within each chunk, sums token probabilities according to the next UTF-8 byte. At an observed token boundary, the ending probability is assigned to the next token's byte distribution. Byte-Level Distribution Alignment (BLDA) then compares the resulting conditional byte distributions with KL divergence, preserving each model's tokenizer and token history. In off-policy distillation from Qwen3-8B to Gemma-2-2B, ByteDistill reaches 49.27% average Pass@1 on GSM8K and MATH, exceeding SFT by 5.40 points and CTLS by 1.78 points. It also achieves 38.65 ROUGE-L on DialogSum with 1,500 training examples and improves Countdown accuracy for all three students in on-policy distillation. The project repository is available at https://github.com/Piplup0924/ByteDistill.