paper-with-me

홈 › Papers

Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillation

2025-12-16 · Buu Phan, Ashish Khisti, Karen Ullrich arxiv

Computing next-token likelihood ratios between two language models (LMs) is a standard task in training paradigms such as knowledge distillation. Since this requires both models to share the same probability space, it becomes challenging when the teacher and student LMs use different tokenizers, for instance, when edge-device deployment necessitates a smaller vocabulary size to lower memory overhead. This work addresses this vocabulary misalignment problem by uncovering an implicit recursive structure in the commonly deployed Byte-Pair Encoding (BPE) algorithm and utilizing it to create a probabilistic framework for cross-tokenizer likelihood scoring. Our method enables sequence likelihood evaluation for vocabularies different from the teacher model native tokenizer, addressing two specific scenarios: when the student vocabulary is a subset of the teacher vocabulary, and the general case where it is arbitrary. In the subset regime, our framework computes exact likelihoods and provides next-token probabilities for sequential sampling with only ${O}(1)$ model evaluations per token. When used for distillation, this yields up to a $12\%$ reduction in memory footprint for the Qwen2.5-1.5B model while also improving baseline performance up to $4\%$ on the evaluated tasks. For the general case, we introduce a rigorous lossless procedure that leverages BPE recursive structure, complemented by a fast approximation that keeps large-vocabulary settings practical. Applied to GSM8K mathematical reasoning distillation, our method improves accuracy by over $2\%$ the current state of the art. Code: github.com/truongbuu/cross-tokenizer-scoring

📄 PDF Abstract BibTeX arXiv:2512.14954

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge DistillationMathematical Reasoning

Similar Papers 제목 키워드 기반

Cross-Tokenizer LLM Distillation through a Byte-Level Interface

2026-04-08 · Avyav Kumar Singh, Yen-Chen Wu, Alexandru Cioba, Alberto Bernacchia 외 arxiv

Cross-tokenizer distillation (CTD), the transfer of knowledge from a teacher to a student language model when the two use different tokenizers, remains a largely unsolved problem. Existing approaches rely on heuristic st…

Cross-Tokenizer Distillation via Approximate Likelihood Matching

2025-03-25 · Benjamin Minixhofer, Ivan Vulić, Edoardo Maria Ponti

Distillation has shown remarkable success in transferring knowledge from a Large Language Model (LLM) teacher to a student LLM. However, current distillation methods predominantly require the same tokenizer between the t…

Large Language Model

Contextualizing Biological Language Models across Modalities via Logit-Space Contrastive Alignment

2026-06-17 · Yanjun Shao, Yundi Chen, Yashvi Patel, Aurelien Pelissier 외 arxiv

Pretrained biological language models expose per-token probability distributions through masked-token prediction, providing the likelihood interface central to sequence design, variant scoring, and mechanistic interpreta…

Contrastive Learning

Right Tool, Right Job: Native-Language Evaluation, Tokenizer Sensitivity, and Methodological Findings from a French-Only BabyLM

2026-09-15 · Adam Zachary Wasserman, David Beauchemin arxiv

We submit MéTRON-FR, a 125M GPT-2 pretrained on 92.47M words of French, to the BabyLM 2026 Strict track. It scores 85.97 +/- 0.17% on QFrBLiMP (a native Quebec-French benchmark of grammatical minimal pairs) and 62.80% on…

Membership Inference Attacks on Tokenizers of Large Language Models

2025-10-07 · Meng Tong, Yuntao Du, Kejiang Chen, Weiming Zhang 외 arxiv

Membership inference attacks (MIAs) are widely used to assess the privacy risks associated with machine learning models. However, when these attacks are applied to pre-trained large language models (LLMs), they encounter…