TL;DR
EvoStage (Evolutionary Stagewise Algorithm Design) is a novel multi-agent framework that leverages Large Language Models (LLMs) to automatically design complex algorithms stage-by-stage using real-time intermediate feedback. By breaking down the algorithm design space and balancing local and global optimization, EvoStage outperforms human experts and traditional black-box LLM methods in complex industrial tasks like chip placement and Bayesian optimization while using a fraction of the evaluation budget.
What Problem Does This Paper Address?
Automated algorithm design using LLMs has emerged as a powerful way to replace tedious human engineering. However, existing methods typically treat the target algorithm as a complete "black box"—the LLM generates an entire algorithm in one shot and only receives a final performance score at the very end.
In complex industrial scenarios (such as chip placement or hardware optimization), this black-box approach falls short. It deprives the LLM of any awareness of the problem's internal mechanics, leading to logically coherent but practically flawed "hallucinated" designs. Furthermore, evaluating these industrial algorithms is incredibly slow and expensive (e.g., evaluating a single chip placement layout can take hours). Traditional black-box evolutionary methods require thousands of trials to find a good solution, making them completely impractical under tight, real-world evaluation budgets.
Methods
EvoStage introduces a paradigm shift by breaking down the algorithm design process into sequential, manageable stages, drawing inspiration from Chain-of-Thought (CoT) reasoning.
The framework consists of three core components:
- Stagewise Design with Real-Time Feedback: Instead of writing the whole algorithm at once, the task is decomposed into $K$ sequential stages. At the end of each stage, the system executes the partial algorithm and feeds real-time intermediate statistics back to the LLM, allowing it to dynamically update its domain knowledge and correct its optimization trajectory.
- Multi-Agent System: To reduce the code-generation complexity, EvoStage separates strategy from implementation. A LLM Coordinator agent analyzes the intermediate stage information and provides high-level guidance, while multiple LLM Coder agents specialize in writing the code for specific algorithm components (heuristics).
- Global-Local Perspective Mechanism: To prevent the agents from greedily optimizing a single stage and falling into local optima, EvoStage balances local and global views. It utilizes a local Stagewise-Design operator alongside two global operators (Global-Explore and Global-Enhance) that analyze and modify entire multi-stage algorithm histories in a single shot.
Datasets
The authors evaluated EvoStage across two distinct, highly challenging domains:
- Global Chip Placement (2D & 3D): Tested on 16 open-source chip cases from the standard ISPD 2005 and ICCAD 2015 benchmarks. It was also deployed on a real-world, industrial 3D chip design case featuring advanced memory-on-logic stacking.
- Bayesian Optimization (BO): Evaluated using standard synthetic functions from the BoTorch library (Ackley 2D, Rastrigin 2D, Griewank 2D, Levy 2D) and four complex hyperparameter optimization/neural architecture search (HPO-NAS) benchmarks (SliceLocalization, ProteinStructure, NavalPropulsion, ParkinsonsTelemonitoring).
Key Insights and Ideas
- Chain-of-Thought for Code Execution: Just as CoT breaks down word problems into logical steps, decomposing algorithm execution into sequential sub-tasks allows LLMs to successfully navigate massive, highly non-linear search spaces that would otherwise cause them to fail.
- Feedback as an Anchor: Providing real-time intermediate feedback (like current layout wirelength or cell overflow metrics during chip placement) grounds the LLM. It acts as an automated course-correction mechanism before the system wastes its limited evaluation budget.
- Role Separation Reduces Syntax Errors: LLMs frequently introduce bugs when forced to write long, multi-functional code blocks. Delegating strategic reflection to a Coordinator (run at a higher temperature for creativity) and code generation to specialized Coders (run at a lower temperature for stability) drastically improves code legality and pass rates.
Key Results
- SOTA 2D Chip Placement: Within a tiny budget of just 25 evaluations, EvoStage achieved historically state-of-the-art half-perimeter wire-length (HPWL) results across every single tested open-source chip case, outperforming fine-tuned human-expert placers (DREAMPlace, Xplace) and existing LLM methods.
- Commercial 3D Tool Success: When deployed on a commercial-grade 3D chip placement tool, EvoStage improved the HPWL by 9.24% on the logic die and 7.51% on the memory die, while simultaneously achieving a 52.21% reduction in optimization iterations.
- Bayesian Optimization: EvoStage successfully designed superior acquisition functions for all tested black-box optimization benchmarks within only 9 evolution steps, occasionally achieving an order-of-magnitude improvement over popular human-designed functions like UCB and Expected Improvement (EI).
Limitations and Future Work
Despite its success, EvoStage has a clear boundary: it relies on the ability to pause an algorithm during execution to gather intermediate feedback. If applied to one-time execution algorithms, or systems where execution cannot be paused, the framework degenerates back into traditional black-box modeling.
For future work, the authors suggest expanding the intermediate feedback to incorporate multi-modal data—such as feeding 3D layout visualizations directly back to the LLM agents—and developing more sophisticated collaboration protocols between agents with diverse domain expertise.
Summary updated