Alternating Differentiation for Optimization Layers
Not on the map. Why?
Abstract (arXiv)
The idea of embedding optimization problems into deep neural networks as optimization layers to encode constraints and inductive priors has taken hold in recent years. Most existing methods focus on implicitly differentiating Karush-Kuhn-Tucker (KKT) conditions in a way that requires expensive computations on the Jacobian matrix, which can be slow and memory-intensive. In this paper, we developed a new framework, named Alternating Differentiation (Alt-Diff), that differentiates optimization problems (here, specifically in the form of convex optimization problems with polyhedral constraints) in a fast and recursive way. Alt-Diff decouples the differentiation procedure into a primal update and a dual update in an alternating way. Accordingly, Alt-Diff substantially decreases the dimensions of the Jacobian matrix especially for optimization with large-scale constraints and thus increases the computational speed of implicit differentiation. We show that the gradients obtained by Alt-Diff are consistent with those obtained by differentiating KKT conditions. In addition, we propose to truncate Alt-Diff to further accelerate the computational speed. Under some standard assumptions, we show that the truncation error of gradients is upper bounded by the same order of variables' estimation error. Therefore, Alt-Diff can be truncated to further increase computational speed without sacrificing much accuracy. A series of comprehensive experiments validate the superiority of Alt-Diff.
Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Builds on 37 of its 56 references that are in the map. First posted on arXiv 3 Oct 2022.
Builds on
37 of 56 references.
References · 37
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2018Neural Ordinary Differential Equationscited by 3,779
- 2019DeepSDF: Learning Continuous Signed Distance Functions for Shape Representationcited by 2,689
- 2019Deep Equilibrium Modelscited by 615
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
- 2019Differentiable Convex Optimization Layerscited by 465
- 2019Algorithm Unrolling: Interpretable, Efficient Deep Learning for Signal and Image Processingcited by 421
- 2016Input Convex Neural Networkscited by 414
- 2019Augmented Neural ODEscited by 397
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
- 2017Smart "Predict, then Optimize"cited by 339
- 2018Approximation Methods for Bilevel Programmingcited by 236
25 more
- 2021Efficient and Modular Implicit Differentiationcited by 203
- 2019SATNet: Bridging deep learning and logical reasoning using a differentiable satisfiability solvercited by 173
- 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 161
- 2020Multiscale Deep Equilibrium Modelscited by 151
- 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 112
- 2020Implicit Graph Neural Networkscited by 100
- 2018Understanding and correcting pathologies in the training of learned optimizerscited by 97
- 2019Smart Predict-and-Optimize for Hard Combinatorial Optimization Problemscited by 89
- 2021JFB: Jacobian-Free Backpropagation for Implicit Networkscited by 86
- 2020Interior Point Solving for LP-based prediction+optimisationcited by 83
- 2019Deep Declarative Networks: A New Hopecited by 78
- 2021Is Attention Better Than Matrix Decomposition?cited by 77
- 2021On Training Implicit Modelscited by 75
- 2019Differentiating Through a Cone Programcited by 73
- 2021Graph Neural Networks Inspired by Classical Iterative Algorithmscited by 60
- 2015Structured Prediction Energy Networkscited by 59
- 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
- 2017Unrolled Optimization with Deep Priorscited by 40
- 2017End-to-End Learning for Structured Prediction Energy Networkscited by 33
- 2018On the Differentiability of the Solution to Convex Optimization Problemscited by 23
- 2021Efficient differentiable quadratic programming layers: an ADMM approachcited by 19
- 2021Joint inference and input optimization in equilibrium networkscited by 15
- 2018Sparse and Constrained Attention for Neural Machine Translationcited by 13
- 2020Implicitly Defined Layers in Neural Networkscited by 7
- 2017Resource Management in Cloud Networking Using Economic Analysis and Pricing Models: A Surveycited by 2
Built on by
Citing papers per year: 2023: 5; 2024: 6; 2025: 5; 2026: 6.
22 papers.
Sort:
By area:
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 19
- 2024Differentiation Through Black-Box Quadratic Programming Solverscited by 10
- 2024BPQP: A Differentiable Convex Optimization Framework for Efficient End-to-End Learningcited by 10
- 2023IKOL: Inverse kinematics optimization layer for 3D human pose and shape estimation via Gauss-Newton differentiationcited by 9
- 2025End-to-End Probabilistic Framework for Learning with Hard Constraintscited by 9
- 2023Reduced Policy Optimization for Continuous Control with Hard Constraintscited by 6
- 2024LPGD: A General Framework for Backpropagation through Embedded Optimization Layerscited by 6
- 2025Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the Constraintscited by 6
- 2023DF2: Distribution-Free Decision-Focused Learningcited by 3
- 2024Understanding Representation of Deep Equilibrium Models from Neural Collapse Perspectivecited by 3
- 2025A Fully First-Order Layer for Differentiable Optimizationcited by 3
10 more
- 2023DFWLayer: Differentiable Frank-Wolfe Optimization Layercited by 2
- 2024Compact Optimality Verification for Optimization Proxiescited by 2
- 2025DiffCoord: Differentiable Coordination for Distributed Multi-Agent Trajectory Optimizationcited by 2
- 2026A Penalty Approach for Differentiation Through Black-Box Quadratic Programming Solverscited by 2
- 2024SPO-VCS: An End-to-End Smart Predict-then-Optimize Framework with Alternating Differentiation Method for Relocation Problems in Large-Scale Vehicle Crowd Sensingcited by 0
- 2026Differentiable Optimization Layers for Guaranteed Fairness in Deep Learningcited by 0
- 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programmingcited by 0
- 2026Elastic ODYN: Differentiable Optimization for Infeasible Control and Learning in Roboticscited by 0
- 2026Beyond Empirical Support: Structured Outlier Generation via Sinkhorn Optimal Transportcited by 0
- 2026dOPT: Differentiating Conic Optimization via Geometric Reductioncited by 0
- 2026dOPT: Differentiating Conic Optimization via Geometric Reduction27 Sep 2026
- 2026Beyond Empirical Support: Structured Outlier Generation via Sinkhorn Optimal Transport25 Sep 2026
- 2026Elastic ODYN: Differentiable Optimization for Infeasible Control and Learning in Robotics15 Jun 2026
- 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programming4 Jun 2026
- 2026Differentiable Optimization Layers for Guaranteed Fairness in Deep Learning16 May 2026
- 2026A Penalty Approach for Differentiation Through Black-Box Quadratic Programming Solvers15 Feb 2026
- 2025A Fully First-Order Layer for Differentiable Optimization2 Dec 2025
- 2025Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the Constraints6 Oct 2025
- 2025DiffCoord: Differentiable Coordination for Distributed Multi-Agent Trajectory Optimization1 Sep 2025
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layers14 Aug 2025
- 2025End-to-End Probabilistic Framework for Learning with Hard Constraints8 Jun 2025
- 2024BPQP: A Differentiable Convex Optimization Framework for Efficient End-to-End Learning28 Nov 2024
10 more
- 2024SPO-VCS: An End-to-End Smart Predict-then-Optimize Framework with Alternating Differentiation Method for Relocation Problems in Large-Scale Vehicle Crowd Sensing27 Nov 2024
- 2024Understanding Representation of Deep Equilibrium Models from Neural Collapse Perspective30 Oct 2024
- 2024Differentiation Through Black-Box Quadratic Programming Solvers8 Oct 2024
- 2024LPGD: A General Framework for Backpropagation through Embedded Optimization Layers8 Jul 2024
- 2024Compact Optimality Verification for Optimization Proxies31 May 2024
- 2023Reduced Policy Optimization for Continuous Control with Hard Constraints14 Oct 2023
- 2023DFWLayer: Differentiable Frank-Wolfe Optimization Layer21 Aug 2023
- 2023DF2: Distribution-Free Decision-Focused Learning11 Aug 2023
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertainty17 Jun 2023
- 2023IKOL: Inverse kinematics optimization layer for 3D human pose and shape estimation via Gauss-Newton differentiation2 Feb 2023
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 19
- 2024Differentiation Through Black-Box Quadratic Programming Solverscited by 10
- 2024BPQP: A Differentiable Convex Optimization Framework for Efficient End-to-End Learningcited by 10
- 2023IKOL: Inverse kinematics optimization layer for 3D human pose and shape estimation via Gauss-Newton differentiationcited by 9
- 2025End-to-End Probabilistic Framework for Learning with Hard Constraintscited by 9
- 2023Reduced Policy Optimization for Continuous Control with Hard Constraintscited by 6
- 2024LPGD: A General Framework for Backpropagation through Embedded Optimization Layerscited by 6
- 2025Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the Constraintscited by 6
- 2023DF2: Distribution-Free Decision-Focused Learningcited by 3
- 2024Understanding Representation of Deep Equilibrium Models from Neural Collapse Perspectivecited by 3
- 2025A Fully First-Order Layer for Differentiable Optimizationcited by 3
12 most cited of 21 All 21 (JSON)
- 2026dOPT: Differentiating Conic Optimization via Geometric Reduction27 Sep 2026
- 2026Beyond Empirical Support: Structured Outlier Generation via Sinkhorn Optimal Transport25 Sep 2026
- 2026Elastic ODYN: Differentiable Optimization for Infeasible Control and Learning in Robotics15 Jun 2026
- 2026Differentiable Optimization Layers for Guaranteed Fairness in Deep Learning16 May 2026
- 2026A Penalty Approach for Differentiation Through Black-Box Quadratic Programming Solvers15 Feb 2026
- 2025A Fully First-Order Layer for Differentiable Optimization2 Dec 2025
- 2025Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the Constraints6 Oct 2025
- 2025DiffCoord: Differentiable Coordination for Distributed Multi-Agent Trajectory Optimization1 Sep 2025
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layers14 Aug 2025
- 2025End-to-End Probabilistic Framework for Learning with Hard Constraints8 Jun 2025
- 2024BPQP: A Differentiable Convex Optimization Framework for Efficient End-to-End Learning28 Nov 2024
- 2024SPO-VCS: An End-to-End Smart Predict-then-Optimize Framework with Alternating Differentiation Method for Relocation Problems in Large-Scale Vehicle Crowd Sensing27 Nov 2024
12 newest of 21 All 21 (JSON)