Saturation-Driven Dataset Generation for LLM Mathematical Reasoning in the TPTP Ecosystem
本文提出了一种利用自动化定理证明技术生成大规模、高质量数学推理数据集的方法,旨在解决大型语言模型在数学推理方面存在的训练数据稀缺问题。
更新于 2025-09-09。作者:Valentin Quesnel、Damien Sileo。
中文摘要
高质量、逻辑严谨的数据稀缺是推进大型语言模型(LLMs)数学推理的关键瓶颈。我们的工作通过将数十年的自动定理证明研究转化为可扩展的数据引擎来应对这一挑战。我们的框架不依赖于容易出错的LLMs或像Lean和Isabelle这样的复杂证明辅助器语法,而是利用E-prover在庞大的TPTP公理库上的饱和能力,推导出大量保证有效的定理语料库。我们的流程是原则性的且简单:饱和公理,筛选“有趣”的定理,并生成任务。由于没有LLMs参与,我们通过构造消除了事实错误。这种纯粹符号化的数据随后被转化为三个难度可控的挑战:蕴涵验证、前提选择和证明重构。我们在前沿模型上的零样本实验揭示了明显弱点:在需要深度、结构化推理的任务上性能崩溃。我们的框架提供了诊断工具来衡量这一差距,并提供了可扩展的符号训练数据来源来解决这个问题。我们将代码和数据公开提供。https://github.com/sileod/reasoning_core https://hf.co/datasets/reasoning-core/rc1
英文摘要
The scarcity of high-quality, logically sound data is a critical bottleneck for advancing the mathematical reasoning of Large Language Models (LLMs). Our work confronts this challenge by turning decades of automated theorem proving research into a scalable data engine. Rather than relying on error-prone LLMs or complex proof-assistant syntax like Lean and Isabelle, our framework leverages E-prover's saturation capabilities on the vast TPTP axiom library to derive a massive, guaranteed-valid corpus of theorems. Our pipeline is principled and simple: saturate axioms, filter for "interesting" theorems, and generate tasks. With no LLMs in the loop, we eliminate factual errors by construction. This purely symbolic data is then transformed into three difficulty-controlled challenges: entailment verification, premise selection, and proof reconstruction. Our zero-shot experiments on frontier models reveal a clear weakness: performance collapses on tasks requiring deep, structural reasoning. Our framework provides both the diagnostic tool to measure this gap and a scalable source of symbolic training data to address it. We make the code and data publicly available. https://github.com/sileod/reasoning_core https://hf.co/datasets/reasoning-core/rc1
解读
一句话总结
本文提出了一种利用自动化定理证明技术生成大规模、高质量数学推理数据集的方法,旨在解决大型语言模型在数学推理方面存在的训练数据稀缺问题。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大型语言模型(LLM)在数学推理方面表现不佳,主要原因是高质量、逻辑一致的训练数据稀缺。
- 现有方案不足:现有的数据生成方法依赖于LLM或复杂的证明辅助器语法,存在事实错误的风险,且效率低下。
- 研究目标:通过将自动化定理证明技术转化为可扩展的数据生成引擎,消除事实错误,并生成多样化的推理任务。
问题2:论文的核心创新点是什么?
- 技术创新:利用E-prover的饱和能力,从TPTP公理库中推导出大量保证有效的定理。
- 方法改进:将定理证明过程分解为三个互补的推理任务,以控制难度。
- 优势:无需LLM参与,保证了数学有效性;可扩展且资源高效;提供评估LLM推理深度的工具。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在 frontier 模型上进行零样本实验,测试其推理能力。
- 性能提升:结果表明,随着逻辑复杂性的增加,模型性能逐渐下降,特别是在需要全局结构推理的任务中。
- 对比结果:与基线方法相比,该方法能够生成更复杂、更具挑战性的任务。
问题4:这个研究的实际应用价值是什么?
- 应用场景:该框架可用于评估LLM的数学推理能力,并生成多样化的推理任务。
- 实施建议:公开代码和数据,以促进该框架的广泛应用。
- 局限与展望:该框架目前仅支持CNF,未来计划扩展到全阶逻辑,并探索符号推理技能的自然语言迁移。
来源
机器可读索引:llms.txt