# Metamorphic testing of learned AC optimal power flow surrogates reveals representation dependence

DevFeed: [Metamorphic testing of learned AC optimal power flow surrogates reveals representation dependence](<https://devfeed.tech/articles/metamorphic-testing-of-learned-ac-optimal-power-flow-surrogates-reveals-representation-dependence-128329.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.13566>)

Author: Stephen Peng, Vineet Jagadeesan Nair

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [audit](<https://devfeed.tech/topics/audit.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [audit](<https://devfeed.tech/tags/audit.md>), [bug](<https://devfeed.tech/tags/bug.md>), [checkpoint](<https://devfeed.tech/tags/checkpoint.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-sy](<https://devfeed.tech/tags/cs-sy.md>), [eess-sy](<https://devfeed.tech/tags/eess-sy.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [flow](<https://devfeed.tech/tags/flow.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [math-oc](<https://devfeed.tech/tags/math-oc.md>), [metamorphic-testing](<https://devfeed.tech/tags/metamorphic-testing.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [power](<https://devfeed.tech/tags/power.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [serialization](<https://devfeed.tech/tags/serialization.md>), [testing](<https://devfeed.tech/tags/testing.md>), [training](<https://devfeed.tech/tags/training.md>), [transformation](<https://devfeed.tech/tags/transformation.md>)

## AI overview

The audit finds representation dependence across all 17 tested AC-OPF surrogate configurations: each violates at least six of 13 metamorphic relations across reporting tolerances. For GridSFM-Open v1.1, source inspection and tensor interventions point to an indexing bug and three noncanonical or numerically unstable preprocessing choices; a repaired checkpoint was not tested. In a separate case500 experiment, augmentation improved some transformed-view error and discrepancy metrics, but effects depended on training protocol, some relations worsened, and all evaluated predictions remained AC infeasible. A GPU/CPU eigensolver mismatch explained most of the raw-Laplacian baseline's large gain. The findings support reporting representation consistency alongside accuracy, feasibility, and cost, but establish neither deployment readiness nor universal invariance.

## Source excerpt

arXiv:2611.13566v1 Announce Type: cross Abstract: Evaluating a learned AC optimal power flow (AC-OPF) surrogate on one grid serialization cannot show whether its accuracy depends on that encoding. We test this dependence with thirteen metamorphic relations, each specifying when a transformation is valid and how to compare its outputs. Our audit covers 17 model and pipeline configurations: two released trained checkpoints and 15 random-weight architecture or mechanism controls. Every configuration violates at least six relations, even at reporting tolerances ten times tighter or looser. For GridSFM-Open v1.1, source inspection and intermediate-tensor interventions point to an indexing bug and three noncanonical or numerically unstable preprocessing choices; a repaired checkpoint remains untested. In a separate case500 training experiment, augmentation lowers transformed-view error in three of four models and median discrepancy and constraint-violation P95 in all four. These benefits depend on the training protocol: some relations worsen, and every evaluated prediction remains AC infeasible. A GPU/CPU eigensolver mismatch accounts for most of the large raw-Laplacian-baseline gain. We recommend reporting representation consistency alongside accuracy, feasibility, and cost. These results establish neither deployment readiness nor universal invariance.