atlas

Research map / Large language models / Language, safety and interpretability

LaMAGIC2: Advanced Circuit Formulations for Language Model-Based Analog Topology Generation

ICML 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation

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.

Proposes LaMAGIC2 with a succinct float-input canonical formulation with identifiers (SFCI) that fine-tunes Flan-T5-base to generate power-converter topologies from voltage/efficiency specs with O(|V|) output length.

Problem

Language-model-based analog topology generation from specifications suffers from O(|V|^2) output token length and low sensitivity to precise numeric inputs, hurting success under tight tolerances and transfer to larger circuits.

Approach

Represent circuits as sparse canonical edge sets with component-type tokens plus identifiers (e.g., Sa 0), remove natural-language descriptors from inputs, and encode duty cycle as a single token, yielding linear-length outputs and better numeric precision.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use SFCI instead of FMFlan-T5-base topology generation · 3, 4, 5-component circuitsvoltage MSE: 0.0061 -> 0.0006Helped
use SFCI instead of FMFlan-T5-base topology generation · 3, 4, 5-component circuitsefficiency MSE: 0.0128 -> 0.0002Helped
use SFCI instead of FMFlan-T5-base topology generation · 6-component circuits, 2000 training examplesvoltage MSE: 0.1014 -> 0.0580Helped
use SFCI instead of FMFlan-T5-base topology generation · 6-component circuits, 2000 training examplesefficiency MSE: 0.0865 -> 0.0418Helped
add the duty-cycle prefix (ablation)SFCI · 3, 4, 5-component circuitsvoltage MSE: 0.0033 -> 0.0006Helped
add the duty-cycle prefix (ablation)SFCI · 3, 4, 5-component circuitsefficiency MSE: 0.0028 -> 0.0002Helped
retain component-type tokens in the output (ablation)SFCI · 3, 4, 5-component circuitsvoltage MSE: 0.0012 -> 0.0006Helped
retain component-type tokens in the output (ablation)SFCI · 3, 4, 5-component circuitsefficiency MSE: 0.0022 -> 0.0002Helped
replace FM with SFCIFlan-T5-base topology generation · 3, 4, 5-component circuits, tolerance 0.01success rate: 0.67 -> 0.91Helped
use SFCI rather than SFMFlan-T5-base topology generation · training and inferencetraining steps: 8,943 -> 6,886; 23.0% reductionHelped

Surprising findings

Limitations

Experimental setup

Datasets: LaMAGIC power converter dataset (3,4,5-component circuits) 6-component circuits from LaMAGIC dataset

Benchmarks: LaMAGIC power converter test set (12k, 9k for 6-component)

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

Baselines: LaMAGIC CF LaMAGIC PM LaMAGIC FM RL-search power converter method o1 few-shot

Builds on: LaMAGIC Flan-T5 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