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

Large Language Models are Better Reasoners with Self-Verification

About

Recently, with the chain of thought (CoT) prompting, large language models (LLMs), e.g., GPT-3, have shown strong reasoning ability in several natural language processing tasks such as arithmetic, commonsense, and logical reasoning. However, LLMs with CoT require multi-step prompting and multi-token prediction, which is highly sensitive to individual mistakes and vulnerable to error accumulation. The above issues make the LLMs need the ability to verify the answers. In fact, after inferring conclusions in some thinking decision tasks, people often check them by re-verifying steps to avoid some mistakes. In this paper, we propose and prove that LLMs also have similar self-verification abilities. We take the conclusion obtained by CoT as one of the conditions for solving the original problem. By performing a backward verification of the answers that LLM deduced for itself, we can obtain interpretable answer validation scores to select the candidate answer with the highest score. Experimental results demonstrate that the proposed method can improve the reasoning performance on various arithmetic, commonsense, and logical reasoning datasets. Our code is publicly available at: https://github.com/WENGSYX/Self-Verification.

Yixuan Weng, Minjun Zhu, Fei Xia, Bin Li, Shizhu He, Shengping Liu, Bin Sun, Kang Liu, Jun Zhao• 2022

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningGSM8K
Accuracy92.3
1362
Mathematical ReasoningMATH
Accuracy56.9
882
Mathematical ReasoningGSM8K
Accuracy87
499
General KnowledgeMMLU
MMLU General Knowledge Accuracy86.4
234
Mathematical ReasoningAIME 25
Accuracy93.3
201
Logical reasoningLogiQA
LogiQA Accuracy77.2
181
General ReasoningMMLU
MMLU Accuracy87.9
156
Math ReasoningMATH
Accuracy55.8
121
Mathematical ReasoningMATH 500
Accuracy97.2
119
Logical reasoningLogiQA
Accuracy77.8
100
Showing 10 of 34 rows

Other info

Follow for update