OptNet: Differentiable Optimization as a Layer in Neural Networks
Not on the map. Why?
Abstract (arXiv)
This paper presents OptNet, a network architecture that integrates optimization problems (here, specifically in the form of quadratic programs) as individual layers in larger end-to-end trainable deep networks. These layers encode constraints and complex dependencies between the hidden states that traditional convolutional and fully-connected layers often cannot capture. We explore the foundations for such an architecture: we show how techniques from sensitivity analysis, bilevel optimization, and implicit differentiation can be used to exactly differentiate through these layers and with respect to layer parameters; we develop a highly efficient solver for these layers that exploits fast GPU-based batch solves within a primal-dual interior point method, and which provides backpropagation gradients with virtually no additional cost on top of the solve; and we highlight the application of these approaches in several problems. In one notable example, the method is learns to play mini-Sudoku (4x4) given just input and output games, with no a-priori information about the rules of the game; this highlights the ability of OptNet to learn hard constraints better than other neural architectures.
Key facts. Cited by 588 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Mar 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 90; 2022: 92; 2023: 89; 2024: 84; 2025: 93; 2026: 140.
588 papers.
Sort:
By area:
- 2022Transformers learn in-context by gradient descentcited by 714
- 2021Implicit Behavioral Cloningcited by 442
- 2021Efficient and Modular Implicit Differentiationcited by 199
- 2021DC3: A learning method for optimization with hard constraintscited by 181
- 2021End-to-End Constrained Optimization Learning: A Surveycited by 154
- 2021Investigating Bi-Level Optimization for Learning and Vision from a Unified Perspective: A Survey and Beyondcited by 151
- 2023Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunitiescited by 129
- 2021Model-Based Domain Generalizationcited by 103
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2022Tutorial on amortized optimizationcited by 83
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
38 more
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 81
- 2021Stiff Neural Ordinary Differential Equationscited by 77
- 2021Large-Scale Wasserstein Gradient Flowscited by 76
- 2021Is Attention Better Than Matrix Decomposition?cited by 75
- 2021Differentiable Learning Under Triagecited by 74
- 2021On Training Implicit Modelscited by 73
- 2021Stabilizing Equilibrium Models by Jacobian Regularizationcited by 71
- 2023SafeDiffuser: Safe Planning with Diffusion Probabilistic Modelscited by 69
- 2022Neural Conservation Laws: A Divergence-Free Perspectivecited by 67
- 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 64
- 2022Deep Equilibrium Optical Flow Estimationcited by 63
- 2021Decision-Focused Learning: Through the Lens of Learning to Rankcited by 61
- 2022Improving Object-centric Learning with Query Optimizationcited by 60
- 2021Physics-Integrated Variational Autoencoders for Robust and Interpretable Generative Modelingcited by 59
- 2021Strategic Classification Made Practicalcited by 58
- 2021An End-to-End Differentiable Framework for Contact-Aware Robot Designcited by 53
- 2021Fast and Feature-Complete Differentiable Physics for Articulated Rigid Bodies with Contactcited by 50
- 2022Joint Distribution Matters: Deep Brownian Distance Covariance for Few-Shot Classificationcited by 50
- 2021CombOptNet: Fit the Right NP-Hard Problem by Learning Integer Programming Constraintscited by 49
- 2021Learnable Graph Matching: Incorporating Graph Partitioning with Deep Feature Learning for Multiple Object Trackingcited by 47
- 2022Object Representations as Fixed Points: Training Iterative Refinement Algorithms with Implicit Differentiationcited by 46
- 2021Safe Reinforcement Learning Using Robust Control Barrier Functionscited by 44
- 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
- 2022Deep Equilibrium Approaches to Diffusion Modelscited by 42
- 2021Adversarial Robustness with Semi-Infinite Constrained Learningcited by 39
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
- 2024Learning Iterative Reasoning through Energy Diffusioncited by 36
- 2022Learning differentiable solvers for systems with hard constraintscited by 34
- 2022PyEPO: A PyTorch-based End-to-End Predict-then-Optimize Library for Linear and Integer Programmingcited by 32
- 2022Learning Iterative Reasoning through Energy Minimizationcited by 32
- 2024PatternBoost: Constructions in Mathematics with a Little Help from AIcited by 32
- 2021Enforcing Policy Feasibility Constraints through Differentiable Projection for Energy Optimizationcited by 31
- 2023RAYEN: Imposition of Hard Convex Constraints on Neural Networkscited by 30
- 2024Physics-Informed Neural Networks with Hard Linear Equality Constraintscited by 30
- 2022Backpropagation through Combinatorial Algorithms: Identity with Projection Workscited by 29
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2025Think Smarter not Harder: Adaptive Reasoning with Inference Aware Optimizationcited by 29
- 2021Implicit Normalizing Flowscited by 28
50 most cited of 588 All 588 (JSON)
- 2026Verify Claims, Not Scores: Evidence-Based Verification of Modular Agents1 Oct 2026
- 2026Learning to Price Electricity for Optimal Demand Response30 Sep 2026
- 2026Markovian Dynamics Enforcer: Feasibility Preserving Correction on Learned Dynamics Manifolds30 Sep 2026
- 2026RL-PaO: Prediction as Action in Decision Making under Uncertainty29 Sep 2026
- 2026Learned Preconditioning for a Primal-Dual Interior-Point Method28 Sep 2026
- 2026dOPT: Differentiating Conic Optimization via Geometric Reduction27 Sep 2026
- 2026lapanda: A Matrix-Free Differentiable Solver for Nonconvex Constrained Optimization Layers27 Sep 2026
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization27 Sep 2026
- 2026PolyStepOR: Learning to Decide Without Optimal Decisions26 Sep 2026
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026The Operational Value of Spatial Dependence in Renewable Forecast Scenarios for Single-Period Economic Dispatch: A Controlled Ablation Study21 Sep 2026
- 2026Stability-Aware Imitation Learning from Model Predictive Control for Autonomous Vehicle Lateral Control: Exact Q-Loss and a Novel Training Procedure20 Sep 2026
38 more
- 2026Proximal Residual Value Functions for Consistent Planning and Real-Time Execution19 Sep 2026
- 2026Decision-Focused Learning for Mean-Variance Portfolio Optimization via KKT-Based Reformulation18 Sep 2026
- 2026Benchmarking Optimizers to Solve Inverse Problems with Differentiable Physics Simulators12 Sep 2026
- 2026MomentBA: Second-order Spatial Moments for Anisotropic Correspondence Uncertainty in Differentiable Bundle Adjustment12 Sep 2026
- 2026Very Exciting: Zero-Shot Model Predictive Control of Buildings via Excitation-Based Generalized Transfer Learning Models11 Sep 2026
- 2026Settling: Equilibrium Inference for Non-Convex Validity Sets9 Sep 2026
- 2026Let It Go or Learn to Self-Correct: Continuous Diffusion for Constrained Discrete Tasks8 Sep 2026
- 2026A Constraint-Aware Generative Framework for Synthetic Origin-Destination Demand in Logistics Networks3 Sep 2026
- 2026Differentiable Electricity-Market Clearing for Gradient-Based Planning2 Sep 2026
- 2026Accelerating Reinforcement Learning via MPC Solver-Gradient Guidance for Weights-varying MPC1 Sep 2026
- 2026Disciplined Bilevel Programming1 Sep 2026
- 2026Deciding When to Decide: Testing Operational Suboptimality Under Distributional Shift29 Aug 2026
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraints26 Aug 2026
- 2026Anatomy-Informed Neural Networks: Encoding Anatomic Priors in Loss and Architecture, with an SE(3) Formulation of Guidewire-Induced Aortoiliac Deformation21 Aug 2026
- 2026Decision-Driven Regularization: A Blended Model for Learning and Optimization15 Aug 2026
- 2026Herding End-to-End Autonomous Driving via Neuro-Symbolic Safety Guards11 Aug 2026
- 2026Control-Oriented Scenario Tree Construction through Reinforcement Learning10 Aug 2026
- 2026DualCert: A Solver for the Traveling Salesman Problem with Constraint-Coupled Learning10 Aug 2026
- 2026Decision-Focused Learning in Network Interdiction Games10 Aug 2026
- 2026Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation9 Aug 2026
- 2026Differentiating Through Dual Prices: End-to-End Policy Learning Under Capacity Constraints5 Aug 2026
- 2026Hard Constraints, Smooth Gradients: Learning Feasible Inventory Policies via Differentiable Projection3 Aug 2026
- 2026Differentiable Policy Transport over Multi-Layer Network Feasibility Geometry2 Aug 2026
- 2026End-to-End Fairness Optimization with Fair Decision-Focused Learning31 Jul 2026
- 2026Amortising Trajectory Optimisation for Residual MPC via Implicit Contact Differentiation27 Jul 2026
- 2026Smooth Learning with Hard Constraints via Legendre-Regularized Policies27 Jul 2026
- 2026Memory-Computation Tradeoffs in Semi Amortized Parametric Optimization22 Jul 2026
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layers22 Jul 2026
- 2026Explaining Process Control Optimisation Recommendations via GradientSHAP and Implicit Differentiation16 Jul 2026
- 2026What a Deletion Certificate Covers, and Where It Expires: Auditable Removal from a Support-Vector Memory13 Jul 2026
- 2026Connected by Construction: Learning Tractable Near-Tour Marginals for Traveling Salesman Problems13 Jul 2026
- 2026Implicit Neural Networks as Static Controllers: Certificates and Performance Separation13 Jul 2026
- 2026Large Language Model Enhanced Differentiable Trajectory Planning for IoT-Enabled Autonomous Driving11 Jul 2026
- 2026Learning Predictive Ambiguity Sets for Decision-Focused Distributionally Robust Optimization10 Jul 2026
- 2026Optimal Learning Rate Scaling Depends on Data in Deep Scalar Linear Networks8 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-Focused Scenario Generation and Selection for Efficient and Robust Grid Dispatch7 Jul 2026
50 newest of 588 All 588 (JSON)
- 2023SafeDiffuser: Safe Planning with Diffusion Probabilistic Modelscited by 69
- 2022Deep Equilibrium Approaches to Diffusion Modelscited by 42
- 2024CGD: Constraint-Guided Diffusion Policies for UAV Trajectory Planningcited by 21
- 2023Deep Equilibrium Diffusion Restoration with Parallel Samplingcited by 17
- 2022An Invertible Graph Diffusion Neural Network for Source Localizationcited by 14
- 2025Constrained Diffusers for Safe Planning and Controlcited by 9
- 2025Diffusion-DFL: Decision-focused Diffusion Models for Stochastic Optimizationcited by 5
- 2026Constraint-Aware Flow Matching: Decision Aligned End-to-End Training for Constrained Samplingcited by 3
- 2026Decision-Weighted Flow Matching for Contextual Stochastic Optimizationcited by 1
- 2026Diff2SP: Diffusion Models for Correlated Scenario Generation in Stochastic Programmingcited by 0
- 2026Let It Go or Learn to Self-Correct: Continuous Diffusion for Constrained Discrete Taskscited by 0
- 2026Let It Go or Learn to Self-Correct: Continuous Diffusion for Constrained Discrete Tasks8 Sep 2026
- 2026Decision-Weighted Flow Matching for Contextual Stochastic Optimization15 Jun 2026
- 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
- 2025Diffusion-DFL: Decision-focused Diffusion Models for Stochastic Optimization13 Oct 2025
- 2025Constrained Diffusers for Safe Planning and Control14 Jun 2025
- 2024CGD: Constraint-Guided Diffusion Policies for UAV Trajectory Planning2 May 2024
- 2023Deep Equilibrium Diffusion Restoration with Parallel Sampling20 Nov 2023
- 2023SafeDiffuser: Safe Planning with Diffusion Probabilistic Models31 May 2023
- 2022Deep Equilibrium Approaches to Diffusion Models23 Oct 2022
- 2022An Invertible Graph Diffusion Neural Network for Source Localization18 Jun 2022
- 2021Implicit Behavioral Cloningcited by 442
- 2024Imperative Learning: A Self-supervised Neuro-Symbolic Learning Framework for Robot Autonomycited by 16
- 2022Differentiable Constrained Imitation Learning for Robot Motion Planning and Controlcited by 7
- 2024DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learningcited by 5
- 2022Fail-Safe Adversarial Generative Imitation Learningcited by 2
- 2025ZipMPC: Compressed Context-Dependent MPC Cost via Imitation Learningcited by 2
- 2025Safe Deployment of Offline Reinforcement Learning via Input Convex Action Correctioncited by 2
- 2025Implicit Constraint-Aware Off-Policy Correction for Offline Reinforcement Learningcited by 1
- 2021Differentiable Robust LQR Layerscited by 0
- 2026Neuro-Inspired Inverse Learning for Planning and Controlcited by 0
- 2026Neuro-Inspired Inverse Learning for Planning and Control22 May 2026
- 2025Safe Deployment of Offline Reinforcement Learning via Input Convex Action Correction30 Jul 2025
- 2025ZipMPC: Compressed Context-Dependent MPC Cost via Imitation Learning17 Jul 2025
- 2025Implicit Constraint-Aware Off-Policy Correction for Offline Reinforcement Learning16 Jun 2025
- 2024Imperative Learning: A Self-supervised Neuro-Symbolic Learning Framework for Robot Autonomy23 Jun 2024
- 2024DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning8 Feb 2024
- 2022Differentiable Constrained Imitation Learning for Robot Motion Planning and Control21 Oct 2022
- 2022Fail-Safe Adversarial Generative Imitation Learning3 Mar 2022
- 2021Implicit Behavioral Cloning1 Sep 2021
- 2021Differentiable Robust LQR Layers10 Jun 2021
- 2022Differentiable Control Barrier Functions for Vision-based End-to-End Autonomous Drivingcited by 10
- 2023Learning Stability Attention in Vision-based End-to-end Driving Policiescited by 5
- 2024LoRD: Adapting Differentiable Driving Policies to Distribution Shiftscited by 4
- 2022Bi-Level Optimization Augmented with Conditional Variational Autoencoder for Autonomous Driving in Dense Trafficcited by 2
- 2023End-to-End Learning of Behavioural Inputs for Autonomous Driving in Dense Trafficcited by 2
- 2025Drive in Corridors: Enhancing the Safety of End-to-end Autonomous Driving via Corridor Learning and Planningcited by 0
- 2026Large Language Model Enhanced Differentiable Trajectory Planning for IoT-Enabled Autonomous Drivingcited by 0
- 2026Herding End-to-End Autonomous Driving via Neuro-Symbolic Safety Guardscited by 0
- 2026Stability-Aware Imitation Learning from Model Predictive Control for Autonomous Vehicle Lateral Control: Exact Q-Loss and a Novel Training Procedurecited by 0
- 2026Stability-Aware Imitation Learning from Model Predictive Control for Autonomous Vehicle Lateral Control: Exact Q-Loss and a Novel Training Procedure20 Sep 2026
- 2026Herding End-to-End Autonomous Driving via Neuro-Symbolic Safety Guards11 Aug 2026
- 2026Large Language Model Enhanced Differentiable Trajectory Planning for IoT-Enabled Autonomous Driving11 Jul 2026
- 2025Drive in Corridors: Enhancing the Safety of End-to-end Autonomous Driving via Corridor Learning and Planning10 Apr 2025
- 2024LoRD: Adapting Differentiable Driving Policies to Distribution Shifts13 Oct 2024
- 2023End-to-End Learning of Behavioural Inputs for Autonomous Driving in Dense Traffic23 Oct 2023
- 2023Learning Stability Attention in Vision-based End-to-end Driving Policies5 Apr 2023
- 2022Bi-Level Optimization Augmented with Conditional Variational Autoencoder for Autonomous Driving in Dense Traffic5 Dec 2022
- 2022Differentiable Control Barrier Functions for Vision-based End-to-End Autonomous Driving4 Mar 2022
- 2022Backpropagation through Combinatorial Algorithms: Identity with Projection Workscited by 29
- 2025Think Smarter not Harder: Adaptive Reasoning with Inference Aware Optimizationcited by 29
- 2024Efficient Rectification of Neuro-Symbolic Reasoning Inconsistencies by Abductive Reflectioncited by 9
- 2023Scalable Coupling of Deep Learning with Logical Reasoningcited by 4
- 2023Learning Reliable Logical Rules with SATNetcited by 3
- 2026Form Follows Function: Recursive Stem Modelcited by 2
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Ontology Neural Networks for Topologically Conditioned Constraint Satisfactioncited by 0
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026Form Follows Function: Recursive Stem Model3 Mar 2026
- 2026Ontology Neural Networks for Topologically Conditioned Constraint Satisfaction8 Jan 2026
- 2025Think Smarter not Harder: Adaptive Reasoning with Inference Aware Optimization29 Jan 2025
- 2024Efficient Rectification of Neuro-Symbolic Reasoning Inconsistencies by Abductive Reflection11 Dec 2024
- 2023Learning Reliable Logical Rules with SATNet3 Oct 2023
- 2023Scalable Coupling of Deep Learning with Logical Reasoning12 May 2023
- 2022Backpropagation through Combinatorial Algorithms: Identity with Projection Works30 May 2022
- 2024Adversarial Machine Unlearningcited by 16
- 2026Monotonicity as an Architectural Bias for Robust Language Modelscited by 0
- 2026BarrierSteer: LLM Safety via Learning Barrier Steeringcited by 0
- 2026BarrierSteer: LLM Safety via Learning Barrier Steering23 Feb 2026
- 2026Monotonicity as an Architectural Bias for Robust Language Models2 Feb 2026
- 2024Adversarial Machine Unlearning11 Jun 2024
- 2022Transformers learn in-context by gradient descentcited by 714
- 2021Efficient and Modular Implicit Differentiationcited by 199
- 2021DC3: A learning method for optimization with hard constraintscited by 181
- 2021End-to-End Constrained Optimization Learning: A Surveycited by 154
- 2021Investigating Bi-Level Optimization for Learning and Vision from a Unified Perspective: A Survey and Beyondcited by 151
- 2023Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunitiescited by 129
- 2021Model-Based Domain Generalizationcited by 103
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2022Tutorial on amortized optimizationcited by 83
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 81
12 most cited of 544 All 544 (JSON)
- 2026Verify Claims, Not Scores: Evidence-Based Verification of Modular Agents1 Oct 2026
- 2026Learning to Price Electricity for Optimal Demand Response30 Sep 2026
- 2026Markovian Dynamics Enforcer: Feasibility Preserving Correction on Learned Dynamics Manifolds30 Sep 2026
- 2026RL-PaO: Prediction as Action in Decision Making under Uncertainty29 Sep 2026
- 2026Learned Preconditioning for a Primal-Dual Interior-Point Method28 Sep 2026
- 2026dOPT: Differentiating Conic Optimization via Geometric Reduction27 Sep 2026
- 2026lapanda: A Matrix-Free Differentiable Solver for Nonconvex Constrained Optimization Layers27 Sep 2026
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization27 Sep 2026
- 2026PolyStepOR: Learning to Decide Without Optimal Decisions26 Sep 2026
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026The Operational Value of Spatial Dependence in Renewable Forecast Scenarios for Single-Period Economic Dispatch: A Controlled Ablation Study21 Sep 2026
- 2026Proximal Residual Value Functions for Consistent Planning and Real-Time Execution19 Sep 2026
12 newest of 544 All 544 (JSON)