ByteDistill: Cross-Tokenizer Distillation via Chunk-wise Byte-Level Distribution Alignment
Yang Chen, Xianqi Yu, SHAOWEI YAO, Fuyu Lv, Dan Ou, Tanghaihong
TL;DR. ByteDistill distills across incompatible tokenizers by aligning teacher and student distributions in byte space.
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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes Byte-Level Distribution Alignment (BLDA) loss that allows probability computation in the shared byte space. Empirical evaluations show that BLDA improves over supervised fine-tuning and cross-tokenizer baselines, off-policy reasoning and summarization as well as on-policy countdown distillation.
Some areas where the paper could be further strengthened as highlighted by the reviewers are (1) improving readability of the paper, multiple reviewers reported difficulty understand it, (2) including a motivation around why specific baselines were chosen, and adding comparisons with basic techniques, (3) providing a short prompt and walk through examples, as well as how the byte logic creation processes work. Another important direction reviewers wanted to see more centers around evaluations on more benchmarks and more language scripts.
Final justification
The authors have addressed the concerns of the reviewers. In the final version, please accurately reflect and include all the requested information and walk through examples.
Read meta-review
Meta-review
This paper proposes Byte-Level Distribution Alignment (BLDA) loss that allows probability computation in the shared byte space. Empirical evaluations show that BLDA improves over supervised fine-tuning and cross-tokenizer baselines, off-policy reasoning and summarization as well as on-policy countdown distillation.
Some areas where the paper could be further strengthened as highlighted by the reviewers are (1) improving readability of the paper, multiple reviewers reported difficulty understand it, (2) including a motivation around why specific baselines were chosen, and adding comparisons with basic techniques, (3) providing a short prompt and walk through examples, as well as how the byte logic creation processes work. Another important direction reviewers wanted to see more centers around evaluations on more benchmarks and more language scripts.
Final justification
The authors have addressed the concerns of the reviewers. In the final version, please accurately reflect and include all the requested information and walk through examples.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes the ByteDistill method, a distillation framework using chunk-wise Byte-level distribution alignment. Specifically, the method groups teacher and student tokens whose byte spans overlap into maximal chunks. Within each chunk, it aggregates each LLM’s native softmax into a vector over the next byte and boundary transition. Then derives the observed-path next-byte distribution by marginalizing the boundary mass. Finally, trains the KL divergence between the teacher and student byte distributions. Experiment results showed significant gains over the compared baselines for both the mathematical and the dialog summarization tasks.
Strengths and weaknesses
The paper is well written, and the proposed algorithm is sound. Experiment results show performance improvement across the settings considered. I have the following concerns:
- Off-policy distillation considers Qwen3-8b and Gemma-2-2B as a teacher and student, respectively; however, I think experiments with model variants are required to strongly establish the performance gains. Experiments with smaller models, like 1B or 4B models, would give a better picture.
- A study on non-latin languages variants would be better, as those languages have more byte-fallbacks during the tokenization - languages like Santhali, Shan.
Questions
- Will there be any difference if the instruction-tuned model is chosen for the Off-policy distillation?
- How is the priority rule implemented? It is not very clear to me, depiction with figure would help the clarity.
Limitations
Limited number of model experiments and languages scripts studied.
Final justification
I'm satisfy by the authors detailed reply. However, I will keep my initial scores as the according to me the scores are already reflective of the quality of the work.
Formatting concerns
No issues.
2 comments
Q1. Will there be any difference if an instruction-tuned model is chosen for off-policy distillation?
Thank you for this question. We ran the same off-policy mathematical-reasoning experiment with Gemma-2-2B-IT replacing Gemma-2-2B-Base. The instruction-tuned checkpoint changes the absolute performance, but the main conclusion remains unchanged: ByteDistill is still the strongest student method on both GSM8K and MATH.
The student checkpoint was the only changed factor. We used the same Qwen3-8B teacher checkpoint, 320K training examples, 5,000 steps with batch size 64, learning rate with cosine scheduling and 0.1 warmup, and the same zero-shot greedy evaluation protocol. We reran all five student methods under this setting.
| Model / method | GSM8K | MATH | Average |
|---|---|---|---|
| Qwen3-8B teacher | 93.86 | 71.00 | 82.43 |
| Gemma-2-2B-IT (initial) | 62.47 | 3.90 | 33.19 |
| SFT | 65.73 | 33.16 | 49.45 |
| DSKDv2 | 37.23 | 11.12 | 24.18 |
| ALM | 68.92 | 35.66 | 52.29 |
| CTLS | 72.18 | 37.22 | 54.70 |
| ByteDistill (ours) | 73.46 | 39.74 | 56.60 |
ByteDistill outperforms the strongest baseline, CTLS, by 1.28 points on GSM8K, 2.52 points on MATH, and 1.90 points on average. It also improves over SFT by 7.73 and 6.58 points, respectively. Compared with the Base-student result reported in the paper, ByteDistill’s average increases from 49.27 to 56.60. This matched experiment indicates that ByteDistill’s advantage persists when the student is initialized from an instruction-tuned checkpoint.
We will add this experiment and its matched configuration to the appendix and clarify in the off-policy experimental setup that ByteDistill applies to both base and instruction-tuned students.
Q2. How is the priority rule implemented?
Thank you for pointing out that the priority rule was not explained clearly. We call it a priority rule because, at an internal token boundary, two state representations correspond to the same decoded byte position, and the rule gives priority to the Boundary representation.
Suppose the observed token play ends at an internal byte offset of a shared chunk:
Shared chunk C = [s_C, e_C):
s_C |------ [play] ------|------ [next token] ------| e_C
↑
internal byte offset t
The same decoded position has two possible state representations:
- Boundary: .
- Next-token start: .
The priority rule selects the Boundary state. It preserves both possibilities in the original softmax: a longer candidate token sharing the prefix play may continue, or play may end and prediction moves to the next state. The next-token-start distribution is already included through the ending-mass transition to . Selecting only that state would discard the longer-token possibilities, while selecting both would count the same byte offset twice.
The rule is implemented independently for the teacher and student:
- At the chunk start , select
Inside(I) with . - At an internal token boundary , select
Boundary(B). - At all other byte offsets, select
Inside(I).
For example, in Simplifying, at the teacher selects with mode B, while the student selects with mode I because it is still inside Simp. At , their roles are reversed.
We will add this illustration and the three-case rule to the methodology section, with the complete state table provided in the appendix.
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
- In this work the authors address the question of cross tokenizer distillation -- when teacher model does not share the same vocabulary as that of the student model
- By converting both tokenizers into byte level space, the author propose a new objective for distillation when the teacher and the student models do not share vocabularies.
- The authors demonstrate that the method shows consistent gains over exiting cross tokenizer distillation methods and supervised baselines.
Strengths and weaknesses
Strengths: The paper is very well written, the experiments, methodology is explained in detail. The method for cross tokenizer distillation is novel and clearly shows improvements over exitisting cross tokenizer distillation methods as well as supervised finetuning. Specifically:
- The authors show experiments in three different setting where distillation plays an important role:
a. Off-policy math reasoning: where long math reasoning traces can amplify errors, and distillation can mitigate these issues — a setup where the training signal comes from what output a teacher thinks is highly likely.
b. Low-resource regime: where the student can take advantage of the strong signal from the teacher's probability distribution, compared to hard labels.
c. On-policy distillation: to test whether the byte-level distribution, under student-teacher tokenizer mismatch, can provide a signal to train on student-generated rollouts. The training signal comes mainly from how unlikely the teacher thinks the student's generations are.
- The figure clearly explains how the tokens tokenized using two different tokenizers are aligned into chunks and then these chunks are used to convert the token level distribution to byte level distribution
Weaknesses:
- To improve the readability of section 4.2 especially, It would be really good to include a simple short prompt and work through a toy example and show how the byte logits creation process works.
Questions
Evaluating models on more benchmarks will help improve strength of the work. Other than this I do not have any questions, I am familiar with this topic and recommend for acceptance.
Limitations
yes
Formatting concerns
NA
1 comment
Rebuttal
We sincerely thank you for your positive and encouraging feedback, including remarks such as "The paper is very well written, the experiments, methodology is explained in detail", that "the method for cross tokenizer distillation is novel and clearly shows improvements over existing cross tokenizer distillation methods as well as supervised finetuning", that "the figure clearly explains how the tokens tokenized using two different tokenizers are aligned into chunks", and that you "recommend for acceptance". We particularly appreciate that you checked the methodology and the math carefully.
We respond to your weakness and your question point by point below.
Worked Example of Prefix-Tree Byte Aggregation
We appreciate the detailed reading of the method and the math, and we agree that Section 4.2 would benefit from a complete worked example. We will add the following toy example to illustrate how native token probabilities are aggregated through a byte-prefix tree.
Consider the prompt:
Convert “play” to its -ing form.
with the observed response playing. Suppose the two tokenizers produce
Teacher: [play] [ing]
Student: [playing]
UTF-8: 70 6C 61 79 69 6E 67
p l a y i n g
The bracketed tokens represent the observed tokenization. The other tokens below are alternative predictions in the native softmax, not additional observed tokens.
For illustration, suppose the initial next-token probabilities are:
| Candidate token | Teacher probability | Student probability |
|---|---|---|
play |
0.30 | — |
playing |
— | 0.40 |
player |
0.18 | 0.12 |
playful |
0.12 | 0.08 |
plane |
0.15 | 0.15 |
please |
0.10 | 0.15 |
do |
0.15 | 0.10 |
| Total | 1.00 | 1.00 |
These tokens form the following byte-prefix tree. The suffixes after each displayed branch are abbreviated for readability.
empty prefix
├── d ── do
└── p
└── l
├── e ── please
└── a
├── n ── plane
└── y
├── END ── play (teacher)
├── i ── playing (student)
├── e ── player
└── f ── playful
At any prefix, the mass of an outgoing byte is the sum of the probabilities of all candidate tokens in the corresponding subtree. The outgoing masses are then normalized to obtain the next-byte distribution. END represents token-ending mass rather than an additional byte.
The complete byte-level construction along the observed response is:
| Next observed byte | Teacher state and nonzero | Student state and nonzero | |
|---|---|---|---|
| 0 | p (0x70) |
, Inside: p: 0.85, d: 0.15 |
, Inside: p: 0.90, d: 0.10 |
| 1 | l (0x6C) |
, Inside: l: 1.00 |
, Inside: l: 1.00 |
| 2 | a (0x61) |
, Inside: a: 0.8824, e: 0.1176 |
, Inside: a: 0.8333, e: 0.1667 |
| 3 | y (0x79) |
, Inside: y: 0.80, n: 0.20 |
, Inside: y: 0.80, n: 0.20 |
| 4 | i (0x69) |
, Boundary: i: 0.50, e: 0.30, f: 0.20 |
, Inside: i: 0.6667, e: 0.20, f: 0.1333 |
| 5 | n (0x6E) |
, Inside: n: 1.00 |
, Inside: n: 1.00 |
| 6 | g (0x67) |
, Inside: g: 1.00 |
, Inside: g: 1.00 |
Here, denotes the empty byte prefix: at , no response byte has been consumed. It is neither an EOS token nor the smoothing coefficient used in the BLDA loss.
For example, at the empty prefix, the teacher’s p subtree contains play, player, playful, plane, and please. Therefore,
while do contributes
The corresponding student subtree masses are
This is the first level of the prefix tree.
For a deeper Inside example, consider , where the current prefix is pl. Tokens outside this subtree, such as do, have already been removed. On the teacher side, the a branch contains play, player, playful, and plane, while the e branch contains please:
The remaining continuation mass is . Applying the Inside branch gives
Similarly, for the student,
and hence
At , the teacher and student take different branches of Eq. (2).
For the student, play remains an interior prefix of its observed token playing. The continuing candidates give
After normalization by the total continuation mass ,
For the teacher, play is an observed token boundary. The longer candidates provide
while the observed token play provides ending mass
Suppose the next teacher state predicts ing with probability , so that
The Boundary branch therefore gives
resulting in
Thus, the example shows both operations used by ByteDistill: Inside states obtain their next-byte probabilities by summing the masses of prefix-tree subtrees and renormalizing, while Boundary states additionally transfer the token-ending mass to the next observed state through .
Before uniform smoothing, the nonzero forward-KL terms occur at , , and and are respectively , , and nats. The mean over the seven byte offsets is nats.
Q1. Additional Benchmarks and Broader Evaluation
Thank you for the encouraging assessment and constructive suggestion. We agree that broader evaluation would further strengthen the evidence for ByteDistill. While our current experiments cover mathematical reasoning, summarization, and on-policy reasoning, we plan to apply and evaluate ByteDistill in broader settings, including multilingual and code-generation tasks, in future work. We appreciate the reviewer’s recommendation for acceptance.
- Rating
- 5/6
- Confidence
- 1/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
When distilling models, tokenizer mismatch between student and teacher leads to issues that are usually solved by approximations (for eg. span filtering). This work proposes a method to distill from such a teacher by relying on the byte space matches. They formulate a Byte-Level Distribution Alignment loss that allows probability computation in the shared byte space. They apply the loss in various settings and improvements.
Strengths and weaknesses
Please note that I am not familiar with this area.
Strengths
- The method is derived from first principles. It is logical to think in byte space when the tokenizers do not match up.
- They conduct various experiments in multiple settings that show superior performance. Given the experiments with Qwen and Gemma, I think they are useful for the community.
Weaknesses
- Paper was somewhat difficult to parse. Please see the questions below.
Questions
-
How are the baselines selected? Current version just lists them out. The reasoning will help readers contextualize the work.
-
A more complex example with overlaps across tokens will help in understanding Algorithm A better. Currently it shows the simplest case where simpler techniques may also work, and does not showcase the need of proposed technique.
-
In Algorithm A, what kind of components are skipped in line 18-line 26, and does skipping them mean distillation loss is approximated in the proposed method? L129 says "components with one sided coverage are discarded". When can this scenario occur, since teacher and student sequences are identical just differently tokenized? Can you give an example to explain better.
-
nit: L143 mentions equation 2 but equation is forward reference on page 5? Could this have been organized better?
-
nit: To me proposition 1 seems trivial, and is better to be moved to appendix. It is also not used in the remaining text.
Limitations
Yes
Final justification
After going through the example shared in rebuttal and response to other reviewers, I have increased the clarity score from 2 (not good) to 3 (good). As before I retain my original assessment of 5 (accept).
Formatting concerns
NA
1 comment
Rebuttal
We sincerely thank you for your careful reading and constructive assessment, particularly your positive evaluation of ByteDistill’s motivation, byte-space formulation, and empirical results. Below, we clarify our baseline selection, provide a real example with interleaved token boundaries, explain the validity checks in Algorithm 1 through a direct coverage audit, and address the two presentation suggestions.
Q1. How are the baselines selected?
Thank you for this suggestion. We selected the baselines to cover the main comparison categories relevant to cross-tokenizer distillation. SFT serves as the control without distributional distillation. DSKDv2 combines representation projection with exact-token alignment and represents methods whose distillation signal is restricted to aligned positions. ALM and CTLS represent likelihood-based alternatives: ALM provides a closely matched OpenMathInstruct-2/Gemma-2 setup and training budget, while CTLS computes cross-tokenizer likelihood scores through tokenizer-specific paths. For the on-policy experiments, we compare with GOLD because it also performs cross-tokenizer distillation on responses generated by the student.
Together, these baselines cover four relevant categories: no distributional distillation, exact-token alignment, likelihood-based matching, and on-policy cross-tokenizer distillation. All off-policy methods use the same teacher, student, training data, and optimization budget. All on-policy methods start from the same SFT checkpoint and use the same dataset, model suite, and training setting. We will add this rationale to the experimental setup and organize the baselines by category rather than presenting them as a flat list.
Q2. A more complex example with interleaved token boundaries
We agree that a more complex example would make the state selection and the need for ByteDistill clearer. Below is a real example from OpenMathInstruct-2.
Decoded text: Simplifying
UTF-8 bytes: 53 69 6D 70 6C 69 66 79 69 6E 67
Teacher (Qwen3-8B): [S] [impl] [ifying]
Student (Gemma-2-2B): [Simp] [lifying]
The teacher boundaries are , while the student boundary is . Thus, the two tokenizations have no shared internal boundary, and all tokens belong to one shared chunk . Let and denote the teacher and student histories before this chunk.
| Next byte | Teacher | Mode | Student | Mode | |
|---|---|---|---|---|---|
| 0 | S |
I | I | ||
| 1 | i |
B | I | ||
| 2 | m |
I | I | ||
| 3 | p |
I | I | ||
| 4 | l |
I | B | ||
| 5 | i |
B | I | ||
| 6 | f |
I | I | ||
| 7 | y |
I | I | ||
| 8 | i |
I | I | ||
| 9 | n |
I | I | ||
| 10 | g |
I | I |
Here, I and B denote Inside and Boundary. At and , the teacher uses Boundary while the student uses Inside; at , their roles are reversed. Each side selects its state independently and maps it to the same 256-way byte space:
Here, is the continuation mass for byte , , and is the token-ending mass.
A method that compares only identical tokens or shared token boundaries would have no internal position to match in this example. ByteDistill can still compare the two models at the interleaved boundaries without requiring token-to-token matching. We will add this real example and its complete state table to the appendix and refer to it from the methodology section.
Q3. What is skipped, is the loss approximate, and when can one-sided coverage occur?
Thank you for the question. Algorithm 1 first groups teacher and student tokens whose byte spans overlap; each maximal connected group is called a component. Stage 3 contains two defensive checks: a component is skipped if (a) it contains text tokens from only one side, or (b) its teacher and student tokens cover different byte spans.
Because both tokenizers encode the same response and every text byte is covered, neither case should occur. We verified this using 80 responses—40 from the GSM8K test set and 40 reference responses from OpenMathInstruct-2—containing 55,602 UTF-8 bytes in total. Tokenizing these responses with Qwen3-8B and Gemma-2 and running Algorithm 1 produced 20,411 components. Neither skip condition was triggered: every component contained tokens from both sides, and the two sides covered exactly the same byte span. Therefore, all 20,411 components were retained as chunks, and these chunks covered all 55,602 response bytes, giving 100% component retention and 100% byte coverage.
Thus, these two checks introduce no approximation or loss of byte coverage at the chunk-construction stage. We will revise Line 129 and Algorithm 1 to describe them explicitly as input-validity checks. Since one-sided coverage cannot occur under the stated assumptions, there is no genuine example of it in our evaluated data.
Q4. Forward reference to Eq. (2)
We agree that the forward reference makes the presentation harder to follow. We will reorganize the section in the order of computation: first construct the aligned chunks, then define the native state and the Inside/Boundary selection rule, and finally introduce Eq. (2) for computing the next-byte distribution. The more detailed state table from Q2 will be provided in the appendix and referenced from this discussion. This removes the forward reference.
Q5. Placement of Proposition 1
We agree that Proposition 1 is better placed in the appendix. It verifies that the construction in Eq. (2) defines a valid probability distribution, but it is not used in subsequent derivations. We will state this validity property in one sentence in the main text and move the formal proposition and proof to the appendix.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We sincerely thank you for your careful reading and constructive assessment, particularly your recognition that the proposed algorithm is sound and that ByteDistill improves over the baselines across the evaluated settings. In response to your concerns and questions, we added: (i) a matched off-policy experiment with MiniCPM4-0.5B, a smaller student from a different model family; (ii) a matched experiment with Gemma-2-2B-IT as the instruction-tuned student; and (iii) a controlled Chinese-language evaluation on HighMATH. ByteDistill achieves the best student result in all three added settings. We also clarify the priority rule with an explicit two-state example and will add a diagram and complete state table. We address each point below.
W1. Experiment with a smaller student from a different model family
Thank you for this suggestion. To complement the original Qwen3-8B/Gemma-2-2B setting, we conducted a new off-policy experiment using MiniCPM4-0.5B [1] as the student while retaining Qwen3-8B as the teacher. MiniCPM4 belongs to a different model family and is substantially smaller than the original 2B student.
Relative to the main off-policy experiment, we changed only the student model from Gemma-2-2B to MiniCPM4-0.5B. We retained the same 320K training examples, 5,000 steps, batch size 64, learning rate 5×10−6 with cosine scheduling and 0.1 warmup, and zero-shot greedy evaluation protocol. All five student methods were rerun under this matched configuration.
ByteDistill remains the strongest student method on both benchmarks. It outperforms CTLS, the strongest baseline, by 1.28 points on GSM8K, 0.76 points on MATH, and 1.02 points on average. It also improves over SFT by 1.89 points on GSM8K and 1.66 points on MATH.
This result on MiniCPM4-0.5B, a smaller student from a different model family, is consistent with the finding from the original Gemma-2-2B experiment. We will add this matched experiment and its complete setup to the appendix.
W2. Evaluation on non-Latin languages.
We agree that evaluation on non-Latin languages would strengthen the paper. During the rebuttal period, we therefore added a controlled experiment on HighMATH [2], a Chinese high-school mathematics benchmark.
The HighMATH paper reports 5,293 problems in the full benchmark. However, the official public repository available to us [3] contains 4,399 records across the eight released subject files. Thus, the difference in dataset size comes from the publicly available version rather than additional filtering by us. We used all 4,399 released records and constructed a fixed, topic- and difficulty-stratified split of 3,399 training and 1,000 held-out test problems. We will release the exact split indices and data-preparation script for reproducibility.
For each problem in the training split, we use Qwen3-8B to generate a response. All subsequent methods are trained on the same fixed set of generated responses under identical settings. The 1,000 held-out test problems are used only for evaluation.
ByteDistill achieves the best performance among the evaluated cross-tokenizer methods, providing direct evidence for its effectiveness in a non-Latin language setting.
As the reviewer notes, Santhali and Shan would be particularly informative for studying heavier byte fallback. Suitable and verifiable benchmarks and language resources for controlled distillation evaluation in these languages remain limited. We are actively seeking appropriate benchmarks and additional resources and hope to extend our evaluation to these languages once they become available.
We will add the HighMATH data preparation, experimental setup, and results to the appendix and expand the discussion of evaluation on non-Latin languages.
References
[1] MiniCPM Team. “MiniCPM4: Ultra-Efficient LLMs on End Devices.” arXiv preprint arXiv:2506.07900, 2025.
[2] Yan Liu et al. “HighMATH: Evaluating Math Reasoning of Large Language Models in Breadth and Depth” Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 10241–10253.
[3] Tianjin University NLP Lab. “HighMATH Official Public Repository.” GitHub.