arXiv:2505.16998cs.CLcs.AI2025-05EMNLP被引 11

对比大模型在形式语言下的逻辑推理能力,发现思维型模型更优。

Do Large Language Models Excel in Complex Logical Reasoning with Formal Language?

  • 用形式语言测试不同大模型的逻辑推理路径
  • 思维型模型表现显著优于指令型模型,且泛化性更强
  • 提示模板格式影响模型表现,最佳方案为思维链

大型语言模型(LLMs)在复杂逻辑推理任务上已取得突破性进展。然而,现有研究多聚焦于使用形式语言引导模型生成可靠推理路径,系统性评估仍显不足。本文从模型谱系、任务分类和推理轨迹格式三个维度,全面评估了大模型在形式语言下的逻辑推理能力。关键发现包括:1)思维型模型显著优于指令型模型,尤其在采用形式语言时;2)所有模型在归纳推理上均存在局限,无论是否使用形式语言;3)以思维链(PoT)格式呈现的数据在跨语言泛化上表现最佳。此外,我们构建了面向形式语言的训练数据,通过简单拒绝式微调,显著提升小模型性能,使大模型在跨形式语言场景下实现最优整体表现。代码与报告见 https://github.com/jiangjin1999/FormalEval。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have been shown to achieve breakthrough performance on complex logical reasoning tasks. Nevertheless, most existing research focuses on employing formal language to guide LLMs to derive reliable reasoning paths, while systematic evaluations of these capabilities are still limited. In this paper, we aim to conduct a comprehensive evaluation of LLMs across various logical reasoning problems utilizing formal languages. From the perspective of three dimensions, i.e., spectrum of LLMs, taxonomy of tasks, and format of trajectories, our key findings are: 1) Thinking models significantly outperform Instruct models, especially when formal language is employed; 2) All LLMs exhibit limitations in inductive reasoning capability, irrespective of whether they use a formal language; 3) Data with PoT format achieves the best generalization performance across other languages. Additionally, we also curate the formal-relative training data to further enhance the small language models, and the experimental results indicate that a simple rejected fine-tuning method can better enable LLMs to generalize across formal languages and achieve the best overall performance. Our codes and reports are available at https://github.com/jiangjin1999/FormalEval.

逻辑推理大模型形式语言思维链

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。