arXiv:2506.13131 · 中英对照阅读
AlphaEvolve:用于科学与算法发现的编程智能体
AlphaEvolve: A coding agent for scientific and algorithmic discovery
中文速览
很多科学和工程问题虽然能用程序自动打分,却很难靠大语言模型一次性想出可靠的新算法;AlphaEvolve把语言模型生成代码与进化搜索结合起来,让它反复修改候选算法,并用自动测试筛掉错误、保留更好的方案。实验中,它改进了谷歌数据中心调度、芯片电路和模型训练等系统,也在数学与计算机科学问题上找到经过证明更优的构造;其中,它用48次标量乘法完成两个4×4复数矩阵相乘,打破了这一问题延续56年的纪录。它的意义在于把“让AI提出想法”推进到“让AI提出、验证并逐步改进可用算法”,为科学发现和大型计算系统优化提供了一种可扩展的新方法。
摘要
在这份白皮书中,我们介绍了 AlphaEvolve,这是一种进化式编程智能体,能够显著增强当前最优水平的大语言模型(LLM)在极具挑战性的任务上的能力,例如解决开放性科学问题或优化计算基础设施中的关键部分。AlphaEvolve 协调一个由大语言模型(LLM)组成的自主流程,其任务是直接修改代码以改进算法。通过采用进化方法,并持续接收一个或多个评估器的反馈,AlphaEvolve 迭代改进算法,进而有望带来新的科学与实践发现。我们将这种方法应用于一系列重要的计算问题,以展示其广泛适用性。将 AlphaEvolve 用于优化 Google 大规模计算堆栈中的关键组件时,它开发出一种效率更高的数据中心调度算法,在硬件加速器的电路设计中找到了一种功能等价的简化方案,并加速了 AlphaEvolve 自身所依托的大语言模型(LLM)的训练。此外,AlphaEvolve 还发现了新颖且可证明正确的算法,在一系列数学与计算机科学问题上超越当前最优解决方案,大幅拓展了以往自动化发现方法的适用范围(Romera-Paredes 等,2023)。值得注意的是,AlphaEvolve 开发了一种搜索算法,找到了一种使用 $48$ 次标量乘法计算两个 $4\times 4$ 复数矩阵乘积的方法;这是在该情形下,时隔 56 年首次对 Strassen 算法取得改进。我们相信,AlphaEvolve 及类似的编程智能体能够对改进科学与计算诸多领域的问题解决方案产生重大影响。
In this white paper, we present AlphaEvolve, an evolutionary coding agent that substantially enhances capabilities of state-of-the-art LLMs on highly challenging tasks such as tackling open scientific problems or optimizing critical pieces of computational infrastructure. AlphaEvolve orchestrates an autonomous pipeline of LLMs, whose task is to improve an algorithm by making direct changes to the code. Using an evolutionary approach, continuously receiving feedback from one or more evaluators, AlphaEvolve iteratively improves the algorithm, potentially leading to new scientific and practical discoveries. We demonstrate the broad applicability of this approach by applying it to a number of important computational problems. When applied to optimizing critical components of large-scale computational stacks at Google, AlphaEvolve developed a more efficient scheduling algorithm for data centers, found a functionally equivalent simplification in the circuit design of hardware accelerators, and accelerated the training of the LLM underpinning AlphaEvolve itself. Furthermore, AlphaEvolve discovered novel, provably correct algorithms that surpass state-of-the-art solutions on a spectrum of problems in mathematics and computer science, significantly expanding the scope of prior automated discovery methods (Romera-Paredes et al., 2023). Notably, AlphaEvolve developed a search algorithm that found a procedure to multiply two $4\times 4$ complex-valued matrices using $48$ scalar multiplications; offering the first improvement, after 56 years, over Strassen’s algorithm in this setting. We believe AlphaEvolve and coding agents like it can have a significant impact in improving solutions of problems across many areas of science and computation.
术语表
- AlphaEvolve
- AlphaEvolve
- evolutionary coding agent
- 进化式编程智能体
- large language model (LLM)
- 大语言模型(LLM)
- LLM code superoptimization agent
- 基于 LLM 的代码超优化智能体
- evolutionary computation
- 进化计算
- LLM-based code generation
- 基于 LLM 的代码生成
- evolutionary algorithm
- 进化算法
- automated evaluation
- 自动化评估
- code execution
- 代码执行
- candidate pool
- 候选池
- FunSearch
- FunSearch
- heuristic
- 启发式方法
- online algorithm
- 在线算法
- symbolic regression
- 符号回归
- combinatorial optimization
- 组合优化
- state of the art (SOTA)
- 当前最优水平(SOTA)
- matrix multiplication
- 矩阵乘法
- Strassen’s algorithm
- Strassen 算法
- Minimum Overlap Problem
- 最小重叠问题
- Kissing Numbers problem
- 接吻数问题
- constructive mathematics
- 构造性数学
- scheduling algorithm
- 调度算法
- cluster management system
- 集群管理系统
- matrix-multiplication kernel
- 矩阵乘法内核
- arithmetic circuit
- 算术电路
- TPU
- TPU
- attention
- 注意力机制
- Transformer
- Transformer