arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.20083cs.CL
收藏

通用跨分词器蒸馏:基于近似似然匹配

Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching

University of Cambridge(剑桥大学);University of Edinburgh(爱丁堡大学)

Benjamin Minixhofer, Ivan Vulić, Edoardo Maria Ponti

AI总结:

提出一种基于近似似然匹配的通用跨分词器蒸馏方法,首次实现不同分词器间有效知识迁移,并在三个用例中验证其优于现有方法,拓展了蒸馏的适用范围。

摘要:

蒸馏在将大型语言模型(LLM)教师的知识迁移到学生LLM方面已显示出显著成功。然而,当前的蒸馏方法要求教师和学生之间具有相似的分词器,这将其适用性限制在少数教师-学生对上。在本工作中,我们开发了一种原理性的跨分词器蒸馏方法,以解决这一关键缺陷。我们的方法是首个能够在根本不同的分词器之间实现有效蒸馏的方法,同时在所有其他情况下也大幅优于先前方法。我们在三个不同的用例中验证了该方法的有效性。首先,我们表明将分词器迁移视为自蒸馏,能够实现前所未有的跨分词器有效迁移,包括将子词模型快速迁移到字节级。将不同模型迁移到相同分词器还能实现集成以提升性能。其次,我们将一个大型数学专用LLM蒸馏到一个具有不同分词器的小型通用模型中,实现了具有竞争力的数学问题求解性能。第三,我们使用我们的方法训练最先进的嵌入预测超网络,用于免训练的分词器迁移。我们的结果解锁了更广泛的教师-学生对用于蒸馏,为适应和增强LLM之间的交互提供了新途径。

英文摘要:

Distillation has shown remarkable success in transferring knowledge from a Large Language Model (LLM) teacher to a student LLM. However, current distillation methods require similar tokenizers between the teacher and the student, restricting their applicability to only a small subset of teacher-student pairs. In this work, we develop a principled cross-tokenizer distillation method to solve this crucial deficiency. Our method is the first to enable effective distillation across fundamentally different tokenizers, while also substantially outperforming prior methods in all other cases. We verify the efficacy of our method on three distinct use cases. First, we show that viewing tokenizer transfer as self-distillation enables unprecedentedly effective transfer across tokenizers, including rapid transfer of subword models to the byte-level. Transferring different models to the same tokenizer also enables ensembling to boost performance. Secondly, we distil a large maths-specialised LLM into a small general-purpose model with a different tokenizer, achieving competitive maths problem-solving performance. Thirdly, we use our method to train state-of-the-art embedding prediction hypernetworks for training-free tokenizer transfer. Our results unlock an expanded range of teacher-student pairs for distillation, enabling new ways to adapt and enhance interaction between LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑