arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.03847cs.CL
收藏

Lean Workbook:从自然语言数学问题形式化的大规模 Lean 问题集

Lean Workbook: A large-scale Lean problem set formalized from natural language math problems

Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);Shanghai Jiao Tong University(上海交通大学);Peking University(北京大学);The Chinese University of Hong Kong(香港中文大学)

Huaiyuan Ying, Zijian Wu, Yihan Geng, Zheng Yuan, Dahua Lin, Kai Chen

AI总结:

针对形式语言训练数据稀缺问题,提出迭代生成与过滤合成数据的流水线,将自然语言数学问题与Lean 4语句互译,构建含约57K问题对和21个新IMO问题的数据集,提升大模型定理证明能力。

摘要:

大型语言模型在各种自然语言处理任务中展示了令人印象深刻的能力,尤其是在解决数学问题方面。然而,大型语言模型并不擅长使用像 Lean 这样的形式语言进行数学定理证明。该领域的一个重大挑战是这些形式语言中可用的训练数据稀缺。为了解决这个问题,我们提出了一种新颖的流水线,它迭代地生成和过滤合成数据,以将自然语言数学问题翻译成 Lean 4 语句,反之亦然。我们的结果表明,合成数据流水线可以提供有用的训练数据,并提高大型语言模型在翻译和理解复杂数学问题和证明方面的性能。我们的最终数据集包含约 57K 个形式-非形式问题对,以及从数学竞赛论坛搜索到的证明和 21 个新的 IMO 问题。我们在 https://github.com/InternLM/InternLM-Math 开源了我们的代码,并在 https://huggingface.co/datasets/InternLM/Lean-Workbook 开源了我们的数据。

英文摘要:

Large language models have demonstrated impressive capabilities across various natural language processing tasks, especially in solving mathematical problems. However, large language models are not good at math theorem proving using formal languages like Lean. A significant challenge in this area is the scarcity of training data available in these formal languages. To address this issue, we propose a novel pipeline that iteratively generates and filters synthetic data to translate natural language mathematical problems into Lean 4 statements, and vice versa. Our results indicate that the synthetic data pipeline can provide useful training data and improve the performance of LLMs in translating and understanding complex mathematical problems and proofs. Our final dataset contains about 57K formal-informal question pairs along with searched proof from the math contest forum and 21 new IMO questions. We open-source our code at https://github.com/InternLM/InternLM-Math and our data at https://huggingface.co/datasets/InternLM/Lean-Workbook.

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

↑