Scalable Heterogeneous Graph Foundation Models for Data-Driven Optimal Power Flow in Smart Grids

arXiv cs.LG Papers

Summary

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.

arXiv:2605.23194v1 Announce Type: new Abstract: Fast and reliable optimal power flow (OPF) approximation is essential for reliable smart-grid operation, yet many learning-based surrogates either flatten the native heterogeneous structure of power networks, target a limited set of grid topologies, or lack scalable infrastructure for graph foundation model (GFM) training. This paper presents a scalable heterogeneous graph neural network (GNN) workflow, built on HydraGNN, for data-driven OPF surrogate modeling and OPF-GFM development. The workflow preserves the distinct node and edge types of power grids -- buses, generators, loads, shunts, AC lines, transformers, and device-to-bus couplings -- and supports distributed preprocessing, training, hyperparameter optimization (HPO), and downstream fine-tuning on leadership-class supercomputers. Using three million heterogeneous graph instances spanning ten PGLib-OPF cases, from 14 to 13,659 buses, we conduct DeepHyper-driven HPO on the ORNL Frontier supercomputer. The campaign identifies compact models ($\sim$1.6--1.7M parameters) with the lowest validation losses. Downstream experiments on feasibility classification and N-1 contingency regression show that fine-tuning pretrained OPF GFM improves low-data accuracy, stabilizes training, accelerates convergence, and reduces adaptation cost when partial or head-only fine-tuning is used.
Original Article
View Cached Full Text

Cached at: 05/25/26, 09:02 AM

# Scalable Heterogeneous Graph Foundation Models for Data-Driven Optimal Power Flow in Smart Grids
Source: [https://arxiv.org/html/2605.23194](https://arxiv.org/html/2605.23194)
Massimiliano Lupo Pasini, Yijiang Li, Kibaek Kim, and Teja KurugantiM\. Lupo Pasini and T\. Kuruganti are with the Computational Sciences and Engineering Division, Oak Ridge National Laboratory, 1 Bethel Valley Road, Oak Ridge, TN 37831, USA\.Y\. Li and K\. Kim are with the Mathematics and Computer Science Division, Argonne National Laboratory, 9700 S\. Cass Avenue, Lemont, IL 60439\.Manuscript received Month XX, 2026; revised Month XX, 2026\.This manuscript has been authored in part by UT\-Battelle, LLC, under contract DE\-AC05\-00OR22725 with the US Department of Energy \(DOE\)\. The US government retains and the publisher, by accepting the article for publication, acknowledges that the US government retains a nonexclusive, paid\-up, irrevocable, worldwide license to publish or reproduce the published form of this manuscript, or allow others to do so, for US government purposes\. DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan \(http://energy\.gov/downloads/doe\-public\-access\-plan\)\. This research used resources of the Oak Ridge Leadership Computing Facility at Oak Ridge National Laboratory, which is supported by the Office of Science of the U\.S\. Department of Energy under Contract No\. DE\-AC05\-00OR22725\.

###### Abstract

Fast and reliable optimal power flow \(OPF\) approximation is essential for reliable smart\-grid operation, yet many learning\-based surrogates either flatten the native heterogeneous structure of power networks, target a limited set of grid topologies, or lack scalable infrastructure forgraph foundation modelstraining\. This paper presents a scalable heterogeneous graph neural network \(GNN\) workflow, built on HydraGNN, for data\-driven OPF surrogate modeling and OPF\-GFM development\. The workflow preserves the distinct node and edge types of power grids—buses, generators, loads, shunts, AC lines, transformers, and device\-to\-bus couplings—and supports distributed preprocessing, training, hyperparameter optimization \(HPO\), and downstream fine\-tuning on leadership\-class supercomputers\. Using three million heterogeneous graph instances spanning ten PGLib\-OPF cases, from 14 to 13,659 buses, we conduct DeepHyper\-driven HPO on the ORNL Frontier supercomputer\. The campaign identifies compact models \(∼\\sim1\.6–1\.7M parameters\) with the lowest validation losses\. Downstream experiments on feasibility classification andN−1N\{\-\}1contingency regression show that fine\-tuning pretrained OPFGFMsimproves low\-data accuracy, stabilizes training, accelerates convergence, and reduces adaptation cost when partial or head\-only fine\-tuning is used\.

## IIntroduction

Optimal power flow \(OPF\) is a fundamental computational primitive for power\-grid operation, planning, and decision support\[[3](https://arxiv.org/html/2605.23194#bib.bib28),[7](https://arxiv.org/html/2605.23194#bib.bib29)\]\. Given a grid topology, component parameters, generator capabilities, and load demands, the alternating current OPF \(AC\-OPF\) problem seeks a feasible operating point that minimizes generation cost while satisfying voltage, current, power\-flow, and equipment constraints\. The solution contains bus voltage magnitudes and voltage angles, from which additional electrical quantities such as branch flows, currents, and losses can be derived\.

Modern smart grids increasingly involve heterogeneous devices, frequent changes in operating conditions, distributed and controllable resources, topology variations, and the need for fast decision support\. These trends motivate learning\-based OPF surrogates that can approximate OPF solutions with low latency\. Prior work has explored imitation\-learning graph neural networks \(GNNs\) for OPF approximation\[[20](https://arxiv.org/html/2605.23194#bib.bib2)\], topology\-aware GNNs for feasible and adaptive AC\-OPF prediction\[[15](https://arxiv.org/html/2605.23194#bib.bib3)\], neural architectures derived from iterative AC\-OPF algorithms\[[9](https://arxiv.org/html/2605.23194#bib.bib4)\], GNN\-assisted solver initialization\[[5](https://arxiv.org/html/2605.23194#bib.bib5)\], and physics\-informed neural approaches that embed AC\-OPF constraints into training\[[6](https://arxiv.org/html/2605.23194#bib.bib6)\]\. Recent studies have further introduced heterogeneous graph representations and attention mechanisms for AC\-OPF\[[8](https://arxiv.org/html/2605.23194#bib.bib7),[21](https://arxiv.org/html/2605.23194#bib.bib8),[23](https://arxiv.org/html/2605.23194#bib.bib9)\], while LUMINA and LUMINA\-Bench have advanced foundation\-model\-style AC\-OPF learning through topology transfer, feasibility\-aware objectives, standardized benchmarks, zero\-shot generalization, and fine\-tuning protocols\[[14](https://arxiv.org/html/2605.23194#bib.bib32),[12](https://arxiv.org/html/2605.23194#bib.bib34),[18](https://arxiv.org/html/2605.23194#bib.bib33)\]\.

These efforts show the promise of graph\-based OPF learning, but they leave open a complementary systems question: how to scale heterogeneous OPF GFM training, architecture selection, and downstream adaptation to the full diversity and volume of available OPF data on leadership\-class computing platforms\. Existing benchmark\-oriented studies provide controlled comparisons across architectures, losses, transfer settings, and feasibility metrics, but full\-corpus distributed preprocessing, large\-scale multi\-architecture HPO, and downstream fine\-tuning introduce additional challenges in memory footprint, communication cost, data loading, and training stability\.

This paper addresses that systems\-scale gap by developing a scalable heterogeneous GNN workflow in HydraGNN111https://github\.com/ORNL/HydraGNN\[[17](https://arxiv.org/html/2605.23194#bib.bib1)\]for OPF surrogate modeling andGFMtraining\. The central objective is to build an OPFGFM: a single heterogeneous GNN pretrained on a broad distribution of grid topologies, demand profiles, generation mixes, and operating conditions, whose learned representations transfer across grid families and sizes and can be fine\-tuned to downstream OPF tasks with fewer labeled solutions than training topology\-specific surrogates from scratch\.

The main contributions of this paper are as follows:

- •We extend HydraGNN with scalable heterogeneous graph learning support for OPF, including node\-type\-specific input embeddings, relation\-specific message passing, variable edge\-attribute dimensions, heterogeneous pooling, graph\-attribute conditioning, and node\-type\-specific prediction heads\.
- •We construct a distributed preprocessing and HDF5 data pipeline for the full ten\-case OPF corpus, comprising approximately three million heterogeneous graph instances spanning grids from 14 to 13,659 buses\.
- •We perform Frontier\-scale HPO with DeepHyper across six heterogeneous GNN architectures on the full multi\-case dataset, yielding 153 valid trials and identifying HeteroSAGE and HeteroHEAT as the most accurate and compact architectures\.
- •We develop and evaluate a pretraining and fine\-tuning protocol for OPFGFMs, demonstrating downstream adaptation to OPF feasibility classification andN−1N\{\-\}1contingency regression\.

Table[I](https://arxiv.org/html/2605.23194#S1.T1)summarizes how the proposed workflow differs from typical prior GNN\-based OPF surrogate modeling approaches\.

TABLE I:Positioning of the proposed HydraGNN\-based OPF workflow relative to prior GNN\-based OPF surrogates and recent OPF graph foundation\-model efforts\.
## IIRelated Work on Learning\-Based AC\-OPF Surrogates

### II\-AGNN\-Based AC\-OPF Surrogates

GNNs are a natural model class for OPF because power\-system topology directly determines the coupling among buses, generators, loads, and branches\. Early GNN\-based OPF work formulated OPF approximation as an imitation\-learning problem over graph\-structured grid data\[[20](https://arxiv.org/html/2605.23194#bib.bib2)\]\. Subsequent topology\-aware approaches exploited structural locality in AC\-OPF quantities to improve feasibility and adaptation under topology changes\[[15](https://arxiv.org/html/2605.23194#bib.bib3)\]\. In this context, an OPF prediction is considered feasible if the predicted grid state satisfies voltage, angle, generator, thermal\-flow, and power\-balance constraints for the given topology and operating condition, within prescribed engineering tolerances\. Other approaches have used graph\-based neural models to emulate or accelerate iterative solver behavior, including directed\-acyclic neural architectures derived from Newton\-Raphson\-style AC\-OPF solution maps\[[9](https://arxiv.org/html/2605.23194#bib.bib4)\]and GNN\-based initial estimates designed to improve interior\-point solver convergence\[[5](https://arxiv.org/html/2605.23194#bib.bib5)\]\. These studies establish GNNs as effective OPF surrogates, but many are centered on a specific architecture, training regime, or fixed set of grid cases\.

### II\-BFeasibility\-Aware and Physics\-Informed OPF Learning

A central challenge in learning OPF surrogates is that low prediction error does not automatically imply physical feasibility\. Physics\-informed neural OPF formulations therefore incorporate AC power\-flow equations, feasibility penalties, or constraint residuals into the training process\[[6](https://arxiv.org/html/2605.23194#bib.bib6)\]\. Related feasibility\-aware GNN approaches penalize voltage, line\-flow, or power\-balance violations during training and evaluate models not only by prediction error but also by constraint satisfaction\[[8](https://arxiv.org/html/2605.23194#bib.bib7)\]\. Lagrangian and augmented\-Lagrangian losses have also been used to balance accuracy and feasibility by adaptively weighting constraint violations\.

### II\-CHeterogeneous Graph Representations for Power Systems

Power systems contain multiple physical component types, including buses, generators, loads, shunts, lines, transformers, and device\-to\-bus couplings\. Homogeneous graph representations can obscure these distinctions by treating all nodes and edges uniformly\. Recent OPF\-GNN studies have therefore begun to use heterogeneous graph representations that explicitly encode component and relation types\. OPF\-HGNN proposes a heterogeneous GNN formulation with differentiable grid\-constraint penalties for AC\-OPF generalization\[[8](https://arxiv.org/html/2605.23194#bib.bib7)\]\. Other studies investigate attention\-based heterogeneous graph mechanisms for AC\-OPF\[[21](https://arxiv.org/html/2605.23194#bib.bib8)\]and local/global heterogeneous message passing for AC\-OPF solutions\[[23](https://arxiv.org/html/2605.23194#bib.bib9)\]\. More broadly, heterogeneous OPF models build on established message\-passing and graph\-transformer layers, including GraphSAGE\[[10](https://arxiv.org/html/2605.23194#bib.bib14)\], graph attention\[[22](https://arxiv.org/html/2605.23194#bib.bib15)\], GATv2\[[2](https://arxiv.org/html/2605.23194#bib.bib17)\], principal neighborhood aggregation\[[4](https://arxiv.org/html/2605.23194#bib.bib19)\], heterogeneous graph transformers\[[11](https://arxiv.org/html/2605.23194#bib.bib18)\], and heterogeneous edge\-enhanced attention\[[19](https://arxiv.org/html/2605.23194#bib.bib20)\]\.

### II\-DGrid Foundation Models, LUMINA, and Scalable Model Selection

Recent work has begun to move from topology\-specific OPF surrogates toward grid foundation models that learn reusable representations across multiple power\-system configurations\. LUMINA formulates AC\-OPF surrogate learning as aGFMfor constrained scientific systems, emphasizing topology transfer, feasibility\-aware learning, and reliability under distribution shift\[[14](https://arxiv.org/html/2605.23194#bib.bib32)\]\. It studies homogeneous and heterogeneous GNN architectures, supervised and constraint\-aware objectives, zero\-shot transfer, fine\-tuning, and hard\-regime behavior across AC\-OPF cases\. LUMINA\-Bench further formalizes benchmarking protocols for single\-topology training, multi\-topology pretraining, held\-out topology generalization, and transfer/adaptation, with unified metrics for prediction error and constraint violation\[[12](https://arxiv.org/html/2605.23194#bib.bib34)\]\. Related LUMINA work also studies systematic generalization across coupled grid\-optimization problems, including unit commitment \(UC\), security\-constrained unit commitment \(SCUC\), AC\-OPF, and unit\-commitment AC optimal power flow \(UC\-ACOPF\), where discrete commitment decisions and nonlinear AC power\-flow feasibility must be satisfied jointly\[[18](https://arxiv.org/html/2605.23194#bib.bib33)\]\.

## IIIHeterogeneous Graph Learning for Optimal Power Flow

### III\-AHeterogeneous Graph Representation of Power Grids

#### III\-A1Node Types and Node Features

Each OPF instance is represented as a heterogeneous graph

𝒢=\(𝒱,ℰ\),\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}\),\(1\)where the node set is decomposed into four typed subsets:

𝒱=𝒱bus∪𝒱gen∪𝒱load∪𝒱shunt\.\\mathcal\{V\}=\\mathcal\{V\}\_\{\\mathrm\{bus\}\}\\cup\\mathcal\{V\}\_\{\\mathrm\{gen\}\}\\cup\\mathcal\{V\}\_\{\\mathrm\{load\}\}\\cup\\mathcal\{V\}\_\{\\mathrm\{shunt\}\}\.\(2\)
Table[II](https://arxiv.org/html/2605.23194#S3.T2)summarizes the node types and their input\-feature dimensions\. The bus node is the target node type for the primary supervised task, while generators, loads, and shunts participate in message passing to inform bus\-level predictions\.

TABLE II:Node types and input\-feature dimensions in the heterogeneous OPF graph\.Bus features encode electrical state constraints and bus metadata, such as voltage limits, base voltage, and bus type\. Generator features encode capacity limits, active and reactive power information, cost coefficients, current dispatch setpoints, and operating status\. Load features encode active and reactive demand\. Shunt features encode conductance and susceptance\.

#### III\-A2Edge Types and Edge Features

The edge setℰ\\mathcal\{E\}is the union of both physical electrical edges and structural equipment\-to\-bus links:

ℰ=ℰac∪ℰtr∪ℰgen∪ℰload∪ℰshunt\.\\mathcal\{E\}=\\mathcal\{E\}\_\{\\mathrm\{ac\}\}\\cup\\mathcal\{E\}\_\{\\mathrm\{tr\}\}\\cup\\mathcal\{E\}\_\{\\mathrm\{gen\}\}\\cup\\mathcal\{E\}\_\{\\mathrm\{load\}\}\\cup\\mathcal\{E\}\_\{\\mathrm\{shunt\}\}\.\(3\)
Each edge relation is represented as a triplet consisting of source node type, edge type, and target node type\. Table[III](https://arxiv.org/html/2605.23194#S3.T3)lists the relations used in the heterogeneous OPF graph\.

TABLE III:Typed edge relations in the heterogeneous OPF graph\.Only the two physical edge types carry continuous edge attributes, as summarized in Table[IV](https://arxiv.org/html/2605.23194#S3.T4)\. The structural links carry no continuous features but are included in both directions to enable bidirectional information flow between buses and attached equipment\.

TABLE IV:Edge\-attribute dimensions in the heterogeneous OPF graph\.AC\-line features describe electrical characteristics of a transmission line under a pi\-equivalent model, including minimum and maximum angle difference, series resistance, series reactance, shunt susceptance terms, and thermal ratings\. Transformer features include angle limits, series resistance, leakage reactance, off\-nominal turns ratio, thermal ratings, tap setting, and phase shift\. This distinction motivates heterogeneous architectures that can process relation\-specific edge attributes with different dimensionalities\.

## IVFully Supervised OPF Learning Task

### IV\-AOPF Surrogate Learning as a Smart\-Grid Data\-Analytics Task

In smart\-grid applications, OPF surrogates are useful when many operating scenarios, topology perturbations, or control decisions must be evaluated quickly\. Examples include real\-time screening, contingency analysis, approximate dispatch, solver warm\-starting, and rapid evaluation of operating\-condition changes\. In this paper, the learned model approximates the OPF solution map

f⋆:𝒳→𝒴,f\_\{\\star\}:\\mathcal\{X\}\\rightarrow\\mathcal\{Y\},\(4\)where𝒳\\mathcal\{X\}denotes grid topology, component parameters, and operating context, and𝒴\\mathcal\{Y\}denotes OPF solution quantities\. The primary task considered in this paper is bus\-level prediction of voltage angles and voltage magnitudes\.

### IV\-BInput Features

The model input for one OPF sample is a heterogeneous graph

𝒢=\(\{𝐗τ\}τ∈𝒯v,\{𝐄r,𝐀r\}r∈𝒯e,𝐠\),\\mathcal\{G\}=\\left\(\\\{\\mathbf\{X\}^\{\\tau\}\\\}\_\{\\tau\\in\\mathcal\{T\}\_\{v\}\},\\\{\\mathbf\{E\}^\{r\},\\mathbf\{A\}^\{r\}\\\}\_\{r\\in\\mathcal\{T\}\_\{e\}\},\\mathbf\{g\}\\right\),\(5\)where𝐗τ\\mathbf\{X\}^\{\\tau\}is the node\-feature matrix for node typeτ\\tau,𝐄r\\mathbf\{E\}^\{r\}is the edge\-index tensor for relationrr,𝐀r\\mathbf\{A\}^\{r\}is the edge\-attribute matrix when available, and𝐠\\mathbf\{g\}denotes optional graph\-level context features\.

The input features include bus, generator, load, and shunt node features, AC\-line and transformer edge attributes, and structural edge connectivity\. For the primary bus\-level prediction task, all node and edge types participate in message passing, but the decoder is applied only to bus\-node embeddings\.

### IV\-COutput Targets

The supervised target at each busi∈𝒱busi\\in\\mathcal\{V\}\_\{\\mathrm\{bus\}\}is the two\-vector𝐲i=\[Va,i,Vm,i\]⊤\\mathbf\{y\}\_\{i\}=\[V\_\{a,i\},\\,V\_\{m,i\}\]^\{\\top\}of voltage angle \(rad\) and magnitude \(p\.u\.\), and the model outputs the corresponding prediction𝐲^i=fΘ​\(𝒢\)i\\widehat\{\\mathbf\{y\}\}\_\{i\}=f\_\{\\Theta\}\(\\mathcal\{G\}\)\_\{i\}\. The training objective is minimizing the bus\-level mean squared error:

ℒsup=1\|𝒱bus\|​∑i∈𝒱bus‖𝐲^i−𝐲i‖22\.\\mathcal\{L\}\_\{\\mathrm\{sup\}\}=\\frac\{1\}\{\|\\mathcal\{V\}\_\{\\mathrm\{bus\}\}\|\}\\sum\_\{i\\in\\mathcal\{V\}\_\{\\mathrm\{bus\}\}\}\\left\\\|\\widehat\{\\mathbf\{y\}\}\_\{i\}\-\\mathbf\{y\}\_\{i\}\\right\\\|\_\{2\}^\{2\}\.\(6\)
All HPO trials in this work are trained with the purely data\-driven supervised lossℒsup\\mathcal\{L\}\_\{\\mathrm\{sup\}\}defined above\.

## VOpen\-Source OPF Dataset

The dataset used in this work is the open\-source PyTorch Geometric OPFDataset\[[16](https://arxiv.org/html/2605.23194#bib.bib23)\], which provides heterogeneous graph instances of solved AC\-OPF problems derived from PGLib\-OPF benchmark cases\[[1](https://arxiv.org/html/2605.23194#bib.bib11)\]\. Each sample contains grid topology, component features, operating context, and OPF solution labels\. The full dataset used for model selection contains ten PGLib\-OPF cases spanning more than three orders of magnitude in grid size, from 14 to 13,659 buses: case14, case30, case57, and case118 \(IEEE\); case500, case2000, and case10000 \(GOC\); case4661 \(SDET\); case6470 \(RTE\); and case13659 \(PEGASE\)\. Each case contributes 300,000 independently drawn AC\-OPF solutions, yielding a corpus of 3,000,000 heterogeneous graph instances in total\. Using multiple cases is essential for theGFMobjective: a model trained only on a single topology can learn topology\-specific correlations, whereas training over many cases requires the model to learn reusable representations of grid structure, operating context, and component interactions\.

## VIScalable Data Preprocessing and HDF5 Conversion

The raw OPF data is converted into a format suitable for distributed training by selecting cases and splits, loading raw samples, constructing typed heterogeneous graph objects with node features, edge attributes, and bus\-level OPF targets, attaching graph\-level context, validating feature dimensions, and serializing the processed graphs into HDF5 shards\.

The full OPF corpus contains approximately three million heterogeneous graph instances\. Directly loading raw JSON files during every training run would impose significant I/O and preprocessing overhead\. We therefore separate preprocessing from model training\. Raw OPF samples are converted into typed heterogeneous graph objects and serialized into HydraGNN’s HDF5 format\. The full dataset is stored using 129 HDF5 shards, enabling scalable data access during distributed training and HPO\. HDF5 conversion is essential for scalable HPO because each trial reuses the same processed dataset, avoiding repeated raw\-data parsing, reducing filesystem pressure, and ensuring that all architecture comparisons use identical data\.

## VIIHydraGNN Framework for Scalable Heterogeneous OPF Learning

### VII\-AExtension from Homogeneous to Heterogeneous Graphs

HydraGNN provides scalable graph\-learning infrastructure, including distributed training, configurable architectures, multi\-head prediction, and high\-performance data handling\. The heterogeneous OPF branch extends HydraGNN from homogeneous graphs to heterogeneous graphs while preserving compatibility with existing homogeneous models\.

The central abstraction is HeteroBase, which provides common infrastructure for all heterogeneous architectures\. HeteroBase maintains separate input projectors for each node type, constructs relation\-specific message\-passing layers, supports variable edge\-attribute dimensions, and decodes outputs on selected target node types\.

### VII\-BUnique Features of HeteroBase

The heterogeneous extension introduces several capabilities important for OPF learning:

- •Per\-node\-type input embeddings:separate linear projectors map bus, generator, load, and shunt features into a shared hidden space\.
- •Per\-edge\-type message passing:relation\-specific convolution operators preserve the semantics of AC lines, transformers, and structural equipment links\.
- •Variable edge\-attribute dimensions:physical edge types may carry different feature widths, e\.g\., nine for AC lines and eleven for transformers\.
- •Featureless structural edges:equipment\-to\-bus links can participate in message passing without continuous edge attributes\.
- •Node\-type\-specific prediction:all node types contribute to message passing, but the primary decoder is applied only to bus nodes\.
- •Graph\-level conditioning:optional global context features can be injected through FiLM, node\-level concatenation, or pooled fusion\.
- •Multi\-head decoding:the framework supports future multi\-task OPF learning with graph\-level and node\-level outputs\.
- •Distributed\-training compatibility:eager metadata\-based initialization ensures parameters are registered before distributed data parallel wrapping\.

### VII\-CSupported Heterogeneous Architectures

The workflow supports a family of heterogeneous architectures summarized in Table[V](https://arxiv.org/html/2605.23194#S7.T5)\. This design treats the architecture as an experimental variable rather than a fixed modeling assumption\.

TABLE V:Heterogeneous architectures supported by the HydraGNN OPF workflow\.HeteroSAGE builds on GraphSAGE mean aggregation\[[10](https://arxiv.org/html/2605.23194#bib.bib14)\]\. HeteroGAT and HeteroRGAT build on graph\-attention operators, using GATv2\-style dynamic attention for HeteroGAT\[[2](https://arxiv.org/html/2605.23194#bib.bib17)\]and the original GAT\-style attention mechanism for HeteroRGAT\[[22](https://arxiv.org/html/2605.23194#bib.bib15)\]\. HeteroHGT uses the heterogeneous graph transformer operator, which introduces type\-specific key, query, and value projections and relation\-aware attention\[[11](https://arxiv.org/html/2605.23194#bib.bib18)\]\. HeteroHEAT uses the heterogeneous edge\-enhanced graph attention operator, which combines node\-type information, edge\-type embeddings, and continuous edge attributes\[[19](https://arxiv.org/html/2605.23194#bib.bib20)\]\. HeteroPNA extends principal neighborhood aggregation\[[4](https://arxiv.org/html/2605.23194#bib.bib19)\]to heterogeneous bipartite relations through a wrapper that adapts PNAConv to source\-target type pairs\. In all cases, the HydraGNN contribution is not the invention of these base layers, but their integration into a common distributed heterogeneous OPF workflow with type\-specific encoders, relation\-specific message passing, scalable data loading, HPO, and downstream fine\-tuning support\.

### VII\-DLayer Provenance and HydraGNN New Contributions

The heterogeneous OPF models combine established graph\-learning layers with new HydraGNN infrastructure\. The base message\-passing primitives are drawn from the literature: GraphSAGE for inductive neighborhood aggregation, GAT and GATv2 for attention\-based message passing, PNA for multi\-aggregator degree\-scaled message passing, HGT for type\-aware graph\-transformer attention, and HEAT for edge\-attribute\-aware heterogeneous attention\. In addition to the features mentioned in section[VII\-A](https://arxiv.org/html/2605.23194#S7.SS1), HydraGNN provides node\-type\-specific feature projections, relation\-specific layer construction, support for variable edge\-attribute dimensions, bus\-level target decoding, OPF\-domain regularization, HDF5\-based distributed data loading, and Frontier\-scale HPO across all candidate architectures\.

## VIIIScalable Hyperparameter Optimization

### VIII\-ADeepHyper\-Based HPO

To identify architectures and hyperparameters suitable for full\-dataset OPF surrogate modeling, we performed HPO using DeepHyper Centralized Bayesian Optimization with an Upper Confidence Bound acquisition function\. The search space is summarized in Table[VI](https://arxiv.org/html/2605.23194#S8.T6)\.

TABLE VI:Hyperparameter search space for full\-dataset HPO\.We launched six architecture\-specific HPO runs, one per GNN architecture \(HeteroSAGE, HeteroHEAT, HeteroHGT, HeteroPNA, HeteroRGAT, and HeteroGAT\)\. Fixing the architecture within each HPO run allows the optimizer to search the continuous and integer hyperparameters under the same compute budget and data distribution\.

### VIII\-BFrontier Execution Strategy

The full\-dataset HPO campaign was executed on the ORNL Frontier supercomputer\. Each architecture\-specific HPO run used 512 Frontier nodes, corresponding to 4,096 AMD MI250X GPUs\. Each trial used 32 nodes, or 256 GPUs, enabling 16 concurrent trials per HPO run per GNN architecture\. Each trial trained for 10 epochs with batch size 32 and a 6\-hour wall\-time limit per HPO run\.

The minimum validation loss across completed epochs was used as the HPO objective rather than the final\-epoch loss\. This is important because some architectures exhibit oscillatory training or early overfitting, and the best validation loss provides a more robust measure of trial quality\.

### VIII\-CFault Tolerance and Result Reuse

At this scale, individual configurations can fail from out\-of\-memory errors, communication instability, or model\-specific limitations\. The HPO framework isolates trial\-level failures so that one failed trial does not interrupt the campaign; if a trial is terminated early, the best validation loss from its completed epochs is recovered when available\. Results are saved in a CSV file and can warm\-start follow\-up searches\. Completion rates vary widely across architectures, from 50% for HeteroSAGE and HeteroHEAT to≈\\approx75% for HeteroRGAT,≈\\approx21% for HeteroHGT, and under 2% for HeteroPNA; valid\-trial counts appear on the x\-axis of Figure[1](https://arxiv.org/html/2605.23194#S9.F1)\.

## IXResults: Architecture Evaluation, OPF GFM Pre\-Training and Fine\-Tuning Protocols

### IX\-AFull\-Dataset HPO Results

The full HPO campaign dispatched 387 trials across six architectures and produced 153 valid trials \(DONE status with a recorded objective\)\. Figure[1](https://arxiv.org/html/2605.23194#S9.F1)visualizes the trial\-level distributions per architecture, with valid/dispatched counts on the x\-axis and the best trial marked\. All results use the full ten\-case dataset rather than single\-case screening\.

### IX\-BArchitecture Ranking and Interpretation

Figure[1](https://arxiv.org/html/2605.23194#S9.F1)shows the per\-trial validation\-loss distributions as box plots with overlaid points and starred best trials, capturing both peak performance and typical behavior across the search space\. Figure[2](https://arxiv.org/html/2605.23194#S9.F2)complements this view by plotting validation loss against trainable parameter count: HeteroSAGE \(∼\\sim1\.6M params\) and HeteroHEAT \(∼\\sim1\.7M\) reach the lowest losses at substantially smaller model sizes than HeteroRGAT \(∼\\sim3\.5M\), HeteroHGT \(∼\\sim3\.2M\), and HeteroGAT \(∼\\sim3\.2M\), none of which match the top tier even at much larger budgets\.Crucially, the HPO results reveal no evident correlation between model accuracy and model size: larger parameter counts do not systematically yield lower validation losses, and the best\-performing architectures are among the most compact\.

Leading architectures: HeteroSAGE and HeteroHEAT\.HeteroSAGE and HeteroHEAT achieve essentially identical best validation losses, suggesting both have reached a similar accuracy ceiling within the 10\-epoch HPO budget\. Both also have the lowest median validation losses, with only a small gap between them \(Figure[1](https://arxiv.org/html/2605.23194#S9.F1)\), confirming that their superiority is not a single\-trial artifact\.

Sensitivity to hyperparameters\.Despite comparable peak and median performance, HeteroSAGE and HeteroHEAT differ in hyperparameter sensitivity, as measured by the cross\-trial spread \(Figure[1](https://arxiv.org/html/2605.23194#S9.F1)\)\. HeteroHEAT has a noticeably wider distribution, indicating greater sensitivity to hidden dimension, depth, and learning rate\. This matches the architectural difference: simple mean aggregation in HeteroSAGE is inherently stable, while the type\- and edge\-aware attention in HeteroHEAT can amplify or suppress information depending on the learning dynamics\. For deployment, HeteroSAGE is the more robust default; HeteroHEAT reaches comparable accuracy but needs more careful tuning\.

Second\-tier architectures\.HeteroRGAT \(73 valid trials\) and HeteroHGT \(10 valid trials\) form a second tier, with best validation losses roughly twice those of the leaders \(Figure[1](https://arxiv.org/html/2605.23194#S9.F1)\)\. They are essentially tied on best loss but differ in spread: HeteroHGT is more concentrated around its mean, though its low completion rate limits confidence in the comparison and suggests that many configurations exhaust resources before producing reliable results\. HeteroGAT performs worst among the architectures with a usable trial set; its median exceeds its mean, so most trials underperform the average and the best value is an outlier\.

HeteroPNA stability issues\.HeteroPNA produced only two valid trials out of 115 dispatched \(under 2% completion\), attributable to the bipartite PNA wrapper used to extend PNAConv to heterogeneous graphs, which imposes higher memory and communication overhead at 256 GPUs per trial\. The two surviving trials nominally place HeteroPNA between the top and second tiers, but reflect an extreme selection effect—only the easiest \(likely smallest hidden dimension\) configurations succeeded—so no reliable mean, standard deviation, or median can be reported\.

![Refer to caption](https://arxiv.org/html/2605.23194v1/x1.png)Figure 1:Distribution of per\-trial best validation losses across HPO trials for each architecture \(HeteroPNA excluded: only two valid trials out of 115 dispatched\)\. X\-axis labels report architecture name and valid/dispatched trial counts\. Boxes span the 25th–75th percentile; whiskers extend to 1\.5×\\timesthe interquartile range; jittered points overlay individual trials; gold stars mark the best trial per architecture\.![Refer to caption](https://arxiv.org/html/2605.23194v1/x2.png)Figure 2:Validation loss vs\. number of trainable parameters per HPO trial on a log scale, colored by architecture\.
### IX\-CModel Selection for Subsequent Experiments

Based on the full\-dataset HPO campaign, we select HeteroSAGE and HeteroHEAT as the primary architectures for subsequent pretraining and fine\-tuning\. HeteroSAGE is the default scalable baseline: it attains the best validation loss with the lowest cross\-trial spread \(Figure[1](https://arxiv.org/html/2605.23194#S9.F1)\), so its advantage is robust to hyperparameter variation rather than tied to a narrow region of the search space\. HeteroHEAT is the edge\-aware attention alternative, with comparable peak accuracy and median while explicitly leveraging continuous edge attributes and type embeddings\. HeteroRGAT and HeteroHGT are retained as secondary baselines, since their distinct architectural families \(relational attention and type\-aware transformer\) may behave differently under topology\-specific fine\-tuning\. HeteroGAT shows consistently higher losses and an unfavorable median\-to\-mean ratio, indicating limited suitability for the full\-scale task\.

### IX\-DPretraining Across OPF Cases

The model is exposed to a broad collection of OPF cases spanning different network sizes, demand profiles, generation mixes, operating constraints, renewable\-penetration levels, and topology perturbations\. This forces the heterogeneous encoder to learn reusable representations of power\-system structure and physics, rather than correlations that are specific to one benchmark case\. In particular, the encoder learns how typed grid components—buses, generators, loads, shunts, transmission lines, transformers, and device\-to\-bus couplings—jointly determine OPF solution quantities such as voltage magnitudes and voltage angles\.

Let

𝒟pre=\{𝒟1,…,𝒟K\}\\mathcal\{D\}\_\{\\mathrm\{pre\}\}=\\\{\\mathcal\{D\}\_\{1\},\\ldots,\\mathcal\{D\}\_\{K\}\\\}\(7\)denote the collection of datasets used for pretraining, where each𝒟k\\mathcal\{D\}\_\{k\}corresponds to one OPF case, grid family, or operating regime\. Each sample in𝒟k\\mathcal\{D\}\_\{k\}is a pair\(𝒢,𝐲\)\(\\mathcal\{G\},\\mathbf\{y\}\), where𝒢\\mathcal\{G\}is the heterogeneous graph representation of the power\-grid instance and𝐲\\mathbf\{y\}contains the supervised OPF targets\. As mentioned before, in this work, the primary targets are bus\-level voltage angles and voltage magnitudes\.

The model is written as

𝐲^=fΘenc,Θhead​\(𝒢\),\\widehat\{\\mathbf\{y\}\}=f\_\{\\Theta\_\{\\mathrm\{enc\}\},\\Theta\_\{\\mathrm\{head\}\}\}\(\\mathcal\{G\}\),\(8\)whereΘenc\\Theta\_\{\\mathrm\{enc\}\}denotes the parameters of the heterogeneous graph encoder andΘhead\\Theta\_\{\\mathrm\{head\}\}denotes the parameters of the task\-specific prediction head\. The supervised lossℒsup\\mathcal\{L\}\_\{\\mathrm\{sup\}\}measures the discrepancy between the model prediction𝐲^\\widehat\{\\mathbf\{y\}\}and the OPF target𝐲\\mathbf\{y\}; for example, for bus\-level voltage prediction it can be defined as a mean\-squared error over the predicted voltage angles and magnitudes\.

The pretraining objective is therefore

minΘenc,Θhead​∑k=1K𝔼\(𝒢,𝐲\)∼𝒟k​\[ℒsup​\(fΘenc,Θhead​\(𝒢\),𝐲\)\]\.\\min\_\{\\Theta\_\{\\mathrm\{enc\}\},\\Theta\_\{\\mathrm\{head\}\}\}\\sum\_\{k=1\}^\{K\}\\mathbb\{E\}\_\{\(\\mathcal\{G\},\\mathbf\{y\}\)\\sim\\mathcal\{D\}\_\{k\}\}\\left\[\\mathcal\{L\}\_\{\\mathrm\{sup\}\}\\left\(f\_\{\\Theta\_\{\\mathrm\{enc\}\},\\Theta\_\{\\mathrm\{head\}\}\}\(\\mathcal\{G\}\),\\mathbf\{y\}\\right\)\\right\]\.\(9\)This objective trains a single encoder over all pretraining cases\. The resulting model can then be used as an initialization for downstream OPF tasks, where the amount of labeled high\-fidelity data may be much smaller\.

Realizing this representation quality at scale requires leadership\-class infrastructure\. Large OPF datasets contain millions of heterogeneous graph instances once scenario, topology, and uncertainty dimensions are considered, demanding distributed data loading, scalable batching, and parallel training across thousands of GPUs\.

### IX\-EFine\-Tuning on Target Grid Cases

The second defining feature of a successfulGFMparadigm is rapid and accurate fine\-tuning\. After pretraining, the encoder is adapted to high\-value downstream OPF settings, such as specific planning regions, large\-load integration studies, renewable and storage deployment scenarios, contingency analysis, or coupled transmission\-distribution studies\. In these settings, high\-fidelity OPF data may be expensive to generate\. Fine\-tuning specializes the pretrained model to the target topology, constraints, and operating regime while requiring fewer labeled OPF solutions than training a topology\-specific surrogate from scratch\.

Let𝒟ft\\mathcal\{D\}\_\{\\mathrm\{ft\}\}denote the target fine\-tuning dataset\. The trainable parameter set is denoted byΘft\\Theta\_\{\\mathrm\{ft\}\}\. Depending on the amount of target data available,Θft\\Theta\_\{\\mathrm\{ft\}\}may include all model parameters, only the prediction head, or the prediction head together with the final message\-passing layers\. This allows the same pretrained model to support multiple adaptation regimes\.

### IX\-FFine\-Tuning Scenarios

The proposed workflow supports several fine\-tuning scenarios:

- •Topology\-specific fine\-tuning:pretrain on several OPF cases and fine\-tune on a target grid topology with limited labeled OPF solutions\.
- •Operating\-condition fine\-tuning:pretrain on broad operating regimes and fine\-tune on new load, generation, or renewable\-penetration scenarios\.
- •Contingency fine\-tuning:pretrain on nominal conditions and fine\-tune on topology perturbations orN−1N\-1contingency scenarios\.
- •Task\-specific fine\-tuning:pretrain on bus\-voltage prediction and fine\-tune for related OPF quantities, such as generator dispatch, line\-flow prediction, or feasibility classification\.

### IX\-GFine\-Tuning Experimental Setup

Two downstream experiments quantify the benefit of pretraining versus training from scratch as a function of labeled data volume\.

FT1is binary feasibility classification: predict whether the AC\-OPF solution underlying a given OPF graph instance is feasible\. The FT1 dataset is generated entirely from existing OPF data without additional solver calls\. Feasible samples are drawn directly from the open\-source OPFDataset\[[16](https://arxiv.org/html/2605.23194#bib.bib23)\]for the IEEE 118\-bus case \(pglib\_opf\_case118\_ieee\)\. Infeasible samples are synthesised by scaling all load features \(active and reactive demand,PdP\_\{d\}andQdQ\_\{d\}\) by a factor of 6, which guarantees that total demand exceeds total generation capacity\. The result is a balanced dataset \(50% feasible, 50% infeasible\)\. The pretrained regression head is replaced by a binary graph\-level head trained with binary cross\-entropy \(BCE\); test metrics are accuracy, F1, and AUC\-ROC\.

FT2isN−1N\{\-\}1contingency regression: given a single\-line outage, predict bus voltage angles \(VaV\_\{a\}\) and magnitudes \(VmV\_\{m\}\); the test metric is MSE per quantity\. The FT2 dataset is retrieved directly from the same open\-source OPFDataset\[[16](https://arxiv.org/html/2605.23194#bib.bib23)\]for the IEEE 118\-bus case, using the dataset’s built\-in topological\-perturbation support, which provides solved AC\-OPF instances under single\-line outage scenarios without requiring any additional data generation\.

Both experiments compare four adaptation regimes applied to the pretrained HeteroSAGE and HeteroHEAT models from Section[IX](https://arxiv.org/html/2605.23194#S9):

- •Full fine\-tuning \(FT\-F\):all parameters updated\.
- •Partial fine\-tuning \(FT\-P\):head and final message\-passing layer updated; earlier layers frozen\.
- •Head\-only fine\-tuning \(FT\-H\):only the head updated\.
- •Scratch \(SCR\):random initialization with the same architecture and training budget\.

Labeled sample sizes range fromn=100n=100ton=50,000n=50\{,\}000for both tasks\. All runs train for 50 epochs at learning rate10−410^\{\-4\}on 8 Frontier nodes \(64 AMD MI250X GPUs\)\.

### IX\-HFT1: OPF Feasibility Classification

The feasibility task is rapidly saturated in terms of validation accuracy: nearly all regime–architecture combinations reach perfect classification at the smallest sample size\. This indicates that the GFM encoder, pretrained on multi\-case AC\-OPF solutions, has already learned a latent space in which feasible and infeasible operating points are well separated, so a small labeled head suffices to recover the decision boundary\. The few exceptions collapse to a degenerate all\-positive predictor, consistent with the class imbalance of the dataset\. Partial fine\-tuning \(head plus final message\-passing layer\) avoids this failure for both architectures, showing that a single round of message\-passing adaptation aligns the encoder with the downstream label distribution while preserving the pretrained geometry\. Although validation accuracy saturates to near\-perfect for most regime–architecture combinations already atn=100n=100, the validation BCE loss shown in Figure[3](https://arxiv.org/html/2605.23194#S9.F3)reveals a persistent gap between adaptation regimes, where fine\-tuning reaches substantially lower loss than scratch training and converges faster, with the difference most pronounced at smallnn\. This shows that the pretrained representation yields better\-calibrated predictions even when accuracy alone cannot distinguish the regimes\.

It is also worth noting that, at largenn, head\-only fine\-tuning falls behind partial and full FT in validation BCE\. The underlying reason is that the pretrained encoder was trained on bus\-voltage regression, so its internal representations are shaped to minimize MSE for regression tasks, rather than producing well\-calibrated classification probabilities\. At smallnnthe task is easy enough that a linear head can find a decision boundary in those regression\-oriented features\. As the labeled dataset grows, partial and full FT have enough signal to update the encoder itself, re\-orienting its representations toward the classification objective, while head\-only FT remains locked to features that were never trained for this purpose, causing its BCE to stall or worsen relative to the other regimes\.

![Refer to caption](https://arxiv.org/html/2605.23194v1/x3.png)Figure 3:FT1 feasibility classification: validation BCE loss vs\. training epoch for HeteroSAGE \(top row\) and HeteroHEAT \(bottom row\) at four sample sizes\.
### IX\-IFT2: N\-1 Contingency OPF Regression

TheN−1N\{\-\}1contingency regression task is substantially more demanding than FT1 and provides a clearer test of whether pretraining improves downstream adaptation\. Figure[4](https://arxiv.org/html/2605.23194#S9.F4)shows four complementary benefits of fine\-tuning a pretrained OPFGFMinstead of training the same architecture from scratch\.

![Refer to caption](https://arxiv.org/html/2605.23194v1/x4.png)Figure 4:FT2N−1N\{\-\}1contingency regression: validation MSE loss versus training epoch for HeteroSAGE and HeteroHEAT across multiple labeled\-data regimes\.First, fine\-tuning improves accuracy in the low\-data regime\. At small sample sizes, partial fine\-tuning consistently reaches lower validation MSE than scratch training for both HeteroSAGE and HeteroHEAT\. This indicates that the pretrained encoder already contains reusable information about the relationship between grid topology, component attributes, and bus\-level voltage states, so the downstream model does not need to relearn these representations from a limited contingency dataset\.

Second, fine\-tuning stabilizes training\. Scratch training and full fine\-tuning exhibit larger oscillations in the validation loss, especially at the smallest sample sizes, whereas partial fine\-tuning produces smoother convergence\. This behavior suggests that the pretrainedGFMacts as an inductive bias: freezing the early message\-passing layers constrains the adaptation dynamics and reduces the tendency of the model to overreact to small downstream batches\.

Third, fine\-tuning accelerates convergence even when more labeled downstream data are available\. Across the evaluated sample sizes, partial and head\-only fine\-tuning reach their best attainable validation losses in fewer epochs than scratch training\. Thus, the advantage of theGFMis not limited to small\-data accuracy; it also reduces the number of optimization steps required to adapt the model to the downstream contingency\-regression task\.

Fourth, partial and head\-only fine\-tuning reduce computational cost because only a subset of the model parameters is updated\. This reduces the amount of gradient computation and optimizer\-state storage relative to full fine\-tuning or scratch training\. In the present experiments, partial and head\-only fine\-tuning complete reliably within the 8\-node \(64 AMD MI250X GPU\) wall\-time budget, whereas full fine\-tuning and scratch training are slower and less stable\.

Taken together, the FT2 results show that, for theN−1N\{\-\}1contingency regression task, partial fine\-tuning provides the best trade\-off among accuracy, stability, convergence speed, and computational cost\. Full fine\-tuning is less reliable because unconstrained updates to all layers can overwrite useful pretrained representations, consistent with catastrophic forgetting\[[13](https://arxiv.org/html/2605.23194#bib.bib26)\], and should be reserved for cases where the downstream dataset is large and the shift from pretraining is substantial\. Head\-only fine\-tuning is computationally cheapest and stable, but it can be less accurate than partial fine\-tuning when the downstream task requires some adaptation of the message\-passing representation\.

## XConclusion

This paper presented a scalable HydraGNN workflow for developing, pretraining, selecting, and fine\-tuning heterogeneous OPFGFMsover the full multi\-case OPF corpus using leadership\-class computing\.

First, we extended HydraGNN with heterogeneous graph learning support for OPF, including node\-type\-specific embeddings, relation\-specific message passing, variable edge\-attribute handling, heterogeneous pooling, graph\-level conditioning, and bus\-level prediction heads\. This enables the model to preserve the physical semantics of buses, generators, loads, shunts, AC lines, transformers, and device\-to\-bus couplings within a scalable distributed graph\-learning framework\.

Second, we developed a full\-corpus distributed training and model\-selection workflow\. Approximately three million heterogeneous graph instances from ten PGLib\-OPF cases, spanning 14 to 13,659 buses, were converted into sharded HDF5 datasets and used for DeepHyper\-driven HPO on the ORNL Frontier supercomputer\. The campaign produced 153 valid trials across six heterogeneous GNN architectures and identified HeteroSAGE and HeteroHEAT as the leading models\. These architectures achieved the lowest validation losses—roughly half those of the next\-best architectures—while remaining compact, with no evidence that larger parameter counts systematically improved accuracy\.

Third, we evaluated the downstream value of the pretrained OPFGFMsthrough fine\-tuning on OPF feasibility classification andN−1N\{\-\}1contingency regression\. The feasibility task showed that the pretrained representation can provide highly data\-efficient classification, while the contingency\-regression task showed that partial fine\-tuning achieves lower validation MSE and more stable convergence than scratch training in the small\-data regime\. Full fine\-tuning was slower and less stable, consistent with catastrophic forgetting of the pretrained representation\. Together, these results support theGFMparadigm: multi\-case pretraining amortizes representation learning across grid families, and targeted fine\-tuning improves data efficiency, training stability, and computational cost on downstream OPF tasks\.

Future work will evaluate per\-topology transfer and held\-out\-topology generalization, validate the framework on real\-world utility data, and integrate time\-series operating conditions with solver\-in\-the\-loop verification for real\-time grid decision support and resilience analysis\.

## References

- \[1\]S\. Babaeinejadsarookolaee, A\. Birchfield, R\. D\. Christie, C\. Coffrin, C\. DeMarco, R\. Diao, M\. Ferris, S\. Fliscounakis, S\. Greene, C\. Josz, R\. Korab, B\. Lesieutre, J\. Maeght, D\. K\. Molzahn, T\. J\. Overbye, P\. Panciatici, B\. Park, J\. Snodgrass, A\. Tbaileh, and R\. D\. Zimmerman\(2019\)The power grid library for benchmarking ac optimal power flow algorithms\.arXiv preprint arXiv:1908\.02788\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.1908.02788)Cited by:[§V](https://arxiv.org/html/2605.23194#S5.p1.1)\.
- \[2\]\(2022\)How attentive are graph attention networks?\.InInternational Conference on Learning Representations,Cited by:[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1),[§VII\-C](https://arxiv.org/html/2605.23194#S7.SS3.p2.1)\.
- \[3\]M\. B\. Cain, R\. P\. O’Neill, and A\. Castillo\(2012\)History of optimal power flow and formulations\.Technical reportFederal Energy Regulatory Commission \(FERC\)\.Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p1.1)\.
- \[4\]G\. Corso, L\. Cavalleri, D\. Beaini, P\. Liò, and P\. Veličković\(2020\)Principal neighbourhood aggregation for graph nets\.InAdvances in Neural Information Processing Systems,Vol\.33,pp\. 13260–13271\.Cited by:[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1),[§VII\-C](https://arxiv.org/html/2605.23194#S7.SS3.p2.1)\.
- \[5\]A\. Deihim, D\. Apostolopoulou, and E\. Alonso\(2024\)Initial estimate of ac optimal power flow with graph neural networks\.Electric Power Systems Research234,pp\. 110782\.External Links:[Document](https://dx.doi.org/10.1016/j.epsr.2024.110782)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.23194#S2.SS1.p1.1)\.
- \[6\]F\. Fioretto, T\. W\. K\. Mak, and P\. Van Hentenryck\(2022\)Physics\-informed neural networks for ac optimal power flow\.Electric Power Systems Research212,pp\. 108412\.External Links:[Document](https://dx.doi.org/10.1016/j.epsr.2022.108412)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-B](https://arxiv.org/html/2605.23194#S2.SS2.p1.1)\.
- \[7\]S\. Frank, I\. Steponavice, and S\. Rebennack\(2012\)Optimal power flow: a bibliographic survey I – formulations and deterministic methods\.Energy Systems3\(3\),pp\. 221–258\.External Links:[Document](https://dx.doi.org/10.1007/s12667-012-0056-y)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p1.1)\.
- \[8\]S\. Ghamizi, A\. Ma, J\. Cao, and P\. Rodriguez Cortes\(2024\)OPF\-HGNN: generalizable heterogeneous graph neural networks for ac optimal power flow\.In2024 IEEE Power & Energy Society General Meeting \(PESGM\),External Links:[Document](https://dx.doi.org/10.1109/PESGM51994.2024.10688560)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-B](https://arxiv.org/html/2605.23194#S2.SS2.p1.1),[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1)\.
- \[9\]Z\. Guo, K\. Sun, B\. Park, S\. Simunovic, and W\. Kang\(2023\)A directed acyclic graph neural network for ac optimal power flow\.In2023 IEEE Power & Energy Society General Meeting \(PESGM\),External Links:[Document](https://dx.doi.org/10.1109/PESGM52003.2023.10252547)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.23194#S2.SS1.p1.1)\.
- \[10\]W\. L\. Hamilton, R\. Ying, and J\. Leskovec\(2017\)Inductive representation learning on large graphs\.InAdvances in Neural Information Processing Systems,Cited by:[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1),[§VII\-C](https://arxiv.org/html/2605.23194#S7.SS3.p2.1)\.
- \[11\]Z\. Hu, Y\. Dong, K\. Wang, and Y\. Sun\(2020\)Heterogeneous graph transformer\.InProceedings of The Web Conference 2020,pp\. 2704–2710\.External Links:[Document](https://dx.doi.org/10.1145/3366423.3380027)Cited by:[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1),[§VII\-C](https://arxiv.org/html/2605.23194#S7.SS3.p2.1)\.
- \[12\]H\. Jin, K\. Song, Z\. Memon, Y\. Li, S\. Fenu, H\. Kim, L\. Zhao, and K\. Kim\(2026\)LUMINA: a grid foundation model for benchmarking AC optimal power flow surrogate learning\.arXiv preprint arXiv:2605\.02133\.External Links:2605\.02133,[Link](https://arxiv.org/abs/2605.02133)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-D](https://arxiv.org/html/2605.23194#S2.SS4.p1.1)\.
- \[13\]J\. Kirkpatrick, R\. Pascanu, N\. Rabinowitz, J\. Veness, G\. Desjardins, A\. A\. Rusu, K\. Milan, J\. Quan, T\. Ramalho, A\. Grabska\-Barwinska, D\. Hassabis, C\. Clopath, D\. Kumaran, and R\. Hadsell\(2017\)Overcoming catastrophic forgetting in neural networks\.Proceedings of the National Academy of Sciences114\(13\),pp\. 3521–3526\.External Links:[Document](https://dx.doi.org/10.1073/pnas.1611835114)Cited by:[§IX\-I](https://arxiv.org/html/2605.23194#S9.SS9.p6.1)\.
- \[14\]Y\. Li, Z\. Memon, H\. Jin, S\. Fenu, K\. Song, S\. B\. Sharma, P\. Gasana, H\. Kim, L\. Zhao, and K\. Kim\(2026\)LUMINA: foundation models for topology transferable ACOPF\.InInternational Conference on Learning Representations \(ICLR\),Note:arXiv:2603\.04300External Links:2603\.04300,[Link](https://arxiv.org/abs/2603.04300)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-D](https://arxiv.org/html/2605.23194#S2.SS4.p1.1)\.
- \[15\]S\. Liu, C\. Wu, and H\. Zhu\(2023\)Topology\-aware graph neural networks for learning feasible and adaptive ac\-opf solutions\.IEEE Transactions on Power Systems\.External Links:[Document](https://dx.doi.org/10.1109/TPWRS.2022.3230555)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.23194#S2.SS1.p1.1)\.
- \[16\]T\. Lovett, A\. Buovich, A\. Sharma, S\. Pegg, S\. Cohen, S\. Stephens, A\. Tucker, P\. Pope, J\. Eiselen, F\. Buchaca, C\. Sutton, J\. Mantilla\-Bilbao, T\. Roeder, Y\. Lin, E\. Bridgett\-Tomkinson, J\. Garratt, J\. Patterson, S\. Lyons, A\. Hales, and V\. Petar\(2024\)OPFData: large\-scale datasets for machine learning\-accelerated ac optimal power flow\.arXiv preprint arXiv:2406\.07234\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2406.07234)Cited by:[§V](https://arxiv.org/html/2605.23194#S5.p1.1),[§IX\-G](https://arxiv.org/html/2605.23194#S9.SS7.p2.2),[§IX\-G](https://arxiv.org/html/2605.23194#S9.SS7.p3.3)\.
- \[17\]M\. Lupo Pasini, S\. T\. Reeve, P\. Zhang, and J\. Y\. Choi\(2021\-10\)HydraGNN\.United States\.Note:Distributed PyTorch implementation of multi\-headed graph convolutional neural networksExternal Links:[Document](https://dx.doi.org/10.11578/dc.20211019.2),[Link](https://www.osti.gov/biblio/code-65891)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p4.1)\.
- \[18\]Z\. Memon, Y\. Li, H\. Jin, K\. Kim, and L\. Zhao\(2026\)Towards systematic generalization for power grid optimization problems\.arXiv preprint arXiv:2605\.02026\.External Links:2605\.02026,[Link](https://arxiv.org/abs/2605.02026)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-D](https://arxiv.org/html/2605.23194#S2.SS4.p1.1)\.
- \[19\]X\. Mo, Y\. Xing, and C\. Lv\(2021\)Heterogeneous edge\-enhanced graph attention network for multi\-agent trajectory prediction\.arXiv preprint arXiv:2106\.07161\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2106.07161)Cited by:[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1),[§VII\-C](https://arxiv.org/html/2605.23194#S7.SS3.p2.1)\.
- \[20\]D\. Owerko, F\. Gama, and A\. Ribeiro\(2019\)Optimal power flow using graph neural networks\.arXiv preprint arXiv:1910\.09658\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.1910.09658)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-A](https://arxiv.org/html/2605.23194#S2.SS1.p1.1)\.
- \[21\]A\. Trigui, M\. Olama, G\. Siopsis, H\. Eldakhakhni, and M\. Salhi\(2025\)Graph\-based attention mechanisms for solving the ac optimal power flow problem in electrical power networks\.In2025 57th North American Power Symposium \(NAPS\),External Links:[Document](https://dx.doi.org/10.1109/NAPS66256.2025.11272251)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1)\.
- \[22\]P\. Veličković, G\. Cucurull, A\. Casanova, A\. Romero, P\. Liò, and Y\. Bengio\(2018\)Graph attention networks\.InInternational Conference on Learning Representations,Cited by:[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1),[§VII\-C](https://arxiv.org/html/2605.23194#S7.SS3.p2.1)\.
- \[23\]A\. Wen, B\. Wen, J\. Li, and J\. Xu\(2026\)Heterogeneous graph neural network with local and global message passing for ac\-optimal power flow solutions\.Applied System Innovation9\(1\),pp\. 18\.External Links:[Document](https://dx.doi.org/10.3390/asi9010018)Cited by:[§I](https://arxiv.org/html/2605.23194#S1.p2.1),[§II\-C](https://arxiv.org/html/2605.23194#S2.SS3.p1.1)\.

Similar Articles

@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...

X AI KOLs Timeline

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.