TL;DR
AlgoEvo transforms automated algorithm discovery from a rigid, predefined evolutionary pipeline into an interactive, self-evolving process driven by an autonomous LLM agent. By decoupling paradigm-specific knowledge into a "design skill hub" and utilizing a hierarchical experience bank, it matches or outperforms specialized state-of-the-art methods across diverse optimization tasks while requiring up to 90% fewer evaluations.
What Problem Does This Paper Address?
Automated Algorithm Discovery (AAD) leverages Large Language Models (LLMs) to synthesize executable code for complex optimization heuristics. However, existing frameworks typically trap LLMs within rigid, expert-predefined evolutionary pipelines (e.g., fixed population-based or island models).
This setup introduces three major limitations:
- Rigid Control Flow: The LLM acts as a passive code sampler rather than an active orchestrator, preventing interactive debugging or deep structural refactoring.
- Framework Fragmentation: Separate codebases must be maintained for different problem paradigms (e.g., single-objective vs. multi-objective vs. multi-component co-design).
- Amnesic Search: Frameworks often evaluate candidates using simple scalar performance scores, discarding rich execution feedback and failing to accumulate or transfer reusable algorithmic experience across tasks.
Methods
The authors introduce AlgoEvo, an end-to-end agentic framework consisting of three core components:
- Agentic Search Loop: Instead of following a fixed generation-evaluation schedule, an autonomous agent dynamically decides its next action—whether to read code, run diagnostic analyses, edit specific components, or evaluate candidates based on runtime feedback.
- Design Skill Hub ($S_{\text{hub}}$): This component externalizes paradigm-specific knowledge (e.g., code interfaces, evaluation conventions, and design principles) as pluggable skills. This allows a single, unchanged agentic engine to seamlessly handle single-objective, multi-objective, and multi-component tasks simply by swapping the active skill.
- Hierarchical Experience Bank ($\mathcal{E}$): Trajectories are organized into three layers:
- Level 1 (Experience Cards): Structured summaries of code modifications, rewards, and rationales.
- Level 2 (Experience Tree): A task-level tree traversed using Monte Carlo Tree Search (MCTS) and a situational Upper Confidence Bound (UCB) formula to balance exploration and exploitation.
- Level 3 (Cross-Task Consolidation): Successful patterns validated across multiple tasks are abstracted back into the design skill hub for future use.
Datasets
AlgoEvo was evaluated across six representative benchmark problems spanning three distinct algorithmic paradigms:
- Single-Heuristic Construction: Traveling Salesperson Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP).
- Multi-Objective Design: Bi-objective TSP (Bi-TSP) and Bi-objective Flexible Job Shop Scheduling Problem (Bi-FJSP).
- Multi-Component Co-Design: CVRP with Time Windows and Dynamic Requests (CVRP-DR) and FJSP with 4 Operators (FJSP 4-Ops).
Each task features disjoint training and held-out test sets to rigorously evaluate the generalization capabilities of the discovered algorithms.
Key Insights and Ideas
- Diagnosis Over Raw Scoring: Relying solely on scalar scores doesn't tell an LLM why an algorithm failed. AlgoEvo introduces a diagnostic engine that categorizes search states into specific situations (stagnation, sparse front, bottleneck, coupling). This allows the agent to perform targeted structural modifications rather than blind trial-and-error.
- Paradigm Decoupling: By moving the rules of the optimization paradigm out of the search loop and into a pluggable skill hub, the core discovery engine becomes entirely generalizable.
- Code as an Implementation Medium, Not the Goal: Unlike software engineering agents that optimize purely for syntactic correctness and static specifications, AlgoEvo treats empirical optimization performance across diverse instances as the primary signal driving code redesign.
Key Results
- Extreme Sample Efficiency: On single-heuristic tasks like TSP and CVRP, AlgoEvo achieved the best training and test quality while committing its design after only ~35 evaluations, compared to the 500 evaluations fully consumed by baselines like FunSearch and EoH.
- State-of-the-Art Performance: AlgoEvo matched or surpassed specialized baselines across all six tasks. In multi-objective settings (Bi-TSP), it achieved significantly higher Hypervolume (HV) and lower Inverted Generational Distance (IGD) by successfully exploring low-objective corners missed by other methods.
- Successful Cross-Task Transfer: Initializing AlgoEvo with a bank of validated experiences from a single-objective CVRP task allowed it to reuse edge-scoring rules to rapidly adapt and outperform cold-start baselines on the complex, multi-component CVRP-DR task.
Limitations and Future Work
- Token Overhead: As experiences accumulate within the hierarchical bank, context lengths expand, leading to higher token consumption in complex multi-component settings. More efficient memory compression strategies are needed.
- Transfer Boundaries: Cross-task transfer is currently highly effective within aligned problem families but shows reduced efficacy when moving between structurally divergent domains.
- Long-Horizon Reliability: Because agentic design relies on sequential, interdependent decisions, reducing trajectory variance over extended search horizons remains an open challenge.
Summary updated