arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.07382cs.AIcs.LO
收藏

从失败中学习:利用试错数据微调大语言模型以证明直觉主义命题逻辑

Learn from Failure: Fine-Tuning LLMs with Trial-and-Error Data for Intuitionistic Propositional Logic Proving

University of California San Diego(加利福尼亚大学圣迭戈分校);Carnegie Mellon University(卡内基梅隆大学)

Chenyang An, Zhibo Chen, Qihao Ye, Emily First, Letian Peng, Jiayun Zhang, Zihan Wang, Sorin Lerner, Jingbo Shang

AI总结:

本文提出 TrialMaster,通过构建 Lean 形式化的直觉主义命题逻辑试错数据集,让模型从失败搜索路径中学习,从而在推理时以更少尝试解决更多未见定理。

摘要:

自动定理证明领域的最新进展表明,利用(大型)语言模型生成策略(即证明步骤)来搜索证明状态是有效的。当前模型仅在成功证明路径上训练,在推理阶段面临不一致性,因为它必须在每个证明状态采样并尝试各种策略直到找到成功路径,而其训练过程并未纳入从失败尝试中学习。直观上,一个导致搜索路径失败的策略应表明类似策略在后续尝试中应获得更少关注。在本文中,我们展示了额外从失败搜索路径中学习来训练模型的益处。面对现有开源定理证明数据集中缺乏此类试错数据的问题,我们构建了一个关于直觉主义命题逻辑定理的数据集,并在 Lean 中将其形式化,以便能够可靠地检验证明的正确性。我们将基于相对较短的试错信息训练的模型(TrialMaster)与仅在正确路径上训练的模型进行比较,发现前者能以更少的试验搜索解决更多未见过的定理。

英文摘要:

Recent advances in Automated Theorem Proving have shown the effectiveness of leveraging a (large) language model that generates tactics (i.e. proof steps) to search through proof states. The current model, while trained solely on successful proof paths, faces a discrepancy at the inference stage, as it must sample and try various tactics at each proof state until finding success, unlike its training which does not incorporate learning from failed attempts. Intuitively, a tactic that leads to a failed search path would indicate that similar tactics should receive less attention during the following trials. In this paper, we demonstrate the benefit of training models that additionally learn from failed search paths. Facing the lack of such trial-and-error data in existing open-source theorem-proving datasets, we curate a dataset on intuitionistic propositional logic theorems and formalize it in Lean, such that we can reliably check the correctness of proofs. We compare our model trained on relatively short trial-and-error information (TrialMaster) with models trained only on the correct paths and discover that the former solves more unseen theorems with lower trial searches.

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

↑