TL;DR
This paper introduces a probabilistic framework for likelihood scoring across different tokenizers, enabling efficient and accurate language model distillation even with vocabulary mismatches.
Contribution
It uncovers an implicit recursive structure in BPE and develops a method for cross-tokenizer likelihood evaluation, improving distillation efficiency and performance.
Findings
Up to 12% memory reduction in model size during distillation.
Improved task performance by up to 4% on evaluated benchmarks.
Enhanced accuracy by over 2% in GSM8K mathematical reasoning distillation.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
