mlsanityData to 14 Oct 2026

Alternating Differentiation for Optimization Layers

arXiv 2210.01802 ↗First posted 3 Oct 2022cs.LG cs.AI math.OCcited by 22

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2018Neural Ordinary Differential Equationscited by 3,779
  3. 2019DeepSDF: Learning Continuous Signed Distance Functions for Shape Representationcited by 2,689
  4. 2019Deep Equilibrium Modelscited by 615
  5. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
  6. 2019Differentiable Convex Optimization Layerscited by 465
  7. 2019Algorithm Unrolling: Interpretable, Efficient Deep Learning for Signal and Image Processingcited by 421
  8. 2016Input Convex Neural Networkscited by 414
  9. 2019Augmented Neural ODEscited by 397
  10. 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
  11. 2017Smart "Predict, then Optimize"cited by 339
  12. 2018Approximation Methods for Bilevel Programmingcited by 236
25 more
  1. 2021Efficient and Modular Implicit Differentiationcited by 203
  2. 2019SATNet: Bridging deep learning and logical reasoning using a differentiable satisfiability solvercited by 173
  3. 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 161
  4. 2020Multiscale Deep Equilibrium Modelscited by 151
  5. 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 112
  6. 2020Implicit Graph Neural Networkscited by 100
  7. 2018Understanding and correcting pathologies in the training of learned optimizerscited by 97
  8. 2019Smart Predict-and-Optimize for Hard Combinatorial Optimization Problemscited by 89
  9. 2021JFB: Jacobian-Free Backpropagation for Implicit Networkscited by 86
  10. 2020Interior Point Solving for LP-based prediction+optimisationcited by 83
  11. 2019Deep Declarative Networks: A New Hopecited by 78
  12. 2021Is Attention Better Than Matrix Decomposition?cited by 77
  13. 2021On Training Implicit Modelscited by 75
  14. 2019Differentiating Through a Cone Programcited by 73
  15. 2021Graph Neural Networks Inspired by Classical Iterative Algorithmscited by 60
  16. 2015Structured Prediction Energy Networkscited by 59
  17. 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
  18. 2017Unrolled Optimization with Deep Priorscited by 40
  19. 2017End-to-End Learning for Structured Prediction Energy Networkscited by 33
  20. 2018On the Differentiability of the Solution to Convex Optimization Problemscited by 23
  21. 2021Efficient differentiable quadratic programming layers: an ADMM approachcited by 19
  22. 2021Joint inference and input optimization in equilibrium networkscited by 15
  23. 2018Sparse and Constrained Attention for Neural Machine Translationcited by 13
  24. 2020Implicitly Defined Layers in Neural Networkscited by 7
  25. 2017Resource Management in Cloud Networking Using Economic Analysis and Pricing Models: A Surveycited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 5; 2024: 6; 2025: 5; 2026: 6.

22 papers.

Sort:

By area:

  1. 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
  2. 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 19
  3. 2024Differentiation Through Black-Box Quadratic Programming Solverscited by 10
  4. 2024BPQP: A Differentiable Convex Optimization Framework for Efficient End-to-End Learningcited by 10
  5. 2023IKOL: Inverse kinematics optimization layer for 3D human pose and shape estimation via Gauss-Newton differentiationcited by 9
  6. 2025End-to-End Probabilistic Framework for Learning with Hard Constraintscited by 9
  7. 2023Reduced Policy Optimization for Continuous Control with Hard Constraintscited by 6
  8. 2024LPGD: A General Framework for Backpropagation through Embedded Optimization Layerscited by 6
  9. 2025Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the Constraintscited by 6
  10. 2023DF2: Distribution-Free Decision-Focused Learningcited by 3
  11. 2024Understanding Representation of Deep Equilibrium Models from Neural Collapse Perspectivecited by 3
  12. 2025A Fully First-Order Layer for Differentiable Optimizationcited by 3
10 more
  1. 2023DFWLayer: Differentiable Frank-Wolfe Optimization Layercited by 2
  2. 2024Compact Optimality Verification for Optimization Proxiescited by 2
  3. 2025DiffCoord: Differentiable Coordination for Distributed Multi-Agent Trajectory Optimizationcited by 2
  4. 2026A Penalty Approach for Differentiation Through Black-Box Quadratic Programming Solverscited by 2
  5. 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
  6. 2026Differentiable Optimization Layers for Guaranteed Fairness in Deep Learningcited by 0
  7. 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programmingcited by 0
  8. 2026Elastic ODYN: Differentiable Optimization for Infeasible Control and Learning in Roboticscited by 0
  9. 2026Beyond Empirical Support: Structured Outlier Generation via Sinkhorn Optimal Transportcited by 0
  10. 2026dOPT: Differentiating Conic Optimization via Geometric Reductioncited by 0