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

智能体算法设计:在Lean中为进化算法提出、形式化并证明运行时间界的大语言模型

Agentic Algorithm Design: LLMs that Propose, Formalise, and Prove Runtime Bounds for Evolutionary Algorithms in Lean

Per Kristian Lehre

AI总结:

本研究提出分阶段流程,利用LLM在Lean中设计带机器验证运行时间界的黑盒优化算法,在多问题类上取得优于基线算法的性能,为算法发现提供了新方法。

摘要:

大语言模型(LLMs)如今可在Lean中证明复杂定理,那它们能否设计算法并证明其正确性与效率呢?LLM引导的优化启发式算法设计(如AlphaEvolve)完全是经验性的;带有LLM的自动定理证明器可证明给定命题。目前几乎没有证据表明LLM能同时完成设计算法并通过数学证明保证其效率。我们提出了一种分阶段流程,该流程以进化算法的设计与分析研究方法为模型:智能体提出黑盒优化算法,Lean筛选出有缺陷的设计;随后智能体定义势函数并证明漂移界,以保证其运行时间期望优于基线算法。该流程全程未对算法进行经验性比较。智能体生成的黑盒优化算法在CycleUncover问题上的期望运行时间为$O(n^2)$,而经典的(1+1) EA需要$e^{\Omega(n)}$的运行时间;该流程还为整数次模极小化设计并分析了一种黑盒优化算法,其期望运行时间为$O(n^{2+2c})$,且在LeadingOnes问题上达到了最优阶$O(n^2)$。在8类问题中,前沿模型的15次运行中有12次完成了流程并得到机器验证的期望运行时间界。消融研究表明,取消分阶段流程、要求智能体零样本设计带运行时间保证的算法,会得到与基线算法(随机搜索)相同的结果,或导致证明不完整。我们的研究表明,Lean中的机器验证规范可替代开放式算法发现中的经验评估。据我们所知,这是首个在Lean中设计带机器验证运行时间界的高效黑盒优化算法的自动化流程。

英文摘要:

LLMs now prove hard theorems in Lean. Can they also design algorithms and prove their correctness and efficiency? LLM-guided design of optimisation heuristics (such as AlphaEvolve) is purely empirical. Automated theorem provers with LLMs prove given statements. So far, there has been little evidence that LLMs can do both: design an algorithm and guarantee its efficiency by a mathematical proof. We present a staged pipeline modelled after research methodology in design and analysis of evolutionary algorithms. The agent proposes black-box optimisation algorithms, and Lean guards filter out flawed designs. The agent then defines a potential function and proves drift bounds that guarantee an expected runtime improvement over the baseline algorithm. At no point in the pipeline are the algorithms compared empirically. The agent generates a black-box optimisation algorithm with expected runtime $O(n^2)$ on a CycleUncover problem, where the classical (1+1) EA needs runtime $e^{Ω(n)}$. The pipeline also designs and analyses a black-box optimisation algorithm for integer-valued submodular minimisation with expected runtime $O(n^{2+2c})$, and it matches the classical runtime $O(n^2)$ on LeadingOnes. Across 8 problem classes, 12 of 15 runs with frontier models complete the pipeline with a machine-checked expected-runtime bound. An ablation study shows that removing the staging and asking the agent to zero-shot an algorithmic design with a runtime guarantee leads to a copy of the seeded baseline algorithm (random search) or to incomplete proofs. Our study suggests that machine-checked specifications in Lean can replace empirical evaluation in open-ended algorithm discovery. To the best of our knowledge, this is the first example of an automated pipeline that designs efficient black-box optimisation algorithms with machine-checked runtime bounds in Lean.

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

↑