mlsanityData to 14 Oct 2026

Towards Generalization of Graph Neural Networks for AC Optimal Power Flow

arXiv 2510.06860 ↗First posted 8 Oct 2025cs.LG cs.AIcited by 6

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

  1. 2020Rethinking Attention with Performerscited by 1,601
  2. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
  3. 2016Interaction Networks for Learning about Objects, Relations and Physicscited by 509
  4. 2020From Local Structures to Size Generalization in Graph Neural Networkscited by 124
  5. 2017Topology Adaptive Graph Convolutional Networkscited by 113
  6. 2019Predicting AC Optimal Power Flows: Combining Deep Learning and Lagrangian Dual Methodscited by 94
  7. 2019Learning Optimal Solutions for Extremely Fast AC Optimal Power Flowcited by 77
  8. 2019The Power Grid Library for Benchmarking AC Optimal Power Flow Algorithmscited by 65
  9. 2019Optimal Power Flow Using Graph Neural Networkscited by 63
  10. 2020DeepOPF: A Feasibility-Optimized Deep Neural Network Approach for AC Optimal Power Flow Problemscited by 47
  11. 2019Learning Warm-Start Points for AC Optimal Power Flowcited by 32
  12. 2022Topology-aware Graph Neural Networks for Learning Feasible and Adaptive ac-OPF Solutionscited by 28
15 more
  1. 2024Foundation Models for the Electric Power Gridcited by 28
  2. 2024CANOS: A Fast and Scalable Neural AC-OPF Solver Robust To N-1 Perturbationscited by 27
  3. 2024OPFData: Large-scale datasets for AC optimal power flow with topological perturbationscited by 24
  4. 2021Leveraging power grid topology in machine learning assisted optimal power flowcited by 22
  5. 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 21
  6. 2019Solutions of DC OPF are Never AC Feasiblecited by 16
  7. 2021Spatial Network Decomposition for Fast and Scalable AC-OPF Learningcited by 15
  8. 2022Unsupervised Optimal Power Flow Using Graph Neural Networkscited by 14
  9. 2020High-Fidelity Machine Learning Approximations of Large-Scale Optimal Power Flowcited by 13
  10. 2023Compact Optimization Learning for AC Optimal Power Flowcited by 11
  11. 2023Accelerating Optimal Power Flow with GPUs: SIMD Abstraction of Nonlinear Programs and Condensed-Space Interior-Point Methodscited by 11
  12. 2025PGLearn -- An Open-Source Learning Toolkit for Optimal Power Flowcited by 11
  13. 2025A Principled Framework to Evaluate Quality of AC-OPF Datasets for Machine Learning: Benchmarking a Novel, Scalable Generation Methodcited by 3
  14. 2013The Impact of the Topology on Cascading Failures in Electric Power Gridscited by 2
  15. 2024Physics-Informed Graph Neural Networks for Robust AC-Optimal Power Flowcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.