TL;DR
When large language models design power converters, they frequently produce circuits that fail real-world engineering checks—and asking the LLM to "just fix it" usually breaks something else. PowerFix wraps the LLM inside a physics-guided diagnostic graph and a sandboxed circuit simulator, allowing the AI to prioritize repair strategies while deterministic tools handle the math and component edits. It boosts verified repair rates from ~30% to nearly 90% while using 97% fewer tokens than standard tool-using AI agents.
What Problem Does This Paper Address?
Power converters are the unsung workhorses of the modern grid, quietly regulating voltage and current inside everything from EVs to solar inverters. Getting their design wrong isn't like shipping a minor software bug—picking a capacitor with the wrong ripple-current rating can lead to overheating, hardware destruction, or massive safety recalls.
Recently, engineers have started using LLMs to automate circuit design. While promising, standalone LLMs fail on roughly 75% to 85% of switched-mode power supply tasks. Even with simulator feedback, repairing a broken design is a game of electrical whack-a-mole: tweak a transformer's turns ratio to save an overstressed transistor, and you might accidentally ruin output voltage ripple at full load. Free-form LLM edits lack physical grounding, can alter protected design requirements, and frequently introduce hidden regressions while trying to fix the obvious error.
Methods
Instead of letting an LLM rewrite circuit netlists directly, PowerFix treats circuit repair as a disciplined, four-stage engineering loop:
- Failure Characterization: The system locks the circuit topology and core requirements, re-verifying all failed metrics across operating conditions into a single structured failure set.
- Graph-Guided Diagnosis: This is the secret sauce. PowerFix uses PowerDiagGraph—an offline, hand-authored graph built from converter physics and design rules (174 nodes and 301 arcs for a flyback converter). It traces failed metrics back to underlying physical causes (e.g., distinguishing insufficient clamp absorption from excessive leakage energy via targeted simulation) and outputs only authorized repair routes.
- Constrained Repair Generation: An LLM planner looks at the authorized routes and ranks which ones to try first. Then, a deterministic compiler—not the LLM—translates those choices into exact parameter or catalog part swaps from a verified database.
- Isolated Validation: Candidate patches are tested in a read-only sandbox using static checks, analytical equations, and PLECS circuit simulations across eight operating points. A patch is committed only if it resolves the target fault and passes the full engineering regression; otherwise, it is rejected, and the evidence can guide replanning.
Datasets
Because PowerFix uses off-the-shelf LLMs without fine-tuning, there is no training dataset. For evaluation, the authors introduce a new 96-task flyback converter repair benchmark spanning 85–265 Vac inputs and 10–24 W outputs, divided into three groups:
- 72 Single-Fault Tasks: Controlled designs with one injected error across six component/parameter classes (e.g., MOSFET, magnetizing inductance, output capacitor).
- 12 Coupled-Fault Tasks: Interacting fault pairs where the most obvious symptom masks a deeper design flaw.
- 12 Held-Out Natural Failures: Unmodified, organic failures produced by a multi-agent LLM design generator, featuring no single "ground-truth" fix.
Key Insights and Ideas
- Fixing the symptom isn't fixing the circuit: In baseline tests, an iterative text-refinement agent ("Self-Refine") fixed the reported target issue 76.9% of the time, yet 69.3% of those "fixes" failed other engineering checks! Treating all physical constraints holistically is mandatory.
- Put physics in the driver's seat, not the LLM: Removing the physics diagnostic graph caused the largest performance collapse in ablation studies (-53.2 percentage points). Moreover, swapping the LLM across 12 different models (from GPT-5 Mini to Claude Opus 5 and DeepSeek V4 Pro) changed success rates by just 1.9 percentage points—proving the architecture, rather than raw model brilliance, carries the weight.
- Trade tokens for simulations: Rather than burning tens of thousands of tokens reasoning about circuit math in text, PowerFix makes just 1 to 2 tiny LLM calls per task to rank options, shifting the heavy lifting to fast, deterministic circuit simulations.
- Knowing when to say "I couldn't fix it": Removing isolated sandbox validation barely changed the raw success rate, but caused the system to hand back 22 broken circuits to the user as "completed repairs" instead of safely withholding them.
Key Results
Evaluated on Verified Repair Success Rate (VRSR—resolving the fault and passing full regression, weighted equally across the three task groups):
- Massive jump in reliability: PowerFix achieves 78.7% VRSR on its initial plan (verifying 85/96 tasks), crushing Open-loop Regeneration (0.9%), Self-Refine (23.6%), and an Unstructured Tool-Feedback Agent (30.1%).
- Coupled faults: On tricky coupled faults, PowerFix solved 11 of 12 tasks, whereas the best baselines solved only 2.
- Replanning pushes further: Allowing three rounds of replanning boosts PowerFix to 88.4% VRSR (91/96 tasks verified).
- Token efficiency: At baseline settings, PowerFix uses an average of 2.73k tokens (1.00 LLM call) and 22.13 simulations per task, compared to 82.86k tokens (11.08 LLM calls) and 5.31 simulations for the Tool Agent.
Limitations and Future Work
Everything demonstrated so far lives offline in simulation and covers only a single topology: the flyback converter. Every new converter type (like a boost or LLC resonant converter) requires engineers to manually author a new PowerDiagGraph and field-authorization map upfront. Furthermore, passing electrical simulations doesn't guarantee a part isn't out of stock, overpriced, or tricky to lay out on a PCB, meaning human engineer sign-off remains essential.
Next, the authors plan to build and bench-test a physical 24 V, 1 A hardware prototype of a PowerFix-repaired flyback converter to verify simulated predictions against real silicon and copper, and will measure the exact person-days required to port PowerFix to a second converter topology.
Summary updated