Premise Order Matters in Reasoning with Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Xinyun, Chi, Ryan A., Wang, Xuezhi, Zhou, Denny
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916262527893504
author Chen, Xinyun
Chi, Ryan A.
Wang, Xuezhi
Zhou, Denny
author_facet Chen, Xinyun
Chi, Ryan A.
Wang, Xuezhi
Zhou, Denny
contents Large language models (LLMs) have accomplished remarkable reasoning performance in various domains. However, in the domain of reasoning tasks, we discover a frailty: LLMs are surprisingly brittle to the ordering of the premises, despite the fact that such ordering does not alter the underlying task. In particular, we observe that LLMs achieve the best performance when the premise order aligns with the context required in intermediate reasoning steps. For example, in deductive reasoning tasks, presenting the premises in the same order as the ground truth proof in the prompt (as opposed to random ordering) drastically increases the model's accuracy. We first examine the effect of premise ordering on deductive reasoning on a variety of LLMs, and our evaluation shows that permuting the premise order can cause a performance drop of over 30%. In addition, we release the benchmark R-GSM, based on GSM8K, to examine the ordering effect for mathematical problem-solving, and we again observe a significant drop in accuracy, relative to the original GSM8K benchmark.
format Preprint
id arxiv_https___arxiv_org_abs_2402_08939
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Premise Order Matters in Reasoning with Large Language Models
Chen, Xinyun
Chi, Ryan A.
Wang, Xuezhi
Zhou, Denny
Artificial Intelligence
Computation and Language
Large language models (LLMs) have accomplished remarkable reasoning performance in various domains. However, in the domain of reasoning tasks, we discover a frailty: LLMs are surprisingly brittle to the ordering of the premises, despite the fact that such ordering does not alter the underlying task. In particular, we observe that LLMs achieve the best performance when the premise order aligns with the context required in intermediate reasoning steps. For example, in deductive reasoning tasks, presenting the premises in the same order as the ground truth proof in the prompt (as opposed to random ordering) drastically increases the model's accuracy. We first examine the effect of premise ordering on deductive reasoning on a variety of LLMs, and our evaluation shows that permuting the premise order can cause a performance drop of over 30%. In addition, we release the benchmark R-GSM, based on GSM8K, to examine the ordering effect for mathematical problem-solving, and we again observe a significant drop in accuracy, relative to the original GSM8K benchmark.
title Premise Order Matters in Reasoning with Large Language Models
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2402.08939