Evolution of Optimization Algorithms for Global Placement via Large Language Models
Global placement is a cornerstone of Electronic Design Automation (EDA), involving the determination of optimal locations for millions of components on a silicon die. The primary objective is to minimize total wirelength (Half-Perimeter Wirelength, or HPWL) while adhering to non-overlap constraints. While modern tools like DREAMPlace utilize analytical placement methods, they remain dependent on human-engineered heuristics for critical phases such as initialization and preconditioning. This research explores an automated framework that leverages Large Language Models (LLMs) to evolve these optimization algorithms, surpassing traditional human-designed strategies.
The LLM-Driven Evolutionary Framework
The proposed framework automates the discovery of superior optimization heuristics through an iterative, four-stage process:
- Candidate Generation: Utilizing Chain-of-Thought (CoT) prompting, the LLM analyzes existing codebases and proposes novel heuristic ideas. By incorporating "Extra Placement Inputs"—specific data regarding circuit netlists and cell libraries—the model can tailor algorithms to specific design patterns.
- Evolutionary Flow: The system employs a genetic-inspired flow to maintain a diverse pool of high-performing candidates. An Upper Confidence Bound (UCB) strategy is used to balance the exploration of new ideas with the refinement of proven ones.
- Self-Reflection: Performance metrics and failure logs from tested algorithms are fed back into the LLM. The model "reflects" on these outcomes to generate more robust and effective versions in subsequent iterations.
- Algorithm-level Design Space Exploration (DSE): To mitigate the high cost of LLM API calls, a surrogate neural network model predicts the performance of generated algorithms, allowing for efficient search via Bayesian Optimization.
Key Insights: The Dominance of Initialization
A pivotal finding of this study is that the initialization phase significantly dictates the final quality of the placement. The LLM demonstrated a unique ability to identify latent patterns within raw netlist data that human designers often overlook. For instance, the model discovered "Advanced Cluster-based Initialization" strategies that effectively "learn" the underlying geometry of the circuit, leading to substantial performance gains.
Experimental Results and Performance
The framework was rigorously evaluated against industry-standard benchmarks, including MMS, ISPD2005, and ISPD2019. The results underscore the efficacy of LLM-evolved algorithms:
- Significant Wirelength Reduction: Discovered algorithms achieved average HPWL improvements ranging from 5.05% to 8.30% across different benchmarks, with peak improvements reaching up to 17% in specific cases.
- Search Efficiency: The DSE methodology reduced the time required to identify top-tier algorithms by 83.5% compared to exhaustive search methods.
- Robust Generalization: Heuristics evolved for specific designs often maintained high performance when applied to different chip architectures, indicating the discovery of fundamental optimization principles rather than simple overfitting.
Conclusion and Future Directions
This work demonstrates that LLMs can serve as powerful engines for algorithmic innovation in EDA. By automating the design of complex heuristics, researchers can achieve performance levels that exceed manual engineering efforts. Future research will aim to expand this evolutionary approach to the entire EDA pipeline, including legalization and detailed routing, while also addressing the computational costs associated with large-scale LLM deployment.
Summary updated