Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks

About

Recently, there has been significant progress in teaching language models to perform step-by-step reasoning to solve complex numerical reasoning tasks. Chain-of-thoughts prompting (CoT) is by far the state-of-art method for these tasks. CoT uses language models to perform both reasoning and computation in the multi-step `thought' process. To disentangle computation from reasoning, we propose `Program of Thoughts' (PoT), which uses language models (mainly Codex) to express the reasoning process as a program. The computation is relegated to an external computer, which executes the generated programs to derive the answer. We evaluate PoT on five math word problem datasets (GSM, AQuA, SVAMP, TabMWP, MultiArith) and three financial-QA datasets (FinQA, ConvFinQA, TATQA) for both few-shot and zero-shot setups. Under both few-shot and zero-shot settings, PoT can show an average performance gain over CoT by around 12\% across all the evaluated datasets. By combining PoT with self-consistency decoding, we can achieve SoTA performance on all math problem datasets and near-SoTA performance on financial datasets. All of our data and code are released in Github https://github.com/wenhuchen/Program-of-Thoughts

Wenhu Chen, Xueguang Ma, Xinyi Wang, William W. Cohen• 2022

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH (test)
Overall Accuracy92.58
433
Mathematical ReasoningAIME
AIME Accuracy62.49
283
Multimodal ReasoningMM-Vet
MM-Vet Score44
281
Multimodal UnderstandingMMMU--
275
Table Question AnsweringWikiTableQuestions (test)--
86
Table Fact VerificationTabFact small (test)
Accuracy0.7451
57
Table Question AnsweringSequentialQA
F1 Score63.52
50
Table Question AnsweringWikiTQ
F1 Score69.9
50
Mathematical ReasoningSVAMP out-of-domain (test)
Accuracy75
50
Table Question AnsweringNQ-Table
F1 Score67.7
50
Showing 10 of 42 rows

Other info

Follow for update