PowerGraph: A power grid benchmark dataset for graph neural networks

Anna Varbella, Kenza Amara, Blazhe Gjorgiev, Mennatallah El-Assady, Giovanni Sansavini

TL;DR

PowerGraph is a new large-scale benchmark dataset designed to bring Graph Neural Networks (GNNs) into the critical domain of power grid management. It provides a standardized platform for training models to solve power flow equations and predict catastrophic cascading failures, notably including the first set of ground-truth explanations to evaluate how well we can actually "trust" these AI decisions.

What Problem Does This Paper Address?

As we transition to intermittent renewable energy, power grids are becoming increasingly complex and volatile. Transmission system operators (TSOs) need real-time monitoring tools to prevent blackouts, but traditional physics-based simulations are often too computationally expensive for "online" use.

While Machine Learning—and specifically GNNs—is a natural fit for power grids (which are inherently graph-structured), the field has been held back by a lack of high-quality, publicly available datasets. Most existing datasets are either too small, not tailored for GNNs, or lack the "ground-truth" data needed to test explainable AI (XAI) methods. Without knowing why a model predicts a grid failure, operators are unlikely to trust it with multi-billion-dollar infrastructure.

Methods

The authors generated the PowerGraph dataset by simulating four real-world-based power systems using industry-standard tools:

  • MATPOWER: Used to simulate steady-state operations (Power Flow and Optimal Power Flow).
  • Cascades: An AC physics-based model used to simulate the "domino effect" of line failures that lead to blackouts.

They framed these as three distinct tasks:

1. Node-level regression: Predicting physical quantities (like voltage and power) at individual buses.

Node-level power flow task formulation

2. Graph-level classification/regression: Predicting if a specific outage will lead to a cascading failure and how much "demand not served" (blackout size) will result.

3. Explainability (XAI) benchmarking: Using a "masking" approach to see if XAI tools can correctly identify the specific transmission lines that caused a system-wide failure.

Graph-level tasks and explainability masking

Datasets

The benchmark includes four power systems of varying scales and topologies:

  • IEEE24, IEEE39, and IEEE118: Standard synthetic test cases used by power engineers.
  • UK Transmission System: A model based on the actual high-voltage grid of the United Kingdom.

The total dataset comprises tens of thousands of unique loading conditions and failure scenarios, filling a major gap in the "Society" domain of the Open Graph Benchmark (OGB) taxonomy.

Key Insights and Ideas

  • The "Transformer" Advantage: Across almost all tasks, the TransformerConv architecture outperformed simpler models like GCN. This is likely because Transformers are better at capturing the long-range dependencies and complex edge features (like line reactance and resistance) that define power physics.
  • Classification is Easier than Regression: GNNs are remarkably good at identifying if a grid is in trouble (classification), but they struggle to predict the exact amount of power lost (regression). This suggests that while GNNs are great early-warning systems, they aren't yet ready to replace physics-based solvers for precise numerical calculations.
  • The XAI Disconnect: One of the most striking findings was the gap between "human-centric" and "model-centric" explanations. An XAI method might point to the "correct" failed line (human-centric accuracy), but the model might actually be making its decision based on entirely different features (model-centric faithfulness).
  • GSAT Wins on Trust: Of the 14 XAI methods tested, GSAT (Graph Stochastic Attention) was the only one that consistently provided explanations that were both accurate to the physics and faithful to the model's internal logic.

Key Results

  • High Classification Accuracy: The best GNN models achieved Balanced Accuracy scores between 0.97 and 0.99 for predicting cascading failures across all four grids.
  • Low Error in Power Flow: For node-level tasks, the models achieved Mean Squared Errors (MSE) as low as 2.02e-05, proving that GNNs can approximate complex power flow equations with high precision.
  • Message Passing Depth: The authors found that an architecture with three message-passing layers was the "sweet spot," allowing the model to incorporate information from up to three-hop neighbors—essential for capturing how a local failure ripples through a network.

Limitations and Future Work

The authors acknowledge that while their data is based on real topologies, it is still simulated. Real-world grid data is often classified or proprietary, making synthetic benchmarks the only viable path for open research.

Future iterations of PowerGraph aim to include:

  • Temporal Dynamics: Moving from "snapshots" of failures to time-series data showing how a blackout evolves second-by-second.
  • Economic Factors: Incorporating energy market pricing and "unit commitment" (deciding which power plants to turn on/off).
  • Larger Grids: Scaling up to even more massive synthetic systems to test the limits of GNN scalability.

Dataset and Code: The dataset is available on Figshare and the benchmarking code can be found on GitHub.

Summary updated

BibTeX
@inproceedings{varbella2024powergraph,
  author = {Anna Varbella and Kenza Amara and Blazhe Gjorgiev and Mennatallah El-Assady and Giovanni Sansavini},
  title = {{PowerGraph: A power grid benchmark dataset for graph neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure