English

Forward-Backward Reasoning in Large Language Models for Mathematical Verification

Computation and Language 2024-06-06 v6 Artificial Intelligence Machine Learning

Abstract

Self-Consistency samples diverse reasoning chains with answers and chooses the final answer by majority voting. It is based on forward reasoning and cannot further improve performance by sampling more reasoning chains when saturated. To further boost performance, we introduce backward reasoning to verify candidate answers. Specifically, for mathematical tasks, we mask a number in the question and ask the LLM to answer a backward question created by a simple template, i.e., to predict the masked number when a candidate answer is provided. Instead of using forward or backward reasoning alone, we propose FOBAR to combine FOrward and BAckward Reasoning for verification. Extensive experiments on six standard mathematical data sets and three LLMs show that FOBAR achieves state-of-the-art performance. In particular, FOBAR outperforms Self-Consistency, which uses forward reasoning alone, demonstrating that combining forward and forward reasoning is better. In addition, FOBAR performs better than existing verification methods, showing the effectiveness of the simple template used in backward reasoning and the proposed combination. Extensions to non-mathematical problems are also discussed and validated empirically.

Keywords

Cite

@article{arxiv.2308.07758,
  title  = {Forward-Backward Reasoning in Large Language Models for Mathematical Verification},
  author = {Weisen Jiang and Han Shi and Longhui Yu and Zhengying Liu and Yu Zhang and Zhenguo Li and James T. Kwok},
  journal= {arXiv preprint arXiv:2308.07758},
  year   = {2024}
}

Comments

Accepted by Findings of ACL 2024

R2 v1 2026-06-28T11:56:02.802Z