Manuscript Offprint

arXiv:2611.00187

CAPER: Circuit-Aware Parameter-Efficient Reasoning in LLMs for Analog Verification

Saion K. Roy

Saion K. Roy

Northeastern University, Boston, MA, USA

sai.roy@northeastern.edu

Abstract—Large language models (LLMs) are increasingly used to generate analog circuits, yet every netlist must also be verified. We propose LLMs as verification assistants for analog circuits that flag unmet specifications and reliability issues that appear under process, voltage, and temperature (PVT) variation. These issues emerge from how circuit stages combine, a structure that generic parameter-efficient fine-tuning (PEFT) methods such as LoRA do not capture. To this end, we introduce CAPER, a circuit-aware PEFT method that adds a small branch alongside LoRA to read each stage's properties from the LLM and combine them from the relevant stages. In deciding whether a feedback loop is negative, LoRA and a high-rank adapter stay at chance, whereas CAPER answers every test case correctly. For comparator latches, where 11 of 90 LLM-written designs that work under nominal conditions fail under PVT variation, CAPER likewise learns to flag such latent failures, while generic adapters stay near chance. These results show that adding circuit knowledge to PEFT makes such analog verification checks learnable through fine-tuning.

I. INTRODUCTION

LLMs can now write analog netlists [1], generate circuit topologies [2], and answer circuit design questions. Every netlist, whether written by a designer or a model, must be verified against its specification. For analog circuits, this requires checking reliable operation across process, voltage, and temperature (PVT) variation, device mismatch, and the intended frequency and input ranges. Prior work has applied LLMs extensively to assertion-based verification for digital circuits [3], [4], whereas analog verification works have focused on checking netlist syntax and structure [5], [6]. In this work, we propose using LLMs as analog verification assistants that review netlists against specifications, help designers identify functional errors, and flag reliability problems.

These issues are hard to predict because they emerge from how circuit stages combine. Each stage has a local property, such as gain or polarity (whether it inverts the signal), and the circuit's behavior follows from how the stages connect. For example, at low frequencies, a feedback loop is negative when an odd number of its stages invert (Fig. 1a). A single stage-polarity error can therefore turn negative feedback into positive feedback and cause the amplifier to latch. LLMs struggle with this reasoning: on feedback circuits in CircuitSense, none of eight leading models derives the transfer function correctly more than 40% of the time [7]. A verification assistant must therefore reason about how stages combine, not only about the individual components.

Adapting an LLM to a new task usually relies on parameter-efficient fine-tuning (PEFT), which keeps the pretrained model

Figure

Fig. 1. (a) Flipping one stage turns a stable loop into a latch. (b) CAPER adds a circuit-aware branch next to LoRA.

fixed and trains only a small number of added parameters. The most widely used PEFT method, LoRA [8], adds a small low-rank update to selected weight matrices, which lets the model adjust its behavior while training well under 1% of its parameters. High-rank adapters such as QuanTA [9] learn a richer, higher-rank update. However, both are generic: neither encodes how the stages of a circuit combine. We therefore introduce CAPER (Circuit-Aware PEFT), which builds this combination directly into the adapter (Fig. 1b). We validate CAPER on feedback polarity (Sec. III-A), and then test it on latent PVT failures in comparator latches (Sec. III-B).

References (13)

  • AnalogCoder: Analog circuit design via training-free code generation
  • AnalogGenie: A generative engine for automatic discovery of analog circuit topologies
  • AssertLLM: Generating hardware verification assertions from design specifications via multi-LLMs
  • (security) assertions by large language models
  • SPICED: Syntactical bug and trojan pattern identification in A/MS circuits using LLM-enhanced detection
  • NetlistBench: Evaluating LLM reliability in SPICE netlist recognition and manipulation
  • CircuitSense: A hierarchical circuit system benchmark bridging visual comprehension and symbolic reasoning in engineering design process
  • LoRA: Low-rank adaptation of large language models
  • QuanTA: Efficient high-rank fine-tuning of LLMs with quantum-informed tensor adaptation
  • Failures of gradient-based deep learning
  • Code Llama: Open Foundation Models for Code
  • LoRETTA: Low-rank economic tensor-train adaptation for ultra-low-parameter fine-tuning of large language models
  • Quantum learning robust against noise