TL;DR
This paper introduces OnDesign, a framework that uses Large Language Models (LLMs) to redesign optimization algorithms "on-the-fly" during a search. By treating the algorithm's logic as a dynamic variable that evolves alongside the problem state, OnDesign consistently outperforms both traditional adaptive optimizers and state-of-the-art offline LLM-designed algorithms.
What Problem Does This Paper Address?
Designing an effective optimization algorithm—whether for training a neural network or engineering a car part—usually requires human experts to hand-craft search strategies. Recently, researchers have used LLMs for Automated Algorithm Design (AAD), but these methods typically follow an "offline" paradigm: you design the algorithm once, evaluate it on training tasks, and then deploy a fixed version to the target problem.
The authors argue that this is fundamentally limited because optimization is dynamic. A strategy that works well during the initial "exploration" phase of a search might be useless during the final "exploitation" phase. While traditional adaptive optimizers can tweak parameters (like learning rates), they cannot fundamentally rewrite their own logic. OnDesign bridges this gap by allowing LLMs to synthesize new algorithmic code at every stage of the optimization process based on real-time feedback.
Methods
OnDesign implements a "closed-loop" system where algorithm design and target optimization are coupled. The framework consists of three interacting modules:
- State Analysis: A "State Analyst" agent takes heterogeneous runtime data (like current fitness distribution and search-space coverage) and organizes it into a structured report. This process is guided by a State Analysis Guideline (SAG).
- Multi-Agent Deliberation: This is the "brain" of the system. Role-specialized Proposers (e.g., one focused on exploration, another on exploitation) argue for different design directions. An Arbiter agent then reconciles these competing views to synthesize executable Python code for the next step of the search.
- SAG Evolution: To ensure the State Analyst stays relevant, a SAG Refiner agent periodically updates the analysis guidelines based on which previous designs actually yielded the best performance gains.
The authors instantiate this for two major paradigms: Bayesian Optimization (designing acquisition functions) and Evolutionary Computation (designing offspring-generation operators).
Datasets
The authors evaluated OnDesign across 17 different suite-dimension configurations:
- Continuous Optimization: Standard benchmarks including BBOB, CEC2020, CEC2022, and CEC2026.
- Mixed-Variable Optimization: They introduced MV-BBOB, a version of the BBOB suite modified to include integer variables, and used EOPCCV for categorical variables.
- Engineering Validation: A real-world crashworthiness design problem involving the optimization of an automotive energy-absorbing component.
Key Insights and Ideas
- Algorithm as a Decision Variable: The most profound shift here is treating the algorithm's source code itself as a state-dependent variable. Instead of asking "What algorithm is best for this problem?", OnDesign asks "What algorithm should we run next, given what we've seen so far?"
- The Power of Deliberation: The multi-agent setup acts as a built-in "tug-of-war" between exploration and exploitation. By forcing LLMs to reason through these trade-offs before writing code, the system avoids the common LLM pitfall of generating generic or repetitive solutions.
- Self-Correcting Meta-Logic: Through SAG Evolution, the system doesn't just learn to solve the problem; it learns how to look at the problem. If the current way of reporting state leads to poor algorithm designs, the SAG Refiner changes the reporting instructions.
Key Results
OnDesign achieved the best average rank across all 17 benchmark configurations, significantly outperforming fixed-logic optimizers, adaptive methods, and offline LLM-based AAD methods like FunBO and ReEvo.
- Bayesian Optimization: On the 30-dimensional BBOB suite, OnDesign achieved an average rank of 2.02, compared to 5.10 for the best-performing baseline.
- Engineering Success: In the automotive crashworthiness task, OnDesign converged rapidly to the highest Specific Energy Absorption (SEA) value (approx. 40.95 kJ/kg) among all compared methods.
Limitations and Future Work
While powerful, OnDesign currently focuses on single-objective problems with up to 30 decision variables. The authors acknowledge that scaling to high-dimensional "large-scale" problems or extremely noisy environments remains a challenge.
Additionally, while the paper argues that the performance gains justify the cost of repeated LLM calls for "expensive" black-box functions (where a single simulation might take hours), the computational overhead of the LLM itself might be a bottleneck for simpler, faster-to-evaluate functions. Future work aims to extend the framework to multi-objective and constrained optimization settings.
Summary updated