PowerFix: A Physics-Guided LLM Iterative Repair Framework for Power Converters

PowerFix uses diagnostic graphs to constrain LLM search and deterministic compilation to execute repairs, reaching 78.7% flyback repair success.
PowerFix is a physics-guided iterative repair framework for power converter design. PowerDiagGraph links failed checks to physical causes and constrains repair paths; the LLM only ranks candidate paths while a deterministic compiler generates authorized field-level edits; each repair is validated on an isolated copy before commit. It achieves 78.7% VRSR on a 96-task flyback benchmark (vs. 30.1% for the best LLM baseline), rising to 88.4% with three extra replanning rounds.
Introduction: When LLMs Design Power Supplies, Repair Is Harder Than Generation
Large language models (LLMs) are increasingly being used to automate exploration in engineering design. However, generating a preliminary power converter design is not the same as delivering a usable solution—designs often fail engineering validation. The real challenge lies in repair: the system must identify the root cause at the physical level, locate the design variables that should be modified, and eliminate violations without breaking other constraints.
To address this pain point, researchers proposed PowerFix, a physics-guided iterative repair framework. It converts validation failures into structured diagnostics and executable patches while keeping the circuit topology and design requirements unchanged. According to the original paper, on a self-built 96-task flyback converter repair benchmark, PowerFix achieves a Verified Repair Success Rate (VRSR) of 78.7%, while the strongest of three LLM baselines reaches only 30.1%; with three additional rounds of replanning, the success rate further rises to 88.4%.

Flyback Converter is one of the most common isolated switching power supply topologies, widely used in chargers, adapters, and low-power offline power supplies. Its basic structure includes a primary-side switch, a transformer (which serves both as an energy-storage inductor and an isolation element), a secondary-side rectifier diode, and an output capacitor. The design variables of a flyback converter cover transformer turns ratio, magnetizing inductance, switching frequency, core model and winding parameters, snubber circuit, etc., which are strongly coupled through energy conservation, volt-second balance, flux swing, and loss models. The paper chooses flyback as the benchmark precisely because its design space has moderate dimensionality and clear validation rules (e.g., peak flux density not saturating, capacitor ripple, switch voltage stress), while the coupling relationships are complex enough to genuinely reflect the repair difficulty of "changing one parameter affects the whole system."
Why Power Supply Design Repair Is So Difficult
Power converter design is a typical constraint-intensive engineering problem. Multiple physical quantities such as voltage, current, core loss, and thermal limits are coupled with each other, and modifying one parameter often affects the whole system. When the validation tool reports an error, the LLM is not facing a simple "change a number" task but needs to reason:
- Which physical mechanism does the failed check correspond to?
- Which design variable is the true responsible party?
- Will adjusting that variable trigger new violations?
Directly letting the LLM "look at the error and modify the code" on the original design easily leads to blind trial and error, and may even break parts that were originally correct. The design philosophy of PowerFix is precisely to break this vague process into manageable, verifiable steps.
PowerFix's Core Mechanism: Diagnostic Graph + LLM Ranking + Deterministic Compilation
PowerDiagGraph: Connecting Failed Checks to Physical Causes
One of PowerFix's core components is PowerDiagGraph, which associates failed check items with possible physical causes and constrains feasible repair paths. It can be understood as a layer of domain knowledge graph: instead of letting the LLM guess out of thin air, it provides a candidate network of "cause—lesion—prescription," narrowing the search space and avoiding irrelevant modifications.
Verified Repair Success Rate (VRSR) is the core evaluation metric of the paper. Its meaning is: the design produced by a repair attempt must pass all required engineering validations (not just eliminate the single violation initially reported) to be counted as a success. This metric is deliberately distinguished from the looser standard of "whether the error was eliminated," because a common failure mode in engineering practice is fixing one place and introducing another. VRSR counts the success ratio at the task level, so it can simultaneously penalize two types of errors: ineffective repair (the original violation remains) and repair side effects (breaking checks that originally passed).
LLM Handles Prioritization, Compiler Handles Execution
In this framework, the LLM's role is to rank candidate repair paths rather than directly output code. After a path is selected, a deterministic compiler translates the repair plan into authorized field-level edits. This division of labor combines the LLM's semantic reasoning capability with the reliability of deterministic tools, reducing the risk of LLM hallucinations directly contaminating design files.
The deterministic compiler mentioned in the article refers to a programmatic transformation layer that does not rely on model randomness: it receives structured repair intents (e.g., "adjust magnetizing inductance from X to Y"), validates whether the operation is within authorized fields and legal value ranges, and then generates precise field-level edits. Compared with letting the LLM directly output the complete design file, the value of this design lies in decoupling "semantic decision-making" from "syntax/numerical realization"—the LLM can determine the direction but cannot write unauthorized fields or produce format errors beyond its authority. It also ensures that the same repair intent can be replayed and audited, which is crucial for traceability in engineering workflows.
Isolated Validation and Commit Gating
Each candidate repair is validated on an isolated design copy, and is committed only after all required engineering checks pass. Failed validation results are fed back to guide replanning. This "validate first, commit later" closed loop is the key guarantee of PowerFix's reliability.
Benchmark and Results
The research team built a flyback converter repair benchmark containing 96 tasks, covering three types of scenarios: injected single-point faults, coupled faults, and held-out natural faults from its design generator.
Compared with three LLM baselines, PowerFix's Verified Repair Success Rate (VRSR) is 78.7%, while the strongest baseline is 30.1%. After allowing three additional rounds of replanning, VRSR rises to 88.4%. This gap shows that physics-guided structured diagnostics can better handle engineering repair problems with coupled constraints than relying solely on end-to-end LLM modification.
Replanning refers to the mechanism in which, after a candidate repair fails validation, the system feeds the failure information back to the planning stage, reselects a path in the diagnostic graph, and tries again. The paper's report of "three additional rounds of replanning" means each task allows at most four planning—validation cycles. The significance of this setting is to distinguish two types of capabilities: the "first-hit rate" of succeeding on the first attempt, and the ability to gradually converge with feedback. The improvement of the latter (78.7%→88.4%) indicates that a considerable portion of the remaining failures are not irreparable, but require more rounds of diagnostic feedback to locate, which also indirectly confirms the necessity of the isolated validation feedback loop design.
Limitations and Next Steps
The paper's authors explicitly position the current results as pilot-stage evidence in a simulation design workflow. Hardware prototype validation and migration to a second converter topology are listed as next steps toward deployment. This means PowerFix has not yet proven its effectiveness on real hardware, and its generalization capability across topologies remains to be tested.
For readers interested in LLM-assisted engineering design, the value of this work lies in providing a reusable paradigm: use domain knowledge to constrain the LLM's search space, use deterministic tools to ensure the executability of modifications, and use isolated validation to control risk. This approach is expected to transfer to a broader range of engineering repair scenarios.
One-line Summary
PowerFix uses diagnostic graphs to constrain LLM search and deterministic compilation to execute repairs, achieving a 78.7% flyback repair success rate.
Paragraph Summary
PowerFix is a physics-guided iterative repair framework for power converter design, aiming to eliminate validation failures while keeping circuit topology and design requirements unchanged. It consists of three parts: PowerDiagGraph associates failed checks with physical causes and constrains feasible repair paths; the LLM is only responsible for ranking candidate paths, while a deterministic compiler generates authorized field-level edits; each candidate repair is validated on an isolated copy and committed only after all required checks pass, with failed results fed back to trigger replanning. On a self-built 96-task flyback converter repair benchmark, its Verified Repair Success Rate (VRSR) reaches 78.7%, while the strongest LLM baseline is only 30.1%, rising to 88.4% after three additional rounds of replanning. The authors position this result as pilot evidence in a simulation workflow, with hardware prototype validation and cross-topology migration still to be completed.
Related articles

OBSBOT's New Lineup Explained: The Ambition Behind AI PTZ Cameras and Wireless Video Transmission
OBSBOT unveils Tail 2 Advanced, Tail Air 2, Tiny 3, and Topo wireless video transmission at its New York launch—covering 21x zoom AI PTZ cameras, one-inch sensors, and podcast auto-directing.

Nearly Breaking eMudhra's Encryption Key: A Deep Retrospective on a Failed Attempt
Security researcher Hanno Böck discloses an attempted attack on eMudhra CA's private key: a search around the d=4 parameter weakness stopped just short of success. This article reviews the technical path, community reaction, and implications for the PKI trust model.

OpenAI Independent Evaluation Pilot Hits Snag: Apollo Research Says Access Is Restricted
OpenAI's pilot allowing independent evaluators into its lab faces criticism as Apollo Research says access is restricted. We analyze the independence dilemma and its implications for AI safety governance.