知识蒸馏在大语言模型(LLM)压缩中发挥着关键作用,它能在大型教师模型的指导下提升小型学生模型的性能。然而,现有的LLM蒸馏方法过度依赖学生模型生成的输出,这可能会引入生成错误,进而误导蒸馏过程。此外,由于LLM输出的分布较为复杂,以往研究提出的蒸馏损失函数难以对齐信息量最丰富的部分。为解决这些问题,我们提出了一种面向LLM蒸馏的多粒度语义修正方法。在序列层面,我们提出了序列校正与重生成(sequence correction and re-generation, SCRG)策略。SCRG首先计算教师模型与学生模型之间的语义认知差异以检测错误token,随后用教师模型生成的token对其进行校正,并重新生成序列,从而减少生成错误并增强生成多样性。在token层面,我们设计了分布自适应裁剪KL(distribution adaptive clipping Kullback-Leibler, DAC-KL)损失作为蒸馏目标函数。DAC-KL损失利用一个可学习的子网络,从教师模型的输出中自适应提取语义密集区域,避免蒸馏过程中冗余信息的干扰。最后,在跨度(span)层面,我们利用序列的跨度先验计算跨度内部的概率相关性,并约束教师模型与学生模型的概率相关性保持一致,进一步增强语义信息的迁移。我们在参数规模从0.1B到13B的不同模型家族上开展了大量实验,结果表明,与现有方法相比,我们的方法具有更优的性能。
英文摘要:
Knowledge distillation plays a key role in compressing the Large Language Models (LLMs), which boosts a small-size student model under large teacher models' guidance. However, existing LLM distillation methods overly rely on student-generated outputs, which may introduce generation errors and misguide the distillation process. Moreover, the distillation loss functions introduced in previous art struggle to align the most informative part due to the complex distribution of LLMs' outputs. To address these problems, we propose a multi-granularity semantic revision method for LLM distillation. At the sequence level, we propose a sequence correction and re-generation (SCRG) strategy. SCRG first calculates the semantic cognitive difference between the teacher and student to detect the error token, then corrects it with the teacher-generated one, and re-generates the sequence to reduce generation errors and enhance generation diversity. At the token level, we design a distribution adaptive clipping Kullback-Leibler (DAC-KL) loss as the distillation objective function. DAC-KL loss exploits a learnable sub-network to adaptively extract semantically dense areas from the teacher's output, avoiding the interference of redundant information in the distillation process. Finally, at the span level, we leverage the span priors of a sequence to compute the probability correlations within spans, and constrain the teacher and student's probability correlations to be consistent, further enhancing the transfer of semantic information. Extensive experiments across different model families with parameters ranging from 0.1B to 13B demonstrate the superiority of our method compared to existing methods.
When Compression Helps and When It Hurts: Condition-Aware Analysis of Chain-of-Thought Distillation
Ningbo Institute of Digital Twin, Eastern Institute of Technology, Ningbo(宁波数字孪生研究院,东方理工高等研究院,宁波);Viterbi School of Engineering, University of Southern California(南加州大学维特比工程学院);The Hong Kong Polytechnic University(香港理工大学);LMU Munich(慕尼黑大学);Saarland University(萨尔大学)
Quantification of Large Language Model Distillation
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Peking University(北京大学);SUSTech(南方科技大学);SUAT;Leibowitz AI;UNSW Sydney(新南威尔士大学悉尼分校)
Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning
Department of Computing, The Hong Kong Polytechnic University(香港理工大学计算机系);Ningbo Key Laboratory of Spatial Intelligence and Digital Derivative(宁波空间智能与数字衍生关键实验室);Institute of Digital Twin, EIT(数字孪生研究院);Saarland University(萨尔兰大学);Meituan Inc.(美团公司)
VisionWeave: Weaving Elastic Visual Representations as a Native Capability of MLLMs
University of Science and Technology of China(中国科学技术大学);Alibaba Token Hub, Alibaba Group(阿里巴巴集团,阿里巴巴Token Hub);The Chinese University of Hong Kong(香港中文大学);Zhejiang University(浙江大学)
Benchmarking Multi-turn Medical Diagnosis: Hold, Lure, and Self-Correction
The University of Texas at Austin(德克萨斯大学奥斯汀分校);New York University(纽约大学);The University of Texas Southwestern Medical Center(德克萨斯大学西南医学中心);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)
Internal Activation Revision: Safeguarding Vision Language Models Without Parameter Update
Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Fraunhofer FOKUS(弗劳恩霍夫协会FOKUS研究所);The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学)
PlaSma: Making Small Language Models Better Procedural Knowledge Models for (Counterfactual) Planning
Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学);University of Southern California(南加州大学);Tohoku University(东北大学)
Towards Communication-Efficient Social Intelligence in Language Agents
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of Science and Technology of China(中国科学技术大学);The Hong Kong University of Science and Technology(香港科技大学)
Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs
The University of British Columbia(不列颠哥伦比亚大学);Canada Research Chair in NLP and ML(自然语言处理和机器学习研究主席);Mohammed VI Polytechnic University(穆莱·阿卜杜勒阿齐兹国王理工学院);Birzeit University(比尔泽特大学);Western Michigan University(西部密歇根大学);Tuwaiq Academy(图瓦伊克学院);King Khalid University(国王卡利德大学);American University of Beirut(贝鲁特美国大学);Ibb University(伊卜大学);University of Hail(海勒大学);University of Technology and Applied Sciences(技术与应用科学大学);Arab Open University(阿拉伯开放大学);Minia University(米尼亚大学);Nantes University(南特大学);Prince Sultan University(沙特王子大学);Umm Al-Qura University(乌姆·阿勒·卡拉大学);University of Nouakchott(努尔人大学);Fatabyyano(法塔比亚诺);Independent Researcher(独立研究者);Hadhramout University(哈德拉姆大学);Cairo University(开罗大学);Misurata University(米斯拉塔大学);Al-Balqa Applied University(巴勒斯坦应用大学);University of Khartoum(喀土穆大学);Sultan Qaboos Higher Centre for Culture and Science(穆罕默德·本·拉希德·阿勒马克图姆文化与科学高级中心);Arab Center for Research and Policy Studies(阿拉伯研究中心);Hamad Bin Khalifa University(哈马德·本·哈利法大学);Institut Supérieur du Numérique(数字高级学院)