尽管神经模型取得了显著进展,但其泛化能力(逻辑推理等应用的基石)仍是一个关键挑战。我们 delineate 了该能力的两个基本方面:组合性(compositionality),即抽象出复杂推理背后原子逻辑规则的能力;以及递归性(recursiveness),即通过迭代应用推理规则构建复杂表示的 aptitude。在文献中,这两个方面常被混为一谈统称为泛化。为强化这一区分,我们使用 syllogistic fragment 作为自然语言推理的基准,研究了预训练大型语言模型(LLMs)的逻辑泛化能力。尽管简单,该片段提供了形式逻辑的一个基础且富有表现力的子集,支持对基本推理能力的受控评估。我们的发现揭示了显著差异:LLMs 在递归性上表现出合理的熟练度,但在组合性上却很挣扎。为克服这些局限并建立可靠的逻辑 prover,我们提出了一种将符号推理与神经计算相结合的混合架构。这种协同交互实现了稳健高效的推理:神经组件加速处理,而符号推理确保完备性。实验表明,即使神经组件相对较小,也能保持高效率。作为所提方法的一部分,本分析提供了基本原理,并突出了混合模型有效解决神经推理系统中关键泛化障碍的潜力。
英文摘要:
Despite the remarkable progress in neural models, their ability to generalize, a cornerstone for applications such as logical reasoning, remains a critical challenge. We delineate two fundamental aspects of this ability: compositionality, the capacity to abstract atomic logical rules underlying complex inferences, and recursiveness, the aptitude to build intricate representations through iterative application of inference rules. In the literature, these two aspects are often conflated under the umbrella term of generalization. To sharpen this distinction, we investigate the logical generalization capabilities of LLMs using the syllogistic fragment as a benchmark for natural language reasoning. We extend classical syllogistic forms to construct more complex structures, yielding a foundational yet expressive subset of formal logic that supports controlled evaluation of essential reasoning abilities. Our findings on this non-trivial benchmark show that, while LLMs demonstrate reasonable proficiency in recursiveness, they struggle with compositionality. This disparity is not uniform, as a more detailed analysis reveals substantial variability in generalization performance across individual syllogistic types, ranging from near-perfect accuracy to significantly lower performance. To overcome these limitations and establish a reliable logical prover, we propose a hybrid architecture integrating symbolic reasoning with neural computation. This synergistic interaction enables robust and efficient inference, neural components accelerate processing, while symbolic reasoning guarantees completeness. Our experiments further show that high efficiency is preserved even when using relatively small neural components. Overall, our analysis provides both a rationale for hybrid neuro-symbolic approaches and evidence of their potential to address key generalization barriers in neural reasoning systems.
An Explicit Syllogistic Legal Reasoning Framework for Large Language Models
Gaoling School of Artificial Intelligence(人工智能学院);Renmin University of China(中国人民大学);School of Information Technology and Management(信息科技与管理学院);University of International Business and Economics(国际经济贸易大学)
Reasoning Circuits in Language Models: A Mechanistic Interpretation of Syllogistic Inference
Department of Computer Science, University of Manchester, UK(英国曼彻斯特大学计算机科学系);Idiap Research Institute, Switzerland(瑞士Idiap研究所);School of Computer Science, University of Sheffield, UK(英国谢菲尔德大学计算机科学学院);National Biomarker Centre, CRUK-MI, University of Manchester, UK(英国曼彻斯特大学国家生物标志物中心)
Logical Structure as Knowledge: Enhancing LLM Reasoning via Structured Logical Knowledge Density Estimation
Huzhou University(湖州大学);Zhejiang Key Laboratory of Intelligent Education Technology and Application(浙江智能教育技术与应用重点实验室);Banbu AI Foundation(Banbu AI基金会);Baichuan Inc(白川公司);University of Edinburgh(爱丁堡大学);Zhejiang University(浙江大学)
Aristotle: Mastering Logical Reasoning with A Logic-Complete Decompose-Search-Resolve Framework
National University of Singapore(国立新加坡大学);University of Auckland(奥克兰大学);University of Arizona(亚利桑那大学);University of California, Santa Barbara(加州大学圣芭芭拉分校);MBZUAI
LogicReward: Incentivizing LLM Reasoning via Step-Wise Logical Supervision
National University of Singapore(新加坡国立大学);University College London(伦敦大学学院);University of Manchester(曼彻斯特大学);University of Melbourne(墨尔本大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)
Abstract Activation Spaces for Content-Invariant Reasoning in Large Language Models
Human Centric ART, University of Rome Tor Vergata(人类中心ART,罗马大学托尔维加塔分校);ILCC, School of Informatics, University of Edinburgh(ILCC,信息学院,爱丁堡大学);School of Computer Science, University of Sheffield(计算机科学学院,谢菲尔德大学);Almawave S.p.A.(Almawave公司)
SALA: Semantic-Aware Logical Alignment for Complex Reasoning in In-Context Learning
School of Software Engineering, Sun Yat-sen University(中山大学软件工程学院);School of Artificial Intelligence, Sun Yat-sen University(中山大学人工智能学院);Merchants Union Consumer Finance Company Limited(招商局联融消费金融股份有限公司)