PowerFix: Physics-Guided Iterative Repair for LLM-Assisted Power Converter Design
Authors: Can Wang, Shi Qiu, Fanfan Lin
Organizations: Xi’an Jiaotong-Liverpool University, Suzhou, China · New York University, New York, USA · ZJU-UIUC Institute, Zhejiang University, Haining, China
Large language model (LLM) agents are increasingly being explored for automated engineering design. However, repairing power-converter designs that fail engineering validation remains challenging: the system must identify physical causes, locate responsible design variables, and resolve violations without compromising other constraints. We introduce PowerFix, a physics-guided iterative repair framework that converts validation failures into structured diagnoses and executable patches while preserving topology and design requirements. PowerDiagGraph links failed checks to possible physical causes and constrains repair routes. An LLM prioritizes these routes, while a deterministic compiler translates selected repairs into authorized field-level edits. Candidates are validated on isolated design copies and committed only after all required engineering checks pass; failed validation can guide replanning. On our constructed 96-task flyback repair benchmark, comprising injected single faults, coupled faults, and held-out natural failures from our design generator, PowerFix achieves 78.7% verified repair success rate (VRSR), compared with 30.1% for the strongest of three LLM baselines. Three additional replanning rounds increase VRSR to 88.4%. These offline results provide pilot-stage evidence within a simulation-based design workflow, with hardware prototype validation and transfer to a second converter topology as the next steps toward deployment.
Figures & tables
Figure 1: Overview of PowerFix . PowerFix performs iterative repair through failure characterization, graph-guided diagnosis, constrained repair generation, and isolated validation.
Study
R
Candidates /task
Options /dimension
VRSR
Primary
0
≤6
≤48
78.7%
Ablation
0
≤6
≤8
72.7%
Backbone
5
≤6
≤8
75.9%
Table 1: PowerFix protocols on 96 tasks; VRSR uses GPT-5 Mini. Primary options apply to joint repairs (single-fault repair: up to three healthy candidates per route). Backbone: one candidate per round.
Figure 2: Primary results on 96 tasks: raw verified counts and group-weighted VRSR and TIRR. RIRR is the share of target fixes that fail other checks.
Figure 3: Verified tasks by group; parentheses give group sizes. Unique repairs are tasks verified by only one method.
Figure 4: Ablation at R=0 : VRSR differences from its own reference (72.7%; red line; Table 1 ).
Figure 5: Repair selection (LLM: GPT-5 Mini): group-weighted (a) VRSR and (b) operating-point requests at R=3 , including cache hits.
Figure 6: Budget effects on 96 tasks: (a) overall and (b) group repair rates with replanning; (c) candidate attempts at R=0 ; (d) replanning versus mean workflow simulations. Axis ranges differ.
Figure 7: Backbone differences from its own GPT-5 Mini reference (75.9% VRSR; R=5 ; Table 1 ).
Method
Simulations
LLM calls
Tokens (k)
Open-loop
1.74
4.00
37.10
Self-Refine
2.84
5.23
33.44
Tool Agent
5.31
11.08
82.86
PowerFix
22.13
1.00
2.73
Table 2: Group-weighted primary cost per task ( R=0 for PowerFix), including failures. Simulation and LLM counts are workflow requests (Appendix J ).
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
Code
Specification or fault
I1
85–132 Vac
I2
180–265 Vac
I3
85–265 Vac
O1
5 V / 2 A (10 W)
O2
12 V / 1 A (12 W)
O3
12 V / 2 A (24 W)
Appendix
Table S1: Independent choices in the controlled benchmark. Any input can be paired with any output and fault class.
Output
Faults
Interaction
O1
F5+F6
Rectifier loss and output ripple
O2
F1+F4
Turns ratio and MOSFET voltage stress
O3
F2+F4
Peak current, MOSFET loss, and temperature
O4
F1+F5
Primary-device stress and rectifier reverse voltage
Appendix
Table S2: Coupled-fault patterns. Each row contributes three tasks, one at each input range I1–I3.
Method
Repair mechanism
Limit
Open-loop
Regenerates the full design.
Three proposal calls and one integration call.
Self-Refine
Revises from validation feedback; an LLM parses the edits.
At most three refinement rounds.
Tool Agent
Calls engineering tools and edits fields directly.
At most 16 agent steps.
PowerFix
Uses PowerDiagGraph to limit repairs; a compiler writes the edits.
One plan and at most six candidate validations.
Appendix
Table S3: Primary repair mechanisms and execution limits. All methods undergo external scoring. PowerFix uses R=0 : validation tries preplanned candidates without another LLM planning call.
Quantity
Value
Required
Rating minus peak
650−742=−92 V
≥65 V
Plateau residual
∣505−495∣=10 V
≤25 V
Turn-off overshoot
742−505=237 V
≤120 V
Leakage energy
10 mJ
≤4 mJ
Clamp absorption fraction
4/10=0.40
≥0.80
Appendix
Table S4: Numerical MOSFET example. Thresholds belong to this fixture; they are not universal device limits.
Module
Input → output or decision
Characterization
Design and reported failures → values, limits, conditions, and evidence links in a failure set.
Diagnosis
Failure set and fixed rules → supported, contradicted, or unresolved causes and available repairs.
LLM planning
Diagnosis and legal choices → route ordering or dimension selection.
Synthesis
Selected choices and frozen catalogs → concrete candidate intents.
Compilation
Intent and current state → exact field edits and their reversals.
Validation/gate
Patch, map, and design copy → check results and commit decision.
Appendix
Table S5: Module interfaces. All rows except planning are deterministic; PLECS supplies simulation evidence where needed.
Method
F1
F2
F3
F4
F5
F6
Open-loop
0
0
1
1
0
0
Self-Refine
3
3
4
4
12
7
Tool Agent
0
1
9
4
10
11
PowerFix
10
11
12
11
12
12
Appendix
Table S6: Verified single-fault tasks by class, out of twelve per column. Fault codes are defined in Table S1 .
Methods that verify
S
C
N
PowerFix
19
8
4
Tool Agent, PowerFix
17
1
2
Self-Refine, Tool Agent, PowerFix
18
1
0
Self-Refine, PowerFix
12
1
0
None
2
1
5
Self-Refine
2
0
0
Appendix
Table S7: Exact repair intersections. Only the listed methods verify a task in each row; S, C, and N denote single, coupled, and natural tasks.
Method
Single
Coupled
Natural
Total
Open-loop
47/72
9/12
8/12
64/96
Self-Refine
36/72
8/12
10/12
54/96
Tool Agent
21/72
6/12
5/12
32/96
PowerFix
0/68
1/12
2/12
3/92
Appendix
Table S8: Tasks with at least one newly failed non-target check. Denominators include only records with an evaluable final design.
Configuration
Single /72
Coupled /12
Natural /12
Full PowerFix
61
10
6
w/o Failure characterization
31
3
4
w/o Graph-guided diagnosis
36
1
0
w/o Constrained repair generation
44
3
2
w/o Isolated validation
59
10
5
Appendix
Table S9: Verified task counts in the component ablation at R=0 . The main figure reports the group-weighted rates and paired differences.
A
Single /72
Coupled /12
Natural /12
VRSR (%)
1
61
8
4
61.6
2
64
9
4
65.7
3
66
10
5
72.2
4
67
10
6
75.5
6
68
11
6
78.7
Appendix
Table S10: Candidate limit under the initial plan ( R=0 ). Group columns give raw verified counts; VRSR is group-weighted.
R
S/C/N
VRSR (%)
Workflow simulations
Fresh executions
LLM calls
0
68/11/6
78.7
22.13
22.13
1.00
1
69/11/7
81.9
26.94
26.17
1.21
2
70/11/8
85.2
31.06
29.61
1.39
3
71/11/9
88.4
33.92
31.97
1.54
5
71/11/9
88.4
35.79
33.61
1.77
Appendix
Table S11: Replanning checkpoints. S/C/N are verified counts out of 72/12/12. Costs are group-weighted means per task, including failures; LLM calls exclude provider retries as separate calls.
Policy
R=0
R=1
R=2
R=3
Fixed
55 (27.4)
80 (39.4)
95 (54.7)
100 (60.2)
Random
50 (26.9)
78 (44.0)
93 (53.9)
118 (69.2)
GPT-5 Mini
91 (53.7)
125 (77.4)
133 (81.7)
136 (84.7)
Appendix
Table S12: Verified trajectories, with group-weighted VRSR (%) in parentheses. Each policy has 155 trajectories.
Policy
Logical evaluations
Fresh executions
Active time (s)
Fixed
61.32
55.02
124.6
Random
61.12
55.09
124.6
GPT-5 Mini
40.15
37.43
162.6
Appendix
Table S13: Group-weighted resource use per trajectory at R=3 , including failures. Simulation counters follow Appendix E .
R
VRSR (%)
Tokens (k)
Logical evaluations
Fresh executions
Active time (s)
0
82.2
2.74
22.57
22.57
95.2
1
88.3
3.22
26.49
25.87
110.5
2
88.3
3.56
29.00
28.00
120.6
3
88.3
3.79
30.87
29.54
127.6
Appendix
Table S14: Full-system reference on 31 tasks, without seed replication. Costs are group-weighted means per task.
Model
VRSR@1 (%)
Single @6
Logical OP evaluations
Fresh executions
Tokens (k)
API attempts
Active time (s)
ERNIE 4.5 Turbo
68.5
63/72
18.05
3.92
18.55
2.38
104.3
GPT-5.4 Nano
68.5
63/72
18.31
2.58
15.15
2.35
79.1
Qwen 3.7 Max
68.5
62/72
18.78
3.06
19.16
2.36
125.3
DeepSeek V4 Pro
69.0
62/72
18.14
3.84
16.43
2.44
115.7
Grok 4.1
68.5
62/72
18.18
3.81
15.09
2.55
157.8
GPT-5 Mini
68.1
62/72
18.70
4.21
17.46
2.40
148.5
Appendix
Table S15: Outcomes and costs in the backbone study (first replicate). VRSR@1 is group-weighted success after the first candidate; Single@6 gives raw verified counts at the six-candidate limit. All models verify 10/12 coupled and 7/12 natural tasks at that limit. Resource columns are group-weighted means per task at the maximum budget, including failed tasks.
Condition
Req./API
Input
Output
Total
PowerFix (primary)
1.00/1.06
1,895.96
835.97
2.73
PowerFix (backbone)
2.34/2.40
6,215.58
1,238.18
17.46
Open-loop
4.00/4.44
6,535.81
2,738.94
37.10
Self-Refine
5.23/5.29
5,134.95
1,257.65
33.44
Tool Agent
11.08/11.32
6,865.63
613.14
82.86
Appendix
Table S16: Recorded token usage. Req./API gives workflow requests and API attempts per task; API attempts include retries. Input and output are tokens per request; total is thousands of tokens per task. PowerFix conditions follow Table 1 .
Explicit fields
1
2
3
25
26
Submissions
28
13
3
34
7
Appendix
Table S17: Distribution of explicit field writes in accepted R=0 submissions. Each field path counts once per submission, including writes that retain its current value.
Experimental operator
Submissions
swap_mosfet
20
swap_rectifier
18
swap_output_capacitor
16
redesign_magnetics
41
Appendix
Table S18: Atomic operators in accepted R=0 submissions. Joint repairs contribute to more than one row.