TL;DR
GENIE-ASI is the first training-free, LLM-powered methodology designed to automatically identify analog subcircuits directly from flattened SPICE netlists. By combining few-shot instruction generation with an automated Python code-generation and self-repair loop, it matches or competes with traditional rule-based methods without requiring massive labeled datasets or manual rule encoding.
What Problem Does This Paper Address?
In analog circuit design, automation tools need to be able to look at a raw, flattened SPICE netlist and automatically identify functional subcircuits—such as current mirrors, differential pairs, or operational amplifiers. This process is essential for downstream tasks like circuit simulation, sizing, and layout generation.
Historically, engineers have relied on two main approaches: hand-crafted, rule-based algorithms or machine learning models. Hand-crafted rules require immense domain expertise and fail to scale when circuit topologies change. Machine learning models generalize better but demand massive, meticulously labeled datasets, which are notoriously scarce in the analog world.
The authors of this paper introduce a third way: leveraging the latent engineering knowledge of Large Language Models (LLMs) to identify these subcircuits without any explicit training or manual rule-writing.
Methods
The core innovation of GENIE-ASI (Generative Instruction and Executable Code for Analog Subcircuit Identification) is that it doesn't ask the LLM to analyze netlists directly. Netlists are long, repetitive, and difficult for LLMs to parse reliably. Instead, GENIE-ASI uses a two-phase workflow to generate reusable code:
- Phase 1: Instruction Generation: The LLM is prompted with a few annotated examples of a netlist and its subcircuits. It is asked to write a step-by-step, natural language "recipe" explaining the topological and connection rules needed to find that subcircuit. If multiple examples are provided, the LLM iteratively merges these recipes into a single comprehensive instruction set.
- Phase 2: Code Generation & Self-Repair: The LLM takes its own natural language instructions and translates them into executable Python code, alongside automated test assertions. GENIE-ASI executes this code against a validation sample. If the code throws an error or fails an assertion, a feedback loop passes the error message back to the LLM to debug and repair the code.
Once the Python code successfully passes the test cases, it is saved. For any new, unseen netlist, the system simply runs this Python script. This means zero LLM calls are required during inference, making the execution incredibly fast and cost-effective.
Datasets
To rigorously evaluate their approach, the authors introduced a new benchmark consisting of 300 synthetic operational amplifier (op-amp) netlists generated via the ACST framework. To ensure a fair evaluation, all internal net names were anonymized to prevent the LLM from picking up semantic hints.
The benchmark splits netlists into three size categories (Small, Medium, Large) and evaluates them across three structural hierarchy levels:
- HL1 (Device Level): Diode-connected transistors, load/compensation capacitors.
- HL2 (Structure Level): Current mirrors, differential pairs, inverters.
- HL3 (Stage Level): Complex multi-block groupings like amplification stages, bias networks, and feedback loops.
Additionally, the authors evaluated GENIE-ASI on an external dataset of 740 radio-frequency (RF) circuits (RF-Data) to test its ability to generalize to entirely different circuit domains.
Key Insights and Ideas
- Code as an Intermediate Representation: Directly processing netlists via LLM text inference is expensive and error-prone. By shifting the LLM's role to generating Python code that handles the heavy lifting, the authors bypass context-window limitations and exploit the superior coding capabilities of modern LLMs.
- The Power of Self-Repair: The inclusion of an automated testing and code-repair loop (Prompt #4) proved vital. Most retries during the code generation phase were spent refining subcircuit identification logic rather than fixing syntax errors, showing that the feedback loop genuinely helps the model correct its reasoning.
- Zero-Cost Inference: Because the final asset is native Python code, running the tool on thousands of new netlists costs nothing in API fees and executes at compiled speeds.
Key Results
The authors evaluated several state-of-the-art models, including GPT-4.1, DeepSeek R1, Grok 3 Beta, Gemini 2.5, and Claude 3.7 Sonnet.
- HL1 (Device Level): Top models achieved a perfect F1-score of 1.0, easily identifying basic components like diode-connected transistors.
- HL2 (Structure Level): For structural blocks like current mirrors and differential pairs, GENIE-ASI powered by GPT-4.1 achieved a strict cluster-level F1-score of 0.81, remaining highly competitive with traditional rule-based pipelines.
- HL3 (Stage Level): Higher-level functional abstractions proved the most challenging, but GPT-4.1 still led the field with an F1-score of 0.31.
- Baselines: GENIE-ASI significantly outperformed graph foundation models (like AnyGraph), which failed to generalize effectively to arbitrary circuit structures.
Limitations and Future Work
- HL3 Performance Drop: Performance degrades at the stage level (HL3). The authors note that trying to identify multiple complex, overlapping subcircuit types simultaneously within a single script reduces code effectiveness.
- Single-Example Constraints: Due to token and cost constraints, the code generation phase currently relies on only a single demonstration example to build test assertions. Implementing multi-example prompting or context summarization could improve code generalizability.
- Low Recall on Large Blocks: On the complex RF dataset, the system suffered from low recall because individual subcircuits contained up to 19 components, making it difficult for the generated Python logic to capture every single element perfectly.
Summary updated