Lune

ACL2024顶会

Can LLMs Reason with Rules? Logic Scaffolding for Stress-Testing and Improving LLMs

Siyuan Wang, Zhongyu Wei, Yejin Choi, Xiang Ren

摘要

Large language models (LLMs) have achieved impressive human-like performance across various reasoning tasks. However, their mastery of underlying inferential rules still falls short of human capabilities. To investigate this, we propose a logic scaffolding inferential rule generation framework, to construct an inferential rule base, ULogic, comprising both primitive and compositional rules across five domains. Our analysis of GPT-series models over a rule subset reveals significant gaps in LLMs' logic understanding compared to human performance, especially in compositional and structural complex rules with certain bias patterns. We further distill these rules into a smaller-scale inference engine for flexible rule generation and enhancing downstream reasoning. Through a multijudger evaluation, our inference engine proves effective in generating accurate, complex and abstract conclusions and premises, and improve various commonsense reasoning tasks. Overall, our work sheds light on LLMs' limitations in grasping inferential rule and suggests ways to enhance their logical reasoning abilities 1 . Q1: Did Leonardo da Vinci ever use a laptop for drawing pictures? Q2: Jane wrote a novel published by Jimmy, a publisher born in 1750. Did Jane's grandmother often work by car? Underlying Logic: If Person X died before year A and Object Y was invented in year B, and A is earlier than B, then Person X can not access Object Y. year A year B Person X Object Y Figure 1: The underlying logic to answer Q1 and Q2. Humans naturally abstract underlying logic (e.g., 040 inferential rules) from extensive real-world obser-041 vations (Barwise, 1993), which is beneficial for 042 addressing diverse reasoning situations. An infer-043 ential rule is typically defined as a premise with a 044 set of facts (e.g., "Person X died before ... earlier 045 than B") leading to a conclusion (e.g., ''Person 046 X cannot access Object Y") (Boghossian, 2014). 047 Grasping this rule enables the deduction that a per-048 son cannot access an object invented posthumously. 049 This work utilizes symbolic logic as a scaffold to 050 generate challenging reasoning situations for GPT-051 series LLMs. We observe a discernible gap be-052 tween LLMs and humans in understanding inferen-053 tial rules, especially rules with complex premises. 054 However, collecting such inferential rules at 055 scale presents a major challenge. Previous work 056 mainly relies on manual curation (Sap et al., 2019a; 057 Sinha et al., 2019) or inductive logic program-058 ming (Qu et al., 2020), which are either labor-059 intensive or limited in diversity. Besides, manually 060 crafted rules often appear simple and overly speci-061 fied, struggling to move beyond basic intuition or 062 generalize across diverse situations. For example, 063 the rule If X runs out of steam, then X becomes 064 tired from Sap et al. (2019a) has only one premise 065 fact and narrowly specifies exhaustion. 066 1 ≪ Inferential Rules of Different Complexities (Complexity=1) If Person X has an adverse reaction to Food Y, then Person X cannot eat Food Y. (Complexity=2) If Person X has inherited Disease Z2 and Food Y should be avoided by those with Disease Z2, then Person X cannot eat Food Y. (Complexity=3) If Person X earns Money Z1 and Material Y is sold for Money Z2, and Money Z1 is bigger than Money Z2, then Person X can buy Material Y. (Complexity=4) If Person X works at Job A and Job A pays Money Z1, and Material Y is sold for Money Z2, and Money Z1 is bigger than Money Z2, then Person X can purchase Material Y.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • LogicTree: Improving Complex Reasoning of LLMs via Instantiated Multi-step Synthetic Logical Data 引用了 Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus
  • RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling 引用了 Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus
  • RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling 引用了 Self-Consistency Improves Chain of Thought Reasoning in Language Models
  • RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling 引用了 Symbolic Working Memory Enhances Language Models for Complex Rule Application
  • Symbolic Working Memory Enhances Language Models for Complex Rule Application 引用了 Self-Consistency Improves Chain of Thought Reasoning in Language Models
  • Symbolic Working Memory Enhances Language Models for Complex Rule Application 引用了 Logic-Driven Context Extension and Data Augmentation for Logical Reasoning of Text
  • Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models 引用了 Self-Consistency Improves Chain of Thought Reasoning in Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic CorpusTerufumi Morishita, Gaku Morio, Atsuki Yamaguchi, Yasuhiro SogawaNeurIPS 2024 · 60 次引用
  2. RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic SamplingYang Liu, Jiaqi Li, Zilong ZhengICLR 2026 · 8 次引用
  3. Symbolic Working Memory Enhances Language Models for Complex Rule ApplicationSiyuan Wang, Zhongyu Wei, Yejin Choi, Xiang RenEMNLP 2024 · 6 次引用
  4. OG-RAG: Ontology-grounded retrieval-augmented generation for large language modelsKartik Sharma, Peeyush Kumar, Yunqing LiEMNLP 2025 · 6 次引用
  5. LogicTree: Improving Complex Reasoning of LLMs via Instantiated Multi-step Synthetic Logical DataZehao Wang, Lin F. Yang, Jie Wang, Kehan Wang 等NeurIPS 2025 · 5 次引用

它引用的 Paper5

  1. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
  2. PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao 等AAAI 2020 · 2,916 次引用
  3. Self-Consistency Improves Chain of Thought Reasoning in Language ModelsXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le 等ICLR 2023 · 681 次引用
  4. Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language ModelsLei Wang, Wanyu Xu, Yihuai Lan, Zhiqiang Hu 等ACL 2023 · 249 次引用
  5. Logic-Driven Context Extension and Data Augmentation for Logical Reasoning of TextSiyuan Wang, Wanjun Zhong, Duyu Tang, Zhongyu Wei 等ACL Findings 2022 · 49 次引用

相关 Paper

  1. LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language ModelsMihir Parmar, Nisarg Patel, Neeraj Varshney, Mutsumi Nakamura 等ACL 2024
  2. Conditional and Modal Reasoning in Large Language ModelsWesley H. Holliday, Matthew Mandelkern, Cedegao ZhangEMNLP 2024 · 5 次引用
  3. LogicAsker: Evaluating and Improving the Logical Reasoning Ability of Large Language ModelsYuxuan Wan, Wenxuan Wang, Yiliu Yang, Youliang Yuan 等EMNLP 2024 · 10 次引用
  4. Multi-LogiEval: Towards Evaluating Multi-Step Logical Reasoning Ability of Large Language ModelsNisarg Patel, Mohith Kulkarni, Mihir Parmar, Aashna Budhiraja 等EMNLP 2024 · 6 次引用
  5. InductionBench: LLMs Fail in the Simplest Complexity ClassWenyue Hua, Tyler Wong, Fei Sun, Liangming Pan 等ACL 2025
黄昏的海面,两侧是细线勾勒的悬崖