算法代码优化的受控自演进
Controlled Self-Evolution for Algorithmic Code Optimization
AI总结:
受控自演进通过改进初始化、反馈引导和经验记忆,提升算法代码优化的效率和效果。
摘要:
自演进方法通过迭代的“生成-验证-改进”循环来增强代码生成,但现有方法在探索效率方面存在不足,无法在有限预算内发现具有更高复杂度的解决方案。这种低效源于初始化偏差将进化限制在较差的解决方案区域,随机操作缺乏反馈指导,以及跨任务经验利用不足。为解决这些瓶颈,我们提出了受控自演进(CSE),其包含三个关键组件。多样化规划初始化生成结构上不同的算法策略,以实现广泛的解决方案覆盖。遗传演进用反馈引导机制替代随机操作,实现定向突变和组合性交叉。分层演进记忆捕捉任务间和任务内的成功与失败经验。在EffiBench-X上的实验表明,CSE在各种LLM基础架构上均优于所有基线方法。此外,CSE从早期世代就实现了更高的效率,并在整个进化过程中保持持续改进。我们的代码在https://github.com/QuantaAlpha/EvoControl上公开可用。
英文摘要:
Self-evolution methods enhance code generation through iterative "generate-verify-refine" cycles, yet existing approaches suffer from low exploration efficiency, failing to discover solutions with superior complexity within limited budgets. This inefficiency stems from initialization bias trapping evolution in poor solution regions, uncontrolled stochastic operations lacking feedback guidance, and insufficient experience utilization across tasks. To address these bottlenecks, we propose Controlled Self-Evolution (CSE), which consists of three key components. Diversified Planning Initialization generates structurally distinct algorithmic strategies for broad solution space coverage. Genetic Evolution replaces stochastic operations with feedback-guided mechanisms, enabling targeted mutation and compositional crossover. Hierarchical Evolution Memory captures both successful and failed experiences at inter-task and intra-task levels. Experiments on EffiBench-X demonstrate that CSE consistently outperforms all baselines across various LLM backbones. Furthermore, CSE achieves higher efficiency from early generations and maintains continuous improvement throughout evolution. Our code is publicly available at https://github.com/QuantaAlpha/EvoControl.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。