Skip to main content
QUICK REVIEW

[Paper Review] Premise Order Matters in Reasoning with Large Language Models

Xinyun Chen, Ryan A. Chi|arXiv (Cornell University)|Feb 14, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper demonstrates that large language models (LLMs) are highly sensitive to premise order in reasoning tasks, achieving up to 30% higher accuracy when premises are ordered to match the ground-truth proof sequence. The study reveals that LLMs perform best with left-to-right, forward-chaining reasoning, and introduces the R-GSM benchmark to show that this ordering effect also significantly impacts mathematical reasoning tasks.

ABSTRACT

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.

Motivation & Objective

  • To investigate whether the order of premises in reasoning prompts affects LLM performance, despite the logical equivalence of different orderings.
  • To identify whether LLMs exhibit a preference for premise ordering that aligns with forward-chaining reasoning steps, similar to human reasoning patterns.
  • To evaluate the impact of premise ordering on both deductive and mathematical reasoning tasks using standardized benchmarks.
  • To develop and release R-GSM, a new benchmark based on GSM8K, to systematically study premise ordering effects in mathematical problem-solving.
  • To highlight the brittleness of current LLM reasoning capabilities to structural input changes that do not alter logical content.

Proposed method

  • Constructed a logical reasoning benchmark based on SimpleLogic, focusing on modus ponens problems with definite clauses to isolate the effect of premise ordering.
  • Evaluated multiple state-of-the-art LLMs (GPT-4-turbo, GPT-3.5-turbo, PaLM 2-L, Gemini Pro) on premise permutations, including ground-truth order, random order, and reversed order.
  • Designed and released R-GSM, a variant of GSM8K where sentence order in problem descriptions is systematically permuted while preserving the correct answer.
  • Manually verified that all R-GSM instances retain the same ground-truth solution after reordering, ensuring validity of the benchmark.
  • Compared model performance across different premise orderings to measure accuracy degradation and identify ordering preferences.
  • Analyzed model behavior across different LLMs to detect variations in sensitivity to premise ordering, including preferences for backward chaining in some models.
Figure 1 : Premise order affects the reasoning performance: a failure case for logical reasoning. Left: rules are sorted in the same order as the ground truth proof (forward order with $\tau=1$ as defined in Section 2.1 ). Right: the wrong prediction with GPT-4-turbo after shuffling the rule set ( $
Figure 1 : Premise order affects the reasoning performance: a failure case for logical reasoning. Left: rules are sorted in the same order as the ground truth proof (forward order with $\tau=1$ as defined in Section 2.1 ). Right: the wrong prediction with GPT-4-turbo after shuffling the rule set ( $

Experimental results

Research questions

  • RQ1Does the order of premises in a reasoning prompt significantly affect the performance of large language models, even when the logical outcome remains unchanged?
  • RQ2Do LLMs achieve optimal performance when premises are ordered to match the sequence of intermediate reasoning steps in the ground-truth proof?
  • RQ3How does the presence of irrelevant premises affect the performance degradation caused by non-ideal premise ordering?
  • RQ4To what extent does the premise ordering effect generalize beyond deductive reasoning to mathematical reasoning tasks?
  • RQ5Do different LLMs exhibit varying sensitivities or preferences toward specific premise orderings, such as forward vs. backward chaining sequences?

Key findings

  • LLMs experience a performance drop of over 30% when premises are randomly reordered compared to the ground-truth proof order in deductive reasoning tasks.
  • The best performance is consistently achieved when premises are ordered to match the forward-chaining sequence of the ground-truth proof.
  • GPT-4-turbo and GPT-3.5-turbo show improved performance with reversed premise order (backward chaining), suggesting a preference for reasoning from conclusion to premises.
  • PaLM 2-L performs worst with reversed premise order, indicating model-specific sensitivity to ordering patterns.
  • The R-GSM benchmark confirms a significant accuracy drop in mathematical reasoning tasks when sentence order is altered, especially in longer, multi-step problems.
  • Even syntactically valid and semantically equivalent premise permutations drastically reduce model performance, revealing a critical brittleness in LLM reasoning.
Figure 2 : R-GSM example where the original problem can be correctly solved by all LLMs in our evaluation, but all of them failed on the reordered one. Different calculation steps and their corresponding problem statements are annotated in light blue. Specifically, the reasoning steps of the origina
Figure 2 : R-GSM example where the original problem can be correctly solved by all LLMs in our evaluation, but all of them failed on the reordered one. Different calculation steps and their corresponding problem statements are annotated in light blue. Specifically, the reasoning steps of the origina

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.