Skip to main content
QUICK REVIEW

[Paper Review] LaMAGIC: Language-Model-based Topology Generation for Analog Integrated Circuits

Chen-Chia Chang, Yikang Shan|arXiv (Cornell University)|Jul 19, 2024
Model-Driven Software Engineering TechniquesComputer Science5 citations
TL;DR

LaMAGIC uses supervised fine-tuning of a language model to generate analog circuit topologies from specifications in a single pass, achieving up to 0.96 success rate under a 0.01 tolerance and showing robust transfer to more complex 6-component circuits.

ABSTRACT

In the realm of electronic and electrical engineering, automation of analog circuit is increasingly vital given the complexity and customized requirements of modern applications. However, existing methods only develop search-based algorithms that require many simulation iterations to design a custom circuit topology, which is usually a time-consuming process. To this end, we introduce LaMAGIC, a pioneering language model-based topology generation model that leverages supervised finetuning for automated analog circuit design. LaMAGIC can efficiently generate an optimized circuit design from the custom specification in a single pass. Our approach involves a meticulous development and analysis of various input and output formulations for circuit. These formulations can ensure canonical representations of circuits and align with the autoregressive nature of LMs to effectively addressing the challenges of representing analog circuits as graphs. The experimental results show that LaMAGIC achieves a success rate of up to 96\% under a strict tolerance of 0.01. We also examine the scalability and adaptability of LaMAGIC, specifically testing its performance on more complex circuits. Our findings reveal the enhanced effectiveness of our adjacency matrix-based circuit formulation with floating-point input, suggesting its suitability for handling intricate circuit designs. This research not only demonstrates the potential of language models in graph generation, but also builds a foundational framework for future explorations in automated analog circuit design.

Motivation & Objective

  • Address the need for automated analog circuit design given complex specifications and growing customization demands.
  • Develop a language-model-based approach to generate circuit topologies as graphs in a single pass.
  • Investigate input/output formulations to produce canonical, autoregressive-friendly representations of circuits.
  • Evaluate scalability to more complex (6-component) circuits and transferability of learned designs.

Proposed method

  • Formulate circuit design as graph generation using sequences produced by an encoder-decoder transformer (Flan-T5-base, 248M parameters).
  • Compare multiple input/output formulations: Naïve Formulation (NF), Canonical Form (CF), Canonical Form with New Duty Cycle Encoding (CFDC), Adjacency-Matrix-based with text input (PM), and Float-input Adjacency-based (FM).
  • Represent circuits as edge-generation and topology-generation tasks, using autoregressive loss and T5-styled masked language modeling for graph generation.
  • Augment data with random vertex order permutations to improve permutation invariance and generalization.
  • Fine-tune models on a synthesized NGSPICE-validated power-converter dataset with 3–6 components and varying duty cycles; evaluate using success rate under tolerance t and MSE between target specs and simulated performance.
Figure 1: The scenario comparison between manual analog circuit design, previous RL search method (Fan et al., 2021 ) , and our language model LaMAGIC.
Figure 1: The scenario comparison between manual analog circuit design, previous RL search method (Fan et al., 2021 ) , and our language model LaMAGIC.

Experimental results

Research questions

  • RQ1Can a language model be finetuned to generate valid analog circuit topologies directly from specifications?
  • RQ2Which input/output formulations best support autoregressive graph generation for circuits?
  • RQ3How well does the approach scale to more complex (6-component) circuits and transfer learning from smaller topologies?
  • RQ4What is the impact of data augmentation and vertex-order permutation on generation performance?

Key findings

  • The best formulations outperform a naïve baseline, achieving up to 0.96 success rate at tolerance 0.01.
  • Adjacency-based formulations with float inputs (FM) show strong performance on complex 6-component circuits and beneficial transferability.
  • PM (text-based adjacency) and CF/CFDC offer strong results for edge and topology generation, with FM excelling in topology tasks at broader tolerances.
  • Encoder-only LMs fail to converge for circuit generation, highlighting the need for autoregressive graph-generation modeling.
  • Data augmentation via random vertex-order permutations improves generation performance, especially for numerical-input formulations.
  • 6-component transfer experiments show FM and PM yielding higher MSE resilience than CF/CFDC, indicating robustness to scale.
Figure 2: (a) An example power converter circuit and (b) its corresponding hypergraph representation.
Figure 2: (a) An example power converter circuit and (b) its corresponding hypergraph representation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.