Large Language Models are Better Reasoners with Self-Verification
Preprint
Abstract
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 taking turns masking the original conditions and predicting their results, we calculate an explainable answer verification score based on whether the re-predicted conditions are correct. 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.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- A Survey on Non-Autoregressive Generation for Neural Machine Translation and BeyondIEEE Transactions on Pattern Analysis and Machine Intelligence, 2023
- Reasoning with Language Model Prompting: A Survey2023
- Large Language Models Are Reasoning Teachers2023
- A Knowledge storage and semantic space alignment Method for Multi-documents dialogue generation2022
- Did Aristotle Use a Laptop?A Question Answering Benchmark with Implicit Reasoning StrategiesTransactions of the Association for Computational Linguistics, 2021
- Are NLP Models really able to Solve Simple Math Word Problems?2021
- LogiQA: A Challenge Dataset for Machine Reading Comprehension with Logical Reasoning2020
- MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms2019
- A Multi-Type Multi-Span Network for Reading Comprehension that Requires Discrete Reasoning2019
- Parsing Algebraic Word Problems into EquationsTransactions of the Association for Computational Linguistics, 2015