atlas

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

LaMAGIC: Language-Model-based Topology Generation for Analog Integrated Circuits

ICML 2024 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 5 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.

Fine-tunes Flan-T5-base with supervised finetuning and novel circuit formulations (canonical, adjacency-matrix, float-input) to generate power converter topologies and duty cycles in one pass from voltage ratio and efficiency specs.

Problem

Automated analog circuit topology design for power converters currently relies on search-based methods that need hundreds of simulator queries per new specification; the task is to generate circuit topologies directly from specifications in a single pass.

Approach

Casts analog topology generation as sequence generation with SFT of an encoder-decoder LM, using canonical edge ordering, one-hot duty-cycle tokens, an adjacency-matrix circuit format, and a float-input embedding for numerical specs, plus random vertex-order permutation augmentation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace the naive circuit format with a canonical formulation (ablation)LaMAGIC, edge and topology generation · 3, 4, 5-component circuitsMSE (voltage conversion ratio): 0.054 -> 0.016 (edge); 0.031 -> 0.008 (topology)Helped
use one-hot duty-cycle selection in the canonical formulation (ablation)LaMAGIC, edge and topology generation · 3, 4, 5-component circuitsMSE (voltage conversion ratio): 0.016 -> 0.007 (edge); 0.008 -> 0.005 (topology)Helped
use adjacency-matrix output with float inputs instead of text inputs (ablation)LaMAGIC, edge generation · 3, 4, 5-component circuitsMSE (voltage conversion ratio): 0.007 -> 0.006Helped
use adjacency-matrix output with float inputs instead of text inputs (ablation)LaMAGIC, edge generation · 3, 4, 5-component circuitsMSE (efficiency): 0.002 -> 0.013Hurt
use adjacency-matrix output with float inputs instead of text inputs (ablation)LaMAGIC, topology generation · 3, 4, 5-component circuitsMSE (voltage conversion ratio): 0.009 -> 0.002Helped
use adjacency-matrix output with float inputs instead of text inputs (ablation)LaMAGIC, topology generation · 3, 4, 5-component circuitsMSE (efficiency): 0.003 -> 0.001Helped
use adjacency-matrix output with float inputs instead of text inputs (ablation)LaMAGIC, 6-component edge generation · 6-component circuits, 500, 1000, and 2000 samplesMSE (voltage conversion ratio): 0.092 -> 0.050; 0.096 -> 0.048; 0.051 -> 0.038Helped
add random vertex-order permutation during training (ablation)PM, edge generation · 3, 4, 5-component circuitsMSE (voltage conversion ratio): 0.010 -> 0.007Helped
add random vertex-order permutation during training (ablation)FM, edge generation · 3, 4, 5-component circuitsMSE (voltage conversion ratio): 0.040 -> 0.006Helped
use an encoder-only model instead of the encoder-decoder model (ablation)LaMAGIC with PM · Circuit generationvalid circuit generationHurt
pretrain on simpler circuits before fine-tuning on 6-component circuits (ablation)LaMAGIC · 6-component circuitsvalid circuit generationHelped
use the proposed circuit formulations instead of the naive formulation (ablation)LaMAGIC, edge and topology generation · 3, 4, 5-component circuitssuccess rateHelped

Surprising findings

Limitations

Experimental setup

Datasets: NGSPICE-simulated power converter dataset of 3-, 4-, 5-component circuits 6-component circuits (76k sampled, 9k evaluation)

Benchmarks: held-out power converter test set (13K requirements) 6-component transfer test set (9k circuits)

Metrics: success rate under tolerance 0.01 to 0.1 MSE of voltage conversion ratio and efficiency

Baselines: RL-based tree sampling power converter search GPT-4 few-shot prompting naive instruction formulation (NF) canonical formulation (CF) CFDC PM (pure text adjacency matrix) encoder-only T5

Builds on: Flan-T5 T5 masked language modeling NGSPICE

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