Differentiating through Log-Log Convex Programs
Not on the map. Why?
Abstract (arXiv)
We show how to efficiently compute the derivative (when it exists) of the solution map of log-log convex programs (LLCPs). These are nonconvex, nonsmooth optimization problems with positive variables that become convex when the variables, objective functions, and constraint functions are replaced with their logs. We focus specifically on LLCPs generated by disciplined geometric programming, a grammar consisting of a set of atomic functions with known log-log curvature and a composition rule for combining them. We represent a parametrized LLCP as the composition of a smooth transformation of parameters, a convex optimization problem, and an exponential transformation of the convex optimization problem's solution. The derivative of this composition can be computed efficiently, using recently developed methods for differentiating through convex optimization problems. We implement our method in CVXPY, a Python-embedded modeling language and rewriting system for convex optimization. In just a few lines of code, a user can specify a parametrized LLCP, solve it, and evaluate the derivative or its adjoint at a vector. This makes it possible to conduct sensitivity analyses of solutions, given perturbations to the parameters, and to compute the gradient of a function of the solution with respect to the parameters. We use the adjoint of the derivative to implement differentiable log-log convex optimization layers in PyTorch and TensorFlow. Finally, we present applications to designing queuing systems and fitting structured prediction models.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 0; 2024: 2; 2025: 0; 2026: 2.
7 papers.
- 2021Strategic Classification Made Practicalcited by 58
- 2022Flexible Differentiable Optimization via Model Transformationscited by 16
- 2024Safe Reinforcement Learning on the Constraint Manifold: Theory and Applicationscited by 12
- 2024OpenRANet: Neuralized Spectrum Access by Joint Subcarrier and Power Allocation with Optimization-based Deep Learningcited by 1
- 2026Learning to Optimize by Differentiable Programmingcited by 1
- 2021Unfolding Projection-free SDP Relaxation of Binary Graph Classifier via GDPA Linearizationcited by 0
- 2026DIFFRACT: Neuralized Utility Maximization for Wireless Networks by Differentiable Programmingcited by 0
- 2026DIFFRACT: Neuralized Utility Maximization for Wireless Networks by Differentiable Programming5 Jun 2026
- 2026Learning to Optimize by Differentiable Programming23 Jan 2026
- 2024OpenRANet: Neuralized Spectrum Access by Joint Subcarrier and Power Allocation with Optimization-based Deep Learning31 Aug 2024
- 2024Safe Reinforcement Learning on the Constraint Manifold: Theory and Applications13 Apr 2024
- 2022Flexible Differentiable Optimization via Model Transformations10 Jun 2022
- 2021Unfolding Projection-free SDP Relaxation of Binary Graph Classifier via GDPA Linearization10 Sep 2021
- 2021Strategic Classification Made Practical2 Mar 2021