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

分解、结构化与修复:基于操作树的神经符号自动形式化框架

Decompose, Structure, and Repair: A Neuro-Symbolic Framework for Autoformalization via Operator Trees

School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学数学科学学院);Zhiyuan College, Shanghai Jiao Tong University(上海交通大学紫阳学院);Institute of Natural Sciences, MOE-LSC, CMA-Shanghai, Shanghai Jiao Tong University(上海交通大学自然科学研究院)

Xiaoyang Liu, Zineng Dong, Yifan Bai, Yantao Li, Yuntian Liu, Tao Luo

AI总结:

提出DSR神经符号框架,通过将数学语句分解为逻辑组件并映射为结构化操作树,利用子树精炼定位和修复错误,在PRIME基准上达到新最优。

摘要:

语句自动形式化通过将自然语言问题翻译成形式语言,成为人类数学与形式数学之间的关键桥梁。虽然先前的工作侧重于数据合成和多样化的训练范式来优化端到端的大语言模型(LLMs),但它们通常将形式代码视为平面序列,忽略了数学语句中固有的层次逻辑。在这项工作中,我们引入了分解、结构化与修复(DSR),一个神经符号框架,将自动形式化重构为模块化流水线。DSR将语句分解为逻辑组件,并将其映射到结构化的操作树,利用这一拓扑蓝图通过子树精炼精确定位和修复错误。此外,我们引入了PRIME,一个包含156个本科和研究生级别定理的基准,这些定理选自经典教科书并由专家在Lean 4中注释。实验结果表明,DSR建立了新的最先进水平,在同等计算预算下始终优于基线。数据集、模型和代码可在https://github.com/XiaoyangLiu-sjtu/DSR获取。

英文摘要:

Statement autoformalization acts as a critical bridge between human mathematics and formal mathematics by translating natural language problems into formal language. While prior works have focused on data synthesis and diverse training paradigms to optimize end-to-end Large Language Models (LLMs), they typically treat formal code as flat sequences, neglecting the hierarchical logic inherent in mathematical statements. In this work, we introduce Decompose, Structure, and Repair (DSR), a neuro-symbolic framework that restructures autoformalization into a modular pipeline. DSR decomposes statements into logical components and maps them to structured operator trees, leveraging this topological blueprint to precisely localize and repair errors via sub-tree refinement. Furthermore, we introduce PRIME, a benchmark of 156 undergraduate and graduate-level theorems selected from canonical textbooks and expertly annotated in Lean 4. Experimental results demonstrate that DSR establishes a new state-of-the-art, consistently outperforming baselines under equivalent computational budgets. The datasets, model, and code are available at https://github.com/XiaoyangLiu-sjtu/DSR.

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

↑