Manuscript Offprint
arXiv:2608.29662ACTD: Anchor-Based Cross-Tokenizer Distillation with Residual Regularization
Abstract
Knowledge distillation effectively transfers reasoning capabilities from large language models to lightweight student models. To enable knowledge transfer across disparate model families, researchers increasingly explore cross-tokenizer distillation. However, cross-tokenizer distillation remains challenging due to vocabulary and sequence misalignment, while approximate vocabulary alignment can introduce additional noise into distillation. To address these challenges, we propose Anchor-Based Cross-Tokenizer Distillation with Residual Regularization (ACTD) . ACTD bridges structural heterogeneity through vocabulary and sequence alignment, while mitigating alignment noise via a novel anchor loss with residual regularization. We further extend this framework to a multi-teacher setting. Evaluated across five reasoning benchmarks with three distinct teacher models, ACTD achieves state-of-the-art performance. Moreover, its multi-teacher extension outperforms the strongest single-teacher and multi-teacher baselines, further demonstrating the robustness of our method.
1 Introduction
Large language models (LLMs) have demonstrated remarkable capabilities on reasoning tasks (Brown et al., 2020; Touvron et al., 2023; Yang et al., 2025). However, the real-world deployment of LLMs requires substantial computational and time costs, making knowledge distillation an essential technique for transferring the capabilities of powerful teachers to lightweight students. Compared with supervised fine-tuning (SFT) based on hard labels (Raffel et al., 2020; Wei et al., 2021), knowledge distillation (KD) transfers soft-label supervision from teacher models (Hinton et al., 2015). Beyond homogeneous distillation, recent studies on cross-tokenizer distillation (Boizard et al., 2024;

Figure 1: Challenges in cross-tokenizer distillation and key insight of ACTD. Cross-tokenizer distillation suffers from (1) heterogeneous vocabulary and sequence misalignment, and (2) noisy full-vocabulary supervision caused by lossy cross-tokenizer mapping. ACTD addresses these challenges by aligning heterogeneous tokenizers and focusing distillation on anchor tokens.
Zhang et al., 2024; Minixhofer et al., 2025) enable knowledge transfer between models with different tokenizers, providing greater flexibility in selecting teachers across a broader range of model families.
Despite these advantages, cross-tokenizer distillation still faces several challenges, as illustrated in Figure 1. Vocabulary mismatch (Boizard et al., 2024; Zhang et al., 2024) and sequence misalignment (Patiño et al., 2025) make it difficult to align the representation spaces of teacher and student models. Beyond these alignment challenges, our analysis further shows that imperfect vocabulary alignment introduces additional noise into distillation, as discussed in Section 3.1. Furthermore, we observe that directly extending cross-tokenizer distillation methods to the multi-teacher settings leads to suboptimal performance, as alignment-induced noise can accumulate across multiple teachers.
Motivated by these observations, we propose Anchor-based Cross-Tokenizer Distillation
Corresponding authors.
https://github.com/hyhy892/ACTD
(ACTD), a cross-tokenizer distillation method that guides the student to learn from the teacher's high-probability token distribution. Specifically, ACTD adopts a first-subtoken vocabulary alignment strategy to map teacher tokens into the student vocabulary, and performs sequence alignment by matching nearest token positions based on character-level token boundaries. To alleviate the noise issue in cross-tokenizer distillation, ACTD optimizes the distance between teacher's high-probability tokens and student's anchor tokens through an anchor loss, and further introduces a residual regularization to suppress noise. Furthermore, we extend ACTD to the multi-teacher setting and propose Multi-teacher Anchor-based Cross-Tokenizer Distillation (Multi-ACTD), demonstrating the robustness of our method.
Experimental results on five reasoning benchmarks show that ACTD improves AVG@8 by up to 4.5 absolute points over cross-tokenizer distillation baselines. Multi-ACTD further improves the AVG@8 score by 4.9 points over baselines, whereas multi-teacher extensions of other cross-tokenizer distillation methods show performance drops. This demonstrates that our method can better exploit the complementary benefits among heterogeneous teachers. Further analysis shows that both the anchor loss and residual regularization improve performance, while the residual regularization further reduces student entropy. In summary, our contributions are as follows:
• We introduce first-subtoken vocabulary alignment and nearest monotonic boundary alignment to bridge vocabulary-level and sequence-level mismatches between heterogeneous teacher and student models.
• We propose an anchor-based objective with residual regularization to alleviate noisy supervision from full-vocabulary cross-tokenizer distillation by focusing supervision on teacher high-probability tokens.
• We extend ACTD to the multi-teacher setting and show that Multi-ACTD consistently outperforms multi-teacher variants of existing cross-tokenizer distillation methods, demonstrating its ability to exploit complementary supervision from heterogeneous teachers and its robustness under multi-teacher distillation.
where specifies how the teacher–student discrepancy is measured, and L denotes the length of the sequence. The objective is to minimize with respect to the student-model parameters.
Homogeneous distillation. When the teacher and student share the same vocabulary V, their output distributions are defined over a common token space, allowing direct distribution matching. A common objective is the forward KL divergence (Hinton et al., 2015):
Other objectives, including reverse KL divergence and Jensen–Shannon divergence, can also be used to control different distribution-matching behaviors (Gu et al., 2024; Agarwal et al., 2024).
Cross-tokenizer distillation. When the teacher and student use different vocabularies and , their output distributions are defined over incompatible token spaces, making token-level divergence inapplicable. Cross-tokenizer distillation generally introduces a cross-vocabulary transformation , which projects the teacher distribution into the student vocabulary space through token mapping or distribution transport (Chen et al., 2025). Given aligned prediction positions, the distillation objective can be written as
where denotes a discrepancy measure, such as KL divergence or an optimal-transport distance (Boizard et al., 2024; Cui et al., 2025). Since different tokenizers may also produce different sequence segmentations (Patiño et al., 2025), cross-tokenizer distillation typically requires both sequence alignment and vocabulary alignment.

Figure 2: Overview of ACTD: (1) vocabulary and sequence alignment for cross-tokenizer supervision alignment (Section 3.1); (2) anchor-based loss computation with anchor loss and residual regularization for single-teacher (Sections 3.2.1) and multi-teacher distillation (Sections 3.2.2).
3 Method
ACTD consists of two main components: (1) Vocabulary and sequence alignment. ACTD performs vocabulary alignment through first-subtoken vocabulary alignment, and conducts sequence alignment through nearest monotonic boundary alignment. (2) Anchor-based loss with residual regularization. ACTD guides the student to focus on the teacher's high-probability regions through an anchor-based loss, and introduces residual regularization to suppress noisy supervision from unsupported vocabulary regions. For data construction, previous studies show that directly imitating complete rationales can lead to suboptimal learning (Liu et al., 2026b,a); therefore, we construct training data with prefix-truncated rationales, with details provided in Appendix C.
3.1 Vocabulary and Sequence Alignment
The primary challenge in cross-tokenizer distillation is to align heterogeneous supervision across both the vocabulary and sequence dimensions (Patiño et al., 2025). Specifically, vocabulary alignment maps teacher-side token distributions into the student vocabulary space, while sequence alignment establishes correspondences between teacher and student tokens at different decoding positions.
Vocabulary alignment. We define a vocabulary mapping function
which maps each teacher-side token to a student-side token. Specifically, tokens shared by the teacher and student vocabularies are directly mapped to their corresponding token ids. For unshared tokens, we first decode the teacher token into text and then re-tokenize it with the student tokenizer, using the first student subtoken as the matched token.
Sequence alignment. Cross-tokenizer distillation suffers from sequence-level misalignment

Figure 3: Vocabulary mapping analysis under tokenizer mismatch. (a) We compare the original teacher distribution with the recovered teacher distribution after teacher-to-student mapping and reverse mapping , showing that vocabulary alignment redistributes probability mass. (b) We compare the accumulated mapped probability mass from teacher long-tail tokens on student-side anchor and residual regions. Anchor tokens are obtained by mapping teacher top-k tokens through , while residual tokens denote the remaining student vocabulary.
(Patiño et al., 2025) because teacher and student tokenizers may segment the same text into different token sequences. We address this issue by aligning decoding positions through character-level token boundaries. For each input, we first tokenize the text with the student tokenizer and obtain student token offsets. The text is truncated to the region covered by valid student tokens and then re-tokenized with the teacher tokenizer. We convert both tokenizations into boundary positions and align each student position to the nearest teacher boundary under a monotonic constraint. The resulting position map allows teacher logits to supervise the corresponding student decoding steps.
Cross-tokenizer noise analysis. We first examine whether vocabulary alignment changes the teacher distribution. Let denote the teacher-to-student vocabulary mapping, and let denote the student-to-teacher vocabulary mapping. Given a teacher distribution, we map its probability mass to the student vocabulary and then map it back to the teacher vocabulary. If the alignment were lossless, the recovered teacher distribution would match the original teacher distribution. However, Figure 3(a) shows discrepancies between the original and reverse-mapped teacher probabilities, indicating that tokenizer alignment introduces mapping noise.
We further analyze where the mapped probability mass is concentrated in the student vocabulary. Given the teacher distribution, we map the teacher top-k tokens to the student vocabulary through . These mapped tokens form the student-side anchor tokens, while remaining student vocabulary tokens are defined as residual tokens. The detailed definition of the noise measure for this analysis is provided in Appendix B.
Figure 3(b) shows that the probability mass contributed by teacher long-tail tokens accumulates much more heavily on residual tokens than on anchor tokens. Although each long-tail teacher token has low probability individually, their large number leads to substantial cumulative mass after vocabulary mapping. This suggests that the residual region receives more low-confidence mapped teacher signal. Inspired by these observations, we propose the method described in Section 3.2.
3.2 Residual-Regularized Anchor Distillation
3.2.1 Single-teacher Distillation
We first filter the teacher’s full-vocabulary distribution to retain only its top-k tokens and renormalize the retained probabilities to obtain . The token-level ACTD loss consists of an anchor loss and a residual loss:
where t denotes a target position, and controls the strength of residual regularization.
The sequence-level ACTD loss is obtained by averaging the token-level loss over all target positions:
Anchor Loss. At target position , let denote the teacher top- probability distribution. The corresponding teacher-side top- tokens are mapped to student tokens , where denotes the student token mapped from the -th teacher-side token. The anchor subset is defined as . Let denote the student probability of token , and the student probability on the -th anchor token is . The anchor loss matches the teacher top- probability distribution with the student probabilities on the anchor subset:
This term transfers fine-grained teacher probability signals to the mapped student tokens.
Residual Regularization. The residual subset contains all student tokens outside the anchor subset, i.e., . Since the teacher's long-tail probabilities are more susceptible to cross-tokenizer alignment noise, we discard their token-level values and set the target probabilities over the residual subset to zero. We then constrain the student residual probability vector toward this zero vector, thereby explicitly suppressing the probability mass assigned to residual tokens. We define the residual loss as the accumulated student probability mass on the residual subset:
We adopt the L1 norm as the distance measure rather than the KL divergence commonly used in knowledge distillation, because residual regularization is designed to control the low-probability region rather than match a complete probability distribution. Prior work has shown that KL-based matching of low-probability regions may induce mode-averaging behavior, resulting in an overly smoothed student distribution (Gu et al., 2024). In contrast, our residual regularization directly penalizes the aggregate probability mass assigned to residual tokens, thereby mitigating mode averaging and preserving a sharper student distribution.
3.2.2 Multi-teacher Distillation
We further extend ACTD to the multi-teacher setting, denoted as Multi-ACTD. Suppose there are M teacher models . For each teacher , we independently construct a cache following the procedure described above. During student training, Multi-ACTD retrieves the cached top-k logits from each teacher according to the same sample and target position, and computes a teacher-specific ACTD loss.
For a target position t, the ACTD loss induced by teacher is denoted as
We aggregate the supervision from multiple teachers by averaging their teacher-specific losses:
The final training objective is
where denotes the set of supervised target positions for example , and is the total number of supervised target tokens.
4 Experiments
4.1 Experimental Setup
Training Settings. We use DeepSeek-R1-Distill-Qwen-7B, DeepSeek-R1-Distill-Llama-8B, and DeepSeek-R1-0528-Qwen3-8B as teacher models, and Qwen3-1.7B-Base as the student model (Guo et al., 2025; DeepSeek-AI, 2025; Yang et al., 2025). The tokenizer heterogeneity between the teacher and student models is analyzed in Appendix A. To further evaluate the generalization of ACTD across model families, we additionally use GLM-4-9B-Chat as another teacher model (Glm et al., 2024).
For training data, we randomly sample 30,000 examples from the math domain of OpenThoughts-114k (Guha et al., 2026). Following recent KD methods (Jung et al., 2025; Wang et al., 2025), we adopt a standard off-policy distillation setup, using the problem field as input and the dataset-provided ground_truth_solution as the target sequence. For each teacher model, we run inference on the training set and cache the top-k logits with for distillation.
Baselines. We compare our method with both single-teacher cross-tokenizer distillation baselines and multi-teacher distillation baselines.
For cross-tokenizer distillation baselines:
• SFT (Raffel et al., 2020; Wei et al., 2021): We optimize the student on the training text data with the standard cross-entropy loss.
• KD (Hinton et al., 2015): We use the tokenizer-compatible Qwen3-8B as the homogeneous teacher and Qwen3-1.7B-Base as the student, consistent with the other baselines.
• ULD (Boizard et al., 2024): Universal Logit Distillation uses an optimal-transport-based objective to enable logits-level distillation between models with different tokenizers.
• DSKD (Zhang et al., 2024): Dual-Space Knowledge Distillation unifies teacher and
| Model | Setting | AIME24 | AIME25 | AMC23 | Minerva | MATH500 | Avg | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Teacher Models (Reasoning under 8192-token limit) | |||||||||||||
| DS-Llama-8B | T1 | 26.7 | 63.3 | 21.7 | 40.0 | 73.1 | 90.0 | 32.4 | 51.1 | 81.3 | 93.4 | 47.0 | 67.6 |
| DS-Qwen-7B | T2 | 40.8 | 73.3 | 32.5 | 56.7 | 80.6 | 92.5 | 40.7 | 53.3 | 87.9 | 95.4 | 56.5 | 74.2 |
| DS-Qwen3-8B | T3 | 6.7 | 20.0 | 33.3 | 50.0 | 30.0 | 42.5 | 33.0 | 41.9 | 66.1 | 77.0 | 33.8 | 46.3 |
| Baselines | |||||||||||||
| Qwen3-1.7B-Base | S | 2.1 | 16.7 | 1.3 | 6.7 | 27.5 | 67.5 | 17.2 | 41.5 | 51.8 | 83.2 | 20.0 | 43.1 |
| SFT | - | 5.0 | 16.7 | 3.3 | 16.7 | 27.2 | 62.5 | 20.0 | 43.8 | 57.1 | 81.8 | 22.5 | 44.3 |
| KD | Homo. | 8.3 | 23.3 | 4.6 | 16.7 | 34.7 | 72.5 | 25.1 | 45.2 | 60.8 | 85.8 | 26.7 | 48.7 |
| Single-teacher | |||||||||||||
| DSKD | T1→S | 5.0 | 13.3 | 2.9 | 13.3 | 29.4 | 62.5 | 22.0 | 43.0 | 57.4 | 81.8 | 23.3 | 42.8 |
| ALM | T1→S | 5.0 | 20.0 | 1.7 | 6.7 | 29.7 | 72.5 | 18.4 | 41.9 | 53.5 | 82.4 | 21.6 | 44.7 |
| ULD | T1→S | 4.6 | 13.3 | 3.8 | 16.7 | 30.3 | 62.5 | 18.4 | 38.2 | 57.4 | 83.4 | 22.9 | 42.8 |
| ACTD(Ours) | T1→S | 9.2 | 26.7 | 5.0 | 20.0 | 40.0 | 77.5 | 22.8 | 44.1 | 62.0 | 85.4 | 27.8 | 50.7 |
| DSKD | T2→S | 3.8 | 20.0 | 2.5 | 13.3 | 31.9 | 65.0 | 20.2 | 43.8 | 57.1 | 84.2 | 23.1 | 45.3 |
| ALM | T2→S | 4.2 | 13.3 | 1.3 | 10.0 | 25.9 | 57.5 | 18.4 | 40.4 | 53.4 | 82.0 | 20.6 | 40.7 |
| ULD | T2→S | 7.1 | 23.3 | 3.3 | 13.3 | 33.4 | 62.5 | 19.7 | 41.5 | 57.4 | 83.0 | 24.2 | 44.8 |
| ACTD(Ours) | T2→S | 7.1 | 20.0 | 5.4 | 20.0 | 35.6 | 75.0 | 24.8 | 43.4 | 61.4 | 85.8 | 26.9 | 48.8 |
| DSKD | T3→S | 5.4 | 23.3 | 2.1 | 10.0 | 27.8 | 65.0 | 19.7 | 43.4 | 49.3 | 81.6 | 20.9 | 44.7 |
| ALM | T3→S | 3.8 | 13.3 | 1.3 | 6.7 | 28.4 | 57.5 | 19.3 | 43.8 | 55.6 | 83.0 | 21.6 | 40.9 |
| ULD | T3→S | 5.0 | 16.7 | 3.8 | 16.7 | 33.8 | 62.5 | 21.3 | 43.4 | 58.9 | 84.0 | 24.5 | 44.6 |
| ACTD(Ours) | T3→S | 7.9 | 20.0 | 5.4 | 16.7 | 38.8 | 67.5 | 21.1 | 43.0 | 62.1 | 84.8 | 27.1 | 46.4 |
| Multi-Teacher | |||||||||||||
| SeqKD | T1+T2+T3→S | 4.6 | 16.7 | 3.3 | 13.3 | 27.8 | 70.0 | 17.3 | 39.3 | 51.6 | 82.2 | 20.9 | 44.3 |
| Multi-ULD | T1+T2+T3→S | 4.6 | 16.7 | 5.0 | 13.3 | 30.6 | 57.5 | 21.6 | 40.8 | 58.8 | 82.0 | 24.1 | 42.1 |
| Multi-ACTD(Ours) | T1+T2+T3→S | 10.0 | 26.7 | 6.3 | 20.0 | 40.9 | 77.5 | 24.0 | 45.6 | 63.6 | 85.8 | 29.0 | 51.1 |
Table 1: Comparison of results for LLM reasoning ability distillation. We use , “Homo.”, and “DS” to denote teacher-to-student distillation, the homogeneous teacher setting, and DeepSeek-series distilled models, respectively. ACTD is compared with other cross-tokenizer distillation methods under the same teacher setting, and the best results in each such group are marked in underline. Multi-ACTD is compared with all student baselines, and the best results are marked with bold. AVG and PASS denote AVG@8 and PASS@8, respectively.
student output spaces and introduces cross-model attention for knowledge transfer.
- ALM (Minixhofer et al., 2025): Approximate Likelihood Matching performs cross-tokenizer distillation by approximately matching across different tokenizations.
For multi-teacher distillation baselines:
-
SeqKD (Kim and Rush, 2016): Sequence-level Knowledge Distillation trains the student on teacher-generated outputs rather than token-level soft labels. In the multi-teacher setting, we collect outputs from all teachers, shuffle the combined data, and fine-tune the student on the resulting mixture.
-
Multi-ULD: We extend ULD to the multi-teacher setting by computing the ULD loss for each teacher independently and averaging the teacher-specific losses as the final objective.
Evaluation Settings. We evaluate our method on a broad range of mathematical reasoning tasks. AIME24, AIME25, and AMC23 are competition-style benchmarks designed to assess advanced mathematical problem-solving ability (Yao et al., 2025). MATH500 is a representative 500-problem subset of the MATH benchmark (Hendrycks et al., 2021), following the evaluation split used in process-supervision research (Lightman et al., 2024). Minerva consists of college-level quantitative reasoning problems across mathematics and scientific domains (Lewkowycz et al., 2022). We report accuracy as the main metric.
For inference, we use the same decoding configuration for all methods: max_gen_tokens = 8192, temperature = 1.0, and top_p = 0.8. Following the evaluation protocol of OPSD (Zhao et al., 2026), we extract the answer enclosed in \boxed{} from each generated response and use the math_verify package to parse both the extracted answer and the ground-truth answer and determine their mathematical equivalence. Accuracy is then computed as the proportion of generated responses judged correct.
https://github.com/huggingface/Math-Verify
5 Results
5.1 Main Results
Cross-tokenizer distillation results. Table 1 shows that ACTD consistently outperforms cross-tokenizer distillation baselines under the same teacher settings. Compared with the strongest single-teacher distillation baseline, Multi-ACTD yields consistent and substantial improvements, indicating that the student can benefit from complementary supervision provided by multiple heterogeneous teachers. Moreover, Multi-ACTD also outperforms the multi-teacher baseline, demonstrating the robustness of our method.
Student Models from Other Families. To further evaluate the generalization of ACTD across different student architectures and model scales, we conduct additional experiments using DeepSeek-R1-Distill-Qwen-7B as the teacher and Llama-3.2-3B-Instruct as the student. This setting introduces both a different student architecture and a larger model scale compared with our primary experiments based on Qwen3-1.7B-Base. As shown in Table 2, ACTD achieves the best overall performance, obtaining an average AVG@8 score of 18.4 across five mathematical reasoning benchmarks. Compared with the strongest baseline, DSKD, which achieves 15.8, ACTD provides an absolute improvement of 2.6 points. ACTD also achieves the best performance on four benchmarks and ties for the best result on AIME25. These results demonstrate that ACTD generalizes effectively across different student architectures and model scales.
Teacher Models from Other Families. To further evaluate the robustness of ACTD beyond the DeepSeek family, we conducted a single-teacher distillation using GLM-4-9B-Chat as the teacher and Qwen3-1.7B-Base as the student. As shown in Table 3, ACTD outperforms the cross-tokenizer distillation baselines on mathematical reasoning benchmarks. ACTD improves AVG@8 from 22.7 to 26.0 and PASS@8 from 44.9 to 47.2 compared with the strongest baseline. These results indicate that ACTD remains effective in other model families, demonstrating the robustness of our approach.
5.2 Ablation Studies
Effect of Prefix-Truncated Reasoning Targets. We first conduct an ablation study to evaluate the effectiveness of prefix-truncated reasoning target construction. As shown in Figure 4, removing prefix truncation consistently leads to a performance drop of 0.7–1.6 points in AVG@8 across different teacher settings. Notably, the degradation is most pronounced when using DeepSeek-R1-Distill-Qwen3-8B, a teacher with stronger long-reasoning capabilities. This suggests that prefix-truncated targets facilitate more effective knowledge transfer under constrained training context lengths.
| Method | AIME24 | AIME25 | AMC23 | Minerva | MATH500 | Average |
|---|---|---|---|---|---|---|
| Llama-3.2-3B-Instruct | 0.4 | 0.4 | 15.0 | 12.5 | 31.9 | 12.0 |
| ALM | 2.5 | 1.3 | 20.0 | 11.2 | 40.9 | 15.2 |
| DSKD | 3.8 | 1.3 | 20.6 | 11.6 | 41.6 | 15.8 |
| ULD | 4.2 | 0.4 | 13.4 | 12.4 | 29.9 | 12.1 |
| ACTD | 5.8 | 1.3 | 23.1 | 16.3 | 45.5 | 18.4 |
Table 2: Single-teacher distillation results under the DeepSeek-R1-Distill-Qwen-7B → Llama-3.2-3B-Instruct setting. All results are reported in AVG@8. The best results are highlighted in bold.
| GLM-4-9B-Chat → Qwen3-1.7B-Base | ||||||
|---|---|---|---|---|---|---|
| AVG@8 | ||||||
| Method | AIME24 | AIME25 | AMC23 | Minerva | MATH500 | Avg. |
| ULD | 2.5 | 2.1 | 29.7 | 17.1 | 53.5 | 21.0 |
| ALM | 3.3 | 2.1 | 25.9 | 20.1 | 53.2 | 20.9 |
| DSKD | 3.3 | 2.9 | 30.0 | 19.9 | 57.4 | 22.7 |
| ACTD | 10.0 | 3.8 | 33.4 | 23.7 | 59.3 | 26.0 |
| PASS@8 | ||||||
| Method | AIME24 | AIME25 | AMC23 | Minerva | MATH500 | Avg. |
| ULD | 13.3 | 10.0 | 65.0 | 40.8 | 82.8 | 42.4 |
| ALM | 16.7 | 16.7 | 67.5 | 43.0 | 80.8 | 44.9 |
| DSKD | 16.7 | 10.0 | 62.5 | 44.5 | 81.8 | 43.1 |
| ACTD | 23.3 | 13.3 | 72.5 | 43.0 | 83.8 | 47.2 |
Table 3: Single-teacher distillation results under the GLM-4-9B-Chat → Qwen3-1.7B-Base setting. ACTD achieves the best overall performance among cross-tokenizer distillation baselines.
Effect of the Parameter . We further study the sensitivity of ACTD to the residual loss weight . We vary over and evaluate on mathematical reasoning benchmarks. Figure 5 shows the average AVG@8 and PASS@8 scores across all tasks.
The results reveal two trends. (1) Low . Setting and decreases AVG@8 to 26.1 and 26.3, and decreases PASS@8 to 49.5 and 50.0, respectively, indicating that residual regularization is important for suppressing excessive probability mass on non-anchor tokens. (2) High . At , AVG@8 drops to 26.6 and PASS@8 drops to 47.6, suggesting that an overly strong residual penalty may weaken anchor loss and reduce the transfer of informative teacher top-k signals. Overall, achieves the best

Figure 4: Effect of prefix-truncated reasoning targets. The figure reports the average performance on mathematical reasoning benchmarks under different teacher settings. Light-colored bars indicate the results after removing prefix truncation.

Figure 5: Effect of the Parameter . The figure reports the average AVG@8 and PASS@8 scores across all mathematical reasoning benchmarks.
balance, highlighting the complementary roles of anchor loss and residual loss.
Effect of the Top-k Size. As shown in Table 4, we further analyze the effect of the number of teacher logits by varying k over under the DeepSeek-R1-Distill-Llama-8B Qwen3-1.7B-Base setting. The table reports the AVG@8 scores across mathematical reasoning benchmarks. The student achieves the best average performance when k = 128, reaching 27.8 on average.
When k is further increased, the average AVG@8 score drops to 26.6. This indicates that simply expanding the teacher top-k supervision does not necessarily improve distillation. Instead, including more low-probability long-tail tokens introduce additional noisy supervision, which weakens the precision of knowledge transfer. These results support our motivation of focusing distillation on a compact set of teacher logits rather than broadly matching larger vocabulary-level distributions.
| k | AIME24 | AIME25 | AMC23 | Minerva | MATH500 | Avg |
|---|---|---|---|---|---|---|
| 64 | 8.3 | 5.0 | 34.7 | 22.4 | 62.8 | 26.6 |
| 96 | 9.2 | 5.4 | 35.9 | 23.0 | 60.1 | 26.7 |
| 128 | 9.2 | 5.0 | 40.0 | 22.8 | 62.0 | 27.8 |
| 256 | 8.3 | 5.8 | 36.9 | 22.0 | 60.0 | 26.6 |
| full vocab. | 9.2 | 5.8 | 35.9 | 20.8 | 58.0 | 25.9 |
Table 4: Effect of the number of teacher top-k logits. The table reports AVG@8 scores under the DeepSeek-R1-Distill-Llama-8B → Qwen3-1.7B-Base setting.

Figure 6: Comparison of student models distilled with and without the residual regularization. The figure shows the changes in (a) probability distribution and (b) entropy across inference steps.
5.3 Effect of the Residual Regularization
To further analyze the effect of the residual loss, we compare two student models trained with different residual weights: one with the residual regularization ( ) and the other without the residual regularization ( ). The residual loss is designed to regularize the probability mass assigned to non-anchor regions, encouraging the student model to concentrate more on the teacher model's high-probability tokens.
As shown in Figure 6, the model trained with the residual regularization exhibits a more concentrated probability distribution during inference. Specifically, Figure 6 (a) shows that the student with residual regularization assigns more probability mass to high-probability regions, indicating that the residual loss helps reduce over-smoothed predictions. Moreover, Figure 6 (b) shows that the residual-constrained student consistently has lower entropy across inference steps, indicating that its output distribution is less dispersed over the vocabulary. This suggests that the residual loss suppresses probability spreading over non-anchor regions and mitigates the over-smoothing effect caused by full-vocabulary distillation. These results demonstrate that the residual regularization effectively improves the concentration of the student distribution and helps preserve the sharp structure of teacher supervision.
6 Related Work
6.1 Single-teacher Distillation
Knowledge distillation (KD) transfers teacher knowledge by aligning teacher and student predictive distributions with objectives such as KL, reverse KL, or Jensen–Shannon divergence (Hinton et al., 2015; Gu et al., 2024; Wen et al., 2023). However, the shared-vocabulary assumption limits their applicability across model families.
Cross-tokenizer distillation relaxes the shared-vocabulary assumption by transferring distribution-level supervision across heterogeneous token spaces. Recent methods address tokenizer mismatch through optimal transport (Boizard et al., 2024; Cui et al., 2025), dual-space alignment with cross-model attention (Zhang et al., 2024), approximate likelihood matching (Minixhofer et al., 2025), or span-level preference projection (Nguyen et al., 2026). Despite their effectiveness, these methods mainly focus on single-teacher transfer and do not directly address efficient logits-level distillation from multiple heterogeneous teachers.
6.2 Multi-Teacher Distillation
Multi-teacher distillation improves student learning by leveraging complementary supervision from multiple teachers. Existing methods mainly supervise student learning with teacher-generated responses or Chain-of-Thought rationales, including teacher-forcing CoT (Tian et al., 2025), multiple-rationale consistency (Chen et al., 2023), generative distribution fusion (Wan et al., 2024), domain-adaptive data selection (Liu et al., 2024), and efficient reasoning behavior distillation (Xu et al., 2025). Since different teachers may provide inconsistent distributions, rationales, or reasoning preferences, recent studies further explore knowledge purification and compatibility-aware teacher fusion to mitigate conflicting supervision (Jin et al., 2026; Cui et al., 2026). More recently, multi-teacher distillation has been applied to multi-domain learning by employing domain-specialized teachers (Xiao et al., 2026; DeepSeek-AI et al., 2026). However, these teachers are homogeneous with the student in terms of model architecture and tokenizer, and must be separately post-trained on domain-specific data, resulting in substantial additional training costs. In contrast, multi-teacher distillation from heterogeneous teachers across different model families and tokenizers remains largely unexplored.
7 Conclusion
In this paper, we propose Anchor-based Cross-Tokenizer Distillation (ACTD) for heterogeneous teacher–student pairs. ACTD first aligns their vocabularies through first-subtoken mapping and their sequences through nearest-position matching based on character-level boundaries. It then distills aligned high-probability predictions with an anchor loss and applies residual regularization to suppress probability mass outside the anchor subset, mitigating alignment noise and mode averaging.
We further extend ACTD to Multi-ACTD, a multi-teacher framework that integrates logits-level supervision from multiple heterogeneous teachers. Experiments on reasoning benchmarks show that ACTD outperforms existing cross-tokenizer distillation methods, and Multi-ACTD further improves performance by leveraging complementary teacher supervision. These results demonstrate the robustness of our method across different teacher settings and tokenizer heterogeneity levels. Looking forward, ACTD provides a flexible way to transfer logits-level knowledge across model families, which may support broader and more efficient distillation from diverse heterogeneous teachers.
Limitations
Although ACTD effectively enables cross-tokenizer distillation, it requires access to teacher predictive distributions during data construction, which limits its applicability to models with accessible outputs, such as open-source models. While ACTD shows consistent gains across reasoning benchmarks and teacher model families, our experiments are constrained by computational resources, especially for multi-teacher combinations. Future work could extend ACTD to broader heterogeneous teacher–student settings and improve the efficiency of leveraging distributional supervision from diverse large language models.
Acknowledgements
Xiaocheng Feng and Bing Qin are the co-corresponding authors of this work. We thank the anonymous reviewers for their insightful comments. This work was supported by the National Natural Science Foundation of China (NSFC) (grant 62522603, 62276078, U22B2059), the Key R&D Program of Heilongjiang via grant 2022ZX01A32, and the Fundamental Re-search Funds for the Central Universities ( XN-JKKGYDJ2024013 ).
References
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pages 21246–21263.
Nicolas Boizard, Kevin El Haddad, Céline Hudelot, and Pierre Colombo. 2024. Towards cross-tokenizer distillation: The universal logit distillation loss for llms. arXiv preprint arXiv:2402.12030.
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, and 12 others. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877–1901.
Hongzhan Chen, Siyue Wu, Xiaojun Quan, Rui Wang, Ming Yan, and Ji Zhang. 2023. Mcc-kd: Multi-cot consistent knowledge distillation. In Findings of the association for computational linguistics: EMNLP 2023, pages 6805–6820.
Yijie Chen, Yijin Liu, Fandong Meng, Yufeng Chen, Jinan Xu, and Jie Zhou. 2025. Enhancing cross-tokenizer knowledge distillation with contextual dynamical mapping. In Findings of the Association for Computational Linguistics: ACL 2025, pages 8005–8018.
Jin Cui, Jiaqi Guo, Ruixuan Yang, Jiayi Lu, Jiepeng Zhou, Jiajun Xu, Jiangcheng Song, Boran Zhao, and Pengju Ren. 2026. "the whole is greater than the sum of its parts": A compatibility-aware multi-teacher cot distillation framework. arXiv preprint arXiv:2601.13992.
Xiao Cui, Mo Zhu, Yulei Qin, Liang Xie, Wengang Zhou, and Houqiang Li. 2025. Multi-level optimal transport for universal cross-tokenizer knowledge distillation on language models. In Proceedings of the AAAI conference on artificial intelligence, volume 39, pages 23724–23732.
DeepSeek-AI. 2025. DeepSeek-R1-0528-Qwen3-8B. https://huggingface.co/deepseek-ai/DeepSeek-R1-0528-Qwen3-8B. Hugging Face model card.
DeepSeek-AI, Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chengyu Hou,
Chenhao Xu, Chenze Shao, Chong Ruan, Conner Sun, and 300 others. 2026. Deepseek-v4: Towards highly efficient million-token context intelligence. Preprint, arXiv:2606.19348.
Team Glm, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Dan Zhang, Diego Rojas, Guanyu Feng, Hanlin Zhao, et al. 2024. Chatglm: A family of large language models from glm-130b to glm-4 all tools. arXiv preprint arXiv:2406.12793.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. Minillm: Knowledge distillation of large language models. In International Conference on Learning Representations, volume 2024, pages 32694–32717.
Etash Guha, Ryan Marten, Sedrick Keh, Negin Raoof, Georgios Smyrnis, Hritik Bansal, Marianna Nezhu-rina, Jean Mercat, Trung Vu, Zayne Sprague, et al. 2026. Openthoughts: Data recipes for reasoning models. In International Conference on Learning Representations, volume 2026, pages 108059–108130.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
Ruihan Jin, Pengpeng Shao, Zhengqi Wen, Jinyang Wu, Mingkuan Feng, Shuo Yang, Chu Yuan Zhang, and Jianhua Tao. 2026. Exploring knowledge purification in multi-teacher knowledge distillation for llms. arXiv preprint arXiv:2602.01064.
Seongryong Jung, Suwan Yoon, DongGeon Kim, and Hwanhee Lee. 2025. Todi: Token-wise distillation via fine-grained divergence control. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, page 8078–8091.
Yoon Kim and Alexander M Rush. 2016. Sequence-level knowledge distillation. In Proceedings of the 2016 conference on empirical methods in natural language processing, pages 1317–1327.
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. 2022. Solving quantitative reasoning problems with language models. Advances in neural information processing systems, 35:3843–3857.
Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let's verify step by step. In International Conference on Learning Representations, volume 2024, pages 39578–39601.
Jiaheng Liu, Chenchen Zhang, Jinyang Guo, Yuanxing Zhang, Haoran Que, Ken Deng, Zhiqi Bai, Jie Liu, Ge Zhang, Jiakai Wang, et al. 2024. Ddk: Distilling domain knowledge for efficient large language models. Advances in Neural Information Processing Systems, 37:98297–98319.
Kaiyuan Liu, Ziyuan Zhuang, Yang Bai, Bing Wang, Rongxiang Weng, and Jieping Ye. 2026a. Prefix teach, suffix fade: Local teachability collapse in strong-to-weak on-policy distillation. arXiv preprint arXiv:2605.13643.
Zhenghao Liu, Zhuoyang Wu, Xinze Li, Yukun Yan, Shuo Wang, Zulong Chen, Yu Gu, Ge Yu, and Maosong Sun. 2026b. Long-chain reasoning distillation via adaptive prefix alignment. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 18041–18059.
Benjamin Minixhofer, Ivan Vulić, and Edoardo Maria Ponti. 2025. Universal cross-tokenizer distillation via approximate likelihood matching. In Advances in Neural Information Processing Systems, volume 38, pages 79297–79326.
Truong Nguyen, Phi Van Dat, Ngan Nguyen, Linh Ngo Van, Trung Le, and Thanh Hong Nguyen. 2026. Ctpd: cross tokenizer preference distillation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 37783–37790.
Carlos Miguel Patiño, Kashif Rasul, Quentin Gallouédec, Ben Burtenshaw, Sergio Paniego, Vaibhav Srivastav, Thibaud Frere, Ed Beeching, Lewis Tunstall, Leandro von Werra, and Thomas Wolf. 2025. Unlocking on-policy distillation for any model family.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1–67.
Yijun Tian, Yikun Han, Xiusi Chen, Wei Wang, and Nitesh V Chawla. 2025. Beyond answers: Transferring reasoning capabilities to smaller llms using multi-teacher knowledge distillation. In Proceedings of the Eighteenth ACM International Conference on Web Search and Data Mining, pages 251–260.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
Fanqi Wan, Xinting Huang, Deng Cai, Xiaojun Quan, Wei Bi, and Shuming Shi. 2024. Knowledge fusion of large language models. 2024:18303–18322.
Guanghui Wang, Zhiyong Yang, Zitai Wang, Shi Wang, Qianqian Xu, and Qingming Huang. 2025. Abkd: Pursuing a proper allocation of the probability mass in knowledge distillation via alpha -beta divergence. arXiv preprint arXiv:2505.04560.
Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. 2021. Finetuned language models are zero-shot learners. arXiv preprint arXiv:2109.01652.
Yuqiao Wen, Zichao Li, Wenyu Du, and Lili Mou. 2023. F-divergence minimization for sequence-level knowledge distillation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10817–10834.
Bangjun Xiao, Bingquan Xia, Bo Yang, Bofei Gao, Bowen Shen, Chen Zhang, Chenhong He, Chiheng Lou, Fuli Luo, Gang Wang, et al. 2026. Mimo-v2-flash technical report. arXiv preprint arXiv:2601.02780.
Jingxian Xu, Mengyu Zhou, Weichang Liu, Hanbing Liu, Shi Han, and Dongmei Zhang. 2025. TwT: Thinking without tokens by habitual reasoning distillation with multi-teachers' guidance. In Findings of the Association for Computational Linguistics: EMNLP 2025. Association for Computational Linguistics.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.
Jian Yao, Ran Cheng, and Kay Chen Tan. 2025. Varmath: Probing true mathematical reasoning in llms via symbolic multi-instance benchmarks. arXiv preprint arXiv:2507.12885.
Songming Zhang, Xue Zhang, Zengkui Sun, Yufeng Chen, and Jinan Xu. 2024. Dual-space knowledge distillation for large language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 18164–18181.
Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. 2026. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734.
A Tokenizer Heterogeneity
To clarify the tokenizer relations in our experiments, we summarize the vocabulary differences between each teacher model and the student model in Table 5. Our single-teacher experiments evaluate ACTD under strong tokenizer heterogeneity, while our multi-teacher experiments study whether ACTD can be extended to teachers with varying degrees of tokenizer mismatch. Specifically, DeepSeek-R1-Distill-Llama-8B uses a different base vocabulary from Qwen3-1.7B-Base, while DeepSeek-R1-Distill-Qwen-7B and DeepSeek-R1-0528-Qwen3-8B share the same base vocabulary with the student but differ in tokenizer-specific special tokens. This mixed-tokenizer setting reflects practical multi-teacher distillation scenarios, where teacher quality and tokenizer compatibility jointly affect knowledge transfer.
B Cross-tokenizer Noise Analysis
Noise definition. For each target position, let be the teacher-to-student vocabulary mapping. We define the student-side anchor set by mapping the teacher top-k tokens:
The residual set is the remaining student vocabulary:
We then measure how much mapped teacher probability mass from non-top-k teacher tokens falls into these two regions. The accumulated mass on is anchor noise, while the accumulated mass on is residual noise.
Student-side mapping noise. We define vocabulary mapping noise in the student vocabulary space. For each target position t, the teacher model first produces a probability distribution over its own vocabulary,
This distribution is used only as the source probability mass. We then project it onto the student vocabulary using the teacher-to-student tokenizer alignment map :
Thus, all noise quantities below are computed over student tokens s, not teacher tokens v.
Let denote the teacher top-K tokens at position . We map these top-K tokens to the student vocabulary and obtain the student-side anchor set
The remaining student tokens form the student-side residual set
To isolate the noise introduced by non-top-K teacher tokens, we also construct a clean top-K-only projection:
The student-side mapping discrepancy is then
We define anchor noise as the discrepancy accumulated on student-side anchor tokens:
and residual noise as the discrepancy accumulated on student-side residual tokens:
We report these quantities across all valid target positions. This analysis therefore measures how teacher probability mass, after being projected into the student vocabulary, enters the student-side anchor and residual regions. We operationally define the resulting excess mass as projection noise because it lies outside the retained high-confidence teacher support but still contributes to the student-side distillation target, thereby introducing potentially unintended supervision.
C Data Construction
We construct prefix-truncated training data for ACTD from a math instruction dataset, where each example contains an id, an instruction, and a reference output. Each instruction is first converted into a chat-style prompt using the student
| Teacher | Base Vocab. | Special Tokens |
|---|---|---|
| GLM-4-9B | Different | Different |
| DS-Llama-8B | Different | Different |
| DS-Qwen-7B | Same | Different |
| DS-Qwen3-8B | Same | Different |
Table 5: Tokenizer relations between teacher models and the student Qwen3-1.7B-Base. DS denotes DeepSeek-R1-Distill.
tokenizer template. We then append a fixed formatting instruction: “Please reason step by step, and put your final answer within \boxed{}” and record the token position where the assistant completion begins. The training sequence is formed by concatenating the formatted prompt and the reference solution.
As illustrated in Figure 7, the key step is to truncate only the reasoning prefix while preserving the final answer. For each completion, we split the text into a reasoning prefix and an answer suffix. If the completion contains a natural </think> marker, the text before the marker is treated as the reasoning prefix and the remaining text as the answer suffix. Otherwise, we locate the final answer by searching for the last \boxed{} expression; if no boxed answer is found, we use the last sentence as a fallback suffix. The reasoning prefix is capped at 2,000 student tokens. When the prefix exceeds this budget, we move the truncation point back to the nearest sentence boundary within a 600-character search window, so that the truncated prefix remains coherent. Finally, we insert a forced </think> marker between the truncated reasoning prefix and the preserved answer suffix.
D Implementation Details
D.1 Baseline training details
To ensure a fair comparison between DSKD, ULD and ALM, we keep the main training configuration identical for the three baselines. Table 6 summarizes the shared hyperparameters used in our implementation. We only report the training settings that directly affect optimization, memory usage, and distillation strength, while omitting method-specific options and dataset/model information.
All three baselines are trained with full-parameter fine-tuning under the same FSDP2 distributed training backend. We use two GPUs with bfloat16 precision and enable gradient checkpointing to reduce memory consumption. The global batch size is set to 36, with a micro-batch size of 3 per GPU and 6 gradient accumulation steps. For optimization, we train for 300 steps using a learning rate of and a warmup ratio of 0.1. The distillation loss weight is fixed to 0.5 for both methods.
| Hyperparameter | Value |
|---|---|
| Training backend | FSDP2 |
| Number of GPUs | 2 |
| Precision | bf16 |
| Maximum sequence length | 4096 |
| Global batch size | 36 |
| Micro-batch size per GPU | 3 |
| Gradient accumulation steps | 6 |
| Maximum training steps | 300 |
| Learning rate | |
| Warmup ratio | 0.1 |
| Gradient checkpointing | enabled |
| KD loss weight | 0.5 |
Table 6: Training hyperparameters for baselines.
D.2 ACTD Training Details
We provide the implementation details of ACTD in Table 7. To ensure a fair comparison with the baseline methods, ACTD is trained under the same general experimental setting whenever applicable. We implement ACTD by modifying DistillKit and fine-tune all student-model parameters rather than using parameter-efficient adaptation.
ACTD is trained on two GPUs with bfloat16 precision. We use a per-device batch size of 3 and accumulate gradients for 6 steps, resulting in an effective batch size of 36. The model is optimized for 300 steps with a learning rate of , a cosine learning-rate schedule, and 30 warmup steps. For distillation, both the teacher and student temperatures are set to 1.0.
E Experimental Results on Other Tasks
To evaluate the generalizability of ACTD beyond mathematical reasoning, we further conduct experiments on code generation. We use OpenCodeInstruct as the training dataset and evaluate the distilled models on HumanEval+ using Pass@1. Specifically, we distill DeepSeek-R1-Distill-Llama-8B into Qwen3-1.7B-Base, representing a cross-tokenizer distillation setting involving different model families.
As shown in Table 8, ACTD achieves a Pass@1 score of 23.2, outperforming ULD, the strongest
https://github.com/arcee-ai/DistillKit
| Hyperparameter | Value |
|---|---|
| Fine-tuning strategy | Full-parameter |
| Number of GPUs | 2 |
| Precision | bf16 |
| Maximum sequence length | 4096 |
| Per-device batch size | 3 |
| Gradient accumulation steps | 6 |
| Effective batch size | 36 |
| Maximum training steps | 300 |
| Learning rate | |
| LR scheduler | cosine |
| Optimizer | paged AdamW 8-bit |
| Weight decay | 0.025 |
| Warmup steps | 30 |
| Maximum gradient norm | 0.5 |
| Teacher temperature | 1.0 |
| Student temperature | 1.0 |
Table 7: Training hyperparameters used for ACTD.
| Method | HumanEval+ Pass@1 |
|---|---|
| Qwen3-1.7B-Base | 20.7 |
| ALM | 15.9 |
| DSKD | 15.9 |
| ULD | 21.3 |
| ACTD | 23.2 |
Table 8: Code-generation results under the DeepSeek-R1-Distill-Llama-8B → Qwen3-1.7B-Base setting. All distilled models are trained on OpenCodeInstruct and evaluated on HumanEval+ using Pass@1.
cross-tokenizer baseline, by 1.9 absolute points. ACTD also improves upon the original Qwen3-1.7B-Base student model by 2.5 points. These results demonstrate that ACTD generalizes beyond mathematical reasoning and effectively transfers code-generation capabilities across models with different tokenizers.
F The Use of Large Language Models
We commit to accurately reporting our use of LLMs. Specifically, LLMs are used for language polishing and to improve writing clarity. However, we do not use LLMs to generate the core ideas or to write substantive portions of this paper.
Raw Instruction
Return your final response within \boxed{}. Find the center of gravity of a plate bounded by the lines , , , , and , given that the surface density is .
Original Completion
To find the coordinates of the center of mass, we use
The mass and moments are computed over the first-quadrant ellipse.
Evaluating the moment about the -axis gives
- Determine the coordinates:
Thus, the center of gravity is
Prefix-Truncated Completion
To find the coordinates of the center of mass, we use
The mass and moments are computed over the first-quadrant ellipse.
Evaluating the moment about the -axis gives
- Determine the coordinates :
Figure 7: An example of prefix truncation. The original reasoning is truncated before the coordinate calculation, after which a forced </think> marker and the preserved final-answer suffix are appended.