Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Wei, Li, Zhaowei, Xu, Qi, Cai, Yiqing, Song, Hang, Qi, Qi, Zhou, Ran, Huang, Zhida, Wang, Tao, Xiao, Li
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2405.13014
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912034540486656
author Wang, Wei
Li, Zhaowei
Xu, Qi
Cai, Yiqing
Song, Hang
Qi, Qi
Zhou, Ran
Huang, Zhida
Wang, Tao
Xiao, Li
author_facet Wang, Wei
Li, Zhaowei
Xu, Qi
Cai, Yiqing
Song, Hang
Qi, Qi
Zhou, Ran
Huang, Zhida
Wang, Tao
Xiao, Li
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_13014
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle QCRD: Quality-guided Contrastive Rationale Distillation for Large Language Models
Wang, Wei
Li, Zhaowei
Xu, Qi
Cai, Yiqing
Song, Hang
Qi, Qi
Zhou, Ran
Huang, Zhida
Wang, Tao
Xiao, Li
Computation and Language
Artificial Intelligence
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.
title QCRD: Quality-guided Contrastive Rationale Distillation for Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2405.13014