TL;DR
This paper introduces A2DEPT, a novel framework that uses Large Language Models (LLMs) to automatically design complete algorithms for complex optimization problems, moving beyond the limitations of template-based approaches. By combining evolutionary search with LLM-driven code generation and a robust program maintenance system, A2DEPT achieves state-of-the-art performance on various benchmarks, demonstrating a significant step towards truly automated algorithm discovery.
What Problem Does This Paper Address?
Designing effective algorithms for combinatorial optimization problems (COPs) is notoriously difficult, often requiring deep domain expertise and extensive manual tuning. While recent advances in LLMs have shown promise in automating parts of this process (Automated Heuristic Design or AHD), existing methods are largely constrained by fixed algorithmic templates. This means LLMs are used to tune specific components within a pre-defined structure, limiting their ability to discover truly novel algorithmic architectures. This "template-bound" approach caps performance and fails to address the core challenge of designing the entire solver logic from scratch. A2DEPT tackles this by enabling "open-ended Automated Algorithm Design" (AAD), where the LLM acts as an architect, synthesizing complete, executable solver programs.
Methods
A2DEPT's core innovation lies in its tree-structured evolutionary search combined with hierarchical LLM-driven operators. Instead of evolving simple heuristic components, A2DEPT evolves entire program trees representing complete solvers.
Key methodological components include:
- Tree-Structured Search: A global search tree stores all evaluated programs, allowing for structured exploration and reuse of past findings.
- Hybrid Selection: A combination of Simulated Annealing (SA) for parent selection and Boltzmann sampling to maintain diversity and explore promising branches.
- Hierarchical Operators:
- Micro-Tuning (m1): Refines specific functions within the program, like adjusting coefficients or tie-breaking rules.
- Macro-Mutation (m2): Redesigns the overall solver workflow by rewriting the entry-point function, allowing for significant structural changes and the introduction of new, undefined helper functions.
- Semantic Crossover (e1): Merges effective logic from two parent algorithms to create a hybrid.
- Program Maintenance Loop: This crucial component ensures executability. It performs:
- Dependency Analysis and Repair: Identifies and uses LLMs to implement missing functions or dependencies.
- Pruning: Removes unreachable code.
- Structured Program Representation: Programs are represented as modular functions, with a clear separation between immutable definitions and mutable strategies, facilitating controlled evolution.
- Adaptive Scheduling: Operator probabilities are dynamically adjusted based on feedback, guiding the search towards more productive transformations.
Datasets
The paper evaluates A2DEPT on a diverse set of benchmarks:
- Standard Benchmarks (FrontierCO):
- Maximum Independent Set (MIS)
- Capacitated Vehicle Routing Problem (CVRP)
- Capacitated Facility Location Problem (CFLP)
- Flexible Job-Shop Scheduling Problem (FJSP)
- High-Constraint Benchmarks:
- Capacitated Electric Vehicle Routing Problem with Time Windows (CEVRPTW)
- Multi-Mode Resource Constrained Project Scheduling Problem (MRCPSP)
- Continuous Domains (for generalization):
- Numerical ODE integration (Harmonic Oscillator, Van der Pol Oscillator, Robertson Kinetics, Heat Equation)
- Numerical Root-Finding (Smooth Polynomials, Ill-Conditioned Functions, Oscillatory Functions, High-Dimensional Systems)
- Feedback Control (Pendulum Swing-Up, CartPole Stabilization, Double Integrator)
The paper also introduces a multi-scale generation strategy for evaluation datasets, creating instances across Small, Medium, Large, and Extra Large tiers to test scale-invariant heuristics.
Key Insights and Ideas
- Beyond Templates is Key: The most significant insight is that moving from tuning components within fixed templates (AHD) to designing entire solver programs (AAD) unlocks substantial performance gains, especially in complex domains.
- LLMs as Architects, Not Just Coders: A2DEPT treats LLMs as system-level architects capable of making high-level structural decisions, not just generating code snippets.
- Executability is Paramount: The program maintenance loop is critical for making open-ended evolution practical. Without it, the complexity of generated code would lead to frequent failures.
- Hierarchical Operators Enable Big Leaps: Macro-mutation allows for "paradigm-level restructuring," enabling the discovery of fundamentally different algorithmic approaches (e.g., shifting from greedy to ILS).
- Diversity Preservation is Crucial: Boltzmann sampling helps retain promising evolutionary pathways that might otherwise be pruned by greedy selection, preventing premature convergence.
- Generalization Across Domains: A2DEPT demonstrates the ability to discover effective algorithms not only for combinatorial problems but also for continuous dynamics and control tasks, suggesting a broad applicability of the approach.
Key Results
- Superior Performance: A2DEPT consistently outperforms representative LLM-based AHD baselines on standard and high-constraint benchmarks.
- Reduced Optimality Gap: On standard benchmarks, A2DEPT reduces the mean normalized optimality gap by 9.8% relative to the strongest competing AHD baseline.
- Robustness: The framework shows strong performance across different LLM backbones (DeepSeek, Gemini) and is relatively stable to hyperparameter choices.
- Efficiency: Despite its complexity, A2DEPT achieves competitive computational resource usage (time and tokens) compared to other advanced methods.
- Continuous Domain Success: A2DEPT discovers state-of-the-art ODE solvers and competitive root-finding algorithms, demonstrating generalization beyond discrete optimization.
Limitations and Future Work
- Computational Overhead: The program maintenance loop, while essential, introduces overhead. Future work could focus on optimizing this process through batching, caching, and static checks.
- Structural Inconsistencies: Open-ended synthesis can lead to catastrophic structural inconsistencies (e.g., type mismatches) when LLMs make radical data structure changes. The authors suggest future work could benefit from static analysis tools or "type-aware" prompt augmentation.
- Scalability to Large Codebases: The current framework is designed for algorithmic-level solver synthesis. Scaling to larger, multi-file codebases would require additional architectural support.
- Multi-Objective Settings: The authors suggest extending A2DEPT to multi-objective optimization as a promising future direction.
Summary updated