ACTD: Anchor-Based Cross-Tokenizer Distillation with Residual Regularization

Huiyi Zhang, Zijian Li, Xiaocheng Feng, Weitao Ma, Xiaoliang Yang, Yichong Huang, Bing QinarXiv 2026

TL;DR

ACTD (Anchor-Based Cross-Tokenizer Distillation) enables effective knowledge distillation between large language models that use entirely different tokenizers and vocabularies. By focusing distillation on the teacher’s high-probability "anchor" tokens and explicitly penalizing alignment noise in the remaining "residual" tokens, ACTD achieves state-of-the-art reasoning performance in both single-teacher and multi-teacher settings.

What Problem Does This Paper Address?

Knowledge distillation (KD) is a powerful technique for transferring the capabilities of massive, computationally expensive teacher LLMs into lightweight, deployable student models. Traditionally, KD assumes that the teacher and student share the same tokenizer and vocabulary (homogeneous distillation). However, as the LLM landscape diversifies, we often want to distill knowledge across different model families (e.g., distilling a Llama-based teacher into a Qwen-based student).

This setup, known as cross-tokenizer distillation, faces two major hurdles:

  1. Structural Heterogeneity: Vocabulary mismatches and differing sequence segmentations make it difficult to directly align the representation spaces of the two models.
  2. Cross-Tokenizer Noise: Even when using approximate vocabulary mapping, the process is inherently lossy. The teacher's long-tail (low-probability) tokens redistribute their probability mass across the student's vocabulary, introducing significant background noise that degrades student learning.
Figure 1: Challenges in cross-tokenizer distillation and key insight of ACTD. Cross-tokenizer distillation suf- fers from (1) heterogeneous vocabulary and sequence misalignment, and (2) noisy full-vocabulary supervi- sion caused by lossy cross-tokenizer mapping. ACTD addresses these challenges by aligning heterogeneous tokenizers and focusing distillation on anchor tokens.

Methods

The authors propose ACTD, which tackles these challenges through a two-step pipeline:

  1. Tokenizer and Sequence Alignment:
  2. Vocabulary Alignment: Shared tokens are mapped directly. For unshared tokens, ACTD decodes the teacher token into text, re-tokenizes it with the student tokenizer, and maps it to the first student subtoken.
  3. Sequence Alignment: Character-level token boundaries are used to map student decoding positions to the nearest teacher boundary under a monotonic constraint.
  4. Anchor-Based Distillation with Residual Regularization:
  5. Instead of distilling the full vocabulary distribution, ACTD filters the teacher's distribution to retain only the top-$k$ tokens (the anchor tokens).
  6. Anchor Loss: An $L_1$ loss minimizes the discrepancy between the teacher's top-$k$ probabilities and the student's corresponding anchor token probabilities.
  7. Residual Regularization: The remaining student tokens are designated as residual tokens. ACTD applies an $L_1$ penalty to minimize the cumulative probability mass the student assigns to these residual tokens, effectively suppressing cross-tokenizer noise.
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).

Additionally, the authors extend this to a multi-teacher setting (Multi-ACTD) by averaging teacher-specific losses, and introduce a data construction technique called prefix-truncated reasoning targets to fit long Chain-of-Thought rationales into constrained context lengths.

Datasets

  • Training: 30,000 samples randomly selected from the math domain of OpenThoughts-114k (for mathematical reasoning) and OpenCodeInstruct (for code generation).
  • Evaluation: Five mathematical reasoning benchmarks (AIME24, AIME25, AMC23, Minerva, MATH500) and one code generation benchmark (HumanEval+).

Key Insights and Ideas

  • The Danger of the Long Tail: The authors' analysis reveals that while individual long-tail teacher tokens have low probabilities, their collective mass leaks heavily into the student's residual vocabulary space during mapping. This creates low-confidence noise that distracts the student.
Figure 3: Vocabulary mapping analysis under tokenizer mismatch. (a) We compare the original teacher dis- tribution pT with the recovered teacher distribution after teacher-to-student mapping Γ and reverse map- ping Ψ, 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.
  • Why $L_1$ Norm Beats KL Divergence: Standard KD relies on KL divergence, which can cause "mode-averaging" behavior, resulting in an overly smoothed student distribution. ACTD uses an $L_1$ norm for residual regularization because it directly penalizes the aggregate mass of non-anchor tokens, preserving a sharper, more confident student distribution.
  • Multi-Teacher Synergy: In traditional cross-tokenizer setups, combining multiple teachers often degrades performance because alignment noise accumulates. Because Multi-ACTD strictly filters out residual noise, it successfully extracts complementary benefits from multiple heterogeneous teachers.

Key Results

  • Mathematical Reasoning: ACTD consistently outperformed strong cross-tokenizer baselines (like ULD and DSKD). In single-teacher setups, it improved the average score across five benchmarks (AVG@8) by up to 4.5 absolute points.
  • Multi-Teacher Superiority: Multi-ACTD achieved an AVG@8 score of 51.1, outperforming the strongest single-teacher baseline by 2.4 points and multi-teacher baselines by up to 9.0 points.
  • Sharper Distributions: Qualitative analysis confirmed that students trained with residual regularization exhibited significantly lower entropy across inference steps, confirming a more concentrated and less dispersed output distribution.
Student probability distribution and entropy comparisons with and without residual regularization.
  • Cross-Domain Generalization: When tested on code generation (HumanEval+), ACTD improved upon the base student model by 2.5 Pass@1 points, proving its utility beyond pure mathematics.

Limitations and Future Work

  • White-Box Requirement: ACTD requires access to the teacher's predictive distributions (logits), meaning it cannot be used with closed-source, API-only models like GPT-4.
  • Computational Constraints: The experiments were constrained by the hardware required to run multi-teacher combinations simultaneously.

Future work includes scaling ACTD to broader heterogeneous teacher-student settings and optimizing the efficiency of multi-teacher logit aggregation.

Summary updated

BibTeX
@misc{zhang2026actd,
  author = {Huiyi Zhang and Zijian Li and Xiaocheng Feng and Weitao Ma and Xiaoliang Yang and Yichong Huang and Bing Qin},
  title = {{ACTD: Anchor-Based Cross-Tokenizer Distillation with Residual Regularization}},
  year = {2026},
  eprint = {2608.29662},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29662},
}
Figure