Power Flow Feasibility Assessment Using Variational Graph Autoencoders
Summary
Presents a Variational Graph Autoencoder (VGAE) for detecting power flow solution feasibility in electric power networks, using the IEEE 118-bus case. The method distinguishes between problem infeasibility and algorithm non-convergence.
View Cached Full Text
Cached at: 07/13/26, 07:58 AM
# Power Flow Feasibility Assessment Using Variational Graph Autoencoders ††thanks: The research has been funded by projects Daedalos(Horizon Europe research grant agreement No 101172829), GRAPHS4SEC (grant PCI2023-145974-2 funded by MICIU/AEI/10.13039/501100011033) and BLOSSOMS (grant PID2024-158530OB-I00, by MI-CIU/AEI/10.13039/501100011033/ and ERDF/EU). The work of P.Barlet, O.Gomis-Bellmunt and E.Prieto-Araujo was supported by the Agència de Gestió d’Ajuts Universitaris i de Recerca (AGAUR) through the ICREA Acadèmia programme, and by the Departament de Recerca i Universitats of the Generalitat de Catalunya. E. Prieto-Araujo is a member of the Serra Húnter Programme.
Source: [https://arxiv.org/html/2607.09122](https://arxiv.org/html/2607.09122)
Hamid Latif\-MartinezEduardo Prieto\-AraujoPere Barlet\-RosOriol Gomis\-Bellmunt
###### Abstract
Data\-driven methods, including graph neural networks, have been studied for accelerating power flow calculations in recent years, but very little attention has been paid to the solution feasibility, which can be obtained by traditional solvers\. This paper presents aVariational Graph Autoencoder \(VGAE\)that detects the power flow solution feasibility, using the IEEE 118\-bus case, to assess the validity of the solutions provided by AI\-driven solvers\.
## IIntroduction
Steady\-state analysis of electric power networks relies on the solution of a system of nonlinear algebraic equations known as thePower Flow \(PF\)equations, by using a set of nonlinear equality constraints encoding Kirchhoff’s laws\.
In practice, the PF problem is solved by iterative algorithms, such asNewton–Raphson \(NR\)\[[10](https://arxiv.org/html/2607.09122#bib.bib19)\], whose convergence is not guaranteed, even when mathematical research has been carried out to improve the results\[[7](https://arxiv.org/html/2607.09122#bib.bib21)\], and new methods have been proposed, such as holomorphic embedding \(HELM\)\[[11](https://arxiv.org/html/2607.09122#bib.bib3)\]for power flow calculation\. Power system operators frequently encounter cases in which a solver fails to converge, and the fundamental question arises: does the problem admit no solution \(infeasibility\), or did the algorithm simply fail to find one \(non\-convergence\)?
The terms*feasibility*and*convergence*are frequently confused in the power systems literature, yet they refer to fundamentally distinct mathematical properties\. Feasibility is a property of a*problem*: it concerns the existence of a solution satisfying all governing equations and constraints\. Convergence is a property of an*algorithm*: it concerns whether an iterative procedure finds that solution\.
This distinction carries critical operational consequences\. An infeasible PF indicates that the system has surpassed its voltage stability margin\. Convergence failure, by contrast, may simply require better initialization, rescaling, or a more robust algorithm\. Misdiagnosis leads to either unnecessary load curtailment or, more dangerously, to false confidence in a solution that was never actually found\.
This problem can be still more dangerous when using AI or data\-driven methods, which provide a regression solution that does not consider the feasibility\. Prior work has focused solely on the regression solution\[[2](https://arxiv.org/html/2607.09122#bib.bib27)\]\[[3](https://arxiv.org/html/2607.09122#bib.bib23)\], neglecting problem feasibility; only Li et al\.\[[8](https://arxiv.org/html/2607.09122#bib.bib16)\]have proposed aGraph Attention Network \(GAT\)architecture to predict power flow convergence using supervised learning\.
This paper proposes a fast and reliable method to assess the feasibility of the PF problem by using aVGAEarchitecture based onMessage Passing Neural Networks \(MPNNs\)\.
The remainder of this paper is organized as follows\. Section[II](https://arxiv.org/html/2607.09122#S2)presents the PF problem, its feasibility theory, and the classification of convergence failures\. Section[III](https://arxiv.org/html/2607.09122#S3)details whatGraph Neural Networks \(GNNs\)are and the autoencoder\-related architectures\. Section[IV](https://arxiv.org/html/2607.09122#S4)details our implementation to assess the PF feasibility, while Section[V](https://arxiv.org/html/2607.09122#S5)shows the results obtained on our tests\. Section[VI](https://arxiv.org/html/2607.09122#S6)summarizes the work\.
## IIPower Flow: Feasibility and Convergence
### II\-AProblem Formulation
Let𝒩=\{0,1,…,n\}\\mathcal\{N\}=\\\{0,1,\\ldots,n\\\}denote the set of buses, with bus0designated as the slack bus\. The complex admittance matrix𝐘bus∈ℂ\(n\+1\)×\(n\+1\)\\mathbf\{Y\}\_\{\\text\{bus\}\}\\in\\mathbb\{C\}^\{\(n\+1\)\\times\(n\+1\)\}encodes the network topology and line parameters\. The PF equations express the complex power injection at each busi∈𝒩∖\{0\}i\\in\\mathcal\{N\}\\setminus\\\{0\\\}:
Si=Pi\+jQi=Vi∑k∈𝒩Yik∗Vk∗,S\_\{i\}=P\_\{i\}\+jQ\_\{i\}=V\_\{i\}\\sum\_\{k\\in\\mathcal\{N\}\}Y\_\{ik\}^\{\*\}V\_\{k\}^\{\*\},\(1\)
whereVi=\|Vi\|ejθiV\_\{i\}=\|V\_\{i\}\|e^\{j\\theta\_\{i\}\}is the complex bus voltage\. Separating real and imaginary parts yields the standard polar\-form PF equations:
Pi\\displaystyle P\_\{i\}=\|Vi\|∑k∈𝒩\|Vk\|\(Gikcosθik\+Biksinθik\),\\displaystyle=\|V\_\{i\}\|\\sum\_\{k\\in\\mathcal\{N\}\}\|V\_\{k\}\|\\bigl\(G\_\{ik\}\\cos\\theta\_\{ik\}\+B\_\{ik\}\\sin\\theta\_\{ik\}\\bigr\),\(2\)Qi\\displaystyle Q\_\{i\}=\|Vi\|∑k∈𝒩\|Vk\|\(Giksinθik−Bikcosθik\),\\displaystyle=\|V\_\{i\}\|\\sum\_\{k\\in\\mathcal\{N\}\}\|V\_\{k\}\|\\bigl\(G\_\{ik\}\\sin\\theta\_\{ik\}\-B\_\{ik\}\\cos\\theta\_\{ik\}\\bigr\),\(3\)
whereθik=θi−θk\\theta\_\{ik\}=\\theta\_\{i\}\-\\theta\_\{k\}, andGikG\_\{ik\}\(conductance\),BikB\_\{ik\}\(susceptance\) are the real and imaginary parts ofYikY\_\{ik\}, respectively\. This constitutes a system of2\(n\)2\(n\)real equations in2\(n\)2\(n\)unknowns\(𝜽,\|𝐕\|\)\(\\bm\{\\theta\},\|\\mathbf\{V\}\|\), compactly written as:
𝐟\(𝐱\)=𝟎,𝐱=\[𝜽;\|𝐕\|\]∈ℝ2n\.\\mathbf\{f\}\(\\mathbf\{x\}\)=\\mathbf\{0\},\\quad\\mathbf\{x\}=\\bigl\[\\bm\{\\theta\};\\,\|\\mathbf\{V\}\|\\bigr\]\\in\\mathbb\{R\}^\{2n\}\.\(4\)
### II\-BSaddle\-Node Bifurcation and the Feasibility Boundary
The PF problem \([4](https://arxiv.org/html/2607.09122#S2.E4)\) is*feasible*if there exists at least one𝐱∗∈ℝ2n\\mathbf\{x\}^\{\*\}\\in\\mathbb\{R\}^\{2n\}such that𝐟\(𝐱∗\)=𝟎\\mathbf\{f\}\(\\mathbf\{x\}^\{\*\}\)=\\mathbf\{0\}\. The set of all solutions forms a smooth*solution manifold*in the joint space of injections and voltages\.
For a canonical two\-bus system with a slack bus voltageV1=1\.0V\_\{1\}=1\.0pu, line impedanceZ=R\+jXZ=R\+jX, and loadP\+jQP\+jQ, substituting \([2](https://arxiv.org/html/2607.09122#S2.E2)\)–\([3](https://arxiv.org/html/2607.09122#S2.E3)\) into the Kirchhoff relations and eliminating angles yields a quadratic equation inV22V\_\{2\}^\{2\}:
V24−\[V12−2\(RP\+XQ\)\]V22\+\(R2\+X2\)\(P2\+Q2\)=0V\_\{2\}^\{4\}\-\\bigl\[V\_\{1\}^\{2\}\-2\(RP\+XQ\)\\bigr\]V\_\{2\}^\{2\}\+\(R^\{2\}\+X^\{2\}\)\(P^\{2\}\+Q^\{2\}\)=0\(5\)
The discriminant \(Δ\\Delta\) of \([5](https://arxiv.org/html/2607.09122#S2.E5)\) determines feasibility:
Δ=\[V12−2\(RP\+XQ\)\]2−4\(R2\+X2\)\(P2\+Q2\)\\Delta=\\bigl\[V\_\{1\}^\{2\}\-2\(RP\+XQ\)\\bigr\]^\{2\}\-4\(R^\{2\}\+X^\{2\}\)\(P^\{2\}\+Q^\{2\}\)\(6\)
WhenΔ\>0\\Delta\>0, two real solutions exist: the high\-voltage \(stable\) and low\-voltage \(unstable\) branches\. WhenΔ=0\\Delta=0, the two branches merge at the*nose point*or*saddle\-node bifurcation*\(SNB\) \(Figure[1](https://arxiv.org/html/2607.09122#S2.F1)\)\. Beyond this point, whenΔ<0\\Delta<0, no real solution exists, so the system is infeasible\.
Figure 1:Nose or saddle\-node bifurcation \(SNB\) point
### II\-CNewton–Raphson for Power Flow solution
The most widely used algorithm to solve the PF equations is theNRiterative algorithm\. In practice, NR converges in 3–7 iterations\[[10](https://arxiv.org/html/2607.09122#bib.bib19)\]from a flat start for well\-conditioned systems\. Convergence failure occurs, however, in several practically relevant situations that are*distinct*from infeasibility:
1. 1\.Initialization outside the solution range\.
2. 2\.Near\-singular Jacobian\.
3. 3\.Generator reactive limit switching\.
4. 4\.Erroneous network data\.
Table[I](https://arxiv.org/html/2607.09122#S2.T1)summarizes the four possible combinations and their operational interpretations\.
TABLE I:Feasibility vs\. Convergence in PFDivergence is evidence about the*algorithm*, not the physics\. Only after ruling out data errors, poor initialization, and numerical ill\-conditioning can divergence be attributed to genuine infeasibility, and even then, analytical confirmation via continuation power flow \(CPF\)\[[1](https://arxiv.org/html/2607.09122#bib.bib24)\]or HELM methods, which provide complete certainty about feasibility, is advisable\.
## IIIGraph Neural Network Autoencoders
### III\-AGraphs as a Data Structure
A power network is naturally represented as a graph𝒢=\(𝒱,ℰ,𝐗,𝐄\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\},\\mathbf\{X\},\\mathbf\{E\}\), where𝒱\\mathcal\{V\}is the set ofNNnodes \(buses\),ℰ⊆𝒱×𝒱\\mathcal\{E\}\\subseteq\\mathcal\{V\}\\times\\mathcal\{V\}is the set of edges \(branches\),𝐗∈ℝN×dv\\mathbf\{X\}\\in\\mathbb\{R\}^\{N\\times d\_\{v\}\}is the node feature matrix \(each row𝐱i\\mathbf\{x\}\_\{i\}holds thedvd\_\{v\}features of nodeii\), and𝐄∈ℝ\|ℰ\|×de\\mathbf\{E\}\\in\\mathbb\{R\}^\{\|\\mathcal\{E\}\|\\times d\_\{e\}\}collects theded\_\{e\}edge features\. The topology is encoded by the adjacency matrix𝐀∈\{0,1\}N×N\\mathbf\{A\}\\in\\\{0,1\\\}^\{N\\times N\}, withAij=1A\_\{ij\}=1if\(i,j\)∈ℰ\(i,j\)\\in\\mathcal\{E\}\.
WhileConvolutional Neural Networks \(CNNs\)are designed for Euclidean\-structured data, they cannot operate on irregular structures such as graphs\.GNNs\[[9](https://arxiv.org/html/2607.09122#bib.bib17)\]are capable of operating directly on these data, learning both local and global patterns inherent in the graph topology\.
### III\-BGraph Neural Networks
GNNsare neural architectures designed to operate on graph\-structured data by learning node representations that incorporate both feature and structural information\. In this work, we adopt theMPNNformulation\[[4](https://arxiv.org/html/2607.09122#bib.bib18)\], which represents the most genericGNNframework\.
Given a graph𝒢\\mathcal\{G\}, each nodeiiis initialized with a feature vector𝐡i\(0\)=𝐱i\\mathbf\{h\}\_\{i\}^\{\(0\)\}=\\mathbf\{x\}\_\{i\}\. The model then performsTTiterations of message passing, where node representations are iteratively refined by exchanging information with their neighbours:
𝐦i\(t\)\\displaystyle\\mathbf\{m\}\_\{i\}^\{\(t\)\}=AGG\(\{ψ\(𝐡i\(t−1\),𝐡j\(t−1\),𝐞ij\):j∈𝒩\(i\)\}\),\\displaystyle=\\text\{AGG\}\\\!\\left\(\\left\\\{\\psi\\\!\\left\(\\mathbf\{h\}\_\{i\}^\{\(t\-1\)\},\\,\\mathbf\{h\}\_\{j\}^\{\(t\-1\)\},\\,\\mathbf\{e\}\_\{ij\}\\right\):j\\in\\mathcal\{N\}\(i\)\\right\\\}\\right\),\(7\)𝐡i\(t\)\\displaystyle\\mathbf\{h\}\_\{i\}^\{\(t\)\}=UPDATE\(𝐡i\(t−1\),𝐦i\(t\)\)\.\\displaystyle=\\text\{UPDATE\}\\\!\\left\(\\mathbf\{h\}\_\{i\}^\{\(t\-1\)\},\\,\\mathbf\{m\}\_\{i\}^\{\(t\)\}\\right\)\.\(8\)
AfterTTiterations, the embeddings𝐡i\(T\)\\mathbf\{h\}\_\{i\}^\{\(T\)\}encode information from theTT\-hop neighbourhood of each node, capturing both local attributes and structural context\. Then, these learned representations can be used as inputs to downstream models for any desired task \(such as classification\)\. In this work, we leverage them within an autoencoder framework to learn compact representations of the graph\.
### III\-CGraph Autoencoders for Learning Feasible Network Structures
Autoencoders \(AEs\)learn a compressed latent representation of data and reconstruct the original input from it\. At a high level, anAEconsists of two core components: the encoder, which compresses the input data into a lower\-dimensional representation, and the decoder, which attempts to reconstruct the original input based on this compressed embedding\. The model is trained to reconstruct the compressed representation so that it is as close as possible to the original input\.
Formally, given an input𝐱\\mathbf\{x\}, the encoder produces a latent representation𝐳=fϕ\(𝐱\)\\mathbf\{z\}=f\_\{\\phi\}\(\\mathbf\{x\}\), and the decoder reconstructs the input as𝐱^=gθ\(𝐳\)\\hat\{\\mathbf\{x\}\}=g\_\{\\theta\}\(\\mathbf\{z\}\)\. Training minimizes the reconstruction loss of the form :
ℒ=𝔼𝐱∼pdata\[𝒟\(𝐱,𝐱^\)\],\\mathcal\{L\}=\\mathbb\{E\}\_\{\\mathbf\{x\}\\sim p\_\{\\text\{data\}\}\}\\left\[\\mathcal\{D\}\\left\(\\mathbf\{x\},\\hat\{\\mathbf\{x\}\}\\right\)\\right\],\(9\)where𝒟\\mathcal\{D\}measures the difference between the original input and the reconstructed output\.
The key idea is that, by compressing the input into a latent space, the model is forced to retain only the most important features and patterns present in the input\. As a result, the autoencoder learns to reconstruct inputs that are similar to those seen during training, while struggling to reconstruct inputs that differ from the training distribution\.
This principle can be naturally extended to graph\-structured data by usingGNNs\. In this setting, the input is a graph𝒢=\(𝐀,𝐗\)\\mathcal\{G\}=\(\\mathbf\{A\},\\mathbf\{X\}\), where𝐀\\mathbf\{A\}represents the topology and𝐗\\mathbf\{X\}the node features\. The encoder is implemented as aGNNthat produces node\-level embeddings:
𝐙=fϕ\(𝐀,𝐗\),\\mathbf\{Z\}=f\_\{\\phi\}\(\\mathbf\{A\},\\mathbf\{X\}\),\(10\)where each embedding captures both its local features and the structure of its neighbourhood\. Then, the decoder attempts to reconstruct the original graph from these embeddings\.
In this paper, we apply this principle to learn representations offeasible network configurations\. By training the model exclusively on regular \(i\.e\., physically or operationally valid\) network states, the autoencoder learns to accurately reconstruct input graphs that follow the underlying constraints of the system\. However, when fed a graph representing an anomalous or infeasible network, the model is unable to properly reconstruct it, leading to a significantly higher reconstruction error\.
In this way, we train the model to capture what constitutes a valid network configuration and flag deviations from this learned structure\. In other words, the autoencoder acts as a filter that recognizes whether a given sample resembles the set of feasible networks it has seen in training or not\.
## IVArchitecture Description
Building on the graph autoencoder framework introduced in the previous section, we now describe the specific architecture used to model feasible network configurations\.
Our model follows aVGAEdesign, where the encoder is implemented as aMPNNand the decoder reconstructs node features from the learned latent representations\.
### IV\-AMessage\-Passing Encoder
The encoder is based on theMPNNformulation, where node representations are iteratively refined by exchanging messages with their neighbors\. Starting from the input node features, each node updates its hidden representation overTTmessage\-passing iterations\.
At each iteration, messages are computed along edges using a learnable function that depends on:\(i\)\(i\)the source node representation,\(ii\)\(ii\)the destination node representation, and\(iii\)\(iii\)the edge attributes\.
These messages are then aggregated at each node to produce a summary of its neighbourhood\. To weight neighbor contributions differently, we incorporate an attention mechanism\. Each incoming message is assigned a learnable coefficient, normalized to sum to one using a softmax function\. This enables each node to prioritize the most relevant connections when updating its hidden representation\.
Before updating the node state, a residual connection is added between the previous node representation and the aggregated neighbourhood message\. This allows the model to preserve the current node state while learning only the message\-based correction, which improves optimization stability and facilitates information flow across message\-passing iterations\[[5](https://arxiv.org/html/2607.09122#bib.bib11)\]\.
AfterTTiterations, each node embedding encodes both its local features and the structure of its surrounding neighbourhood\. These representations are then used to parameterize a Gaussian distribution per node, producing a mean𝝁i\\bm\{\\mu\}\_\{i\}and variance𝝈i2\\bm\{\\sigma\}\_\{i\}^\{2\}\. This formulation follows theVGAEframework\[[6](https://arxiv.org/html/2607.09122#bib.bib13)\], where latent variables are sampled from the learned distributions\. To enable backpropagation through the sampling process, the reparameterization trick is applied:
𝐳i=𝝁i\+𝝈i⊙ϵ,ϵ∼𝒩\(0,I\)\\mathbf\{z\}\_\{i\}=\\bm\{\\mu\}\_\{i\}\+\\bm\{\\sigma\}\_\{i\}\\odot\\bm\{\\epsilon\},\\quad\\bm\{\\epsilon\}\\sim\\mathcal\{N\}\(0,I\)\(11\)
### IV\-BDecoder and Reconstruction Objective
The decoder maps each node embedding to a reconstruction of the original node features\. Then, we use the error between the reconstruction and the input to train the model\.
Since the model is trained exclusively on valid network states, it learns to accurately reconstruct feasible configurations\. In this way, when presented with an anomalous configuration, the reconstruction error \([12](https://arxiv.org/html/2607.09122#S4.E12)\) increases significantly, providing a straightforward anomaly score\.
ℒ=ℒrecon\+β⋅DKL\(𝒩\(μi,σi2\)∥𝒩\(𝟎,𝐈\)\)\\mathcal\{L\}=\\mathcal\{L\}\_\{\\text\{recon\}\}\+\\beta\\cdot D\_\{\\mathrm\{KL\}\}\\\!\\left\(\\mathcal\{N\}\(\\mu\_\{i\},\\sigma\_\{i\}^\{2\}\)\\,\\\|\\,\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\)\\right\)\(12\)
## VExperimental Evaluation
### V\-ADataset Generation
The dataset generation is a key element of the pipeline, as it determines what the model considers feasible\. For that reason, it is key to create a dataset that covers different infeasibility causes, including load variations \(since high demand can cause voltage collapse\), topological changes such as line and bus removal, and constraint modifications such as changes to active and reactive power limits\. An insufficiently diverse dataset can lead to trivially simple classifications, such as considering only the amount of power, the only infeasibility cause\.
To train and test our proposedVGAEarchitecture, we have created three data sets, based on the IEEE 118\-bus case, by modifying some network parameters randomly:
- •Stressed Continuous dataset \(SC\): where the load power is randomly modified from 20% to 400% of their nominal value, while 80% of the samples have topology changes \(lines or buses removed\)\.
- •Relaxed Continuous dataset \(RC\): where the load power is modified between 50% to 250%, without topology changes, to force theVGAEto focus only on the load power as criteria\.
- •Stressed Separated dataset \(SS\): where the load power is randomly modified from 20% to 150% and 300% to 400% of their nominal value, clearly separating overload cases, while 80% of the samples have topology changes \(lines or buses removed\)\.
The final test set comprises 1,500 samples, constructed by combining equal proportions from the three aforementioned scenarios, including positive and negative cases, while two training sets have been used, each of them with 500 feasible samples, one for the Stressed Continuous and the other for the Stressed Separated case\.
### V\-BTraining Procedure
The model is trained as aVGAEusing only feasible \(regular\) grid samples\. The objective function combines a reconstruction loss and a regularization term on the latent space\. The reconstruction loss is defined as theMean Squared Error \(MSE\)between the original node features𝐱\\mathbf\{x\}and their reconstruction𝐱^\\hat\{\\mathbf\{x\}\}\.
The model is trained for 50 epochs using the Adam optimizer, the learning rate was initially set to10−310^\{\-3\}, and decayed by a factor of 0\.5 at epoch 30\.
Importantly, the model isnever exposed to anomalous \(non\-feasible\) graphs during training, ensuring that anomaly detection relies purely on reconstruction behavior\.
### V\-CPerformance Before Training
Before training, the model parameters are randomly initialized and do not encode any knowledge about feasible grid configurations\. As a result, the reconstruction error is similar for both feasible and anomalous samples, with no clear separation between the two classes\. Fig\.[2\(a\)](https://arxiv.org/html/2607.09122#S5.F2.sf1)shows the distribution of reconstruction errors prior to training\. Both feasible and non\-feasible configurations exhibit a substantial overlap, with no clear separation, indicating that the reconstruction error does not provide a meaningful signal for anomaly detection at this stage\.
\(a\)Before training\.\(b\)After training\.
Figure 2:Score histogram before and after training
### V\-DReconstruction Behavior Across Classes
The evolution of the reconstruction error for both classes during training is shown in Fig\.[3](https://arxiv.org/html/2607.09122#S5.F3)\. As expected, the reconstruction error for feasible graphs decreases steadily during training, showing that the model is learning to encode and reconstruct regular grid configurations\. The reconstruction error of anomalous configurations also decreases over time, which reflects the way the dataset is constructed: anomalous samples are not arbitrarily generated, but rather remain structurally close to feasible configurations\. Consequently, the model is able to partially generalize and reconstruct some aspects of these graphs, even though without the same precision as with the regular graphs\.
This property is desirable because it better reflects realistic scenarios, where the anomalous grid states may still share many characteristics with valid ones\.
### V\-EDetection Performance
Anomaly detection is performed by thresholding the graph reconstruction error\. Specifically, the threshold is defined as the 99th percentile of the reconstruction error on the validation dataset\. Since the validation dataset only contains feasible configurations, the expected reconstruction error is low and, thus, selecting a high percentile ensures that most regular samples fall below the threshold\. This percentile\-based approach provides an unbiased way to define the decision boundary, reducing the need to fine\-tune the threshold for the specific test scenario\.
TABLE II:Classification namingThe resulting detection performance is illustrated in Fig\.[4](https://arxiv.org/html/2607.09122#S5.F4), which shows the confusion matrix obtained after applying the threshold to the obtained reconstruction scores\. The model correctly classifies most of the cases, with an overall accuracy of 99\.5%, with only 2 false negatives \(see Table[II](https://arxiv.org/html/2607.09122#S5.T2)\) out of 1500 samples\. Table[III](https://arxiv.org/html/2607.09122#S5.T3)details the results, done in each dataset and to the combination of them, after being trained with the Stressed Continuous train dataset, which is the most challenging setting, since multiple independent causes of infeasibility are represented, yielding a more general and robust model\. Training with the Stressed Separated dataset, which introduces a bias toward power\-only infeasibility, leads to significantly degraded generalization, with the model defaulting to predicting infeasibility for most feasible configurations\.
Figure 3:Class differentiation during raining\.To further analyze the obtained results, Fig\.[2\(b\)](https://arxiv.org/html/2607.09122#S5.F2.sf2)shows the distribution of graph reconstruction errors for both classes: regular and anomalous\. Feasible configurations are concentrated in the low\-error region, whereas non\-feasible configurations tend to exhibit higher reconstruction errors\. The decision threshold is indicated by a vertical dashed line, which separates samples classified as regular from those classified as anomalous\.
Figure 4:Combined dataset confusion matrixTABLE III:Detection metrics by test dataset
## VIConclusions
This paper has demonstrated that the use of aVGAE, based on aMPNNarchitecture, is an effective approach for detecting power flow feasibility\. By training the model in an unsupervised manner exclusively on physically valid network states, the proposed framework successfully identifies infeasible configurations as anomalies characterized by high reconstruction errors\.
The experimental results on the IEEE 118\-bus system indicate that this method achieves a detection accuracy of 99\.5%\. Critically, the model demonstrates high reliability for operational safety checks by maintaining a low rate of false negatives, which is the most significant risk in feasibility assessment\. Furthermore, the study highlights the vital role of dataset diversity; it was shown that a model trained only on simple loading variations fails to generalize to complex infeasibility scenarios, whereas our multi\-parametric approach, incorporating topological changes, operational limits, and stressed loading, enables robust learning\.
The main contributions of this paper are:
- •Anunsupervised feasibility classifierbased onVGAEthat assesses network states without requiring labels from traditional iterative solvers\.
- •Amethodology for dataset generationthat captures diverse causes of infeasibility, including topological removals and operational limit violations, preventing the model from relying on trivial heuristics\.
## References
- \[1\]V\. Ajjarapu and C\. Christy\(1992\-02\)The continuation power flow: a tool for steady state voltage stability analysis\.IEEE Transactions on Power Systems7\(1\),pp\. 416–423\.External Links:ISSN 1558\-0679,[Document](https://dx.doi.org/10.1109/59.141737)Cited by:[§II\-C](https://arxiv.org/html/2607.09122#S2.SS3.p4.1)\.
- \[2\]B\. Donon, R\. Clément, B\. Donnot, A\. Marot, I\. Guyon, and M\. Schoenauer\(2020\-12\)Neural networks for power flow: Graph neural solver\.Electric Power Systems Research189,pp\. 106547\.External Links:ISSN 0378\-7796,[Document](https://dx.doi.org/10.1016/j.epsr.2020.106547)Cited by:[§I](https://arxiv.org/html/2607.09122#S1.p5.1)\.
- \[3\]M\. G\. A\. Fatah\(2021\-03\)Integrating power grid topology in graph neural networks for power flow\.\(en\)\.Cited by:[§I](https://arxiv.org/html/2607.09122#S1.p5.1)\.
- \[4\]J\. Gilmer, S\. S\. Schoenholz, P\. F\. Riley, O\. Vinyals, and G\. E\. Dahl\(2017\)Neural message passing for quantum chemistry\.InInternational conference on machine learning,pp\. 1263–1272\.Cited by:[§III\-B](https://arxiv.org/html/2607.09122#S3.SS2.p1.1)\.
- \[5\]K\. He, X\. Zhang, S\. Ren, and J\. Sun\(2016\)Deep residual learning for image recognition\.InProceedings of the IEEE conference on computer vision and pattern recognition,pp\. 770–778\.Cited by:[§IV\-A](https://arxiv.org/html/2607.09122#S4.SS1.p4.1)\.
- \[6\]T\. N\. Kipf and M\. Welling\(2016\)Variational graph auto\-encoders\.arXiv preprint arXiv:1611\.07308\.Cited by:[§IV\-A](https://arxiv.org/html/2607.09122#S4.SS1.p5.3)\.
- \[7\]R\.P\. Klump and T\.J\. Overbye\(2000\-07\)Techniques for improving power flow convergence\.In2000 Power Engineering Society Summer Meeting \(Cat\. No\.00CH37134\),Vol\.1,pp\. 598–603 vol\. 1\.External Links:[Document](https://dx.doi.org/10.1109/PESS.2000.867654)Cited by:[§I](https://arxiv.org/html/2607.09122#S1.p2.1)\.
- \[8\]S\. Li, Z\. Pan, H\. Li, Y\. Xiao, M\. Liu, and X\. Wang\(2024\-02\)Convergence criterion of power flow calculation based on graph neural network\.Journal of Physics: Conference Series2703\(1\),pp\. 012042\(en\)\.External Links:ISSN 1742\-6596,[Document](https://dx.doi.org/10.1088/1742-6596/2703/1/012042)Cited by:[§I](https://arxiv.org/html/2607.09122#S1.p5.1)\.
- \[9\]F\. Scarselli, M\. Gori, A\. C\. Tsoi, M\. Hagenbuchner, and G\. Monfardini\(2008\)The graph neural network model\.IEEE transactions on neural networks20\(1\),pp\. 61–80\.Cited by:[§III\-A](https://arxiv.org/html/2607.09122#S3.SS1.p2.1)\.
- \[10\]William\. F\. Tinney and C\. E\. Hart\(1967\-11\)Power Flow Solution by Newton’s Method\.IEEE Transactions on Power Apparatus and SystemsPAS\-86\(11\),pp\. 1449–1460\.External Links:ISSN 0018\-9510,[Document](https://dx.doi.org/10.1109/TPAS.1967.291823)Cited by:[§I](https://arxiv.org/html/2607.09122#S1.p2.1),[§II\-C](https://arxiv.org/html/2607.09122#S2.SS3.p1.1)\.
- \[11\]A\. Trias\(2012\)The holomorphic embedding load flow method\.InProceedings of the IEEE PES General Meeting,Cited by:[§I](https://arxiv.org/html/2607.09122#S1.p2.1)\.Similar Articles
Scalable Heterogeneous Graph Foundation Models for Data-Driven Optimal Power Flow in Smart Grids
This paper presents a scalable heterogeneous graph neural network workflow for data-driven optimal power flow surrogate modeling, using distributed training on supercomputers and demonstrating improvements via fine-tuning pretrained models.
BattVAE-GP: Generative Modeling of Long-Horizon Battery Degradation with Uncertainty Quantification
This paper presents BattVAE-GP, a hybrid physics-probabilistic framework that combines a Variational Autoencoder with a sparse multitask Gaussian Process to generate and interpolate long-horizon battery degradation trajectories with uncertainty estimates, enabling efficient surrogate modeling for lithium-ion battery health prediction.
Gauge-Invariant, Parameter-Insensitive Regularization for Potential Recovery from Flow on Directed Graphs
This paper identifies that standard ridge regularization in potential recovery from flow on directed graphs collapses and reverses the ordering of the estimate due to gauge dependence. It proposes a gauge-invariant Dirichlet energy penalty that yields a parameter-insensitive solution and demonstrates robust dynamic range preservation on real clickstream data, with implications for preventing oversmoothing in graph neural networks.
@aigclink: Microsoft open-sourced an AI foundation model for power systems: GridSFM, designed to accelerate research on AC optimal power flow in the power industry. GridSFM uses graph neural networks to approximate AC-OPF solving, treating the power grid as a graph, directly predicting near-optimal operating points, and then using them as warm-start initial values for traditional exact solvers to speed up convergence...
Microsoft open-sourced GridSFM, an AI foundation model for power systems. It uses graph neural networks to approximate AC-OPF solving, is topology-agnostic, and can serve as a warm start for exact solvers achieving a 1.45x speedup, while also providing feasibility classification capabilities.
Variational lossy autoencoder
OpenAI researchers present a Variational Lossy Autoencoder (VLAE) that combines VAEs with neural autoregressive models (RNN, MADE, PixelRNN/CNN) to learn controllable global representations, achieving state-of-the-art results on MNIST, OMNIGLOT, and Caltech-101 Silhouettes density estimation tasks.