ChatPaper.aiChatPaper

算法代码优化的受控自演化

Controlled Self-Evolution for Algorithmic Code Optimization

January 12, 2026
作者: Tu Hu, Ronghao Chen, Shuo Zhang, Jianghao Yin, Mou Xiao Feng, Jingping Liu, Shaolei Zhang, Wenqi Jiang, Yuqi Fang, Sen Hu, Yi Xu, Huacan Wang
cs.AI

摘要

自进化方法通过迭代式的“生成-验证-优化”循环提升代码生成能力,但现有方法存在探索效率低下的问题,难以在有限预算内发现复杂度更优的解决方案。这种低效性源于三方面:初始化解偏差使进化过程陷入劣质解区域、缺乏反馈引导的随机操作失控、以及跨任务经验利用不足。为解决这些瓶颈,我们提出可控自进化框架(CSE),其包含三个核心组件:多样化规划初始化生成结构迥异的算法策略以实现广阔解空间覆盖;遗传进化以反馈引导机制替代随机操作,实现定向突变与组合交叉;分层进化记忆在任务间与任务内层面同步记录成功与失败经验。在EffiBench-X基准上的实验表明,CSE在不同大语言模型骨干上均稳定超越所有基线方法,且从进化早期即展现出更高效率,并在整个进化过程中保持持续改进。代码已开源于https://github.com/QuantaAlpha/EvoControl。
English
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.
PDF943January 16, 2026