Accelerating quasi-static time series simulations with foundation models

Alban Puech, François Mirallès, Jonas Weiss, Vincent Mai, Alexandre Blondin Massé, Martin De Montigny, Thomas Brunschwiler, Hendrik F. Hamann

Abstract

As power grids evolve with the integration of renewable energy and electric vehicles, traditional simulation methods face significant scalability challenges. This paper explores the potential of Grid Foundation Models (GridFMs)—large-scale, pre-trained Graph Neural Networks—to replace iterative numerical solvers in Quasi-Static Time Series (QSTS) simulations. By leveraging self-supervised pre-training and the inherent graph structure of power systems, GridFMs offer a path toward 3 to 4 orders of magnitude speedup, improved numerical stability, and linear computational complexity.

Introduction

The modern power grid is undergoing a fundamental transformation. The rapid deployment of distributed energy resources (DERs), such as solar photovoltaics, wind turbines, and electric vehicle charging infrastructure, has introduced unprecedented variability and complexity into grid management. To ensure reliability, engineers rely on Quasi-Static Time Series (QSTS) simulations, which model grid behavior over extended periods (e.g., a full year) at high temporal resolutions.

However, the mathematical core of these simulations—the Power Flow calculation—is becoming a critical bottleneck. Traditional iterative solvers, such as the Newton-Raphson method, are increasingly ill-suited for the scale and frequency of calculations required for modern planning studies. This paper proposes a paradigm shift: moving from classical numerical methods to neural power flow solvers based on Foundation Models.

The Limitations of Traditional Solvers

Traditional power flow solvers are designed to find numerical solutions to non-linear algebraic equations. While robust for smaller, static systems, they suffer from two primary drawbacks in the context of QSTS:

  1. Computational Complexity: Iterative solvers typically scale quadratically ($O(N^2)$) with the number of nodes ($N$) in the grid. As grids grow larger and more interconnected, the time required for a single power flow calculation increases significantly.
  2. Numerical Instability: Under conditions of high stress or near-limit operation—common in scenarios with high renewable penetration—iterative solvers often fail to converge. These "crashes" require manual intervention or simplified assumptions, reducing the accuracy of the simulation.

When running millions of calculations for a single annual study, these limitations make high-resolution QSTS simulations computationally prohibitive for large-scale utility operators.

Methodology: Grid Foundation Models (GridFMs)

The authors propose the development of Grid Foundation Models (GridFMs) to address these challenges. This approach utilizes Graph Neural Networks (GNNs) and self-supervised learning techniques adapted from the field of natural language processing.

Graph Neural Networks for Power Systems

Power grids are naturally represented as graphs, where buses serve as nodes and transmission lines serve as edges. GNNs are uniquely suited for this domain because they can capture the spatial dependencies and physical constraints of the grid. Unlike traditional solvers, GNN-based inference exhibits linear complexity ($O(N)$), ensuring that simulation times remain manageable even as the grid expands.

Self-Supervised Pre-training

The core of the GridFM approach is a "masked reconstruction" task, similar to the pre-training of Large Language Models. Using an architecture like GraphMAE, the model is trained on a massive variety of grid topologies. During training, certain node features (such as power injections or voltage magnitudes) are masked, and the model must learn to predict the missing values based on the surrounding grid state. This process allows the model to internalize the underlying physics of power flow without requiring labeled data for every possible scenario.

Amortized Training and Generalization

A key insight of this research is the concept of amortized training. While the initial cost of training a Foundation Model is high (Non-Recurring Engineering cost), the resulting model can be applied to a wide range of downstream tasks—such as contingency analysis or grid expansion planning—with minimal fine-tuning. Because the physics of electricity is universal, a model trained on diverse synthetic and historical data can generalize to new, unseen grid configurations.

Performance and Results

The transition to neural solvers promises transformative improvements in simulation performance:

  • Massive Speedups: GridFMs can achieve speedups of 1,000x to 10,000x compared to conventional iterative solvers. This allows simulations that previously took days to be completed in minutes.
  • Linear Scaling: The linear complexity of GNNs provides a viable path for simulating "mega-grids" that are currently beyond the reach of iterative methods.
  • Robustness: By providing a direct mapping from input to output, neural solvers bypass the convergence issues that plague classical methods, offering greater stability in edge-case scenarios.
  • Generalization: Preliminary results indicate that models trained on diverse topologies can achieve high accuracy (e.g., 96% in detecting cascading failures) even on entirely new grid structures.

Discussion and Future Directions

Despite the promise of GridFMs, several challenges remain. The "ground truth" data required for training must still be generated using traditional solvers, representing a significant upfront computational investment. Furthermore, ensuring the reliability of these models during "black swan" events—extreme conditions not well-represented in the training data—is a critical area for future research.

The authors conclude by emphasizing the need for a collaborative, open-source approach. Given the high cost of developing Foundation Models, a shared effort between the AI research community and power system operators is essential to build standardized "GridFMs" that can serve the entire industry.

Summary updated

BibTeX
@article{puech2024accelerating,
  author = {Alban Puech and François Mirallès and Jonas Weiss and Vincent Mai and Alexandre Blondin Massé and Martin De Montigny and Thomas Brunschwiler and Hendrik F. Hamann},
  title = {{Accelerating quasi-static time series simulations with foundation models}},
  journal = {Elektrotech. Informationstechnik},
  year = {2024},
  doi = {10.1007/s00502-024-01296-9},
}
Figure