Skip to main content
QUICK REVIEW

[Paper Review] Adversarially Robust Learning for Security-Constrained Optimal Power Flow

Priya L. Donti, Aayushya Agarwal|arXiv (Cornell University)|Nov 12, 2021
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper proposes CAN∂Y, a differentiable, gradient-based minimax framework for scalable N-k security-constrained optimal power flow (SCOPF) by modeling equipment outages as adversarial attacks. It leverages implicit differentiation to efficiently compute gradients through grid physics and operational decisions, enabling 21-minute N-3 SCOPF solutions on a 4622-bus system with 3–4× fewer feasibility violations than baseline OPF.

ABSTRACT

In recent years, the ML community has seen surges of interest in both adversarially robust learning and implicit layers, but connections between these two areas have seldom been explored. In this work, we combine innovations from these areas to tackle the problem of N-k security-constrained optimal power flow (SCOPF). N-k SCOPF is a core problem for the operation of electrical grids, and aims to schedule power generation in a manner that is robust to potentially k simultaneous equipment outages. Inspired by methods in adversarially robust training, we frame N-k SCOPF as a minimax optimization problem - viewing power generation settings as adjustable parameters and equipment outages as (adversarial) attacks - and solve this problem via gradient-based techniques. The loss function of this minimax problem involves resolving implicit equations representing grid physics and operational decisions, which we differentiate through via the implicit function theorem. We demonstrate the efficacy of our framework in solving N-3 SCOPF, which has traditionally been considered as prohibitively expensive to solve given that the problem size depends combinatorially on the number of potential outages.

Motivation & Objective

  • Address the computational intractability of N-k SCOPF due to combinatorial contingency scenarios in large power systems.
  • Develop a scalable, differentiable framework to optimize power dispatch robust to up to k simultaneous equipment outages.
  • Enable efficient gradient-based optimization through implicit differentiation of grid physics and operational decisions.
  • Demonstrate practical scalability on realistic systems with billions of potential N-3 contingencies.

Proposed method

  • Formulate N-k SCOPF as a continuous minimax optimization problem, treating power dispatch as the defender and outage patterns as adversarial attacks.
  • Model contingency selection as a projected gradient descent (PGD) attack on the outage space, using gradient information from implicit derivatives.
  • Apply the implicit function theorem to differentiate through the solution of implicit equations representing power flow physics and post-outage redispatch.
  • Reuse solver structure and optimize computational efficiency in the outer minimization via structured gradient computation.
  • Use a continuous approximation of contingency sets to avoid explicit enumeration of all N-k scenarios.
  • Integrate differentiable optimization layers to enable end-to-end backpropagation through the entire SCOPF pipeline.

Experimental results

Research questions

  • RQ1Can adversarially robust optimization techniques be adapted to scale N-k SCOPF beyond N-1 or N-2 cases on realistic power systems?
  • RQ2How can implicit differentiation be used to efficiently compute gradients through power flow equations and post-contingency redispatch decisions?
  • RQ3To what extent does a gradient-based minimax approach reduce N-k feasibility violations compared to standard OPF or N-1 SCOPF solvers?
  • RQ4Can the method scale to N-3 SCOPF on large systems (e.g., 4622-bus) without explicit enumeration of all contingency scenarios?
  • RQ5How do the identified worst-case contingencies from the attack phase compare to real-world system vulnerabilities?

Key findings

  • CAN∂Y solved N-3 SCOPF on a realistic 4622-node power system with over 38 billion potential contingencies in just 21 minutes on a standard laptop.
  • The method reduced N-3 feasibility violations by a factor of 3–4× compared to a baseline optimal power flow (OPF) approach.
  • Compared to a baseline N-1 SCOPF solver, CAN∂Y reduced N-3 violations by nearly 5×, indicating superior robustness to higher-order contingencies.
  • Of the 4,086 N-3 violations incurred by OPF, 931 were also violated by CAN∂Y, but the remaining 191 violations were disjoint, showing complementary robustness.
  • The framework’s per-iteration cost is independent of k, enabling efficient scaling to N-3 without combinatorial blowup in scenario enumeration.
  • The method effectively identifies worst-case contingencies via gradient-based attacks, demonstrating that adversarial robustness principles can be transferred to power system optimization.

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.