arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.08501cs.AI
收藏

从语言到逻辑:一种用于结构化推理的双层框架

From Language to Logic: A Bi-Level Framework for Structured Reasoning

Tongji University(同济大学)

Keying Yang, Hao Wang, Kai Yang

AI总结:

提出一种双层框架,通过高层任务抽象和低层逻辑生成两阶段将自然语言映射为逻辑,并采用端到端双层优化方法联合优化,在多个推理基准上准确率提升达40%,增强了透明度和可追溯性。

摘要:

自然语言输入上的结构化推理仍是人工智能中的核心挑战,因为它需要弥合非结构化语言表达与形式逻辑表示之间的鸿沟。在本文中,我们提出了一种新颖的双层框架,通过两阶段过程将语言映射到逻辑:高层任务抽象和低层逻辑生成。在高层,大型语言模型(LLM)将自然语言查询解析为中间结构化表示,指定问题类型、目标、决策变量和符号约束。在低层,LLM 使用这些表示生成符号工作流或可执行推理程序,以实现准确且可解释的决策。该框架支持模块化推理,强制执行显式约束,并泛化到数学问题求解、问答和逻辑推理等领域。我们进一步采用端到端双层优化方法优化该框架,联合改进高层抽象和低层逻辑生成阶段。在多个现实推理基准上的实验表明,我们的方法在准确率上显著优于现有基线,准确率提升高达 40%。此外,双层设计增强了透明度和错误可追溯性,为使用 LLM 实现可信和系统化推理迈出了有希望的一步。

英文摘要:

Structured reasoning over natural language inputs remains a core challenge in artificial intelligence, as it requires bridging the gap between unstructured linguistic expressions and formal logical representations. In this paper, we propose a novel \textbf{bi-level framework} that maps language to logic through a two-stage process: high-level task abstraction and low-level logic generation. At the upper level, a large language model (LLM) parses natural language queries into intermediate structured representations specifying the problem type, objectives, decision variables, and symbolic constraints. At the lower level, the LLM uses these representations to generate symbolic workflows or executable reasoning programs for accurate and interpretable decision making. The framework supports modular reasoning, enforces explicit constraints, and generalizes across domains such as mathematical problem solving, question answering, and logical inference. We further optimize the framework with an end-to-end {bi-level} optimization approach that jointly refines both the high-level abstraction and low-level logic generation stages. Experiments on multiple realistic reasoning benchmarks demonstrate that our approach significantly outperforms existing baselines in accuracy, with accuracy gains reaching as high as 40\%. Moreover, the bi-level design enhances transparency and error traceability, offering a promising step toward trustworthy and systematic reasoning with LLMs.

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

↑