PF∆: A Benchmark Dataset for Power Flow under Load, Generation, and Topology Variations

Ana K. Rivera, Anvita Bhagavathula, Alvaro Carbonero, Priya L. Donti

TL;DR

This paper introduces PFΔ, a comprehensive benchmark dataset for power flow calculations, designed to address the limitations of existing datasets in capturing real-world grid variability. By providing a large-scale dataset with diverse load, generation, and topology variations, including challenging near-infeasible cases, PFΔ aims to accelerate the development and evaluation of machine learning models for power flow, crucial for modernizing grid operations.

What Problem Does This Paper Address?

The accurate and efficient calculation of power flow (PF) is fundamental to operating and planning power grids. This is especially critical for tasks like contingency analysis (assessing grid security under component failures) and topology optimization, which require thousands of PF solutions in near real-time. Traditional PF solvers, while accurate, are computationally expensive, making them impractical for these high-throughput applications. Machine learning (ML) methods, particularly graph neural networks (GNNs), offer a promising avenue for faster PF approximations. However, the field has been hampered by a lack of standardized benchmarks that reflect the full spectrum of real-world grid conditions, including:

  • Variability in Load and Generation: Renewable energy integration and changing demand patterns introduce significant uncertainty.
  • Topology Changes: Component outages due to extreme weather or planned maintenance alter the grid's structure.
  • Near-Infeasible Cases: Grids operating close to voltage stability limits are notoriously difficult for traditional solvers to handle.

Without a comprehensive benchmark, it's challenging to rigorously compare ML models and ensure their robustness and deployability in real-world scenarios.

Methods

The authors introduce PFΔ, a new benchmark dataset generated through a novel data generation scheme. This scheme combines existing techniques for load sampling and topological perturbations with a new approach for generating diverse generator profiles. Key aspects include:

  • Load Perturbation: Uniformly sampling load profiles from a convex set that encompasses the AC Optimal Power Flow (ACOPF) feasible space, with adjustments made when infeasible points are encountered. This is noted to provide more diversity than simple ±20% variations.
  • Topological Perturbation: Simulating N-1 and N-2 contingency scenarios by randomly removing up to two generators, two lines, or one of each.
  • Generator Setpoint Generation: Perturbing generator cost functions to derive diverse active power and voltage setpoints.
  • Close-to-Infeasible (C2I) Case Generation: Employing continuation power flow to trace solution paths to the steady-state voltage stability limit, where the power flow Jacobian becomes singular. Samples "approaching infeasibility" are also generated to augment training data.

The dataset consists of 859,800 solved power flow instances across six different bus system sizes (IEEE-14, IEEE-30, IEEE-57, IEEE-118, GOC-500, and GOC-2000).

Datasets

The primary contribution is the PFΔ dataset, a newly introduced benchmark for power flow. It comprises 859,800 solved AC power flow instances across six grid sizes, incorporating:

  • Feasibility Regimes: Feasible, approaching infeasible, and close-to-infeasible cases.
  • Topological Perturbations: N (unperturbed), N-1, and N-2 contingency scenarios.

The authors also compare their work against existing datasets and models trained on them, including:

  • OPFData: A dataset for ACOPF with load perturbations and N-1 topology perturbations.
  • OPFLearn: A framework for generating ACOPF datasets with diverse load profiles.
  • PowerGraph: A dataset designed for GNNs for power grids, supporting power flow prediction and cascading failure analysis.

PFΔ is distinguished by its simultaneous consideration of load, generation, and topology variations, as well as its focus on challenging near-infeasible cases, which are often not adequately represented in other datasets.

Key Insights and Ideas

  • Topological Diversity is Crucial for Generalization: Training on N-1 and N-2 topological perturbations significantly improves model generalization to these scenarios, even more so than simply increasing the amount of training data.
  • Near-Infeasible Cases are a Major Hurdle: Traditional solvers struggle with these cases, and ML models also show limited performance, especially when not explicitly trained on them. This highlights a critical area for future research.
  • Physics-Informed Models Show Promise: Models incorporating physical constraints (like CANOS-PF and GNS-S) tend to be more consistent and stable, particularly in challenging scenarios, compared to purely supervised methods.
  • GNNs Offer Speedups but Not Yet NR Accuracy: While GNNs can achieve significant runtime speedups (up to 5x) over Newton-Raphson, they still fall short of the high precision levels typically achieved by NR solvers.
  • Dataset Diversity is Key: The PFΔ dataset's strength lies in its comprehensive representation of real-world grid variability, which is essential for developing robust ML models.

Key Results

  • Dataset Size: PFΔ contains 859,800 solved power flow instances.
  • Grid Sizes: Covers six bus system sizes, from IEEE-14 to GOC-2000.
  • Topological Variations: Includes N, N-1, and N-2 contingency scenarios.
  • Feasibility Regimes: Encompasses feasible, approaching infeasible, and close-to-infeasible cases.
  • Model Performance:
    • CANOS-PF generally shows the most consistent performance across tasks, especially in near-infeasible cases.
  • GNS-S exhibits higher error variance, potentially due to its architecture's sensitivity to structural perturbations.
  • PFNet often performs worst on near-infeasible cases and shows higher variability.
  • All tested GNN models struggle to match the accuracy of the Newton-Raphson solver, particularly in terms of precision.
  • Runtime: GNN-based models achieve significant speedups (up to 5x) over Newton-Raphson, though NR's runtime increases substantially with grid size.

Limitations and Future Work

  • Limitations:
    • NR Accuracy Gap: All tested GNN models fail to achieve the precision levels of the Newton-Raphson solver, especially for larger grid sizes.
  • Near-Infeasible Case Performance: Models struggle with close-to-infeasible cases, particularly when these are not included in the training data.
  • Generalization to Different Grid Sizes: Models trained on one grid size do not generalize well to significantly different sizes.
  • NR Convergence: Newton-Raphson solver convergence rates decrease significantly for larger grid sizes (e.g., 43.4% for GOC-2000).
  • Future Work:
    • Develop Faster, Scalable, and Accurate Solvers: Aiming for feasibility on par with NR and generalization to grids with over 1000 buses.
  • Robust Infeasibility Detection: Building models that can reliably identify infeasible power flow cases, a capability NR solvers lack.
  • Higher-Order Topological Perturbations: Designing architectures robust to N-k contingencies for k > 2.
  • Out-of-Distribution Load Profiles: Evaluating models on diverse load profiles beyond those sampled.
  • Scalable Data Generation: Developing methods for generating diverse data for large-scale networks.
  • Architectural Innovation: Designing models that can generalize across grid sizes, potentially through novel training strategies or architectures.

Summary updated

BibTeX
@inproceedings{rivera2025pf,
  author = {Ana K. Rivera and Anvita Bhagavathula and Alvaro Carbonero and Priya L. Donti},
  title = {{PF∆: A Benchmark Dataset for Power Flow under Load, Generation, and Topology Variations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Gi1HtsTAkv},
}
Figure