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

从非形式化到形式化——在自然语言需求到可验证形式化证明中整合并评估 LLM

From Informal to Formal -- Incorporating and Evaluating LLMs on Natural Language Requirements to Verifiable Formal Proofs

The Hong Kong University of Science and Technology(香港科学与技术大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);Guangzhou Institute of Technology, Xidian University(西安电子科技大学广州研究院);Chongqing University(重庆大学);ICTT and ISN Laboratory, Xidian University(西安电子科技大学ICTT和ISN实验室)

Jialun Cao, Yaojie Lu, Meiziniu Li, Haoyang Ma, Haokun Li, Mengda He, Cheng Wen, Le Sun, Hongyu Zhang, Shengchao Qin, Shing-Chi Cheung, Cong Tian

AI总结:

本文面向自然语言需求到可验证形式化证明的任务,构建覆盖五种语言的 18k 蒸馏数据集,评估十个开源 LLM,并通过微调 7~8B 小模型达到接近 Deepseek-R1-671B 的性能。

摘要:

基于 AI 的形式化数学推理研究呈现出不可阻挡的增长趋势。这些研究在 IMO 等数学竞赛中表现优异,并取得了显著进展。本文聚焦形式化验证这一形式化推理的直接应用场景,并将其分解为若干子任务。我们通过蒸馏 gpt-4o,围绕五种形式化规范语言(Coq、Lean4、Dafny、ACSL 和 TLA+)构建了 18k 个高质量指令—响应对,并对照十个开源 LLM 进行评估,其中包括近期流行的 DeepSeek-R1。我们还微调了若干 7~8B 的小模型,使其达到与 Deepseek-R1-671B 相当的性能。有趣的是,我们观察到使用形式化数据进行微调也会增强数学、推理和编程能力。微调后的模型发布于 https://huggingface.co/fm-universe。

英文摘要:

The research in AI-based formal mathematical reasoning has shown an unstoppable growth trend. These studies have excelled in mathematical competitions like IMO and have made significant progress. This paper focuses on formal verification, an immediate application scenario of formal reasoning, and breaks it down into sub-tasks. We constructed 18k high-quality instruction-response pairs across five formal specification languages (Coq, Lean4, Dafny, ACSL, and TLA+) by distilling gpt-4o and evaluated against ten open-sourced LLMs, including recent popular DeepSeek-R1. We also fine-tuned several 7~8B small models to achieve comparable performance with Deepseek-R1-671B. Interestingly, we observed that fine-tuning with formal data also enhances mathematics, reasoning, and coding capabilities. Fine-tuned models are released at https: //huggingface.co/fm-universe.

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

↑