Efficient and Modular Implicit Differentiation
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
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
- 2016CVXPY: A Python-Embedded Modeling Language for Convex Optimizationcited by 641
- 2019Deep Equilibrium Modelscited by 615
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
- 2019Meta-Learning with Implicit Gradientscited by 525
- 2019Differentiable Convex Optimization Layerscited by 465
- 2018Bilevel Programming for Hyperparameter Optimization and Meta-Learningcited by 405
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
- 2019Optimizing Millions of Hyperparameters by Implicit Differentiationcited by 304
- 2017Forward and Reverse Gradient-Based Hyperparameter Optimizationcited by 234
25 more
- 2016Hyperparameter optimization with approximate gradientcited by 233
- 2018Dataset Distillationcited by 230
- 2020Bilevel Optimization: Convergence Analysis and Enhanced Designcited by 222
- 2020Fast Differentiable Sorting and Rankingcited by 197
- 2020On the Iteration Complexity of Hypergradient Computationcited by 155
- 2019Implicit Deep Learningcited by 124
- 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 112
- 2017Structured Attention Networkscited by 95
- 2017Smooth and Sparse Optimal Transportcited by 83
- 2019Differentiating Through a Cone Programcited by 73
- 2018Understanding Short-Horizon Bias in Stochastic Meta-Optimizationcited by 69
- 2018SparseMAP: Differentiable Sparse Structured Inferencecited by 62
- 2019Neural reparameterization improves structural optimizationcited by 44
- 2017A Regularized Framework for Sparse and Structured Neural Attentioncited by 38
- 2020Implicit differentiation of Lasso-type models for hyperparameter optimizationcited by 34
- 2021Variational Data Assimilation with a Learned Inverse Observation Operatorcited by 28
- 2020Super-efficiency of automatic differentiation for functions defined as a minimumcited by 24
- 2021Implicit differentiation for fast hyperparameter selection in non-smooth convex learningcited by 22
- 2019Structured Prediction with Projection Oraclescited by 21
- 2019Deep Network Classification by Scattering and Homotopy Dictionary Learningcited by 17
- 2020LP-SparseMAP: Differentiable Relaxed Optimization for Sparse Structured Predictioncited by 17
- 2020Learning Composable Energy Surrogates for PDE Order Reductioncited by 13
- 2020Learning to solve TV regularized problems with unrolled algorithmscited by 8
- 2017A Semismooth Newton Method for Fast, Generic Convex Programmingcited by 5
- 2021Decomposing reverse-mode automatic differentiationcited by 4
Built on by
Citing papers per year: 2021: 9; 2022: 41; 2023: 34; 2024: 40; 2025: 37; 2026: 42.
203 papers.
Sort:
By area:
- 2022CRAFT: Concept Recursive Activation FacTorization for Explainabilitycited by 178
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
- 2022Equivariance with Learned Canonicalization Functionscited by 109
- 2022Linear Adversarial Concept Erasurecited by 101
- 2021Gradients are Not All You Needcited by 86
- 2022Tutorial on amortized optimizationcited by 83
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 65
- 2021Amortized Implicit Differentiation for Stochastic Bilevel Optimizationcited by 63
- 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
- 2022Synergies between Disentanglement and Sparsity: Generalization and Identifiability in Multi-Task Learningcited by 44
- 2025Fine-Tuning Discrete Diffusion Models with Policy Gradient Methodscited by 38
38 more
- 2022Learning differentiable solvers for systems with hard constraintscited by 34
- 2023Leveraging sparse and shared feature activations for disentangled representation learningcited by 32
- 2022On Implicit Bias in Overparameterized Bilevel Optimizationcited by 30
- 2022Learning Model Predictive Controllers with Real-Time Attention for Real-World Navigationcited by 29
- 2022A Unified Framework for Implicit Sinkhorn Differentiationcited by 28
- 2023One-step differentiation of iterative algorithmscited by 28
- 2022Betty: An Automatic Differentiation Library for Multilevel Optimizationcited by 27
- 2023Rigid Body Flows for Sampling Molecular Crystal Structurescited by 27
- 2023Scalable Optimal Transport Methods in Machine Learning: A Contemporary Surveycited by 27
- 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
- 2022Automatic differentiation of nonsmooth iterative algorithmscited by 25
- 2024Implicit Diffusion: Efficient Optimization through Stochastic Samplingcited by 24
- 2024Scaling physics-informed hard constraints with mixture-of-expertscited by 24
- 2022Differentiable Programming for Earth System Modelingcited by 22
- 2022Alternating Differentiation for Optimization Layerscited by 22
- 2022What Can the Neural Tangent Kernel Tell Us About Adversarial Robustness?cited by 21
- 2023TorchDEQ: A Library for Deep Equilibrium Modelscited by 21
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 21
- 2024Functional Bilevel Optimization for Machine Learningcited by 20
- 2021Efficient differentiable quadratic programming layers: an ADMM approachcited by 19
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 19
- 2021Multiset-Equivariant Set Prediction with Approximate Implicit Differentiationcited by 17
- 2022TorchOpt: An Efficient Library for Differentiable Optimizationcited by 17
- 2023Self-Consistent Velocity Matching of Probability Flowscited by 17
- 2023Making Scalable Meta Learning Practicalcited by 17
- 2024End-to-end Conditional Robust Optimizationcited by 17
- 2024Foundations of Multivariate Distributional Reinforcement Learningcited by 17
- 2022Flexible Differentiable Optimization via Model Transformationscited by 16
- 2022The Curse of Unrolling: Rate of Differentiating Through Optimizationcited by 16
- 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
- 2023JaxPruner: A concise library for sparsity researchcited by 13
- 2025Learning Safety Constraints for Large Language Modelscited by 13
- 2021Convergent Graph Solverscited by 12
- 2023Differentiating Through Integer Linear Programs with Quadratic Regularization and Davis-Yin Splittingcited by 11
- 2023Revisiting Structured Variational Autoencoderscited by 11
- 2023TaskMet: Task-Driven Metric Learning for Model Learningcited by 11
- 2025Cooper: A Library for Constrained Optimization in Deep Learningcited by 11
- 2024Neural topology optimization: the good, the bad, and the uglycited by 10
50 most cited of 203 All 203 (JSON)
- 2026Coordinate-Free Automatic Differentiation8 Oct 2026
- 2026Recursive Improvement of a Differentiable Scientific Software Ecosystem3 Oct 2026
- 2026DePICT: Decision-Preserving Interface for Constrained Downstream Tasks2 Oct 2026
- 2026dOPT: Differentiating Conic Optimization via Geometric Reduction27 Sep 2026
- 2026lapanda: A Matrix-Free Differentiable Solver for Nonconvex Constrained Optimization Layers27 Sep 2026
- 2026MomentBA: Second-order Spatial Moments for Anisotropic Correspondence Uncertainty in Differentiable Bundle Adjustment12 Sep 2026
- 2026Time Without Timesteps: Simulating Coupled Dynamical Systems via Self-Consistency3 Sep 2026
- 2026Differentiable Electricity-Market Clearing for Gradient-Based Planning2 Sep 2026
- 2026Reinforcement learning to choose optimizers1 Sep 2026
- 2026Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation9 Aug 2026
- 2026Understanding Differentiable Embeddings Through Differential and Integral Geometry7 Aug 2026
- 2026Differentiable Policy Transport over Multi-Layer Network Feasibility Geometry2 Aug 2026
38 more
- 2026Amortising Trajectory Optimisation for Residual MPC via Implicit Contact Differentiation27 Jul 2026
- 2026Explaining Process Control Optimisation Recommendations via GradientSHAP and Implicit Differentiation16 Jul 2026
- 2026Connected by Construction: Learning Tractable Near-Tour Marginals for Traveling Salesman Problems13 Jul 2026
- 2026Causal Optimizer Interaction Calculus: Hidden Geometric Relaxation and Identifiable Interventions8 Jul 2026
- 2026Restricted Dynamic Geometric Complexity: Path-Space Reduction and M"obius--Jacobi Response8 Jul 2026
- 2026Decision-Aware Training for Sample-Based Generative Models1 Jul 2026
- 2026Scalable and Differentiable Point-Cloud Registration Using Maximum Mean Discrepancy26 Jun 2026
- 2026Constrained Variable Projection for Structured Problems22 Jun 2026
- 2026Neural Parameter Calibration for Finite-State Mean Field Games22 Jun 2026
- 2026Scalable Deep Unfolding of Conic Optimizers11 Jun 2026
- 2026Systematic LLM Translation of Legacy Scientific Code to Differentiable Frameworks: Application to a Land Surface Model4 Jun 2026
- 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programming4 Jun 2026
- 2026Neural Navigation Functions for Zero-Shot Generalizable Motion Planning2 Jun 2026
- 2026Regularized Large Neighborhood Search1 Jun 2026
- 2026A Geometric View of SRC: Learning Representations for Stable Residual Inference28 May 2026
- 2026Constraint-Aware Flow Matching: Decision Aligned End-to-End Training for Constrained Sampling12 May 2026
- 2026Trust Region Inverse Reinforcement Learning: Explicit Dual Ascent using Local Policy Updates10 May 2026
- 2026A meshfree exterior calculus for generalizable and data-efficient learning of physics from point clouds8 May 2026
- 2026Random test functions, H-1 norm equivalence, and stochastic variational physics-informed neural networks5 May 2026
- 2026Decision-Focused Learning via Tangent-Space Projection of Prediction Error2 May 2026
- 2026VertAX: a differentiable vertex model for learning epithelial tissue mechanics8 Apr 2026
- 2026Automatic Laplace Collapsed Sampling: Scalable Marginalisation of Latent Parameters via Automatic Differentiation27 Mar 2026
- 2026Second-Order, First-Class: A Composable Stack for Curvature-Aware Training26 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
- 2026Feed m Birds with One Scone: Accelerating Multi-task Gradient Balancing via Bi-level Optimization8 Mar 2026
- 2026A Penalty Approach for Differentiation Through Black-Box Quadratic Programming Solvers15 Feb 2026
- 2026partialCBDs: Differentiable Causal Block Diagrams7 Feb 2026
- 2026Consistency Deep Equilibrium Models3 Feb 2026
- 2026Generalized Information Gathering Under Dynamics Uncertainty29 Jan 2026
- 2026torch-sla: Differentiable Sparse Linear Algebra with Adjoint Solvers and Sparse Tensor Parallelism for PyTorch20 Jan 2026
- 2025Integrated Prediction and Multi-period Portfolio Optimization12 Dec 2025
- 2025Diffusion differentiable resampling11 Dec 2025
- 2025A Fully First-Order Layer for Differentiable Optimization2 Dec 2025
- 2025Towards fully differentiable neural ocean model with Veros21 Nov 2025
- 2025Filtered Neural Galerkin model reduction schemes for efficient propagation of initial condition uncertainties in digital twins1 Nov 2025
- 2025Scalable Utility-Aware Multiclass Calibration29 Oct 2025
- 2025Differentiable Model Predictive Control on the GPU7 Oct 2025
- 2025Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the Constraints6 Oct 2025
50 newest of 203 All 203 (JSON)
- 2025Fine-Tuning Discrete Diffusion Models with Policy Gradient Methodscited by 38
- 2026Constraint-Aware Flow Matching: Decision Aligned End-to-End Training for Constrained Samplingcited by 3
- 2025You Only Look One Step: Accelerating Backpropagation in Diffusion Sampling with Gradient Shortcutscited by 0
- 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programmingcited by 0
- 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programming4 Jun 2026
- 2026Constraint-Aware Flow Matching: Decision Aligned End-to-End Training for Constrained Sampling12 May 2026
- 2025You Only Look One Step: Accelerating Backpropagation in Diffusion Sampling with Gradient Shortcuts12 May 2025
- 2025Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods3 Feb 2025
- 2024Foundations of Multivariate Distributional Reinforcement Learningcited by 17
- 2025Differentiable Model Predictive Control on the GPUcited by 7
- 2026Reinforcement learning to choose optimizerscited by 0
- 2026Reinforcement learning to choose optimizers1 Sep 2026
- 2025Differentiable Model Predictive Control on the GPU7 Oct 2025
- 2024Foundations of Multivariate Distributional Reinforcement Learning31 Aug 2024
- 2025Learning Safety Constraints for Large Language Modelscited by 13
- 2025Learning Safety Constraints for Large Language Models30 May 2025
- 2022CRAFT: Concept Recursive Activation FacTorization for Explainabilitycited by 178
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
- 2022Equivariance with Learned Canonicalization Functionscited by 109
- 2022Linear Adversarial Concept Erasurecited by 101
- 2021Gradients are Not All You Needcited by 86
- 2022Tutorial on amortized optimizationcited by 83
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 65
- 2021Amortized Implicit Differentiation for Stochastic Bilevel Optimizationcited by 63
- 2022Synergies between Disentanglement and Sparsity: Generalization and Identifiability in Multi-Task Learningcited by 44
- 2022Learning differentiable solvers for systems with hard constraintscited by 34
- 2023Leveraging sparse and shared feature activations for disentangled representation learningcited by 32
12 most cited of 192 All 192 (JSON)
- 2026Coordinate-Free Automatic Differentiation8 Oct 2026
- 2026Recursive Improvement of a Differentiable Scientific Software Ecosystem3 Oct 2026
- 2026DePICT: Decision-Preserving Interface for Constrained Downstream Tasks2 Oct 2026
- 2026dOPT: Differentiating Conic Optimization via Geometric Reduction27 Sep 2026
- 2026lapanda: A Matrix-Free Differentiable Solver for Nonconvex Constrained Optimization Layers27 Sep 2026
- 2026MomentBA: Second-order Spatial Moments for Anisotropic Correspondence Uncertainty in Differentiable Bundle Adjustment12 Sep 2026
- 2026Time Without Timesteps: Simulating Coupled Dynamical Systems via Self-Consistency3 Sep 2026
- 2026Differentiable Electricity-Market Clearing for Gradient-Based Planning2 Sep 2026
- 2026Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation9 Aug 2026
- 2026Understanding Differentiable Embeddings Through Differential and Integral Geometry7 Aug 2026
- 2026Differentiable Policy Transport over Multi-Layer Network Feasibility Geometry2 Aug 2026
- 2026Amortising Trajectory Optimisation for Residual MPC via Implicit Contact Differentiation27 Jul 2026
12 newest of 192 All 192 (JSON)