[Paper Review] A Convex Neural Network Solver for DCOPF with Generalization Guarantees
This paper proposes a convex neural network solver for DCOPF that guarantees generalization by combining input convex neural networks (ICNNs) with KKT condition-based training loss. By enforcing convexity in the network architecture and minimizing KKT violations during training, the method achieves a 5× improvement in optimality ratio and significantly reduced infeasibility compared to end-to-end models, even on unseen input regions.
The DC optimal power flow (DCOPF) problem is a fundamental problem in power systems operations and planning. With high penetration of uncertain renewable resources in power systems, DCOPF needs to be solved repeatedly for a large amount of scenarios, which can be computationally challenging. As an alternative to iterative solvers, neural networks are often trained and used to solve DCOPF. These approaches can offer orders of magnitude reduction in computational time, but they cannot guarantee generalization, and small training error does not imply small testing errors. In this work, we propose a novel algorithm for solving DCOPF that guarantees the generalization performance. First, by utilizing the convexity of DCOPF problem, we train an input convex neural network. Second, we construct the training loss based on KKT optimality conditions. By combining these two techniques, the trained model has provable generalization properties, where small training error implies small testing errors. In experiments, our algorithm improves the optimality ratio of the solutions by a factor of five in comparison to end-to-end models.
Motivation & Objective
- Address the lack of generalization guarantees in deep learning-based DCOPF solvers, which often fail on unseen scenarios despite low training error.
- Overcome the challenge of high-dimensional load space by leveraging structural properties of DCOPF, such as convexity and KKT conditions.
- Develop a machine learning framework that ensures small training error implies small testing error, even when testing data lies outside the training distribution.
- Improve robustness and reliability of neural network surrogates for real-time power system operations under renewable uncertainty.
- Enable the use of unlabeled data in training by incorporating KKT conditions as a regularization term, reducing reliance on expensive labeled scenarios.
Proposed method
- Use input convex neural networks (ICNNs) to enforce convexity in the mapping from load to optimal generation, ensuring that the model's output inherits the convex structure of the true DCOPF cost function.
- Construct a training loss function that combines regression loss on optimal generation values with a KKT violation loss, penalizing deviations from optimality conditions.
- Formulate the KKT loss as a set of partial differential equations derived from the dual variables (LMPs) and their relationship to the value function's gradient.
- Train the model using both labeled data (with known optimal solutions) and unlabeled data (where only load values are available), by minimizing the KKT-based loss on the unlabeled points.
- Introduce a helper set of unlabeled samples from regions not covered in training to improve generalization to unseen input distributions.
- Leverage the fact that KKT conditions are necessary and sufficient for optimality in convex problems, ensuring that minimizing KKT violations leads to globally optimal solutions.
Experimental results
Research questions
- RQ1Can a neural network solver for DCOPF be designed to guarantee generalization, such that low training error implies low testing error?
- RQ2How can the convex structure of the DCOPF problem be embedded into a neural network architecture to improve generalization?
- RQ3Can KKT conditions be used as a regularization mechanism in training to improve performance on unseen data without requiring labeled examples?
- RQ4To what extent can unlabeled data be used to improve the robustness of a DCOPF surrogate model?
- RQ5How does the proposed method compare to end-to-end neural networks in terms of optimality and feasibility on out-of-distribution test samples?
Key findings
- The proposed method achieves a 97.24% optimality ratio on test data from unseen regions when using a helper set, compared to only 5.52% for the end-to-end model.
- Even without a helper set, the method maintains a 62.25% optimality ratio, significantly outperforming the end-to-end model’s failure to produce feasible solutions.
- The feasibility ratio for the proposed model exceeds 97% on both generator and line flow limits, and over 90% for nodal power balance, even on unseen data.
- The method reduces the infeasibility ratio by up to an order of magnitude compared to end-to-end models, demonstrating strong robustness.
- The use of KKT-augmented loss enables the model to generalize well across different constraint activation patterns, even when training data does not cover the entire input space.
- Theoretical analysis shows that convexity in the network architecture ensures that small training error implies small testing error across entire input regions, not just sampled points.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.