ML-OPF-Bench: Benchmarking Machine Learning for Optimal Power Flow
eess.SY, cs.LG, cs.SY
Submitted: 2026-10-03
Updated: 2026-10-03
Comments: 25 pages, 9 figures, in submission. Code available at https://github.com/XinyiLiu04/ML-OPF-Bench; Datasets available at https://huggingface.co/datasets/xinyi-liu/ML-OPF-Bench
Code: https://github.com/XinyiLiu04/ML-OPF-Bench
License: http://creativecommons.org/licenses/by/4.0/
The gist: Machine Learning (ML) methods promise a fast solution process for Optimal Power Flow (OPF).
Terminology
Abstract
Machine Learning (ML) methods promise a fast solution process for Optimal Power Flow (OPF). While inconsistent test cases, implementations, and evaluation metrics across existing studies make it challenging to determine which algorithmic advances are most critical for real-world deployment. To this end, we propose ML-OPF-Bench, a unified benchmark for AC- and DC-OPF that evaluates representative ML algorithms under a consistent pipeline, stress-tests them across system sizes, distribution shifts, and resource budgets, and ranks them with a multi-objective framework. We find that prediction accuracy alone is not a reliable indicator of operational feasibility. Under heavily loaded, congested conditions, even the strongest in-distribution performers lose their advantage, while feasibility is maintained largely by post-processing that enforces the target constraints rather than by the underlying pure ML predictor. Data scaling shows that prediction accuracy and constraint violations follow different trajectories, whereas compute scaling shows that returns diminish and that larger models do not consistently perform better. These results expose critical trade-offs among ML methods' speed, accuracy, and feasibility, and offer practical guidance for future ML-OPF design. We open-source the benchmark as an extensible Python package for integrating new learning-based OPF algorithms and evaluating them under the same standard as the existing baselines.
Sources
- The Power Grid Library for Benchmarking AC Optimal Power Flow Algorithms
- Revisiting Deep AC-OPF
- Deep Learning Scaling is Predictable, Empirically
- Training Compute-Optimal Large Language Models
- Scaling Laws for Neural Language Models
- Adam: A Method for Stochastic Optimization
- Coordinated Expansion Planning of Transmission and Distribution Systems Integrated with Smart Grid Technologies
- Physics-Informed Neural Networks for AC Optimal Power Flow
- PyTorch: An Imperative Style, High-Performance Deep Learning Library
- fev-bench: A Realistic Benchmark for Time Series Forecasting
- ProOPF: Benchmarking and Improving LLMs for Professional-Grade Power Systems Optimization Modeling
- Can LLMs Correct Themselves? A Benchmark of Self-Correction in LLMs
- Learning the Optimal Power Flow: Environment Design Matters
Related papers
- One Request, Multiple Experts: LLM Orchestrates Domain Specific Models via Adaptive Task Routing
- A Geometric Decision Procedure for STL Feasibility and Repair
- Scaling up statistical model checking of cyber-physical systems via algorithm ensemble and parallel simulations over HPC infrastructures
- From Asymptotic to Designer-Assigned-Time Control: A Review of Stability Notions, Design Mechanisms, and Controller Architectures
- Battery Second Life: A Review of Experimental Studies
- Submodular Multi-Agent Policy Learning for Online Distributed Task Allocation in Open Multi-Agent Systems