Fast Diffusion with Physics-Correction for ACOPF
Shashank Shekhar, Abhinav Karn, Kris Keshav, Shivam Bansal, Parikshit Pareek
TL;DR
ACOPF data generation aims to produce large-scale, physically feasible operating points in a high-dimensional state space $\mathbf{x}\in\mathbb{R}^{4n}$, but standard diffusion sampling is prohibitively slow. The authors propose a DDIM-based diffusion model augmented with physics-guided constraint guidance that initializes samples near the ACOPF feasible manifold and steers the diffusion trajectory via gradient penalties, reducing the number of steps required. Experiments on IEEE 6-, 24-, and 118-bus systems show that this approach preserves distributional fidelity and statistical similarity while delivering up to $20\times$ faster sampling than DDPM, with feasible solutions maintained through differentiable projection steps. The work enables scalable ACOPF dataset generation for data-driven power-system applications and digital twins, with code released at the provided repository.
Abstract
Generating large-scale, physically consistent AC Optimal Power Flow (ACOPF) datasets is essential for modern data-driven power system applications. The central challenge lies in balancing solution accuracy with computational efficiency. Recent diffusion-based generative models produce high-quality samples; however, their slow sampling procedures limit practical scalability. In this work, we argue that exact physical feasibility is ultimately enforced by power flow solvers or projection steps, and therefore the generative model only needs to produce good initializations rather than perfectly feasible solutions. Based on this insight, we propose a fast diffusion framework using Denoising Diffusion Implicit Models (DDIM) combined with physics-guided corrections during sampling. The proposed method replaces slow stochastic refinement with a small number of deterministic steps and explicit constraint guidance. Experiments on IEEE 6-, 24-, and 118-bus systems show that our approach achieves up to 20 times faster sampling than standard diffusion models while maintaining comparable statistical accuracy and physical consistency. This makes the method well suited for scalable OPF dataset generation and practical power system learning tasks. We release the implementation code at https://github.com/PSquare-Lab/DDIM_OPF.
