TL;DR
AnalogXpert is a training-free LLM agent for automated analog circuit topology synthesis that generates device-level SPICE netlists directly from structural design requirements. By framing the problem through an extensible subcircuit library, a two-step Chain-of-Thought (CoT) workflow, and an external deterministic proofreading loop, it boosts synthesis success from a 3% baseline (GPT-4o) to 40% on synthetic benchmarks and 23% on real-world circuits.
What Problem Does This Paper Address?
Designing an analog integrated circuit begins with topology synthesis—deciding which devices (transistors, resistors, capacitors) to pick and how to wire them together. Historically, this step relies heavily on human intuition and manual trial-and-error.
Recent machine learning and LLM approaches attempt to automate this stage, but face major real-world disconnects:
- Abstract inputs and ideal outputs: Prior works often accept ambiguous high-level electrical targets (e.g., gain, phase margin) that require complex sizing equations, or they produce simplified "ideal models" that cannot be fabricated without manual redesign.
- Exploding search space: Generating SPICE netlists pin-by-pin at the individual transistor level overwhelms LLMs, leading to syntax failures, mismatched terminals, and floating nodes.
- Lack of expert design flow: Direct code or graph generation fails to mimic how human engineers actually work—grouping functional stages and iteratively verifying interconnections.
Methods
AnalogXpert transforms topology synthesis into an iterative sequence-to-sequence generation task using standard LLMs (e.g., GPT-4o) equipped with circuit design heuristics:
Structural Requirements (stages, input type, load)
│
▼
[1. Block Selection via CoT] ──► Subcircuit Library (differential pairs, mirrors, cascodes)
│
▼
[2. Block Connection via CoT] ──► Subcircuit-level SPICE Netlist
│
▼
[3. Proofreading Checker] ──► Deterministic terminal typing (I/I, I/O, V, B, P)
│ & rule-based violation detection
└── (Iterative Feedback) ─┘
- Subcircuit Library Representation: Rather than placing bare MOSFETs, the model instantiates pre-characterized subcircuit blocks (e.g., differential pairs, cascode stages, current mirrors). This aligns with human design practices, guarantees local legal sub-topologies, and sharply cuts netlist token count.
- CoT Task Decomposition & In-Context Learning: Prompts decompose generation into two consecutive steps: Block Selection (choosing appropriate building blocks) and Block Connection (routing signal, bias, and power paths). Similar query-example pairs are injected via in-context learning.
- Human-Experience Proofreading Checker: Instead of bloating prompt context with endless negative constraints, an external deterministic program inspects intermediate netlists. It assigns port types—current input ($I/I$), current output ($I/O$), voltage ($V$), bias ($B$), and power ($P$)—flags invalid pairings or floating pins, and sends structured critique messages back to the LLM across iterative refinement rounds.
Datasets
The authors evaluate AnalogXpert on two distinct benchmarks:
- Synthetic Benchmark (2,000 cases): Procedurally generated across 1-to-3 circuit stages with varying block budgets and pre-selected components, evaluated via deterministic rule-checking.
- Real-World Benchmark (30 topologies): Selected from the commercial EDA software AnalogDesignToolbox, covering practical operational amplifier designs evaluated against strict, human-verified golden netlists.
Key Insights and Ideas
- Decouple topology from sizing equations: Shifting input specifications from mathematical performance goals (e.g., dB gain) to concrete structural requirements (e.g., "Two-stage, Miller compensation, differential NMOS pair") isolates topological reasoning from numerical optimization.
- External deterministic checkers beat long prompt rules: LLMs quickly degrade when tasked with remembering long lists of negative electrical rules. Offloading rule validation to a deterministic external checker and letting the LLM act strictly as the code refiner provides vastly higher fidelity.
- Subcircuit abstraction is essential: Without subcircuit grouping, raw device-level SPICE generation fails almost completely due to combinatorial pin explosion.
Key Results
- Synthetic Dataset (2,000 cases):
- Zero-shot GPT-4o achieved only 3% accuracy (tested on 100 human-checked cases).
- Pure GPT-3.5 Turbo reached 1%.
- AnalogXpert (GPT-4o) achieved an overall 40% success rate (reaching 80% on single-stage designs and 42% on two-stage designs).
- Real-World Dataset (30 cases):
- Both pure GPT-4o and pure GPT-3.5 achieved only 3% (1/30).
- AnalogXpert reached 23% (7/30).
- Ablation Studies:
- Proofreading was the most critical element: removing it caused performance to collapse from 40% to 7%.
- Performance steadily scaled with refinement rounds: 11% (1 round) $\rightarrow$ 26% (5 rounds) $\rightarrow$ 40% (10 rounds).
Limitations and Future Work
- Small real-world benchmark: Sourcing and manually verifying commercial-grade topologies is resource-intensive; 30 circuits remains a relatively modest evaluation set.
- Dependence on proprietary frontier models: AnalogXpert currently relies on closed-source APIs (GPT-4o).
- Future direction: The authors plan to use AnalogXpert to generate massive synthetic SPICE datasets to fine-tune compact, open-source models that can run locally inside secure enterprise EDA environments without leaking proprietary circuit IP.
Summary updated