Dual-Vocabulary Language Model for Cross-Tokenizer Distillation
Abstract
On-policy distillation (OPD) bridges teacher supervision and student behavior, but different teacher-student tokenizers introduce misalignment in both input tokenization (#1) and output logits (#2). Existing approaches address the former by matching same-text spans or converting tokens to bytes, often losing fine-grained token information or disrupting the native-token paradigm, while for the latter, strategies such as ranking, padding, or key-token selection retain only shared logit dimensions, resulting in much distribution loss. In this paper, we propose Dual-Vocabulary Language Model (DVLM), which replaces the teacher's LM head with a new student-vocabulary projection head and obtains full-dimensional student logits (for #2). To support student tokens (for #1), it takes a Parallel-Tokenized Sequence (PTS) as input, which concatenates the original teacher-tokenized sequence and a re-tokenized sequence formed by independently converting each student token into a teacher-token group. To avoid inference inconsistency with the original teacher tokens, the Hybrid-Prefix Attention (HPA) further restricts re-tokenized groups to their corresponding teacher prefix and uses its last state as the aggregation of the original student-token representation for projection into the student vocabulary space. Similarly, via the combined use of PTS and HPA, the DVLM teacher can provide distribution-aligned supervision with the student's input-tokenization and output-logit during OPD. Experimental results demonstrate that our DVLM teacher has a similar converged loss as the original teacher model and enables student models to improve performance across six reasoning tasks.
Create a lesson
Related papers
Language Models Steer on Injected Uncertainty Tokens, but Fail to Self-Monitor In Situ
Shared title terminologycs.AIDaniel Theron
K-OPSD: Verifiable On-Policy Self-Distillation for Post-Training Vision-Language Models on AEC Drawings
Shared title terminologycs.AIYunfei Bai, Enrico Chionna, Akash Amol et al.
Large Language Models for Structured Clinical Data Analysis: Dual-Agent Grounding and Validation
Shared title terminologycs.AIErfan D. Dehkalani, Seetha Shankaran, Abbot R. Laptook et al.
One Latent, Many Tokens: Jointly Learning Compressed Embeddings for Efficient Language Diffusion
Shared title terminologycs.AIYulin Yuan, Ying Zhang, Xiangming Meng
CROSS-Calib: Selective Channel Calibration for Ultrasound Reconstruction
Shared title terminologycs.AITongxiao Hu, Junyu Zhou
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.