Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Yuntian Deng, Yejin Choi, Stuart Shieber• 2024

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningGSM8K
Accuracy14.81
1424
Mathematical ReasoningMATH500 (test)
Accuracy88.6
922
Mathematical ReasoningGSM8K (test)
Accuracy19
816
Mathematical ReasoningMATH 500
Top-1 Accuracy90.6
452
Instruction FollowingAlpacaEval
Win Rate61.3
423
Mathematical ReasoningSVAMP
Accuracy36.4
403
Mathematical ReasoningMATH
Accuracy15
338
Multi-hop Question AnsweringHotpotQA (test)
F152.7
334
Mathematical ReasoningGSM8K
Accuracy60.4
192
Mathematical ReasoningGSM-Hard
Solve Rate3.87
162
Showing 10 of 41 rows

Other info

Follow for update