变废为宝:利用负数据从大语言模型中蒸馏复杂推理能力
Turning Dust into Gold: Distilling Complex Reasoning Capabilities from LLMs by Leveraging Negative Data
AI总结:
提出利用负样本数据从大语言模型蒸馏推理能力至小模型的框架,通过训练到推理的三步递进过程,在算术推理任务上验证了负数据对提升蒸馏效果的作用。
摘要:
大语言模型(LLMs)在各种推理任务上表现优异,但其难以访问且参数众多,阻碍了在实际中的广泛应用。一种有前景的方法是通过生成的思维链推理路径,将推理能力从LLMs蒸馏到小模型中。然而,在某些情况下,特别是面对复杂数学问题时,LLMs可能会产生错误的推理链。以往的研究仅从正样本中迁移知识,并丢弃了答案错误的合成数据。在这项工作中,我们阐明了负数据的价值,并提出了一种模型特化框架,除了正样本外,还利用负样本对LLMs进行蒸馏。该框架包含三个递进步骤,覆盖从训练到推理阶段,以吸收负数据中的知识。我们在算术推理任务上进行了大量实验,以证明负数据在LLM蒸馏中的作用。
英文摘要:
Large Language Models (LLMs) have performed well on various reasoning tasks, but their inaccessibility and numerous parameters hinder wide application in practice. One promising way is distilling the reasoning ability from LLMs to small models by the generated chain-of-thought reasoning paths. In some cases, however, LLMs may produce incorrect reasoning chains, especially when facing complex mathematical problems. Previous studies only transfer knowledge from positive samples and drop the synthesized data with wrong answers. In this work, we illustrate the merit of negative data and propose a model specialization framework to distill LLMs with negative samples besides positive ones. The framework consists of three progressive steps, covering from training to inference stages, to absorb knowledge from negative data. We conduct extensive experiments across arithmetic reasoning tasks to demonstrate the role of negative data in distillation from LLM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。