arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.08957cs.AIcs.CLcs.FLcs.LGcs.PL
收藏

MUSTARD:掌握定理与证明数据的统一合成

MUSTARD: Mastering Uniform Synthesis of Theorem and Proof Data

City University of Hong Kong(香港城市大学);Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);DarkMatter AI Research(DarkMatter人工智能研究院);MBZUAI(穆罕默德·本·扎耶德人工智能大学);CityUSRI(香港城市大学深圳研究院)

Yinya Huang, Xiaohan Lin, Zhengying Liu, Qingxing Cao, Huajian Xin, Haiming Wang, Zhenguo Li, Linqi Song, Xiaodan Liang

AI总结:

MUSTARD框架通过三阶段流程合成高质量定理与证明数据,构建含5,866个有效数据点的MUSTARDSAUCE基准,微调Llama 2-7B在定理证明和数学应用题上分别提升15.41%和8.18%。

摘要:

近年来,大型语言模型(LLMs)在包括数学推理和定理证明在内的各种任务中取得了显著进展。由于这两项任务需要严格且形式化的多步推理,它们是探索LLMs推理能力的有吸引力的领域,但仍面临重要挑战。先前的研究如思维链(Chain-of-Thought, CoT)揭示了中间步骤指导的有效性。然而,这种逐步注释需要大量人力,导致当前基准的训练步骤不足。为填补这一空白,本工作引入了MUSTARD,一个数据生成框架,掌握高质量、多样化的定理与证明数据的统一合成。MUSTARD分三个阶段合成数据:(1)它采样几个数学概念种子作为问题类别。(2)然后,它使用采样概念提示生成式语言模型,以获得问题及其逐步形式化解。(3)最后,框架利用证明助手(如Lean Prover)过滤有效证明。借助所提出的MUSTARD,我们呈现了一个定理与证明基准MUSTARDSAUCE,包含5,866个有效数据点。每个数据点包含一个非正式陈述、一个非正式证明,以及一个通过证明器验证的翻译后的形式化证明。我们进行了广泛分析,并证明MUSTARD生成经过验证的高质量逐步数据。我们进一步将MUSTARDSAUCE用于微调较小的语言模型。微调后的Llama 2-7B在自动定理证明中实现了15.41%的平均相对性能提升,在数学应用题中实现了8.18%的提升。代码和数据可在https://github.com/Eleanor-H/MUSTARD获取。

英文摘要:

Recent large language models (LLMs) have witnessed significant advancement in various tasks, including mathematical reasoning and theorem proving. As these two tasks require strict and formal multi-step inference, they are appealing domains for exploring the reasoning ability of LLMs but still face important challenges. Previous studies such as Chain-of-Thought (CoT) have revealed the effectiveness of intermediate steps guidance. However, such step-wise annotation requires heavy labor, leading to insufficient training steps for current benchmarks. To fill this gap, this work introduces MUSTARD, a data generation framework that masters uniform synthesis of theorem and proof data of high quality and diversity. MUSTARD synthesizes data in three stages: (1) It samples a few mathematical concept seeds as the problem category. (2) Then, it prompts a generative language model with the sampled concepts to obtain both the problems and their step-wise formal solutions. (3) Lastly, the framework utilizes a proof assistant (e.g., Lean Prover) to filter the valid proofs. With the proposed MUSTARD, we present a theorem-and-proof benchmark MUSTARDSAUCE with 5,866 valid data points. Each data point contains an informal statement, an informal proof, and a translated formal proof that passes the prover validation. We perform extensive analysis and demonstrate that MUSTARD generates validated high-quality step-by-step data. We further apply the MUSTARDSAUCE for fine-tuning smaller language models. The fine-tuned Llama 2-7B achieves a 15.41% average relative performance gain in automated theorem proving, and 8.18% in math word problems. Codes and data are available at https://github.com/Eleanor-H/MUSTARD.

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

↑