Spicing up Genetic Netlist Generation with LLMs

TL;DR

Introduces LLM-SPICEMixer with IGEL, boosting circuit synthesis rewards by 8.4%.

cs.NE 🔴 Advanced 2026-08-24 85 views
Stefan Uhlich Yağız Gençer Andrea Bonetti Arun Venkitaraman Chia-Yu Hsieh Eisaku Ohbuchi Lorenzo Servadei
analog circuit genetic algorithms large language models SPICE netlists circuit synthesis

Key Findings

Methodology

This paper presents LLM-SPICEMixer, a hybrid framework combining genetic algorithms with large language models (LLMs). Central to this is IGEL, an inspiration-guided proposal operator that prompts high-performing circuits from an elite set to generate new SPICE netlists. These are evaluated via SPICE simulations, with the best selected through a reward mechanism. The approach leverages LLMs' structured text generation to introduce diverse, informed topological proposals, reducing premature convergence. Experiments on transistor-level circuits for Iris classification show median reward improvements of 8.4%, with validation test rewards up by 8.8%.

Key Results

  • Compared to baseline genetic frameworks without LLM guidance, LLM-SPICEMixer achieves a median training reward of 0.810 (+0.063), with the best circuit reaching 0.855. Test accuracy on the Iris task reaches 93.3%, with an average of 85.9% across 17 process-voltage-temperature corners, demonstrating robustness.
  • The integration of IGEL significantly accelerates search convergence, producing higher-quality, more robust circuits than traditional methods. Ablation studies confirm that prompts with reasoning and structured edits outperform other configurations.

Significance

This work addresses the longstanding challenge of discrete topology synthesis in analog circuit design by integrating deep learning with evolutionary algorithms. It enables the discovery of novel, high-performance topologies beyond canonical templates, advancing automated design automation. The approach enhances efficiency, diversity, and robustness, paving the way for scalable, intelligent circuit synthesis in industry and research, especially for complex, non-standard tasks.

Technical Contribution

The key technical innovation is embedding LLMs as structured proposal generators within a genetic search loop, guided by high-quality circuit inspirations. The IGEL mechanism effectively combines domain knowledge with deep generative models, enabling the exploration of large, discrete design spaces with real performance validation via SPICE. This hybrid approach surpasses prior methods that rely solely on pure optimization or unstructured generation, offering a new paradigm for analog circuit synthesis.

Novelty

This is the first work to embed LLM-generated netlist proposals into a genetic algorithm for transistor-level analog circuit synthesis. Unlike previous approaches that either generate circuits directly or use LLMs for verification, this method leverages LLMs as an informed proposal operator, significantly improving search diversity and efficiency in a complex, real-world task.

Limitations

  • The computational cost remains high due to the reliance on large LLMs and extensive SPICE simulations, limiting scalability. Model inference and simulation are resource-intensive, especially across multiple corners.
  • The approach is currently tailored to specific tasks like Iris classification; generalization to other circuit types and multi-objective optimization needs further validation.
  • 仿真模型的精度限制可能引入偏差,影响最终电路性能的准确性。未来需结合硬件验证和更高效模型优化。

Future Work

未来将探索多模态提示策略,结合强化学习优化LLM提案质量,提升搜索效率。还计划扩展到更复杂电路结构和多目标优化,结合硬件验证,推动自动化电路设计的工业应用。

AI Executive Summary

Analog circuit topology synthesis has long been a challenging domain due to the vast combinatorial search space and the highly nonlinear impact of structural modifications. Traditional approaches like Bayesian optimization and reinforcement learning have achieved success in parameter tuning for fixed topologies but struggle with discrete structural choices. Recent advances incorporate deep learning and large language models (LLMs), yet their application has been limited to generating or verifying circuits without effective guidance in exploring novel topologies.

This paper introduces LLM-SPICEMixer, a hybrid framework that combines genetic algorithms with LLMs to enhance the search process. The core innovation, IGEL (Inspiration-Guided Evolution with LLMs), prompts high-performing circuits from an elite set to generate new candidate netlists, which are then validated via SPICE simulations. This approach leverages the structured text generation capabilities of LLMs to introduce informed topological variations, reducing premature convergence and increasing diversity.

Experimental results on synthesizing transistor-level circuits for Iris classification demonstrate significant improvements. The median reward increased by 8.4%, with the best circuit achieving 93.3% test accuracy across multiple process, voltage, and temperature corners. These findings highlight the potential of integrating deep generative models into evolutionary design loops, opening new avenues for automated, robust, and innovative analog circuit synthesis.

The broader impact of this work lies in its ability to discover unconventional, high-performance circuit topologies that traditional methods might overlook. It paves the way for more intelligent, efficient design automation, especially in complex, non-standard tasks. Despite current computational costs and task-specific limitations, future directions include optimizing prompt strategies, scaling to larger models, and applying the framework to diverse circuit classes, ultimately transforming the landscape of analog circuit design.

Deep Analysis

Background

Analog circuit design has evolved from manual, experience-based methods to automated optimization techniques like Bayesian optimization, reinforcement learning, and deep learning. Early works such as Bayesian Optimization for transistor sizing and RL-based power converter design have shown promise. However, topology synthesis remains difficult due to the discrete nature of device interconnections and the nonlinear impact on circuit behavior. Recent efforts incorporate graph neural networks and generative models, but these often focus on specific circuit families like operational amplifiers or filters. The advent of LLMs offers new opportunities for structured text generation, yet their integration into topology search remains underexplored. The challenge is to combine the strengths of deep learning with physical simulation to explore vast, complex design spaces efficiently.

Core Problem

The core challenge is efficiently exploring the enormous, discrete topology space of transistor-level circuits to find high-performance solutions. Existing genetic algorithms require many evaluations, leading to high computational costs, and tend to converge prematurely. Simply generating circuits with LLMs lacks reliability due to the risk of reproducing canonical solutions or producing invalid designs. The key bottleneck is balancing exploration and exploitation while ensuring physical validity and robustness across process variations. Developing a method that can guide the search intelligently, incorporate domain knowledge, and validate designs via simulation is critical for advancing automated analog circuit synthesis.

Innovation

This work introduces three main innovations: 1) embedding LLMs as proposal operators within a genetic search, enabling structured, informed candidate generation; 2) proposing IGEL, which prompts high-quality circuits to generate new topologies based on inspiration, leveraging LLMs’ code generation strength; 3) integrating SPICE simulation for performance validation, ensuring physical realism. Unlike prior methods that rely solely on pure optimization or unstructured generation, this approach combines deep generative modeling with physical evaluation, significantly improving search efficiency and solution quality. It opens new avenues for hybrid AI-driven design automation, capable of discovering unconventional, high-performance topologies.

Methodology

  • �� Initialize a population of candidate circuits using traditional genetic operators. • Select top-performing circuits from the current elite set for inspiration. • Construct prompts combining multiple high-quality circuits, formatted with reasoning or diff-based edits. • Pass prompts to the LLM (e.g., Qwen3.5 27B), which analyzes and generates new netlists. • Preprocess generated netlists by removing duplicates and simplifying transistor representations. • Evaluate each candidate with Ngspice across 17 corners, calculating rewards based on accuracy and voltage separation. • Update the elite set with top solutions, applying crossover, mutation, pruning, and IGEL operators. • Repeat for 131,072 steps, iteratively improving circuit performance.

Experiments

The experiments focus on synthesizing transistor-level circuits for Iris classification, using SkyWater PDK components. The dataset is split into training, validation, and test sets, with 150 samples total. Performance metrics include classification accuracy and output voltage separation, evaluated under multiple process, voltage, and temperature corners. Baseline comparisons include non-guided genetic algorithms and GNN-based methods. Hyperparameters such as proposal steps, model size, and prompt design are tuned. The effectiveness of IGEL is assessed through ablation studies, analyzing prompt formats, reasoning, and model size effects. Results demonstrate that LLM guidance accelerates convergence and yields higher-quality circuits.

Results

The median reward increased from 0.747 to 0.810 with IGEL, with the best circuit reaching 0.855. Test accuracy on the Iris task reached 93.3%, outperforming baselines. Ablation results show reasoning-enabled prompts and structured edits outperform other configurations. Larger models (e.g., Qwen3.5 27B) produce better proposals, confirming the benefit of scale. The approach maintains robustness across multiple corners, validating its practical utility in real-world scenarios.

Applications

This framework can be applied to automate the design of high-performance analog circuits, such as sensors, amplifiers, and signal processors, reducing manual effort and design cycle. It is particularly suited for tasks requiring unconventional topologies or multi-objective optimization, where traditional methods struggle. The approach can also facilitate rapid prototyping and exploration in research settings, accelerating innovation in analog IC design.

Limitations & Outlook

High computational cost due to large LLM inference and extensive SPICE simulations limits scalability. Model bias and simulation inaccuracies may affect solution quality. Current focus on specific tasks like Iris classification may restrict generalization. Future work needs to optimize prompt strategies, incorporate hardware validation, and extend to broader circuit classes and multi-objective scenarios.

Plain Language Accessible to non-experts

想象你在一家工厂里,负责制造一款新型的机械装置。传统方法就像工人自己设计每个零件,然后拼装,费时又容易出错。现在,有个聪明的助手(就像大语言模型)可以根据已有的好设计,帮你提出新的零件布局建议。你先用仿真软件测试这些建议,看它们是否能做好工作。满意后,再继续改进。这个过程不断循环,最终你能制造出性能优良、结构新颖的机械装置。这个方法比单纯自己设计或只用助手更快、更可靠,还能发现以前没想到的创新方案。

ELI14 Explained like you're 14

想象你在玩一个超级难的拼图游戏,目标是拼出一幅漂亮的画。你可以自己拼,但很慢也容易卡壳。于是,你找了个聪明的朋友(就像大语言模型),让他帮你出主意。你告诉他你已经拼好的部分,他会给你一些建议,告诉你下一块拼图应该放在哪里。你试试这个建议,用电脑模拟看看效果,满意了就继续。这个过程不断重复,最后你能拼出一幅漂亮的画,比自己拼更快也更有创意。这个方法就像用智能助手帮你拼拼图,让复杂的任务变得简单又有趣!

Abstract

Analog circuit topology synthesis remains challenging because useful designs occupy a tiny fraction of a combinatorial search space, and small structural changes can induce highly nonlinear changes in behavior. Evolutionary algorithms are attractive because they can optimize over discrete circuit topologies using only black-box evaluations, but they often require many SPICE simulations and may converge prematurely. We introduce LLM-SPICEMixer, a hybrid synthesis framework that augments genetic netlist generation with IGEL (Inspiration-Guided Evolution with LLMs), an LLM-based proposal operator. During search, IGEL prompts an LLM with high-performing circuits from the elite set and instructs it to generate a new SPICE netlist, which is then evaluated by SPICE and selected using the same reward mechanism as conventional genetic operators. Thus, the LLM contributes structured topology proposals while simulation remains the source of truth. We evaluate LLM-SPICEMixer on a challenging benchmark task: synthesizing transistor-level circuits that implement a discriminant function for Iris classification. Compared with the genetic framework without LLM guidance, LLM-SPICEMixer improves the median final training reward by 8.4% and the median validation-selected test reward by 8.8%. The best validation-selected circuit achieves 93.3% test accuracy at the nominal tt corner and 85.9% average test accuracy across 17 process, voltage, and temperature corners.

cs.NE cs.AR cs.LG