Skip to main content
QUICK REVIEW

[Paper Review] Scaling Laws of Machine Learning for Optimal Power Flow

Xinyi Liu, Xuan He|arXiv (Cornell University)|Jan 6, 2026
Optimal Power Flow DistributionEngineering0 citations
TL;DR

This paper conducts the first systematic study of how ML-based OPF performance scales with data and compute, revealing power-law relationships for prediction error and constraint violations in DCOPF and ACOPF, and highlighting a feasibility-accuracy trade-off.

ABSTRACT

Optimal power flow (OPF) is one of the fundamental tasks for power system operations. While machine learning (ML) approaches such as deep neural networks (DNNs) have been widely studied to enhance OPF solution speed and performance, their practical deployment faces two critical scaling questions: What is the minimum training data volume required for reliable results? How should ML models' complexity balance accuracy with real-time computational limits? Existing studies evaluate discrete scenarios without quantifying these scaling relationships, leading to trial-and-error-based ML development in real-world applications. This work presents the first systematic scaling study for ML-based OPF across two dimensions: data scale (0.1K-40K training samples) and compute scale (multiple NN architectures with varying FLOPs). Our results reveal consistent power-law relationships on both DNNs and physics-informed NNs (PINNs) between each resource dimension and three core performance metrics: prediction error (MAE), constraint violations and speed. We find that for ACOPF, the accuracy metric scales with dataset size and training compute. These scaling laws enable predictable and principled ML pipeline design for OPF. We further identify the divergence between prediction accuracy and constraint feasibility and characterize the compute-optimal frontier. This work provides quantitative guidance for ML-OPF design and deployments.

Motivation & Objective

  • Motivate the need to understand how ML-OPF performance scales with data and compute in real-time power systems.
  • Quantify the data- and compute-related scaling laws for ML-OPF across DCOPF and ACOPF.
  • Provide actionable guidance for designing data collection and training budgets for ML-OPF deployments.
  • Evaluate feasibility vs. accuracy Trade-offs when using DNNs and physics-informed networks (PINNs) in ML-OPF.

Proposed method

  • Use DNN and PINN architectures to learn OPF mappings for DCOPF and ACOPF.
  • Quantify prediction accuracy (MAE) and physical feasibility (constraint violations) under varying data volumes and training compute.
  • Fit power-law scaling laws of the form m(x)=a x^alpha and report R^2 for data size (D) and compute (C).
  • Compute violations via AC power flow (ACPF) to derive violation metrics such as |ν| and branch violations.
  • Compare DNN and PINN in terms of accuracy-feasibility trade-offs across test cases.
  • Analyze compute scaling with fixed architectures to identify diminishing returns and Pareto-optimal frontiers.
Figure 1 : (First two rows) Data and (Last two rows) system scaling. Fitted power law scaling functions are also drawn.
Figure 1 : (First two rows) Data and (Last two rows) system scaling. Fitted power law scaling functions are also drawn.

Experimental results

Research questions

  • RQ1What are the data-scale and compute-scale exponents governing ML-OPF performance for DCOPF and ACOPF?
  • RQ2Do ML models exhibit consistent power-law scaling for prediction accuracy and physical feasibility as data or compute increases?
  • RQ3How do DNNs and PINNs compare in terms of the accuracy-feasibility trade-off across data and compute scales?
  • RQ4What is the compute-optimal frontier for ML-OPF architectures under real-time constraints?
  • RQ5How do scaling behaviors differ between DCOPF (linear) and ACOPF (nonlinear) problems?

Key findings

  • Prediction accuracy follows clear power-law scaling with data size for both DCOPF and ACOPF: DCOPF MAE(D)=0.7·D^(-0.624) (R^2=0.976); ACOPF MAE_Pg(D)=1.2·D^(-0.389) (R^2=0.992); MAE_Vm(D)=0.12·D^(-0.349) (R^2=0.985).
  • With data scaling from 0.1K to 40K samples, DCOPF MAE improves by about 95% and ACOPF MAE by about 91%, showing predictable data-driven gains.
  • Constraint violations scale less consistently with data; DCOPF violations remain largely flat due to linear approximation limits, while ACOPF violations follow their own power laws (Pg Vio(D)=1.93·D^(-0.207), R^2=0.600; Qg Vio(D)=27.6·D^(-0.030), R^2=0.700; Branch Vio(D)=1.74·D^(-0.369), R^2=0.938).
  • Compute scaling also follows power laws but with lower predictability (e.g., DCOPF MAE(C)=0.296·C^(-0.191), R^2=0.259; ACOPF MAE_Pg(C)=2.065·C^(-0.250), R^2=0.586; MAE_Vm(C)=0.188·C^(-0.216), R^2=0.632).
  • ACOPF shows stronger compute scaling than DCOPF (|alpha_C|=0.250 vs 0.191) and favors shallower networks under fixed compute budgets; DCOPF benefits less from compute scaling due to linear structure.
  • There is a notable feasibility-accuracy trade-off: PINNs can dramatically improve constraint violations with data (e.g., large violation reductions) but may worsen pure MAE compared to DNNs, implying a Pareto frontier between accuracy and feasibility.
Figure 2 : Compute Scaling on 118-bus system. IsoLoss contours show prediction error (color) versus training compute (FLOPs) and model size (Parameters). Dashed line: efficiency frontier. (Right) Best performance per architecture (blue) and global optimum (red star); error measured as MAE for $P_{g}
Figure 2 : Compute Scaling on 118-bus system. IsoLoss contours show prediction error (color) versus training compute (FLOPs) and model size (Parameters). Dashed line: efficiency frontier. (Right) Best performance per architecture (blue) and global optimum (red star); error measured as MAE for $P_{g}

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.