X-Token: Projection-Guided Cross-Tokenizer Knowledge Distillation
Summary
X-Token is a novel logit-distribution-based approach for cross-tokenizer knowledge distillation, enabling student models to learn from teachers with incompatible vocabularies. It addresses two key shortcomings of prior full-distribution, logit-based methods: "uncommon-token failure" and "over-conservative matching." X-Token introduces a sparse projection matrix W, initialized from tokenizer-level string rules, and two complementary loss formulations: P-KL, which removes partitioning to align full distributions, and H-KL, which relaxes matching via top-ranked mappings under W. Empirically, X-Token on Llama-3.2-1B outperforms the state-of-the-art GOLD by +3.82 average points with a Qwen3-4B teacher and by +0.5 with a Phi-4-Mini teacher. A two-teacher setup (Phi-4-mini + Llama-3B) further improves performance by +1.3 points.
Key takeaway
For machine learning engineers building models with diverse teacher sources, X-Token offers a robust solution for cross-tokenizer knowledge distillation. You should select between P-KL and H-KL based on a coverage audit of critical tokens, using P-KL for "uncommon-token failure" scenarios and H-KL for "sound-partition" regimes. This approach allows you to effectively combine heterogeneous teachers, potentially surpassing same-family distillation performance.
Key insights
X-Token enables cross-tokenizer knowledge distillation by projecting student distributions into teacher vocabulary space, overcoming prior matching failures.
Principles
- Tokenizer-dependent loss selection is crucial.
- Complementary teachers drive multi-teacher gains.
- Simple static weighting can outperform adaptive schemes.
Method
X-Token uses span alignment, a projection matrix W (initialized from string rules), and two loss formulations: P-KL for full distribution alignment and H-KL for relaxed matching.
In practice
- Use P-KL when critical tokens fall into the uncommon set.
- Apply H-KL when token alignment is structurally sound.
- Combine teachers with diverse strengths for multi-teacher KD.
Topics
- Cross-tokenizer KD
- Knowledge Distillation
- Projection Matrix W
- P-KL Loss
- H-KL Loss
- Multi-teacher Learning
- Vocabulary Alignment
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.