Towards Generalization of Graph Neural Networks for AC Optimal Power Flow
Not on the map. Why?
Abstract (arXiv)
AC Optimal Power Flow (ACOPF) is computationally intensive for large-scale grids, often requiring prohibitive solution times with conventional solvers. Machine learning offers significant speedups, but existing models struggle with scalability and topology flexibility. To address these challenges, we propose a Hybrid Heterogeneous Message Passing Neural Network (HH-MPNN) that integrates a heterogeneous graph neural network (GNN) with a scalable transformer and physics-informed positional encodings. Our architecture explicitly models distinct power system components to capture local features while using global attention for long-range dependencies. Evaluated on diverse benchmarks, including PGLearn and GridFM-DataKit datasets, HH-MPNN achieves less than 1% optimality gap on default topologies across grid sizes from 14 to 2,000 buses. For N-1 contingencies, our approach demonstrates zero-shot N-1 generalization with less than 3% optimality gap on several test cases despite training only on default topologies. We further develop an approach that ensures robust N-1 generalization to high-impact contingencies through targeted augmentation of the training data, showing that exhaustive simulation is unnecessary for topologically flexible models. Finally, size generalization experiments demonstrate that pre-training on small grids significantly improves performance on large-scale systems. Achieving computational speedups of up to 5,000 times compared to interior point solvers, these results advance practical, generalizable machine learning for real-time power system operations.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 27 of its 52 references that are in the map. First posted on arXiv 8 Oct 2025.
Builds on
27 of 52 references.
References · 27
- 2020Rethinking Attention with Performerscited by 1,601
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2016Interaction Networks for Learning about Objects, Relations and Physicscited by 509
- 2020From Local Structures to Size Generalization in Graph Neural Networkscited by 124
- 2017Topology Adaptive Graph Convolutional Networkscited by 113
- 2019Predicting AC Optimal Power Flows: Combining Deep Learning and Lagrangian Dual Methodscited by 94
- 2019Learning Optimal Solutions for Extremely Fast AC Optimal Power Flowcited by 77
- 2019The Power Grid Library for Benchmarking AC Optimal Power Flow Algorithmscited by 65
- 2019Optimal Power Flow Using Graph Neural Networkscited by 63
- 2020DeepOPF: A Feasibility-Optimized Deep Neural Network Approach for AC Optimal Power Flow Problemscited by 47
- 2019Learning Warm-Start Points for AC Optimal Power Flowcited by 32
- 2022Topology-aware Graph Neural Networks for Learning Feasible and Adaptive ac-OPF Solutionscited by 28
15 more
- 2024Foundation Models for the Electric Power Gridcited by 28
- 2024CANOS: A Fast and Scalable Neural AC-OPF Solver Robust To N-1 Perturbationscited by 27
- 2024OPFData: Large-scale datasets for AC optimal power flow with topological perturbationscited by 24
- 2021Leveraging power grid topology in machine learning assisted optimal power flowcited by 22
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 21
- 2019Solutions of DC OPF are Never AC Feasiblecited by 16
- 2021Spatial Network Decomposition for Fast and Scalable AC-OPF Learningcited by 15
- 2022Unsupervised Optimal Power Flow Using Graph Neural Networkscited by 14
- 2020High-Fidelity Machine Learning Approximations of Large-Scale Optimal Power Flowcited by 13
- 2023Compact Optimization Learning for AC Optimal Power Flowcited by 11
- 2023Accelerating Optimal Power Flow with GPUs: SIMD Abstraction of Nonlinear Programs and Condensed-Space Interior-Point Methodscited by 11
- 2025PGLearn -- An Open-Source Learning Toolkit for Optimal Power Flowcited by 11
- 2025A Principled Framework to Evaluate Quality of AC-OPF Datasets for Machine Learning: Benchmarking a Novel, Scalable Generation Methodcited by 3
- 2013The Impact of the Topology on Cascading Failures in Electric Power Gridscited by 2
- 2024Physics-Informed Graph Neural Networks for Robust AC-Optimal Power Flowcited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2026GENCO - A Unified Neural Solver Embedded in a Development Framework for Steady-State Grid Analysiscited by 6
- 2025gridfm-datakit-v1: A Python Library for Scalable and Realistic Power Flow and Optimal Power Flow Data Generationcited by 3
- 2026PowerModelsGAT-AI: Physics-Informed Graph Attention for Multi-System Power Flow with Continual Learningcited by 0
- 2026Learning to Route Electric Trucks Under Operational Uncertaintycited by 0
- 2026Unified Heterogeneous Graph Neural Network solver for Power Flow, Optimal Power Flow and State Estimationcited by 0
- 2026Learning by Examples: Power Grid Steady State Analysis with a Tabular Foundation Modelcited by 0
- 2026Learning by Examples: Power Grid Steady State Analysis with a Tabular Foundation Model14 Oct 2026
- 2026Unified Heterogeneous Graph Neural Network solver for Power Flow, Optimal Power Flow and State Estimation15 Sep 2026
- 2026GENCO - A Unified Neural Solver Embedded in a Development Framework for Steady-State Grid Analysis10 Aug 2026
- 2026Learning to Route Electric Trucks Under Operational Uncertainty29 Apr 2026
- 2026PowerModelsGAT-AI: Physics-Informed Graph Attention for Multi-System Power Flow with Continual Learning24 Feb 2026
- 2025gridfm-datakit-v1: A Python Library for Scalable and Realistic Power Flow and Optimal Power Flow Data Generation16 Dec 2025