arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15797cs.LGcs.CLcs.IR
收藏

LemmaHead:利用大语言模型进行检索增强的证明生成

LemmaHead: RAG Assisted Proof Generation Using Large Language Models

Tianbo Yang, Mingqi Yan, Hongyi Zhao, Tianshuo Yang

AI总结:

本文提出 LemmaHead,通过检索增强生成补充教科书数学上下文,提升大语言模型在 Lean 形式语言中自动生成定理证明的推理能力。

摘要:

培养解决数学问题或撰写数学证明所需的逻辑能力,是大语言模型(LLMs)较难实现的目标之一。目前,文献中最流行的方法是对模型在学术出版物和教科书等书面数学内容上进行微调,使模型学会模仿数学写作的风格。在本项目中,我们探索使用检索增强生成(RAG)来解决大语言模型数学推理中的不足。我们开发了 LemmaHead,一个 RAG 知识库,通过为模型查询补充相关数学上下文来增强模型,特别关注来自已出版教科书的上下文。为了衡量模型在数学推理方面的表现,我们的测试范式聚焦于自动定理证明任务,即针对给定的数学命题,在 Lean 形式语言中生成证明。

英文摘要:

Developing the logic necessary to solve mathematical problems or write mathematical proofs is one of the more difficult objectives for large language models (LLMS). Currently, the most popular methods in literature consists of fine-tuning the model on written mathematical content such as academic publications and textbooks, so that the model can learn to emulate the style of mathematical writing. In this project, we explore the effectiveness of using retrieval augmented generation (RAG) to address gaps in the mathematical reasoning of LLMs. We develop LemmaHead, a RAG knowledge base that supplements queries to the model with relevant mathematical context, with particular focus on context from published textbooks. To measure our model's performance in mathematical reasoning, our testing paradigm focuses on the task of automated theorem proving via generating proofs to a given mathematical claim in the Lean formal language.

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

↑