atlas

Research map / Large language models / Agents, code and math

AnalogCoder: Analog Circuit Design via Training-Free Code Generation

AAAI 2025 · Large language models › Agents, code and math · approach: Software engineering agents · 55 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces AnalogCoder, a training-free LLM agent that designs analog circuits by generating PySpice Python code, using feedback-enhanced checks, a circuit tool library, and a 24-task benchmark.

Problem

Analog circuit design is time-consuming and error-prone, and LLM methods have focused on digital (Verilog) circuits; analog design faces component complexity, low-level abstraction, and scarce SPICE training data.

Approach

Generate analog circuits as Python/PySpice code with domain-specific prompts (one-shot example, chain-of-thought), a multi-stage simulation-based feedback loop returning errors to the LLM, and a tool library that stores verified subcircuits for reuse in composite designs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the circuit tool library to GPT-4oGPT-4o · Analog circuit benchmark (24 tasks)Pass@1: 54.2 -> 66.1Helped
Add the circuit tool library to GPT-4oGPT-4o · Analog circuit benchmark (24 tasks)Number solved: 15 -> 20Helped
Use Python code generation instead of SPICE code generation (ablation)GPT-3.5 · Analog circuit benchmarkPass@1: 13.9 -> 21.4Helped
Add an in-context design example (ablation)GPT-3.5 · Analog circuit benchmarkPass@1: 8.1 -> 21.4Helped
Add Chain-of-Thought reasoning (ablation)GPT-3.5 · Analog circuit benchmarkPass@1: 19.4 -> 21.4Helped
Add the feedback-enhanced design flow (ablation)GPT-3.5 · Analog circuit benchmarkPass@1: 12.8 -> 21.4Helped
Fine-tune on successful circuit designsGPT-3.5 · Analog circuit benchmarkPass@1: 21.4 -> 28.1Helped
Fine-tune on successful circuit designsGPT-3.5 · Analog circuit benchmarkNumber solved: 10 -> 10No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: AnalogCoder benchmark (24 analog circuit tasks)

Benchmarks: Analog circuit design benchmark (24 tasks)

Metrics: Pass@1 Pass@5 number of solved tasks

Baselines: CodeLlama-70B WizardCoder-33B DeepSeek-V2 Llama3-70B GPT-3.5 GPT-4o (w/o tool) GPT-4-turbo

Builds on: chain-of-thought in-context learning PySpice Pass@k

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy