mlsanityData to 7 Oct 2026

Differentiable Convex Optimization Layers

arXiv 1910.12430 ↗First posted 28 Oct 2019cs.LG math.OC stat.MLcited by 458

Not on the map. Why?

Abstract (arXiv)

Recent work has shown how to embed differentiable optimization problems (that is, problems whose solutions can be backpropagated through) as layers within deep learning architectures. This method provides a useful inductive bias for certain problems, but existing software for differentiable optimization layers is rigid and difficult to apply to new settings. In this paper, we propose an approach to differentiating through disciplined convex programs, a subclass of convex optimization problems used by domain-specific languages (DSLs) for convex optimization. We introduce disciplined parametrized programming, a subset of disciplined convex programming, and we show that every disciplined parametrized program can be represented as the composition of an affine map from parameters to problem data, a solver, and an affine map from the solver's solution to a solution of the original problem (a new form we refer to as affine-solver-affine form). We then demonstrate how to efficiently differentiate through each of these components, allowing for end-to-end analytical differentiation through the entire convex program. We implement our methodology in version 1.1 of CVXPY, a popular Python-embedded DSL for convex optimization, and additionally implement differentiable layers for disciplined convex programs in PyTorch and TensorFlow 2.0. Our implementation significantly lowers the barrier to using convex optimization problems in differentiable programs. We present applications in linear machine learning models and in stochastic control, and we show that our layer is competitive (in execution time) compared to specialized differentiable solvers from past work.

Key facts. Cited by 458 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Oct 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 58; 2022: 68; 2023: 87; 2024: 70; 2025: 70; 2026: 105.

458 papers.

Sort:

By area:

  1. 2021Efficient and Modular Implicit Differentiationcited by 199
  2. 2021DC3: A learning method for optimization with hard constraintscited by 181
  3. 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
  4. 2023Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunitiescited by 129
  5. 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
  6. 2022Tutorial on amortized optimizationcited by 83
  7. 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 81
  8. 2021Differentiable Learning Under Triagecited by 74
  9. 2021Neural Monocular 3D Human Motion Capture with Physical Awarenesscited by 70
  10. 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 64
  11. 2021Strategic Classification Made Practicalcited by 58
  12. 2022Self-Destructing Models: Increasing the Costs of Harmful Dual Uses of Foundation Modelscited by 56
38 more
  1. 2022Model-Based Deep Learning: On the Intersection of Deep Learning and Optimizationcited by 50
  2. 2021CombOptNet: Fit the Right NP-Hard Problem by Learning Integer Programming Constraintscited by 49
  3. 2022Object Representations as Fixed Points: Training Iterative Refinement Algorithms with Implicit Differentiationcited by 46
  4. 2025Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraintscited by 46
  5. 2021Safe Reinforcement Learning Using Robust Control Barrier Functionscited by 44
  6. 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
  7. 2021Adversarial Robustness with Semi-Infinite Constrained Learningcited by 39
  8. 2022D&D: Learning Human Dynamics from Dynamic Cameracited by 39
  9. 2023End-to-End Feasible Optimization Proxies for Large-Scale Economic Dispatchcited by 35
  10. 2022Learning differentiable solvers for systems with hard constraintscited by 34
  11. 2021Extending Lagrangian and Hamiltonian Neural Networks with Differentiable Contact Modelscited by 33
  12. 2022PyEPO: A PyTorch-based End-to-End Predict-then-Optimize Library for Linear and Integer Programmingcited by 32
  13. 2021Enforcing Policy Feasibility Constraints through Differentiable Projection for Energy Optimizationcited by 31
  14. 2023RAYEN: Imposition of Hard Convex Constraints on Neural Networkscited by 30
  15. 2024Physics-Informed Neural Networks with Hard Linear Equality Constraintscited by 30
  16. 2022Backpropagation through Combinatorial Algorithms: Identity with Projection Workscited by 29
  17. 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
  18. 2022Learning with Combinatorial Optimization Layers: a Probabilistic Approachcited by 28
  19. 2023One-step differentiation of iterative algorithmscited by 28
  20. 2023Physics-Informed Machine Learning for Modeling and Control of Dynamical Systemscited by 28
  21. 2022Learning Model Predictive Controllers with Real-Time Attention for Real-World Navigationcited by 27
  22. 2022Beyond backpropagation: bilevel optimization through implicit differentiation and equilibrium propagationcited by 26
  23. 2021Integrated Conditional Estimation-Optimizationcited by 25
  24. 2022Automatic differentiation of nonsmooth iterative algorithmscited by 25
  25. 2021Differentiable Trust Region Layers for Deep Reinforcement Learningcited by 24
  26. 2021Implicit differentiation for fast hyperparameter selection in non-smooth convex learningcited by 22
  27. 2022Alternating Differentiation for Optimization Layerscited by 22
  28. 2021To The Point: Correspondence-driven monocular 3D category reconstructioncited by 21
  29. 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problemscited by 21
  30. 2021Robust Implicit Networks via Non-Euclidean Contractionscited by 19
  31. 2021Efficient differentiable quadratic programming layers: an ADMM approachcited by 19
  32. 2022End-to-End Stochastic Optimization with Energy-Based Modelcited by 19
  33. 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 19
  34. 2021Escaping from Zero Gradient: Revisiting Action-Constrained Reinforcement Learning via Frank-Wolfe Policy Optimizationcited by 18
  35. 2023Leaving the Nest: Going Beyond Local Loss Functions for Predict-Then-Optimizecited by 18
  36. 2024TOP-ERL: Transformer-based Off-Policy Episodic Reinforcement Learningcited by 18
  37. 2025Gen-DFL: Decision-Focused Generative Learning for Robust Decision Makingcited by 18
  38. 2021Multiset-Equivariant Set Prediction with Approximate Implicit Differentiationcited by 17

50 most cited of 458 All 458 (JSON)