← Latest papers
💬 NLP

X-Token: Projection-Guided Cross-Tokenizer Knowledge Distillation

The paper proposes X-Token, a projection-guided cross-tokenizer knowledge distillation framework that employs sparse projection matrices to overcome vocabulary incompatibility and token-matching limitations in logit-based distillation, thereby enabling student models to effectively learn "dark knowledge" from teachers with mismatched vocabularies and achieve state-of-the-art performance.

Original authors: Sharath Turuvekere Sreenivas, Adithyakrishna Venkatesh Hanasoge, Mingyu Yang, Ali Taghibakhshi, Saurav Muralidharan, Ashwath Aithal, Pavlo Molchanov

Published 2026-05-22
📖 5 min read🧠 Deep dive

Original authors: Sharath Turuvekere Sreenivas, Adithyakrishna Venkatesh Hanasoge, Mingyu Yang, Ali Taghibakhshi, Saurav Muralidharan, Ashwath Aithal, Pavlo Molchanov

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a young student (the Student Model) how to solve math problems and write stories. You have a brilliant teacher (the Teacher Model) who knows everything, but there's a catch: they speak different languages.

The student speaks "Llama," where the number 201 is one single word. The teacher speaks "Qwen," where 201 is broken down into three separate words: 2, 0, and 1.

In the past, trying to teach the student using this teacher was like trying to match socks from two different drawers where the sizes don't line up. If you tried to force a match, the student would get confused, or worse, the teacher's valuable advice would be ignored entirely.

This paper introduces a new method called X-Token to fix this mismatch. Here is how it works, broken down into simple concepts:

1. The Problem: The "Sock Drawer" Mismatch

Previous methods tried to solve this by splitting the vocabulary into two groups:

  • The "Common" Group: Words that look exactly the same in both languages (e.g., "the," "cat").
  • The "Uncommon" Group: Words that don't match (e.g., "201" vs. "2-0-1").

The old method (called GOLD) treated these two groups differently. It gave perfect advice for the "Common" words but gave messy, random advice for the "Uncommon" words.

  • The Failure: If the student needed to learn a critical math number like 201, and that number fell into the "Uncommon" group, the old method would actually hurt the student's learning. It's like a teacher telling a student, "Don't worry about the number 201; just guess randomly." The paper shows this caused the student's math scores to crash from a decent 12.89 down to a terrible 2.56.

2. The Solution: The "Universal Translator" (Projection Matrix)

X-Token introduces a special tool called a Projection Matrix (WW). Think of this as a Universal Translator or a Rosetta Stone that sits between the student and the teacher.

Instead of forcing the student to only learn words that look exactly the same, this translator says:

  • "Okay, when the teacher says '2', '0', and '1', that is the same thing as the student's '201'."
  • It creates a bridge so the student can understand the teacher's full logic, even if they break words apart differently.

3. Two Different Teaching Styles (Loss Functions)

The paper realizes that sometimes the "Universal Translator" needs to work in two different ways, depending on the situation. They created two modes:

Mode A: The "Full Merge" (P-KL)

  • When to use: When the teacher breaks up critical words (like math numbers) into tiny pieces that the student doesn't recognize at all.
  • How it works: It throws away the idea of "Common" vs. "Uncommon" words entirely. It uses the translator to map the entire teacher's brain to the student's brain.
  • The Result: It saved the math scores! By using this mode with the Qwen teacher, the student's math score jumped from 2.56 (with the old method) all the way up to 15.54. It even beat a teacher who spoke the same language as the student.

Mode B: The "Relaxed Match" (H-KL)

  • When to use: When the teacher and student mostly agree, but there are some small differences (like the teacher saying "Hund" + "reds" for the student's "Hundreds").
  • How it works: It keeps the "Common" vs. "Uncommon" split but relaxes the rules. Instead of demanding an exact match, it says, "If the translator says these two are the closest match, let's count them as a match."
  • The Result: This gave a small but steady boost (about +0.5 points) when the teacher was the Phi-4-mini model, which didn't break up numbers as aggressively.

4. The "Panel of Experts" (Multi-Teacher Distillation)

The paper also shows that you can use multiple teachers at once.

  • Imagine you have a Math Genius teacher and a Storytelling teacher.
  • X-Token allows the student to listen to both simultaneously.
  • The Result: When they combined a Math-focused teacher (Phi-4-mini) with a General Knowledge teacher (Llama-3), the student learned better than with just one teacher. It's like a student getting a private tutor for math and a different one for history, then combining those lessons into one super-student.

Summary of Results

  • The Old Way: If the vocabularies didn't match perfectly, the student got confused and performed poorly.
  • The X-Token Way: By using a smart translator and choosing the right teaching style (Full Merge vs. Relaxed Match), the student learned effectively from teachers speaking different "languages."
  • The Proof: On a standard math test (GSM8k), X-Token improved the student's score by 6 times compared to the previous best method when using a specific teacher.

In short, X-Token is a smart system that stops trying to force two different languages to look the same and instead builds a bridge so the student can learn from the teacher's ideas, regardless of how the teacher chooses to say them.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →