mlsanityData to 14 Oct 2026

Efficient and Modular Implicit Differentiation

arXiv 2105.15183 ↗First posted 31 May 2021cs.LG cs.NA math.NAcited by 203

Not on the map. Why?

Abstract (arXiv)

Automatic differentiation (autodiff) has revolutionized machine learning. It allows to express complex computations by composing elementary ones in creative ways and removes the burden of computing their derivatives by hand. More recently, differentiation of optimization problem solutions has attracted widespread attention with applications such as optimization layers, and in bi-level problems such as hyper-parameter optimization and meta-learning. However, so far, implicit differentiation remained difficult to use for practitioners, as it often required case-by-case tedious mathematical derivations and implementations. In this paper, we propose automatic implicit differentiation, an efficient and modular approach for implicit differentiation of optimization problems. In our approach, the user defines directly in Python a function F capturing the optimality conditions of the problem to be differentiated. Once this is done, we leverage autodiff of F and the implicit function theorem to automatically differentiate the optimization problem. Our approach thus combines the benefits of implicit differentiation and autodiff. It is efficient as it can be added on top of any state-of-the-art solver and modular as the optimality condition specification is decoupled from the implicit differentiation mechanism. We show that seemingly simple principles allow to recover many existing implicit differentiation methods and create new ones easily. We demonstrate the ease of formulating and solving bi-level optimization problems using our framework. We also showcase an application to the sensitivity analysis of molecular dynamics.

Key facts. Cited by 203 papers in the map (data through 14 Oct 2026). Builds on 37 of its 90 references that are in the map. First posted on arXiv 31 May 2021.

Builds on

37 of 90 references.

References · 37

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
  4. 2016CVXPY: A Python-Embedded Modeling Language for Convex Optimizationcited by 641
  5. 2019Deep Equilibrium Modelscited by 615
  6. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
  7. 2019Meta-Learning with Implicit Gradientscited by 525
  8. 2019Differentiable Convex Optimization Layerscited by 465
  9. 2018Bilevel Programming for Hyperparameter Optimization and Meta-Learningcited by 405
  10. 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
  11. 2019Optimizing Millions of Hyperparameters by Implicit Differentiationcited by 304
  12. 2017Forward and Reverse Gradient-Based Hyperparameter Optimizationcited by 234
25 more
  1. 2016Hyperparameter optimization with approximate gradientcited by 233
  2. 2018Dataset Distillationcited by 230
  3. 2020Bilevel Optimization: Convergence Analysis and Enhanced Designcited by 222
  4. 2020Fast Differentiable Sorting and Rankingcited by 197
  5. 2020On the Iteration Complexity of Hypergradient Computationcited by 155
  6. 2019Implicit Deep Learningcited by 124
  7. 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 112
  8. 2017Structured Attention Networkscited by 95
  9. 2017Smooth and Sparse Optimal Transportcited by 83
  10. 2019Differentiating Through a Cone Programcited by 73
  11. 2018Understanding Short-Horizon Bias in Stochastic Meta-Optimizationcited by 69
  12. 2018SparseMAP: Differentiable Sparse Structured Inferencecited by 62
  13. 2019Neural reparameterization improves structural optimizationcited by 44
  14. 2017A Regularized Framework for Sparse and Structured Neural Attentioncited by 38
  15. 2020Implicit differentiation of Lasso-type models for hyperparameter optimizationcited by 34
  16. 2021Variational Data Assimilation with a Learned Inverse Observation Operatorcited by 28
  17. 2020Super-efficiency of automatic differentiation for functions defined as a minimumcited by 24
  18. 2021Implicit differentiation for fast hyperparameter selection in non-smooth convex learningcited by 22
  19. 2019Structured Prediction with Projection Oraclescited by 21
  20. 2019Deep Network Classification by Scattering and Homotopy Dictionary Learningcited by 17
  21. 2020LP-SparseMAP: Differentiable Relaxed Optimization for Sparse Structured Predictioncited by 17
  22. 2020Learning Composable Energy Surrogates for PDE Order Reductioncited by 13
  23. 2020Learning to solve TV regularized problems with unrolled algorithmscited by 8
  24. 2017A Semismooth Newton Method for Fast, Generic Convex Programmingcited by 5
  25. 2021Decomposing reverse-mode automatic differentiationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 9; 2022: 41; 2023: 34; 2024: 40; 2025: 37; 2026: 42.

203 papers.

Sort:

By area:

  1. 2022CRAFT: Concept Recursive Activation FacTorization for Explainabilitycited by 178
  2. 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
  3. 2022Equivariance with Learned Canonicalization Functionscited by 109
  4. 2022Linear Adversarial Concept Erasurecited by 101
  5. 2021Gradients are Not All You Needcited by 86
  6. 2022Tutorial on amortized optimizationcited by 83
  7. 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
  8. 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 65
  9. 2021Amortized Implicit Differentiation for Stochastic Bilevel Optimizationcited by 63
  10. 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
  11. 2022Synergies between Disentanglement and Sparsity: Generalization and Identifiability in Multi-Task Learningcited by 44
  12. 2025Fine-Tuning Discrete Diffusion Models with Policy Gradient Methodscited by 38
38 more
  1. 2022Learning differentiable solvers for systems with hard constraintscited by 34
  2. 2023Leveraging sparse and shared feature activations for disentangled representation learningcited by 32
  3. 2022On Implicit Bias in Overparameterized Bilevel Optimizationcited by 30
  4. 2022Learning Model Predictive Controllers with Real-Time Attention for Real-World Navigationcited by 29
  5. 2022A Unified Framework for Implicit Sinkhorn Differentiationcited by 28
  6. 2023One-step differentiation of iterative algorithmscited by 28
  7. 2022Betty: An Automatic Differentiation Library for Multilevel Optimizationcited by 27
  8. 2023Rigid Body Flows for Sampling Molecular Crystal Structurescited by 27
  9. 2023Scalable Optimal Transport Methods in Machine Learning: A Contemporary Surveycited by 27
  10. 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
  11. 2022Automatic differentiation of nonsmooth iterative algorithmscited by 25
  12. 2024Implicit Diffusion: Efficient Optimization through Stochastic Samplingcited by 24
  13. 2024Scaling physics-informed hard constraints with mixture-of-expertscited by 24
  14. 2022Differentiable Programming for Earth System Modelingcited by 22
  15. 2022Alternating Differentiation for Optimization Layerscited by 22
  16. 2022What Can the Neural Tangent Kernel Tell Us About Adversarial Robustness?cited by 21
  17. 2023TorchDEQ: A Library for Deep Equilibrium Modelscited by 21
  18. 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 21
  19. 2024Functional Bilevel Optimization for Machine Learningcited by 20
  20. 2021Efficient differentiable quadratic programming layers: an ADMM approachcited by 19
  21. 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 19
  22. 2021Multiset-Equivariant Set Prediction with Approximate Implicit Differentiationcited by 17
  23. 2022TorchOpt: An Efficient Library for Differentiable Optimizationcited by 17
  24. 2023Self-Consistent Velocity Matching of Probability Flowscited by 17
  25. 2023Making Scalable Meta Learning Practicalcited by 17
  26. 2024End-to-end Conditional Robust Optimizationcited by 17
  27. 2024Foundations of Multivariate Distributional Reinforcement Learningcited by 17
  28. 2022Flexible Differentiable Optimization via Model Transformationscited by 16
  29. 2022The Curse of Unrolling: Rate of Differentiating Through Optimizationcited by 16
  30. 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
  31. 2023JaxPruner: A concise library for sparsity researchcited by 13
  32. 2025Learning Safety Constraints for Large Language Modelscited by 13
  33. 2021Convergent Graph Solverscited by 12
  34. 2023Differentiating Through Integer Linear Programs with Quadratic Regularization and Davis-Yin Splittingcited by 11
  35. 2023Revisiting Structured Variational Autoencoderscited by 11
  36. 2023TaskMet: Task-Driven Metric Learning for Model Learningcited by 11
  37. 2025Cooper: A Library for Constrained Optimization in Deep Learningcited by 11
  38. 2024Neural topology optimization: the good, the bad, and the uglycited by 10

50 most cited of 203 All 203 (JSON)