Benchmarking Graph Neural Networks for AC Power Flow: The Role of Inductive Biases and Physical Constraints
Organizations: Universitat Politècnica de Catalunya · BarcelonaTech (UPC), Barcelona, Spain · Department of Mathematics, University of Padua, Padua, Italy · Centre d’Innovació Tecnològica en Convertidors Estàtics i Accionaments (CITCEA-UPC), Universitat Politècnica de Catalunya · BarcelonaTech (UPC), Barcelona, Spain · Barcelona Neural Networking Center (BNN), Universitat Politècnica de Catalunya · BarcelonaTech (UPC), Barcelona, Spain
Abstract
Fast and accurate models for AC power flow (ACPF) are increasingly important as modern electrical grids require more frequent system analyses. Graph neural networks (GNNs) naturally exploit electrical grid topology, yet the effects of architectural design choices on predictive performance remain poorly understood given differences in graph representations and evaluation settings across studies. We present a unified benchmark of representative GNN architectures for ACPF prediction under a common experimental framework. All models use identical preprocessing and training procedures and comparable parameter budgets, isolating the impact of message-passing mechanisms and inductive biases. We also analyze errors by distance from the slack bus and systematically ablate key design components. We evaluate predictive accuracy and physical consistency on the IEEE 14-bus and IEEE 118-bus systems. Results indicate that anisotropic message-passing architectures offer the most favorable trade-off between predictive accuracy and physical consistency under the studied parameter and topology constraints. Explicit edge features encoding line impedances and global context aggregation are particularly important for representing electrical interactions and system-wide dependencies, especially for voltage-angle predictions on the topologically bottlenecked IEEE-118 grid. Under a budget with approximately fixed parameters, two or three message-passing layers generally provide the best balance between depth and representation width, while additional depth offers no consistent improvement. Ablations also show that standard residual and root connections are not necessarily beneficial in shallow models, and that aggregation operators involve trade-offs between statistical accuracy and physical consistency. These results provide practical guidelines for designing graph-based power system models.
Figures & tables
| Grid | PV:PQ | Diameter | ASPL | ||||
|---|---|---|---|---|---|---|---|
| IEEE-14 | 14 | 20 | 2.86 | 0.44 | 5 | 2.37 | 0.182 |
| IEEE-118 | 118 | 179 | 3.03 | 0.83 | 14 | 6.31 | 0.009 |
| Bus Type | Known Variables | Unknown Variables | Role |
|---|---|---|---|
| PQ bus | , | , | Load bus |
| PV bus | , | , | Generator bus |
| slack bus 1 1 1 For the slack bus, and are calculated after solving the AC-PF , whereas only and are specified a priori. Some formulations do not count and as unknown state variables. | , | , | Reference bus |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Mode | Hidden | Params | |
|---|---|---|---|---|
| GCN | Indep. | 1 | 78 | 100,698 |
| 2 | 60 | 99,780 | ||
| 3 | 51 | 101,031 | ||
| 4 | 45 | 101,160 | ||
| Shared | – | 53 | 98,739 | |
| GAT | Indep. | 1 | 60 | 98,460 |
Graph Neural Networks
Graph Neural Networks learn from graph-structured data by combining information across connected nodes, edges, and larger structures.
See all 735 papers