推理前先澄清:一种具有结构化上下文的 Coq 证明器
Clarifying Before Reasoning: A Coq Prover with Structural Context
AI总结:
本文提出通过选择性概念展开和 Planner–Executor 架构为 Coq 定理证明任务补充结构化语义上下文,显著提升大语言模型的清晰度与证明成功率,并超越此前最优方法 Graph2Tac。
摘要:
在这项工作中,我们研究提升任务清晰度是否能够增强大语言模型的推理能力,重点关注 Coq 中的定理证明。我们引入了一种概念级度量来评估任务清晰度,并表明在现代大语言模型所使用的标准输入中加入结构化语义上下文,可使清晰度得分提高 1.85 倍(44.5% → 82.3%)。使用通用模型 DeepSeek-V3,我们的方法使证明成功率提高了 2.1 倍(21.8% → 45.8%),并超过了此前最先进的 Graph2Tac(33.2%)。我们按照与 Graph2Tac 相同的评估协议,在从 15 个标准 Coq 包中随机抽取的 1,386 个定理上进行了评估。此外,在我们的结构化数据上微调较小模型可以获得更高的性能(48.6%)。我们的方法使用选择性概念展开来丰富任务描述,并采用 Planner–Executor 架构。这些发现凸显了结构化任务表示在弥合理解与推理之间差距方面的价值。
英文摘要:
In this work, we investigate whether improving task clarity can enhance reasoning ability of large language models, focusing on theorem proving in Coq. We introduce a concept-level metric to evaluate task clarity and show that adding structured semantic context to the standard input used by modern LLMs, leads to a 1.85$\times$ improvement in clarity score (44.5\%~$\rightarrow$~82.3\%). Using the general-purpose model \texttt{DeepSeek-V3}, our approach leads to a 2.1$\times$ improvement in proof success (21.8\%~$\rightarrow$~45.8\%) and outperforms the previous state-of-the-art \texttt{Graph2Tac} (33.2\%). We evaluate this on 1,386 theorems randomly sampled from 15 standard Coq packages, following the same evaluation protocol as \texttt{Graph2Tac}. Furthermore, fine-tuning smaller models on our structured data can achieve even higher performance (48.6\%). Our method uses selective concept unfolding to enrich task descriptions, and employs a Planner--Executor architecture. These findings highlight the value of structured task representations in bridging the gap between understanding and reasoning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。