arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.09472cs.CLcs.LGcs.LO
收藏

自然语言推理的混合模型:以三段论逻辑为例

Hybrid Models for Natural Language Reasoning: The Case of Syllogistic Logic

University of Warsaw(华沙大学);University of Trento(特伦托大学);Institute of Fundamental Technological Research, Polish Academy of Sciences(波兰科学院基础技术研究所)

Manuel Vargas Guzmán, Jakub Szymanik, Maciej Malicki

AI总结:

针对LLMs在逻辑推理中组合性泛化不足的问题,提出结合符号推理与神经计算的混合架构,在确保完备性的同时实现高效推理。

摘要:

尽管神经模型取得了显著进展,但其泛化能力(逻辑推理等应用的基石)仍是一个关键挑战。我们 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑