Neural networks that replace slow power-grid solvers are fast. A graph neural network predicts an IEEE 118-bus optimal power flow in about 50 microseconds, where the interior-point solver IPOPT takes 18 seconds. But these networks are judged almost entirely on average test error, and their worst-case errors can be many times larger. The usual remedy is adversarial training, which means training on deliberately chosen inputs where the model does worst. In image classification that remedy costs clean accuracy. In power systems it sometimes seems to add clean accuracy instead. This note argues that the two findings do not conflict. For a regression surrogate of a physical system, "adversarial training" is really a way of deciding where to spend expensive solver calls. Whether it helps or hurts clean accuracy depends on two things. The first is whether the adversarial inputs get fresh ground-truth labels from the solver. The second is whether those inputs stay within realistic operating conditions.
The proposal treats the power-system benchmarks as the testing ground. It treats the cost of high-fidelity simulation as the currency in which every method is charged. The robustness-accuracy trade-off is the question being answered. The practical output is a training recipe that finds worst-case operating points and labels them cheaply with a solver warm-started from the surrogate's own guess. The scientific output is a controlled, budget-matched test of where the claimed "robustness dividend" comes from.
Core Claim
Two findings in the literature point in opposite directions. TART shows that standard adversarial training on CIFAR-10 leaves clean accuracy at 81.76%. It attributes the loss to perturbations that leave the data manifold, the region where realistic inputs lie, and recovers accuracy (to 83.73%) by restricting perturbations to directions along that manifold. In power systems, Pan et al. train a reinforcement-learning grid controller against a learned line-cutting adversary on IEEE 118-bus. Its unattacked mean reward rises from 41.2 to 56.3. Beylunioglu et al. add solver-labelled perturbations around badly predicted AC optimal-power-flow points and cut 6-bus test mean squared error from 1.7030 to 1.1963. Neither power paper explains the gain.
Our hypothesis is that three conditions separate the cases:
- Labels are held fixed. Image-style adversarial training assumes a perturbed input keeps its label. In regression that is simply wrong, because the true flows change when the loads change. Training on stale labels teaches the network false physics, so clean error should rise.
- Labels are refreshed but perturbations are unrealistic. Suppose the solver relabels each perturbed point, but the perturbations are box-bounded load changes that ignore the strong spatial correlations in real load patterns. Then solver calls and model capacity go to operating points that never occur, and clean error should rise modestly.
- Labels are refreshed and perturbations stay realistic. Adversarial search then acts as targeted data collection near the boundaries where Venzke et al. found worst-case errors concentrate. Both clean and worst-case error should fall.
The claim is only meaningful when solver budget is matched across methods. Otherwise the "dividend" may just be more data. That is why the simulation-cost direction enters as the accounting rule rather than as decoration.
Research Program
We build the study on steady-state AC power flow and AC optimal power flow surrogates. The model is a graph neural network in the style of Owerko et al.: buses are nodes, lines are edges, inputs are nodal load injections, and outputs are voltages, angles, generator dispatch and line flows. Ground truth comes from PandaPower (the open-source Python grid solver) and IPOPT.
Defining realistic loads. The first component defines the realistic operating region. We take a pool of load snapshots built from daily load and renewable profiles, of the kind used on the modified IEEE 33-node feeder by Yang et al., and scaled onto transmission cases. The realistic region is the span of the top principal components of these snapshots, plus a small orthogonal slack. This is TART's tangent-space idea, but the "manifold" here is the low-dimensional structure of real load patterns rather than an autoencoder's latent space. Unlike TART, no per-sample tangent matrices need to be stored, because the load subspace is global and small.
Adversarial search and cheap labelling. The second component is the training loop. At each round we run projected gradient ascent on the surrogate's predicted physics residual and disagreement, restricted to the realistic subspace and to loads the solver can actually solve. Each resulting point is labelled by Newton-Raphson power flow, initialised at the surrogate's predicted voltages and angles. If the surrogate is close, Newton-Raphson should converge in few iterations. That would make each adversarial label cheaper than a cold-start solve and turn the simulation-overhead problem into a measurable quantity. All methods report cost as total solver wall-clock time and iteration count, not just number of points.
Extension to line outages. The third component extends the study from load perturbations to line outages. We use the latent-shift architecture of LEAP nets, which encodes a topology change as a shift in the network's hidden state and generalises from single to double line outages under random outages. We ask whether that generalisation survives outages chosen by an adversary, and whether adversarial outage selection with solver relabelling preserves accuracy on random outages.
Transferability. The electronic-design surrogates PDNNet and MasterRTL show the same pattern as power-flow surrogates. They are large speedups over slow simulators, validated only on average error. PDNNet's power delivery network is a resistive network like a grid. We do not run chip experiments, because relabelling new chip points would need a commercial IR-drop solver that we do not have. We will state which conclusions should transfer: specifically, whether the fixed-label versus relabelled distinction should hold for any regression surrogate of a network solve.
Baselines
The naive reference is a graph neural network trained by ordinary error minimisation on uniformly sampled loads, as in Owerko et al.. It is given the full solver budget as extra uniform samples. On IEEE 118-bus AC optimal power flow it reports RMSE 0.00306. We will reproduce this setting first, so our clean numbers are anchored to a published figure.
The second baseline is domain expansion from Venzke et al.. They train on a load range wider than the operating range and report that shrinking the operating domain by 0.08 reduced certified worst-case errors to below 20% of their initial values. This is the strongest cheap competitor for worst-case error, because it needs no adversarial search. It gets the same solver budget.
The strongest existing method on our exact question is the error-targeted relabelling loop of Beylunioglu et al.. It is the only prior work that spends solver calls around failing points of a regression surrogate. Its reported result is MSE 1.1963 against 1.7030 for regular sampling on IEEE 6-bus. We re-implement it on our larger cases with identical architecture, solver budget and a hyperparameter search of the same size as ours.
Beating these baselines means lower worst-case error at no worse clean RMSE, at equal solver wall-clock time. Because warm starts change the cost per label, we also report results at an equal number of labelled points, so gains from cheaper labels are kept separate from gains from better point selection.
Three ablations isolate the proposed ingredients:
- Fixed-label adversarial training perturbs the loads but keeps the original label, as image methods do. It isolates relabelling.
- Box-bounded relabelled adversarial training uses unconstrained load perturbations. It isolates the realistic-subspace constraint.
- Cold-start relabelling isolates the warm-start cost saving.
No reported result was found on Lacuna for adversarial or worst-case error of AC power-flow graph neural network surrogates, so that metric has no published anchor. We will establish it ourselves with a fixed evaluation attack.
Why not just…?
Why not just sample more loads uniformly, or over a wider range? Venzke et al. report that worst-case constraint violations averaged 6.7 times empirical test error, even with 100,000 random training scenarios. Beylunioglu et al. found that large regular sampling stalled at higher error than targeted sampling. However, both results come from DC optimal power flow or a 6-bus system. Domain expansion in particular may close most of the worst-case gap on larger AC cases. Our budget-matched comparison is designed so this outcome would be visible. If domain expansion matches us, the conclusion becomes "the dividend is a coverage effect," and we would report that.
Why not just use standard active learning, labelling points where an ensemble of surrogates disagrees most? This is the most serious threat. Adversarial search in the realistic subspace may amount to a more expensive uncertainty sampler. We include ensemble-disagreement sampling, restricted to the same realistic subspace and given the same budget, as an additional baseline. If it matches us on worst-case error, the contribution narrows to two things: the diagnosis (relabelling and realism, not adversarial search itself, produce the dividend) and the warm-start cost saving. We would say so plainly.
Why not just add a physics-residual penalty and skip solver labels entirely? A residual loss, like the hybrid loss in GridFM-v0, costs no solver calls. It penalises violations of the power-flow equations but not errors in the optimal dispatch, which that penalty does not determine. We run it alone and combined with our method. If it alone achieves comparable worst-case line-flow error on pure power flow, which is plausible, we will limit our claim to the optimal-power-flow and outage settings where the residual is not enough.
Proposed Experiments
The testbeds are:
- AC power flow and AC optimal power flow on PGLib-OPF case39, case57 and case118, following the cases used by Venzke et al.
- The IEEE 33-bus distribution feeder with profile-driven loads, where voltage limits are what bind.
- The synthetic Case 118 outage setting from LEAP nets for the topology study.
Clean error is RMSE on held-out realistic snapshots. Robust error is the maximum solver-verified error found by a fixed, stronger evaluation attack: more steps and restarts than any training attack, run within the realistic region. We also report the rate at which predictions miss line overloads or voltage violations, checked against the solver. On a DC variant of case39 we compute exact worst cases with Venzke's mixed-integer program, to confirm that our attack is not merely weak.
The decisive check is a two-by-two grid run at equal solver cost: labels fixed versus refreshed, crossed with perturbations realistic versus box-bounded. The hypothesis predicts three outcomes. Fixed labels raise clean error. Box-bounded relabelling mildly raises clean error. Realistic relabelling lowers both clean and robust error. If refreshed labels under box perturbations already give a clean-accuracy gain, the TART-style realism constraint is unnecessary for grids and we drop it. If fixed-label training does not hurt clean error, the account of why vision and power results differ is wrong.
The secondary checks are:
- Warm starts. Whether warm-started Newton-Raphson reduces mean iterations per adversarial label relative to cold starts. The saving is reported as measured, not assumed.
- Outage generalisation. Whether LEAP nets trained with adversarially chosen single outages keep their accuracy on random double outages.
References
- TART: Boosting Clean Accuracy Through Tangent Direction Guided Adversarial Training
- Improving Robustness of Reinforcement Learning for Power System Control with Adversarial Training
- Robust Training for AC-OPF (Student Abstract)
- Learning Optimal Power Flow: Worst-Case Guarantees for Neural Networks
- Optimal Power Flow Using Graph Neural Networks
- Distributed Shared Energy Storage Double-Layer Optimal Configuration for Source-Grid Co-Optimization
- LEAP nets for power grid perturbations
- PDNNet: PDN-Aware GNN-CNN Heterogeneous Network for Dynamic IR Drop Prediction
- MasterRTL: A Pre-Synthesis PPA Estimation Framework for Any RTL Design
- Foundation models for the electric power grid