FrugalEvo:面向成本感知的LLM引导程序进化

·

研究论文 · 2026/10/05

LLM引导的进化方法(如AlphaEvolve)在圆填充等计算优化问题上表现强大,但通常以固定迭代次数优化性能。本文提出FrugalEvo,一个成本感知的进化框架,其中较强、成本较高的LLM探索解决方案策略,较便宜的LLM实现并迭代优化代码,同时设计缓存高效的进化过程以最大化前缀共享。为在固定成本预算下衡量解决方案质量,引入预算感知曲线下面积(BA-AUC)。在10个数学和系统优化任务上,FrugalEvo在最终解决方案质量上匹配或超越OpenEvolve、ShinkaEvolve、AdaEvolve和EvoX等先进基线,并在9个任务上获得更高的BA-AUC;在ALE-Bench-Lite的10个算法优化任务上平均性能更高。在圆填充上,FrugalEvo使用GPT-5.6 Terra和Luna仅花费1.68美元,使用GLM-5.3及其Flash变体仅花费0.55美元,即达到新的最先进性能,匹配或超越所有基线,包括平均花费约50美元的多智能体方法CORAL和SwarmResearch。

该工作将LLM引导的程序进化从固定迭代优化转向成本感知优化,在多个任务上以极低成本达到或超越昂贵基线,对实际部署和资源受限场景具有重要价值。

LLM-guided evolutionary methods, such as AlphaEvolve, have emerged as powerful approaches for challenging computational optimization problems, such as circle packing. However, prior work typically optimizes performance gain over a fixed number of iterations. We argue that practical optimization should maximize gain per unit cost. To this end, we propose FrugalEvo, a cost-aware evolutionary framework where a stronger, higher-cost LLM explores solution strategies, and a cheaper LLM implements them and iteratively refines the resulting code. We also design a cache-efficient evolution process, where our harness and prompts maximize the sharing of prefixes across different evolution steps, to improve cache reuse. To measure solution quality throughout a fixed cost budget, we introduce Budget-Aware Area Under the Curve (BA-AUC), defined as the area under the best-so-far evaluation score curve over cumulative LLM cost, up to the budget. Across 10 mathematical and systems optimization tasks, FrugalEvo matches or surpasses state-of-the-art baselines, including OpenEvolve, ShinkaEvolve, AdaEvolve, and EvoX, in final solution quality and achieves higher BA-AUC on 9 tasks. It also achieves higher average performance than these baselines on 10 algorithmic optimization tasks from ALE-Bench-Lite. Notably, on circle packing, FrugalEvo achieves new state-of-the-art performance with GPT-5.6 Terra and Luna for only 1.68 USD and with GLM-5.3 and its Flash variant for only 0.55 USD, matching or surpassing all baselines, including multi-agent methods such as CORAL and SwarmResearch, which cost approximately 50 USD on average.

阅读原文

参与讨论