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

学习以反驳:利用大语言模型进行形式反例生成

Learning to Disprove: Formal Counterexample Generation with Large Language Models

ETH Zurich(苏黎世联邦理工学院);University of Toronto(多伦多大学);MiroMind(MiroMind公司);Nanjing University(南京大学)

Zenan Li, Zhaoyu Li, Kaiyu Yang, Xiaoxing Ma, Zhendong Su

AI总结:

本文通过微调大语言模型生成形式反例,解决数学推理中反例发现的不足,提出符号突变策略提升训练效果。

摘要:

数学推理需要两个关键互补技能:为真陈述构建严谨证明和发现反驳假陈述的反例。然而,当前数学AI研究几乎只关注证明构建,忽视了同样重要的反例寻找任务。本文通过微调大语言模型来推理和生成反例,将该任务形式化为形式反例生成,要求LLM不仅提出候选反例,还需生成可被Lean 4定理检验器自动验证的正式证明。为实现有效学习,我们引入符号突变策略,通过系统提取定理并丢弃选定假设,生成多样化的反例实例。结合精心编纂的数据集,该策略使多奖励专家迭代框架显著提升LLM在反例生成和定理证明中的效果和效率。在三个新收集的基准测试中,实验验证了本文方法的优势,显示突变策略和训练框架带来了显著性能提升。

英文摘要:

Mathematical reasoning demands two critical, complementary skills: constructing rigorous proofs for true statements and discovering counterexamples that disprove false ones. However, current AI efforts in mathematics focus almost exclusively on proof construction, often neglecting the equally important task of finding counterexamples. In this paper, we address this gap by fine-tuning large language models (LLMs) to reason about and generate counterexamples. We formalize this task as formal counterexample generation, which requires LLMs not only to propose candidate counterexamples but also to produce formal proofs that can be automatically verified in the Lean 4 theorem prover. To enable effective learning, we introduce a symbolic mutation strategy that constructs candidate counterexample-generation tasks by systematically extracting theorems and removing selected hypotheses. Together with curated datasets, this strategy enables a multi-reward expert iteration framework that substantially enhances both the effectiveness and efficiency of training LLMs for counterexample generation and theorem proving. Experiments on three newly collected benchmarks validate the advantages of our approach, showing that the mutation strategy and training framework yield substantial performance gains.

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

↑