arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12030cs.CL
收藏

跨分词器蒸馏:面向大语言模型的通用逻辑蒸馏损失

Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs

Diabolocom(迪亚博洛科姆公司);CentraleSupélec(中央高等电力学院);Paris-Saclay University(巴黎-萨克雷大学);University of Mons(蒙斯大学)

Nicolas Boizard, Kevin El Haddad, Céline Hudelot, Pierre Colombo

AI总结:

针对大语言模型跨分词器蒸馏难题,提出基于最优传输的通用逻辑蒸馏损失,实现不同架构与分词器模型间的有效知识迁移。

摘要:

部署拥有数十亿参数的大语言模型(LLMs)在大多数工业应用场景中可能不切实际,原因在于成本、延迟限制和硬件可及性等约束。知识蒸馏(KD)通过将资源密集型大模型的知识压缩到较小模型中提供了一种解决方案。现有多种策略,有些依赖于教师模型生成的文本,并可选地利用其逻辑值来增强学习。然而,这些基于逻辑值的方法通常要求教师和学生模型共享相同的分词器,限制了它们在不同LLM家族之间的适用性。在本文中,我们引入了基于最优传输的通用逻辑蒸馏(ULD)损失,以解决这一限制。我们的实验结果表明,ULD损失在实现跨不同架构和分词器的模型蒸馏方面具有有效性,为蒸馏技术的更广泛应用铺平了道路。

英文摘要:

Deploying large language models (LLMs) of several billion parameters can be impractical in most industrial use cases due to constraints such as cost, latency limitations, and hardware accessibility. Knowledge distillation (KD) offers a solution by compressing knowledge from resource-intensive large models to smaller ones. Various strategies exist, some relying on the text generated by the teacher model and optionally utilizing his logits to enhance learning. However, these methods based on logits often require both teacher and student models to share the same tokenizer, limiting their applicability across different LLM families. In this paper, we introduce Universal Logit Distillation (ULD) loss, grounded in optimal transport, to address this limitation. Our experimental results demonstrate the effectiveness of ULD loss in enabling distillation across models with different architectures and tokenizers, paving the way to a more widespread use of distillation techniques.

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

↑