[论文解读] Premise Order Matters in Reasoning with Large Language Models
本文表明,大型语言模型(LLMs)在推理任务中对前提顺序极为敏感,当前提顺序与真实证明序列一致时,准确率可提高多达30%。研究发现,LLMs在从左到右、前向链式推理中表现最佳,并提出了R-GSM基准,表明这种排序效应在数学推理任务中也具有显著影响。
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.
研究动机与目标
- 调查在逻辑等价的不同顺序下,前提顺序是否会影响大型语言模型的性能。
- 识别LLMs是否倾向于偏好与前向链式推理步骤一致的前提顺序,类似于人类的推理模式。
- 使用标准化基准,评估前提顺序对演绎推理和数学推理任务的影响。
- 开发并发布R-GSM,一个基于GSM8K的新基准,以系统研究数学解题中的前提顺序效应。
- 揭示当前LLM推理能力对不改变逻辑内容的结构化输入变化的脆弱性。
提出的方法
- 基于SimpleLogic构建了一个逻辑推理基准,聚焦于肯定式假言推理问题,使用确定性子句以隔离前提顺序的影响。
- 在前提排列(包括真实顺序、随机顺序和反向顺序)上评估了多种最先进的LLMs(GPT-4-turbo、GPT-3.5-turbo、PaLM 2-L、Gemini Pro)。
- 设计并发布了R-GSM,它是GSM8K的一个变体,其中问题描述中的句子顺序被系统性地重新排列,同时保留正确答案。
- 人工验证了所有R-GSM实例在重新排序后仍保持相同的真值解,确保了基准的有效性。
- 比较了不同前提顺序下的模型性能,以衡量准确率下降并识别顺序偏好。
- 分析了不同LLMs在前提顺序敏感性方面的行为差异,包括部分模型对后向链式推理的偏好。

实验结果
研究问题
- RQ1在逻辑结果保持不变的情况下,前提顺序是否显著影响大型语言模型的性能?
- RQ2当前提顺序与真实证明中中间推理步骤的顺序一致时,LLMs是否能实现最佳性能?
- RQ3无关前提的存在在多大程度上加剧了非理想前提顺序带来的性能下降?
- RQ4前提顺序效应在多大程度上可推广到演绎推理之外的数学推理任务?
- RQ5不同LLMs是否表现出对特定前提顺序(如前向链式与后向链式序列)的差异敏感性或偏好?
主要发现
- 在演绎推理任务中,当前提被随机重新排列时,LLMs的性能下降超过30%,相比真实证明顺序。
- 当前提顺序与真实证明的前向链式序列一致时,性能始终最佳。
- GPT-4-turbo和GPT-3.5-turbo在前提反向排列(后向链式)时表现更好,表明其倾向于从结论反推前提。
- PaLM 2-L在前提反向排列时表现最差,表明其对顺序模式具有特定的敏感性。
- R-GSM基准证实,当句子顺序被改变时,数学推理任务中的准确率显著下降,尤其在较长的多步问题中更为明显。
- 即使语法正确且语义等价的前提排列,也会大幅降低模型性能,揭示了LLM推理中的关键脆弱性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。