Manuscript Offprint

arXiv:2610.38985

Benchmarking Graph Neural Networks for AC Power Flow: The Role of Inductive Biases and Physical Constraints

Federico Clerici, Ferran Bohigas-Daranas, Hamid Latif-Martínez, Eduardo Prieto-Araujo, Oriol Gomis-Bellmunt, Pere Barlet-Ros

Abstract

Fast and accurate models for the AC Power Flow (AC-PF) problem are becoming increasingly important as modern energy grids require more frequent status analyses. Graph Neural Networks (GNNs) have emerged as a natural choice due to their ability to directly exploit the topology of electrical grids. However, despite the growing number of proposed architectures, the influence of their architectural design choices on predictive performance remains poorly understood, as existing proposals often rely on different graph representations and evaluation settings.

This paper presents a unified benchmark of representative GNN architectures for AC-PF prediction under a common experimental framework. All models are evaluated using identical data preprocessing, training procedures, and comparable parameter budgets, isolating the impact of different

*This work was supported by the HP2C-DT project (European Union NextGenerationEU/PRTR, TED2021-130351B-C21), the BLOSSOMS project (grant PID2024-158530OB-I00, funded by MICIU/AEI/10.13039/501100011033 and ERDF/EU), and the GRAPHS4SEC project (grant PCI2023-145974-2, funded by MICIU/AEI/10.13039/501100011033). This work was also partially funded by ICREA. **Code and data availability: The code and experimental datasets will be made publicly available upon formal publication of the paper.

message-passing mechanisms and inductive biases. The benchmark is complemented by a diagnostic analysis of the best-performing architectures and a systematic ablation study to quantify the contribution of their principal design components.

Experimental results on the IEEE 14-bus and IEEE 118-bus datasets show that anisotropic message-passing architectures provide the best trade-off between predictive accuracy and physical consistency under the parameter and topology constraints studied. Furthermore, the ablation study reveals that edge features and global context aggregation are key to accurately capturing the physical behavior of the electrical grids, whereas model depth yields an optimal capacity allocation under this budget at 2–3 layers, beyond which additional depth offers no performance gain under parameter constraints. These findings demonstrate that appropriate architectural inductive biases are more influential than model capacity for topologically bottlenecked grids such as IEEE-118, providing practical guidelines for designing graph-based models for power systems applications.

Keywords: Graph Neural Networks, Power Flow, Power Systems

1. Introduction

The transformation of modern energy distribution networks is increasing the volume and frequency of the computations required for their operation. The growing penetration of renewable generation, the electrification of transportation and industry, and the expansion of distributed energy resources require increasingly frequent analyses of the electrical network to guarantee an efficient and secure operation. Among these analyses, the AC Power Flow (AC-PF) represents one of the fundamental blocks, as it determines the steady-state electrical variables from a specific operating condition and serves as the base for higher-level applications such as Optimal Power Flow (OPF). While Direct Current (DC) approximations of this problem rely on straightforward linear systems, the full AC-PF is highly non-linear and requires iterative numerical solvers.

Although numerical techniques can solve the AC-PF with high accuracy, their iterative process arises as a limitation in applications that require a high number of evaluations, as their solving time depends on the size of the grid, posing a computational bottleneck. This has motivated the development of data-driven models capable of approximating solutions at significantly lower cost. In recent years, Graph Neural Networks (GNNs) have gained traction due to their design, which can naturally operate on graph-structured data, allowing the topology of the electrical grid to be directly incorporated into the learning process.

Although GNNs have been widely adopted for this task [1, 2, 3, 4], it remains unclear which architectural choices are most effective and why. Existing studies primarily focus on proposing new architectures or improving the predictive accuracy on specific datasets. However, comparisons are often performed under different graph representations, training settings, parameter budgets, and evaluation settings, making it difficult to isolate the contribution of individual architecture design choices. As a result, there is still limited understanding of how different message-passing mechanisms and inductive biases influence predictive accuracy, physical consistency, and how these models interact with power grids.

The AC-PF calculates the operating point of the network, which represents a direct translation of Ohm's and Kirchhoff's Laws over the grid topology. Since it is the foundation upon which OPF and State Estimation (SE) are built, it provides a controlled environment for evaluating graph learning architectures.

Building on this premise, this paper presents a unified benchmark of representative message-passing GNNs for AC-PF prediction. Rather than proposing yet another architecture, our objective is to systematically evaluate how different message-passing mechanisms and architectural inductive biases affect model performance under a common experimental framework, providing a tool and analysis that help practitioners to better understand the application of GNNs to modern power grid challenges.

To systematically investigate the role of architectural design choices, the proposed benchmark is structured into three complementary phases:

  • Phase 1 – Broad architecture benchmark. A representative set of message-passing GNNs are evaluated under a unified experimental framework using identical topology representations, training protocols, and comparable parameter budgets to ensure a fair comparison across different architectural paradigms.

  • Phase 2 – Architectural diagnostics. The best-performing architectures are further analyzed to investigate how their structural properties relate to predictive accuracy and physical consistency. This phase

complements the quantitative evaluation performed in Phase 1 with analyses that help explain the observed performance.

  • Phase 3 – Ablation study. We systematically dissect the top-performing architecture by isolating and removing key structural components. This quantifies their individual contributions to both predictive accuracy and physical constraint adherence, revealing the most critical design principles.

The main contributions of this work are summarized as follows:

  • We present a controlled benchmark of representative GNN message-passing mechanisms for AC-PF, evaluating them within a common heterogeneous graph representation, aggregation operator, training protocol, and comparable parameter budget.

  • We systematically analyze the architectural properties that most strongly influence prediction accuracy and physical consistency, combining structural error diagnostics and targeted ablation studies to identify the contributions of individual message-passing mechanisms and inductive biases.

  • We derive practical design guidelines for graph-based models in power systems within in-distribution load variations on fixed topologies, identifying the inductive biases that are most effective for capturing the underlying electrical behavior.

Scope and Boundary Conditions. To maintain a sharp focus on model expressivity and physical fidelity, this work operates under two explicit boundaries. First, as computational speedups over classical solvers (e.g., Newton-Raphson) are already well-documented [1, 2, 3], we prioritize diagnosing architectural failure modes, and physical law violations over raw execution speed. Second, we evaluate models on static grid topologies with varying power injections; this controlled baseline isolates architectural inductive biases from the confounding effects of dynamic topological shifts (such as N−1N-1 line contingencies).

The remainder of this paper is organized as follows. Section 2 reviews the related literature. Section 3 presents the proposed methodology. Section 4 describes the datasets and experimental setup. Section 5 presents the experimental results, which are discussed in Section 6. Finally, Section 7 concludes the paper and outlines future research directions.

References (39)