LLM-Enhanced Bayesian Optimization for Efficient Analog Layout Constraint Generation

Guojin Chen, Keren Zhu, Seunggeun Kim, Hanqing Zhu, Yao Lai, Bei Yu, David Z. Pan · DOI

Abstract

Automating analog layout design remains a significant challenge due to the complex trade-offs between wirelength, area, and parasitic effects. Traditional Bayesian Optimization (BO) methods used for net weighting often suffer from slow convergence and a lack of domain-specific prior knowledge. This paper introduces LLANA, a framework that enhances the BO loop by integrating Large Language Models (LLMs). By employing In-Context Learning (ICL) for surrogate modeling and candidate sampling, LLANA effectively utilizes the "encoded priors" within LLMs. Experimental results on a two-stage operational amplifier design demonstrate that LLANA achieves higher sample efficiency and better optimization accuracy than standard Gaussian Process and Random Forest-based methods, particularly in data-scarce regimes.

Introduction

Designing analog integrated circuits (ICs) is a notoriously difficult and manual process. Unlike digital design, analog layout requires engineers to balance competing objectives like wirelength and parasitic resistance/capacitance. Modern automated tools utilize "net weighting" to guide placement and routing (P&R) engines. However, finding the optimal weights is a "black-box" optimization problem that typically requires expensive simulations. Standard Bayesian Optimization (BO) is often used but suffers from slow convergence and starts "blind," lacking the general engineering intuition a human designer possesses.

System Architecture

The LLANA framework establishes a closed-loop optimization process between a layout synthesizer and an LLM-enhanced BO engine. As illustrated in the architecture below, the layout synthesizer processes inputs (PDK, netlist, and configurations) to perform placement, routing, and parasitic extraction. The resulting performance metrics are then fed into the LLANA engine, which leverages GPT-3.5 to intelligently suggest the next set of net weights.

The LLANA framework architecture integrating a layout synthesizer with an LLM-enhanced Bayesian Optimization loop.

Methodology

LLANA replaces traditional numerical BO components with LLM-based modules to treat the optimization trajectory as a natural language task:

  • LLM-Enhanced Initial Design: Instead of random sampling, the LLM is prompted to suggest diverse initial configurations based on design space descriptions.
  • ICL Surrogate Modeling: LLANA uses In-Context Learning (ICL) by serializing past design attempts and performance scores into a text prompt. The LLM then predicts the performance of new configurations, acting as an implicit Bayesian model.
  • ICL Candidate Sampling: The LLM acts as a conditional generator, recommending configurations to achieve specific target scores, which focuses the search on high-potential regions.
  • Shuffling Mechanism: To ensure robustness and prevent order bias, the few-shot examples provided in the prompt are randomly permuted.

Experimental Results

The framework was evaluated on a two-stage operational amplifier design using a 40-nm process, focusing on objectives like Common-Mode Rejection Ratio (CMRR) and Absolute Input-Referred Offset voltage. LLANA was compared against standard Gaussian Process (GP) and SMAC (Random Forests) baselines.

As shown in the CMRR dataset results, LLANA consistently outperformed baselines in terms of NRMSE (lower error) and $R^2$ score (better fit). Most notably, LLANA reached lower "regret" (proximity to the global optimum) much faster than GP or SMAC, particularly when the number of observed points was small (n < 15). This demonstrates the superior sample efficiency provided by the LLM's pre-trained knowledge.

Comparative performance of LLANA, GP, and SMAC on the CMRR dataset across various metrics including NRMSE, R2 Score, Regret, and LPD.

Conclusion and Future Work

LLANA demonstrates that Large Language Models can be effectively integrated into specialized engineering optimization loops. By leveraging In-Context Learning, LLANA overcomes the "cold start" problem of traditional BO. While the current work focuses on single-objective optimization, future research aims to extend this to Multi-Objective BO (MOBO) and scale the approach to handle the hundreds of constraints found in industrial-scale circuits.

Summary updated

BibTeX
@misc{chen2024llm,
  author = {Guojin Chen and Keren Zhu and Seunggeun Kim and Hanqing Zhu and Yao Lai and Bei Yu and David Z. Pan},
  title = {{LLM-Enhanced Bayesian Optimization for Efficient Analog Layout Constraint Generation}},
  year = {2024},
  eprint = {2406.05250},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05250},
}
Figure