Skip to main content
QUICK REVIEW

[Paper Review] Differentiating Through a Conic Program

Akshay Agrawal, Shane Barratt|arXiv (Cornell University)|Apr 19, 2019
Advanced Optimization Algorithms ResearchMathematics43 references38 citations
TL;DR

This paper proposes an efficient method for computing derivatives of the solution map in convex cone programs by implicitly differentiating the residual map of their homogeneous self-dual embedding and solving the resulting linear systems with iterative methods. The approach enables scalable computation of the derivative operator and its adjoint for problems with millions of coefficients, supporting perturbation analysis and gradient computation via automatic differentiation.

ABSTRACT

We consider the problem of efficiently computing the derivative of the solution map of a convex cone program, when it exists. We do this by implicitly differentiating the residual map for its homogeneous self-dual embedding, and solving the linear systems of equations required using an iterative method. This allows us to efficiently compute the derivative operator, and its adjoint, evaluated at a vector. These correspond to computing an approximate new solution, given a perturbation to the cone program coefficients (i.e., perturbation analysis), and to computing the gradient of a function of the solution with respect to the coefficients. Our method scales to large problems, with numbers of coefficients in the millions. We present an open-source Python implementation of our method that solves a cone program and returns the derivative and its adjoint as abstract linear maps; our implementation can be easily integrated into software systems for automatic differentiation.

Motivation & Objective

  • To enable efficient computation of derivatives of the solution map in convex cone programs when the solution is differentiable.
  • To support perturbation analysis by computing how small changes in problem coefficients affect the solution.
  • To compute gradients of objective functions depending on the cone program solution with respect to coefficients.
  • To scale derivative computation to large problems with millions of coefficients.
  • To provide an open-source implementation that integrates with automatic differentiation frameworks.

Proposed method

  • The method implicitly differentiates the residual map of the homogeneous self-dual embedding of a cone program.
  • It formulates the derivative computation as a system of linear equations derived from the implicit function theorem.
  • Iterative solvers are used to efficiently solve the linear systems arising from the derivative computation.
  • The approach computes both the derivative operator and its adjoint as abstract linear maps.
  • The implementation is built in Python and exposes the derivative and adjoint as first-class objects for integration into AD pipelines.
  • The method avoids explicit matrix assembly, enabling scalability to large-scale problems.

Experimental results

Research questions

  • RQ1How can we efficiently compute the derivative of the solution map for a convex cone program?
  • RQ2What is the most scalable way to compute the derivative and its adjoint for large-scale cone programs?
  • RQ3Can we use implicit differentiation and iterative solvers to avoid explicit matrix formation in derivative computation?
  • RQ4How well does the method scale to problems with millions of coefficients?
  • RQ5Can the computed derivative and adjoint be seamlessly integrated into automatic differentiation frameworks?

Key findings

  • The method enables efficient computation of the derivative operator and its adjoint for convex cone programs using implicit differentiation and iterative linear solvers.
  • The approach scales to problems with up to millions of coefficients, demonstrating practical feasibility for large-scale applications.
  • The derivative computation supports both perturbation analysis and gradient computation for functions of the solution.
  • The open-source Python implementation exposes the derivative and adjoint as abstract linear maps, facilitating integration into AD systems.
  • The method avoids explicit matrix assembly, reducing memory overhead and improving computational efficiency.
  • The technique is robust and accurate, as validated through numerical experiments on large-scale cone programs.

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.