Forward-Backward Reasoning in Large Language Models for Mathematical Verification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jiang, Weisen, Shi, Han, Yu, Longhui, Liu, Zhengying, Zhang, Yu, Li, Zhenguo, Kwok, James T.
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917684685307904
author Jiang, Weisen
Shi, Han
Yu, Longhui
Liu, Zhengying
Zhang, Yu
Li, Zhenguo
Kwok, James T.
author_facet Jiang, Weisen
Shi, Han
Yu, Longhui
Liu, Zhengying
Zhang, Yu
Li, Zhenguo
Kwok, James T.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2308_07758
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Forward-Backward Reasoning in Large Language Models for Mathematical Verification
Jiang, Weisen
Shi, Han
Yu, Longhui
Liu, Zhengying
Zhang, Yu
Li, Zhenguo
Kwok, James T.
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Forward-Backward Reasoning in Large Language Models for Mathematical Verification
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2308.07758