Forward-Backward Reasoning in Large Language Models for Verification
Preprint
Abstract
Chain-of-Though (CoT) prompting has shown promising performance in various reasoning tasks. Recently, Self-Consistency \citep{wang2023selfconsistency} proposes to sample a diverse set of reasoning chains which may lead to different answers while the answer that receives the most votes is selected. In this paper, we propose a novel method to use backward reasoning in verifying candidate answers. We mask a token in the question by ${\bf x}$ and ask the LLM to predict the masked token when a candidate answer is provided by \textit{a simple template}, i.e., "\textit{\textbf{If we know the answer of the above question is \{a candidate answer\}, what is the value of unknown variable ${\bf x}$?}}" Intuitively, the LLM is expected to predict the masked token successfully if the provided candidate answer is correct. We further propose FOBAR to combine forward and backward reasoning for estimating the probability of candidate answers. We conduct extensive experiments on six data sets and three LLMs. Experimental results demonstrate that FOBAR achieves state-of-the-art performance on various reasoning benchmarks.
Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Natural Language Reasoning, A SurveyACM Computing Surveys, 2024
- REFINER: Reasoning Feedback on Intermediate Representations2024
- Active Prompting with Chain-of-Thought for Large Language Models2024
- Peano: learning formal mathematical reasoningPhilosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 2023
- Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language ProcessingACM Computing Surveys, 2023
- Large Language Models are Better Reasoners with Self-Verification2023
- MetaICL: Learning to Learn In Context2022
- Learning To Retrieve Prompts for In-Context Learning2022
- Learning Knowledge Base Inference with Neural Theorem Provers2016
- The Backward Induction ParadoxThe Journal of Philosophy, 1989