Lune

EMNLP2025顶会

NL2Lean: Translating Natural Language into Lean 4 through Multi-Aspect Reinforcement Learning

Yue Fang, Shaohan Huang, Xin Yu, Haizhen Huang, Zihan Zhang, Weiwei Deng, Furu Wei, Feng Sun, Qi Zhang, Zhi Jin

摘要

Translating natural language into formal language such as Lean 4 has gained attention for its potential to automate formal proof development. Automated methods provide a scalable and cost-effective alternative to manual formalization, driving increasing interest in this task. However, existing LLMs mainly rely on instruction tuning and lack fine-grained structural and semantic alignment, making it difficult to generate syntactically and logically sound formal proofs. To address this, we propose a reinforcement learning framework ReLean that enables LLMs to generate high-quality Lean 4 statements from natural language. We first finetune a LLaMA3-8B model on NL-Lean 4 data to obtain a base translator with basic translation ability. Then, we design a multi-aspect dense reward mechanism covering four key dimensions: semantic alignment, term-level alignment, global-level alignment, and compilechecking. Separate reward models are trained via preference modeling, and their normalized outputs are combined to guide optimization via PPO. Finally, a curriculum learning strategy based on multi-dimensional difficulty allows the model to learn progressively from simple to complex cases. Experiments on NL-to-Lean 4 tasks show that our method consistently outperforms baseline models. Further analysis on reward model and curriculum learning confirms their effectiveness in enhancing model performance.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
  • Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization 引用了 Autoformalization with Large Language Models
  • Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs 引用了 Autoformalization with Large Language Models
  • TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts 引用了 Autoformalization with Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper7

  1. Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe 等NeurIPS 2022 · 364 次引用
  2. Don't Trust: Verify - Grounding LLM Quantitative Reasoning with AutoformalizationJin Peng Zhou, Charles Staats, Wenda Li, Christian Szegedy 等ICLR 2024 · 72 次引用
  3. Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal ProofsAlbert Qiaochu Jiang, Sean Welleck, Jin Peng Zhou, Timothée Lacroix 等ICLR 2023 · 25 次引用
  4. MaFeRw: Query Rewriting with Multi-Aspect Feedbacks for Retrieval-Augmented Large Language ModelsYujing Wang, Hainan Zhang, Liang Pang, Binghui Guo 等AAAI 2025 · 15 次引用
  5. TheoremLlama: Transforming General-Purpose LLMs into Lean4 ExpertsRuida Wang, Jipeng Zhang, Yizhen Jia, Rui Pan 等EMNLP 2024 · 9 次引用

相关 Paper

  1. CriticLean: Critic-Guided Reinforcement Learning for Mathematical FormalizationZhongyuan Peng, Yifan Yao, Kaijing Ma, Shuyue Guo 等ACL 2026 · 15 次引用
  2. ProofBridge: Auto-Formalization of Natural Language Proofs in Lean via Joint EmbeddingsPrithwish Jana, Kaan Kale, Ahmet Ege Tanriverdi, Cruise Song 等ICLR 2026 · 19 次引用
  3. SAIR-Comb : A Structure-Aware Iterative Refinement Framework for Combinatorics AutoformalizationWeijie Jiang, Gaolei He, Beibei Xiong, Jianlin Wang 等ACL 2026
  4. DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree SearchHuajian Xin, Z. Z. Ren, Junxiao Song, Zhihong Shao 等ICLR 2025
  5. ImProver: Agent-Based Automated Proof OptimizationRiyaz Ahuja, Jeremy Avigad, Prasad Tetali, Sean WelleckICLR 2025
黄昏的海面,两侧是细线勾勒的悬崖