arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.09721cs.CLcs.AIcs.LG
收藏

KNIFE:从自由文本理由中蒸馏推理知识

KNIFE: Distilling Reasoning Knowledge From Free-Text Rationales

University of Southern California(南加州大学);Harvard-Westlake School(哈佛-西湖学校);University of Virginia(弗吉尼亚大学);Tsinghua University(清华大学)

Aaron Chan, Zhiyuan Zeng, Wyatt Lake, Brihi Joshi, Hanjie Chen, Xiang Ren

AI总结:

提出KNIFE框架,通过将自由文本理由中的推理知识蒸馏到小型LM的隐藏状态中,使其在全监督和低资源设置下均优于现有微调和提示基线。

摘要:

语言模型(LMs)在许多语言推理任务上取得了令人瞩目的成果,但其意外错误引发了对其推理能力的质疑。鉴于此,人们越来越关注利用任务实例及其相关的自由文本理由(FTRs)来微调/提示LMs,FTRs解释了预测正确任务输出所需的正确推理过程(即如何“为正确的理由得出正确的结果”)。然而,现有的微调方法未能提升LM性能,而提示方法则需要极大(即>50B)的LMs才能良好工作。我们提出了KNIFE,它表明推理知识可以有效地从FTRs蒸馏到小型(即<1B)LM中,并提升LM的性能。首先,KNIFE微调一个教师LM(给定任务输入和FTR)以预测任务输出,将推理知识从FTRs转移到教师的隐藏状态中。其次,KNIFE微调一个学生LM(仅给定任务输入),使其隐藏状态与教师对齐。因此,学生LM被赋予了推理知识,但可以在没有直接FTR输入的情况下用于推理。在两个问答数据集上,KNIFE在全监督和低资源设置下均优于各种微调和提示基线。此外,我们观察到FTR的质量对KNIFE的性能至关重要。

英文摘要:

Language models (LMs) have yielded impressive results on many language reasoning tasks, but their unexpected errors raise doubts about their reasoning abilities. In light of this, there is growing interest in finetuning/prompting LMs with both task instances and their associated free-text rationales (FTRs), which explain the correct reasoning process for predicting the correct task output (i.e., how to be "right for the right reasons"). However, existing finetuning methods fail to improve LM performance, while prompting needs prohibitively large (i.e., >50B) LMs to work well. We propose KNIFE, which shows that reasoning knowledge can be effectively distilled from FTRs into a small (i.e., <1B) LM and improve the LM's performance. First, KNIFE finetunes a teacher LM (given task input and FTR) to predict the task output, transferring reasoning knowledge from the FTRs to the teacher's hidden states. Second, KNIFE finetunes a student LM (given task input only) such that its hidden states are aligned with the teacher's. Thus, the student is endowed with reasoning knowledge but can be used for inference without direct FTR input. On two question-answering datasets, KNIFE outperforms various finetuning and prompting baselines in fully-supervised and low-resource settings. Also, we observe that FTR quality is crucial to KNIFE's performance.

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

↑