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

从显式思维链到隐式思维链:逐步学习内化思维链

From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Step

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Waterloo(滑铁卢大学);University of Washington(华盛顿大学);Harvard University(哈佛大学)

Yuntian Deng, Yejin Choi, Stuart Shieber

AI总结:

本文提出一种逐步移除中间步骤并微调模型的方法,使模型内化思维链,从而在简化推理的同时保持高性能,在乘法任务和GSM8K上均取得显著成效。

摘要:

在利用语言模型执行推理任务时,生成显式的思维链(CoT)步骤通常对于在最终输出中实现高准确率至关重要。在本文中,我们研究模型是否可以被教导内化这些思维链步骤。为此,我们提出了一种简单而有效的方法来内化思维链步骤:从一个经过显式思维链推理训练的模型开始,我们逐步移除中间步骤并对模型进行微调。这一过程使模型能够内化中间推理步骤,从而简化推理过程同时保持高性能。我们的方法使GPT-2 Small模型能够以高达99%的准确率解决9乘9的乘法问题,而标准训练无法解决超过4乘4的乘法问题。此外,我们的方法在更大的语言模型(如Mistral 7B)上也被证明有效,在不产生任何中间步骤的情况下,在GSM8K上实现了超过50%的准确率。

英文摘要:

When leveraging language models for reasoning tasks, generating explicit chain-of-thought (CoT) steps often proves essential for achieving high accuracy in final outputs. In this paper, we investigate if models can be taught to internalize these CoT steps. To this end, we propose a simple yet effective method for internalizing CoT steps: starting with a model trained for explicit CoT reasoning, we gradually remove the intermediate steps and finetune the model. This process allows the model to internalize the intermediate reasoning steps, thus simplifying the reasoning process while maintaining high performance. Our approach enables a GPT-2 Small model to solve 9-by-9 multiplication with up to 99% accuracy, whereas standard training cannot solve beyond 4-by-4 multiplication. Furthermore, our method proves effective on larger language models, such as Mistral 7B, achieving over 50% accuracy on GSM8K without producing any intermediate steps.

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

↑