# Solver-Admitted Metamorphic Testing of Learned Network Optimization Surrogates

Metamorphic tests reveal that learned optimization surrogates change outputs under equivalent encodings

Vineet Jagadeesan Nair, Stephen Peng, Arun Ravindran · arXiv · 2026-11-6

- **Problem** Learned optimization surrogates can change their predictions when only the encoding of the same problem changes. Accuracy and feasibility checks do not test this dependence.
- **Method** The authors rewrite each problem into an equivalent encoding, run the surrogate on both, and undo the rewrite before comparing. Only draws whose reference solves agree are kept.
- **Results** Across five grids, GridSFM-Open violates each of 13 relations on at least one grid, and 12 by more than twice the threshold.

## Why renumbering should not change the answer

Checking each prediction against a reference solve is expensive, so teams need a cheaper way to judge a surrogate. Accuracy and feasibility checks don't directly test whether the model depends on how the same grid is encoded. Renumbering the buses of the standard 14-bus grid, IEEE case14, should only renumber the predicted settings. Yet GridSFM-Open's reactive-power prediction shifts by 0.30 per unit (p.u.) under that relabeling.

That 0.30 p.u. shift equals 30 megavolt-amperes reactive (MV Ar), about 30,000 times the authors' threshold. Reordering the rows of the line table changes the same prediction by 0.60 p.u., even though the physical grid is unchanged. The authors read this as the model responding to its input representation rather than to the physical grid.

The test pulls predictions back to the original coordinates before it compares generator outputs. After renumbering buses, the pull-back undoes the numbering, so both outputs sit in the same coordinates. Admission checks whether the transformation is eligible and whether a reference solver agrees. Calibration asks whether a fixed floor separates round-off from larger discrepancies across transforming, predicting, and aligning.

Row order and labels count as alternative encodings of one instance, not as changes to the problem itself.

## Relations as transformations with a pull-back

A relation starts from a rewritten problem whose optimal solutions are kept, and the test checks the model's answer after that rewrite is undone. A relation bundles three parts: an eligibility predicate, an input transformation T, and a pull-back that maps outputs back to the original coordinates. The data-to-problem map P(d) fixes the feasible set, the objective, and the output coordinates that a solver reads from the data d.

Code checks the eligibility predicate before applying T, so an ineligible transformation never enters the test. Pairing a source instance with one sampled transform gives a single draw, which is the unit the verdict later counts. A valid relation requires every eligible transformed optimum to pull back to an original optimum after reference correction.

For buses, the pull-back undoes the renumbering before generator outputs are compared, so both predictions sit on the same buses. A canonicalizer C then re-anchors arbitrary references, such as the voltage angle reference, so the outputs can be compared directly. The data converter overwrites the stored base voltage, so that field is inert in this setting.

Branches stay separate in the statistic because their individual limits can bind.

Some transforms change the size of the problem, for example by adding an isolated subproblem or splitting a generator. For these changes, the objective shifts by a known offset κT(d), which is the added subproblem's optimum for disjoint union. The offset is +1 for MIS isolated-vertex padding and the summed change for constant-cost edits. Tier A preserves the physical problem through numbering, row order, orientation, reference choice, or Euclidean rotation and reflection.

Tier B changes structure through splitting, padding, union, or insertion, and its pull-back may be many-to-one. Tier C rescales inputs and may move them outside the training distribution, so the authors exclude it from the main findings.

Generator splitting requires c2 ≥0 for convexity, and every scenario on the five grids satisfies this condition. Propositions 3 and 4 state when a discrepancy implies solution error, because different optima can both be correct.

## Running one draw from transform to verdict

A single draw starts with a source instance d and a transform T that the eligibility predicate has accepted. The surrogate predicts on the source and on the transformed encoding, and the pull-back maps the transformed prediction back to the original coordinates. Before the verdict, the pipeline re-solves both inputs, because a valid relation can still break under integer rounding or a faulty implementation.

Admission requires that both reference solves succeed, that objectives agree after the offset, and that independent constraint checks pass. Of 6,385 distinct draws, the authors kept 6,370, and every rejection was a case14 generator split at binding bounds.

![Figure 1: From a relation to a test: admission re-solves both inputs to check the sampled transformation, and the verdict compares aligned predictions with the…](https://refivu.com/papers/bf8267ce-e77f-4570-a90e-1101d0d6d31b/figures/figure-4c79eb688b555934a6aa287056c421bc.png?thumb=512)

**Fig. 1** . From a relation to a test: admission re-solves both inputs to check the sampled transformation, and the verdict compares aligned predictions with the floor. Admission evidence depends on the solver’s guarantees.

[Original paper](https://arxiv.org/abs/2611.08837v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Vineet Jagadeesan Nair, Stephen Peng, Arun Ravindran · Solver-Admitted Metamorphic Testing of Learned Network Optimization Surrogates · Original paper figure · Extracted the figure area from page 2 of the original PDF.

For TSP, Concorde certifies every optimum, yet admission also demands that the transformed optimum contract correctly under deletion of the inserted node. The contraction check for M3 at 100 cities admits only 916 of 1,000 draws. Exact solutions to both encoded problems don't by themselves validate the transformation between them, so admission adds this check.

For CVRP, HGS-CVRP supplies heuristic agreement, so source and pulled-back costs must match exactly. For MIS, CP-SAT proves all 1,250 optima, so every draw is admitted.

Admitted draws then go to the verdict, which compares the aligned predictions against the numerical floor. Grid comparisons use paired cells, because draws sharing a source are dependent. Routing and MIS rates, by contrast, describe the admitted draws directly.

## Calibrating round-off against structural error

The authors declared two floors before the audit for AC-OPF: 10−6 for the worst-channel mean and 10−5 for the worst component. The worst-channel mean averages absolute discrepancies within each output channel and then takes the largest mean. The worst component instead takes the largest individual discrepancy, so the two floors detect broad and localized changes.

To check the floors, the authors reran the same draws in 64-bit arithmetic, where the mean and component floors are 10−12 and 10−11.

Routing and MIS use their own numerical checks, because their outputs are lengths and set sizes rather than continuous channels. For routing, the authors evaluate both tours on the original integer-distance instance after pull-back and use a 10−9 floor. This 10−9 floor requires exact equality at these integer scales.

The calibration is empirical, so it doesn't supply a universal round-off bound. Without precision controls, the authors interpret the float32-only releases' discrepancies by magnitude.

## When a violation implies a wrong answer

Proposition 4 turns a discrepancy δ into a bound: if any two aligned optima lie within D, one aligned prediction sits at least (δ−D)/2 from every aligned optimum. A unique aligned optimum gives D = 0, so the error is at least δ/2.

The authors first checked AC-OPF predictions for feasibility on 4,680 paired draws in 520 cells. None is strictly AC-feasible, since every prediction's largest bus-level active or reactive mismatch exceeds 0.51 p.u. Multi-start IPOPT from 27 initial points on 15 scenarios gave one objective cluster per scenario. Solutions within a relative 10−5 of the best cost differ by at most 2.4×10−5 componentwise, or 3.8×10−4 on case4661.

A quadratic convex relaxation supplies ranges meant to enclose the optima, and the authors added 10−6 to each computed width. Without bound tightening, positive estimates appear in 8/21 cells each on case500 and case2000, and in none on case4661.

## Which trained models fail, and whether training causes it

GridSFM-Open violates each of the 13 relations on at least one grid, and twelve of those relations exceed twice the threshold. LUMINA fails nine relations, and it passes R0, R1, R2 and island-union on all five grids. Across 831 headline, calibration and coverage cells, 504 cells fail. Across 148 failing released-model cells, the worst discrepancy divided by the channel's mean absolute error has a median of 0.46 and a maximum of 98.

GENCO's structural discrepancies reach a median of 2.7 and a maximum of 3,147 times its median MAE.

![Figure 3: Numbers give failing grids over evaluated grids. Color shows the largest max(δmean/10−6, δmax/10−5) on a logarithmic scale capped at 105, with white…](https://refivu.com/papers/bf8267ce-e77f-4570-a90e-1101d0d6d31b/figures/figure-75a802d9dc1ba5f2bfc0396175a857c9.png?thumb=512)

**Fig. 3** . Numbers give failing grids over evaluated grids. Color shows the largest max(δmean/10−6, δmax/10−5) on a logarithmic scale capped at 105, with white indicating all pass. Outlined GENCO cells fail only through float32 round-off. The float64 column counts relations that still fail after precision reruns. ≈ marks a deciding draw within twice the floor. The bottom row counts mechanism controls failing on case14 or case500.

[Original paper](https://arxiv.org/abs/2611.08837v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Random-weight GridSFM reproduces the released failure pattern except for R0, and random-weight LUMINA matches it exactly. Because the random-weight models are never trained, these failures don't need training. The random-weight runs don't reveal which design caused the failures, so the mechanism controls come next.

The 14 mechanism controls link failures to design choices, since index-sensitive features fail R1. Stored direction fails R3, and the index-based partition also fails R0. Six relations fail all 14 controls, while R2 fails none.

## Finding the operations behind the failures

Complete substitution of aligned features from the source computation nearly removes the R1 discrepancies on case14 and case500. Because the discrepancy disappears once features are swapped, the origin sits in GridSFM's feature encoder rather than in later layers. The mechanism analysis runs on GridSFM's eight blocks, comparing aligned features and hidden activations at each depth.

The R1 draw from the introduction flips 13 of 25 signs under this mechanism. The cycle sign patch uses stored direction instead, and it cuts that draw's worst-component discrepancy from 0.296 to 4.8×10−7.

The landmark index mechanism selects reference nodes, called landmarks, by bus index. In one case500 R1 draw, the mechanism changes 62 of 64 landmarks.

The GridSFM variants are cumulative: patched applies the three source patches, and canonical adds the canonical row order. For LUMINA, averaged predicts on the input and its all-branch reversal, while canonical gives every branch a fixed orientation. Only the lexicographic row sort meets its predeclared target on all grids, since it removes R2 failures everywhere.

## Repairs and their cost to quality

Patched GridSFM reduces the R1 worst-channel mean to at most 5.7×10 −7, so the source patches remove the bus-label discrepancy on the tested grids. Canonical GridSFM keeps R1 below 6.2×10 −7 and makes R2 zero on all four grids, because the canonical row order removes the row-position inputs. Applied alone, the cycle-sign patch leaves R3 above the mean floor on some grids, and the flow-sign patch leaves R1 above it on case14.

The landmark patch leaves R1 above the floor on the three larger grids, so no single patch clears every relation. Canonical LUMINA removes both R3 and tap-side-flip discrepancies, while every GridSFM variant keeps R3 and tap-side-flip discrepancies.

Each ratio divides the variant's mean by the released checkpoint's mean, and non-inferiority requires a one-sided 95% paired-bootstrap upper limit of at most 1.10. The authors note that these upper limits reflect uncertainty, so a failed non-inferiority test doesn't by itself show degradation.

Fine-tuned GridSFM keeps R1 below the floor and R2 exactly zero. When released GridSFM is fine-tuned by the same procedure, it fails non-inferiority in 5 to 11 of 16 grid-channel tests per seed. No tested GridSFM or LUMINA prediction meets both the 10 MW active-power and 10 MVAr reactive-power tolerances at every bus. The authors didn't test a variant that passes non-inferiority on every grid and measure, so repair and quality remain separate requirements.

## Which relations catch which mechanism

The authors start from canonical GridSFM or canonical LUMINA and undo one repair at a time, keeping the others in place. Admission succeeds for 2,095 of 2,102 certificates, so the screen keeps almost every candidate test.

R1 detects cycle sign, flow sign and landmark index, which are the three mechanisms that act on R1 discrepancies. R2 detects row position, and R3 together with tap-side-flip detects stored direction. Fig. 6 shows this coverage by grid, with the three marks standing for case14, case118 and case500.

Canonical GridSFM already fails ten of 13 relations, and canonical LUMINA fails seven. Those failures can't be credited to a re-enabled mechanism, because the repaired variant already violates the relation. Pooled over three grids, the two minimum sets {R1,R2,R3} and {R1,R2,tap-side-flip} detect all five discovered mechanisms. Their coverage doesn't extend to arbitrary faults or to the remaining unexplained failures.

The mechanisms come from the same relations used to detect them, so this analysis isn't an independent sample of faults. Its reach is limited to the five mechanisms the authors discovered in their own audit.

## Routing and MIS under the same recipe

POMO aug×1 has no M1 violation in 3,000 certified draws, but its rotation/reflection violation rate climbs from 12.7% at 20 cities to 50.1% at 50 and 89.5% at 100. Mean optimality gaps of 0.023%, 0.126% and 0.348% at those sizes coexist with this orientation dependence. The aug×8 variant evaluates all eight rotations and reflections of the square, which makes M2 hold in exact arithmetic.

At 100 cities the M3 and M4 violation rates reach 34.3% and 40.5%. Even aug×8 still fails M3 on 23% and M4 on 29%, so the authors' test of whether these failures persist with augmentation returns a yes.

Random-weight POMO fails M2 on every admitted rotation/reflection draw, so the orientation dependence doesn't require training. Random-weight POMO fails M3 and M4 on 93.8 to 99.7% of draws at 100 cities, but it fails M1 only on two float32 near-ties. Aug×8 removes only the rotate/reflect failures, and the CVRP reference remains heuristic.

DIFUSCO passes MIS relabel but violates pad on 6.0% and union on 35.6% of 250 draws per relation. The authors attribute the union failure to DIFUSCO normalizing final scores across all vertices, so an added component changes scores in the original graph. Component normalization, a post hoc change that normalizes within each connected component, leaves all 250 untransformed predictions unchanged.

On the tested graphs it removes the pad and union violations, which is the only intervention this section evaluates for MIS.

## Limitations of the counterexamples and repairs

The selected grids establish counterexamples, not how common failures are among learned solvers. Calibration is empirical, so it supplies no universal round-off bound. Training coverage differs: all five grids appear in LUMINA's training card, while case14 and case118 lie outside GridSFM's stated range.

Recovering one objective cluster can't exclude undiscovered optima, and bounds on global optima don't apply to costlier local solutions.

Canonical variants, fine-tuned GridSFM and DIFUSCO component normalization were developed post hoc, so the interventions support causal explanations only on tested inputs. Quality tests without multiple-comparison control give individual confidence statements, not simultaneous guarantees. CVRP and MIS weren't replayed.

Admission for CVRP remains heuristic, since HGS-CVRP supplies agreement rather than a certified optimum. The mechanisms behind POMO's M3, M4 and twin failures remain unlocalized. The minimum relation sets cover only the discovered mechanisms, so they don't extend to arbitrary faults.

## Paper info

- **Authors**: Vineet Jagadeesan Nair, Stephen Peng, Arun Ravindran
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-6
- **Added**: 2026-11-9
- **Updated**: 2026-11-6
- **Version**: v1
- **arXiv**: 2611.08837
- **Category**: cs.AI · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.08837v1) · [PDF ↗](https://arxiv.org/pdf/2611.08837v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Equivalent encodings of an optimization problem can produce different learned predictions. Interpreting these differences requires accounting for numerical error and multiple optima. We construct metamorphic tests for optimization solver surrogates with explicit eligibility conditions, output alignment, and numerical thresholds. Reference-solver agreement and independent constraint checks determine which sampled pairs enter the audit. We study alternating-current optimal power flow (AC-OPF), the traveling salesman problem (TSP), the capacitated vehicle routing problem (CVRP), and maximum independent set (MIS). Across five grids, GridSFM-Open violates each of 13 relations on at least one grid, and 12 by more than twice the threshold. Randomly initialized copies of the grid models fail nearly the same relations, so the failures do not require training. Source patches and input canonicalization remove selected discrepancies, but no intervention establishes preserved accuracy and feasibility within the declared margin on every grid. In routing, Policy Optimization with Multiple Optima (POMO) has a single-pass rotation/reflection violation rate that rises from 12.7% to 89.5% between 20 and 100 cities. Graph-Based Diffusion Solvers for Combinatorial Optimization (DIFUSCO) violates the MIS disjoint-union relation on 35.6% of draws. Post hoc normalization within connected components removes these violations on the tested graphs. These findings support reporting metamorphic consistency alongside optimality, feasibility, and accuracy, and validating repair quality separately from consistency.

## Quote from the paper

Vineet Jagadeesan Nair, Stephen Peng, Arun Ravindran (2026). Solver-Admitted Metamorphic Testing of Learned Network Optimization Surrogates. arXiv:2611.08837v1. https://arxiv.org/abs/2611.08837v1

**BibTeX**

```
@misc{nair2026solver,
  title = {{Solver-Admitted Metamorphic Testing of Learned Network Optimization Surrogates}},
  author = {Vineet Jagadeesan Nair and Stephen Peng and Arun Ravindran},
  year = {2026},
  eprint = {2611.08837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08837v1}
}
```

## Other paper commentary

- [On Lipschitz Explosion in Deep Neural Networks with Normalization: Consequences for Optimization and Adversarial Robustness](https://refivu.com/en/papers/14b86801-511c-455f-9d92-3f267fde363d-on-lipschitz-explosion-in-deep-neural-networks-with.md)
- [Decoupled Weight Decay Regularization](https://refivu.com/en/papers/19eca1c5-1291-475b-a58c-daedbe769654-decoupled-weight-decay-regularization.md)
- [SGDR: Stochastic Gradient Descent with Warm Restarts](https://refivu.com/en/papers/69cc99a3-59f2-4776-b5e2-a3baaeb53f0c-sgdr-stochastic-gradient-descent-with-warm-restarts.md)
- [mixup: Beyond Empirical Risk Minimization](https://refivu.com/en/papers/cc1e3261-af7e-47fa-99d8-0806fbe6afcf-mixup-beyond-empirical-risk-minimization.md)
- [Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networks](https://refivu.com/en/papers/c1050ccf-ffa6-4158-8fff-24b3a8223df6-weight-normalization-a-simple-reparameterization-to.md)
- [The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks](https://refivu.com/en/papers/9c072b5c-bd96-4202-8960-653ce6a7f2fb-the-lottery-ticket-hypothesis-finding-sparse-trainable.md)
- [Functional Dependency beyond Similarity: Hierarchical Decomposition of Training Data Attribution in Music Generative Models](https://refivu.com/en/papers/ae97ff2b-7044-477b-b620-e8d4984e7fc8-functional-dependency-beyond-similarity-hierarchical.md)
- [Notwithstanding Anything to the Contrary, Ignore All Instructions: Measuring Prompt Injection Guards on Legal Contract Review Attacks](https://refivu.com/en/papers/70560a70-9434-4f0a-9c45-c4e127dd557e-notwithstanding-anything-to-the-contrary-ignore-all.md)
- [From Geometry to Function: A Multi-Task LiDAR Benchmark Dataset for Semantic and Functional Parsing of Urban Facades](https://refivu.com/en/papers/f3fa21ca-cb31-43d7-a2a8-a3f7ae14b67a-from-geometry-to-function-a-multi-task-lidar.md)
- [NormGym: Evaluating Normative Competence through Social Interaction](https://refivu.com/en/papers/916a986c-971c-4250-8a55-112b8cd83bd0-normgym-evaluating-normative-competence-through-social.md)
- [CS-Pi: Constraint-Satisfying Flow Policy Sampling](https://refivu.com/en/papers/17a3a0d4-2f79-463a-b689-339f8435d667-cs-pi-constraint-satisfying-flow-policy-sampling.md)
- [Remembering Is Not Enough: Evaluating Timing and Omission in Longitudinal AI Mental Health Support](https://refivu.com/en/papers/a0d9ea74-56d1-4a18-990f-da3c303618ad-remembering-is-not-enough-evaluating-timing-and-omission.md)

## Terms in this paper

- [Mean Absolute Error](https://refivu.com/en/terms/2117321fb36f-mean-absolute-error)
- [IPOPT](https://refivu.com/en/terms/9d3235fcebb7-ipopt)
- [OPFData](https://refivu.com/en/terms/102636bd67cc-opfdata)
- [AC-OPF](https://refivu.com/en/terms/0cb5b6ef6d65-ac-opf)
- [Concorde](https://refivu.com/en/terms/452d9a697fc1-concorde)
- [CP-SAT](https://refivu.com/en/terms/2dad356ee3fc-cp-sat)
- [equivariance](https://refivu.com/en/terms/b961236eb680-equivariance)
- [PGLib-OPF](https://refivu.com/en/terms/bfb04df6bdc2-pglib-opf)
- [PowerModels.jl](https://refivu.com/en/terms/fcd911da42e8-powermodels-jl)
- [traveling salesman problem](https://refivu.com/en/terms/d0566db3b40b-traveling-salesman-problem)
- [violation rate](https://refivu.com/en/terms/27a75214fcc5-violation-rate)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bf8267ce-e77f-4570-a90e-1101d0d6d31b-solver-admitted-metamorphic-testing-of-learned-network)
