Load Embeddings for Scalable AC-OPF Learning

Terrence W. K. Mak, Ferdinando Fioretto, Pascal Van Hentenryck

The AC Optimal Power Flow (AC-OPF) problem is a cornerstone of electrical grid operations, determining the most economical generation dispatch while adhering to complex physical and operational constraints. As power grids integrate increasingly volatile renewable energy sources, the need for rapid, real-time solutions becomes critical. However, AC-OPF is a non-convex, computationally intensive problem that traditional solvers struggle to clear within the tight windows required by modern markets.

Deep Learning (DL) has emerged as a promising alternative, capable of predicting solutions in milliseconds. Yet, these models face a significant scalability hurdle: the "curse of dimensionality." In large-scale grids with thousands of buses, the explosion of input features (loads) leads to massive neural networks that are difficult to train, slow to converge, and prone to poor generalization. This paper proposes a physics-informed load encoding scheme to address these challenges.

Methodology: Optimization-Based Load Encoding

The authors introduce a two-stage architecture designed to compress the high-dimensional input space of AC-OPF problems. The core insight is that small shifts in load between adjacent buses often have negligible effects on the optimal generator dispatch, provided line congestion limits are respected.

The proposed architecture utilizes a load encoder (E) to reduce input dimensions before passing compressed embeddings to the main OPF-DNN.

The architecture consists of:

  1. Load Encoder (E): This component maps original active and reactive loads to a lower-dimensional embedded vector. The encoding is derived from a Bilevel Optimization Model that identifies the minimum set of active loads required to maintain an AC-feasible solution with a near-optimal cost. To ensure real-time performance, a machine learning proxy (linear or DNN-based) is trained to approximate this encoder.
  2. OPF-DNN: The primary predictive model, which takes the compressed load embeddings and outputs the final generator dispatch.

Experimental Evaluation

The approach was tested on a diverse set of benchmarks from the PGLib library, ranging from small 14-bus systems to large-scale realistic models with over 3,000 buses.

Dimensionality Reduction and Scalability

The load encoding scheme achieved substantial reductions in input dimensionality across nearly all test cases. For instance, the 189_edin case saw a 73% reduction in features. Even in cases where the number of loads was not reduced (e.g., the 118-bus system), the encoder acted as a feature transformer that significantly improved learning efficiency.

Dimensionality reduction achieved by the proposed encoder across various PGLib benchmarks.

Accuracy and Convergence

Beyond compression, the encoder significantly boosted prediction accuracy. In the 39_epri benchmark, the L1 error for generator dispatch was reduced by nearly 6x compared to a base model without encoding. Furthermore, training results demonstrated that models using the load encoder converge to high accuracy much faster—often achieving an order of magnitude better performance within the first few hundred epochs compared to the baseline.

Discussion and Future Directions

The results suggest that physics-grounded compression is superior to generic dimensionality reduction techniques like PCA for power systems. By focusing on preserving cost and feasibility, the encoder removes "noise" from the input space, allowing the subsequent DNN to focus on critical grid constraints.

Future work aims to extend this framework by explicitly maintaining physical values such as phase angles within the reduced network representation and combining encoding with Lagrangian dual methods to further enforce physical constraints. By effectively breaking the dimensionality bottleneck, this load encoding scheme paves the way for deploying high-performance AI solvers in large-scale, real-time power grid operations.

Summary updated

BibTeX
@misc{mak2021load,
  author = {Terrence W. K. Mak and Ferdinando Fioretto and Pascal Van Hentenryck},
  title = {{Load Embeddings for Scalable AC-OPF Learning}},
  year = {2021},
  eprint = {2101.03973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.03973},
}
Figure