arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.13014cs.CLcs.AI
收藏

QCRD:面向大语言模型的质量引导对比理由蒸馏

QCRD: Quality-guided Contrastive Rationale Distillation for Large Language Models

University of Science and Technology of China(中国科学技术大学);ByteDance Inc(字节跳动公司);Fudan University(复旦大学)

Wei Wang, Zhaowei Li, Qi Xu, Yiqing Cai, Hang Song, Qi Qi, Ran Zhou, Zhida Huang, Tao Wang, Li Xiao

AI总结:

本文提出QCRD框架,通过质量引导的对比蒸馏,利用正面与负面知识增强小模型推理能力,实验证明优于现有蒸馏方法。

摘要:

大语言模型(LLM)的部署面临资源限制和推理效率方面的巨大挑战。近期研究日益聚焦于通过从LLM中蒸馏知识来增强更小、任务特定的模型。然而,以往研究往往忽视了知识的多样性和质量,尤其是负面知识的未开发潜力。构建有效的负面知识仍严重缺乏研究。在本文中,我们引入了一种名为质量引导对比理由蒸馏的新框架,旨在通过对比知识学习来增强推理能力。对于正面知识,我们通过温度采样丰富其多样性,并采用自一致性进行进一步的去噪和细化。对于负面知识,我们提出了一种创新的自对抗方法,通过采样较小语言模型的先前迭代来生成低质量理由,采纳了人们可以从自身弱点中学习的理念。我们开发了一种对比损失,将正面和负面知识蒸馏到较小语言模型中,其中集成了一种在线更新的判别器来评估理由的质量并为其分配适当的权重,从而优化训练过程。通过在多个推理任务上的广泛实验,我们证明了我们的方法始终优于现有蒸馏技术,产生更高质量的理由。

英文摘要:

The deployment of large language models (LLMs) faces considerable challenges concerning resource constraints and inference efficiency. Recent research has increasingly focused on smaller, task-specific models enhanced by distilling knowledge from LLMs. However, prior studies have often overlooked the diversity and quality of knowledge, especially the untapped potential of negative knowledge. Constructing effective negative knowledge remains severely understudied. In this paper, we introduce a novel framework called quality-guided contrastive rationale distillation aimed at enhancing reasoning capabilities through contrastive knowledge learning. For positive knowledge, we enrich its diversity through temperature sampling and employ self-consistency for further denoising and refinement. For negative knowledge, we propose an innovative self-adversarial approach that generates low-quality rationales by sampling previous iterations of smaller language models, embracing the idea that one can learn from one's own weaknesses. A contrastive loss is developed to distill both positive and negative knowledge into smaller language models, where an online-updating discriminator is integrated to assess qualities of rationales and assign them appropriate weights, optimizing the training process. Through extensive experiments across multiple reasoning tasks, we demonstrate that our method consistently outperforms existing distillation techniques, yielding higher-quality rationales.

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

↑