RAYEN: Imposition of Hard Convex Constraints on Neural Networks
Not on the map. Why?
Abstract (arXiv)
Despite the numerous applications of convex constraints in Robotics, enforcing them within learning-based frameworks remains an open challenge. Existing techniques either fail to guarantee satisfaction at all times, or incur prohibitive computational costs. This paper presents RAYEN, a framework for imposing hard convex constraints on the output or latent variables of a neural network. RAYEN guarantees constraint satisfaction during both training and testing, for any input and any network weights. Unlike prior approaches, RAYEN avoids computationally expensive orthogonal projections, soft constraints, conservative approximations of the feasible set, and slow iterative corrections. RAYEN supports any combination of linear, convex quadratic, second-order cone (SOC), and linear matrix inequality (LMI) constraints, with negligible overhead compared to unconstrained networks. For instance, it imposes 1K quadratic constraints on a 1K-dimensional variable with only 8 ms of overhead compared to a network that does not enforce these constraints. An LMI constraint with 300x300 dense matrices on a 10K-dimensional variable can be guaranteed with only 12 ms additional overhead. When used in neural networks that approximate the solution of constrained trajectory optimization problems, RAYEN runs 20 to 7468 times faster than state-of-the-art algorithms, while guaranteeing constraint satisfaction at all times and achieving a near-optimal cost (<1.5% optimality gap). Finally, we demonstrate RAYEN's ability to enforce actuator constraints on a learned locomotion policy by validating constraint satisfaction in both simulation and real-world experiments on a quadruped robot. The code is available at https://github.com/leggedrobotics/rayen
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 31 of its 96 references that are in the map. First posted on arXiv 17 Jul 2023.
Builds on
31 of 96 references.
References · 31
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Convex optimizationcited by 2,479
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
- 2020Learning Quadrupedal Locomotion over Challenging Terraincited by 494
- 2019Differentiable Convex Optimization Layerscited by 458
- 2019Learning agile and dynamic motor skills for legged robotscited by 402
- 2019Control Barrier Functions: Theory and Applicationscited by 332
- 2021DC3: A learning method for optimization with hard constraintscited by 181
- 2018Differentiable MPC for End-to-end Planning and Controlcited by 178
- 2019Trivializations for Gradient-Based Optimization on Manifoldscited by 78
- 2019Differentiating Through a Cone Programcited by 72
19 more
- 2019Eigenvalue and Generalized Eigenvalue Problems: Tutorialcited by 45
- 2017Imposing Hard Constraints on Deep Networks: Promises and Limitationscited by 42
- 2022Motion Planning around Obstacles with Convex Optimizationcited by 26
- 2022Learning to Solve Optimization Problems with Hard Linear Constraintscited by 23
- 2020MADER: Trajectory Planner in Multi-Agent and Dynamic Environmentscited by 21
- 2023Learning Arm-Assisted Fall Damage Reduction and Recovery for Legged Mobile Manipulatorscited by 20
- 2018Convex Relaxations for Pose Graph Optimization with Outlierscited by 19
- 2019Feedback MPC for Torque-Controlled Legged Robotscited by 19
- 2022POLICE: Provably Optimal Linear Constraint Enforcement for Deep Neural Networkscited by 19
- 2020Linearly Constrained Neural Networkscited by 18
- 2019Distributed Certifiably Correct Pose-Graph Optimizationcited by 17
- 2019PDP: A General Neural Framework for Learning Constraint Satisfaction Solverscited by 14
- 2020FASTER: Fast and Safe Trajectory Planner for Navigation in Unknown Environmentscited by 13
- 2022Neural network training under semidefinite constraintscited by 11
- 2019Teach-Repeat-Replan: A Complete and Robust System for Aggressive Flight in Complex Environmentscited by 8
- 2020MINVO Basis: Finding Simplexes with Minimum Volume Enclosing Polynomial Curvescited by 5
- 2019A Linearly Constrained Nonparametric Framework for Imitation Learningcited by 3
- 2020Generating Large Convex Polytopes Directly on Point Cloudscited by 1
- 2020Chance Constraint Robust Control with Control Barrier Functionscited by 1
Built on by
Citing papers per year: 2024: 6; 2025: 10; 2026: 14.
30 papers.
Sort:
By area:
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2024CGD: Constraint-Guided Diffusion Policies for UAV Trajectory Planningcited by 21
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 19
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 17
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 15
- 2024Dual Lagrangian Learning for Conic Optimizationcited by 11
- 2025Enforcing Hard Linear Constraints in Deep Learning Models with Decision Rulescited by 10
- 2024Learning to Optimize for Mixed-Integer Non-linear Programming with Feasibility Guaranteescited by 8
- 2024GLinSAT: The General Linear Satisfiability Neural Network Layer By Accelerated Gradient Descentcited by 7
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layerscited by 4
- 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
- 2024Compact Optimality Verification for Optimization Proxiescited by 2
18 more
- 2025Tightening optimality gap with confidence through conformal predictioncited by 2
- 2025Enforcing convex constraints in Graph Neural Networkscited by 2
- 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guaranteescited by 2
- 2026Improving Feasibility via Fast Autoencoder-Based Projectionscited by 2
- 2025mPOLICE: Provable Enforcement of Multi-Region Affine Constraints in Deep Neural Networkscited by 1
- 2026SnareNet: Flexible Repair Layers for Neural Networks with Hard Constraintscited by 1
- 2026Cheap Thrills: Effective Amortized Optimization Using Inexpensive Labelscited by 1
- 2026Parametric Nonconvex Optimization via Convex Surrogatescited by 1
- 2025Learning to Solve Constrained Bilevel Control Co-Design Problemscited by 0
- 2025Self-Certifying Primal-Dual Optimization Proxies for Large-Scale Batch Economic Dispatchcited by 0
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNscited by 0
- 2026Solving Max-Cut to Global Optimality via Feasibility-Preserving Graph Neural Networkscited by 0
- 2026CAffNet: Hard Constraint-Affine Neural Networkscited by 0
- 2026DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization Layerscited by 0
- 2026Embedding Linear Equality Constraints in Probabilistic Neural Networks for Dynamic Modellingcited by 0
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraintscited by 0
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphscited by 0
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterizationcited by 0
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization27 Sep 2026
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraints26 Aug 2026
- 2026Embedding Linear Equality Constraints in Probabilistic Neural Networks for Dynamic Modelling19 Jun 2026
- 2026DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization Layers28 May 2026
- 2026CAffNet: Hard Constraint-Affine Neural Networks23 May 2026
- 2026Solving Max-Cut to Global Optimality via Feasibility-Preserving Graph Neural Networks8 May 2026
- 2026Parametric Nonconvex Optimization via Convex Surrogates7 Apr 2026
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layers7 Apr 2026
- 2026Improving Feasibility via Fast Autoencoder-Based Projections3 Apr 2026
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNs31 Mar 2026
- 2026Cheap Thrills: Effective Amortized Optimization Using Inexpensive Labels5 Mar 2026
18 more
- 2026SnareNet: Flexible Repair Layers for Neural Networks with Hard Constraints10 Feb 2026
- 2026Soft-Radial Projection for Constrained End-to-End Learning3 Feb 2026
- 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guarantees1 Dec 2025
- 2025Self-Certifying Primal-Dual Optimization Proxies for Large-Scale Batch Economic Dispatch17 Oct 2025
- 2025Enforcing convex constraints in Graph Neural Networks13 Oct 2025
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layers14 Aug 2025
- 2025Learning to Solve Constrained Bilevel Control Co-Design Problems11 Jul 2025
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guarantees31 May 2025
- 2025Enforcing Hard Linear Constraints in Deep Learning Models with Decision Rules20 May 2025
- 2025Tightening optimality gap with confidence through conformal prediction6 Mar 2025
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projection10 Feb 2025
- 2025mPOLICE: Provable Enforcement of Multi-Region Affine Constraints in Deep Neural Networks4 Feb 2025
- 2024Learning to Optimize for Mixed-Integer Non-linear Programming with Feasibility Guarantees14 Oct 2024
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guarantees14 Oct 2024
- 2024GLinSAT: The General Linear Satisfiability Neural Network Layer By Accelerated Gradient Descent26 Sep 2024
- 2024Compact Optimality Verification for Optimization Proxies31 May 2024
- 2024CGD: Constraint-Guided Diffusion Policies for UAV Trajectory Planning2 May 2024
- 2024Dual Lagrangian Learning for Conic Optimization5 Feb 2024
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 19
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 17
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 15
- 2024Dual Lagrangian Learning for Conic Optimizationcited by 11
- 2025Enforcing Hard Linear Constraints in Deep Learning Models with Decision Rulescited by 10
- 2024Learning to Optimize for Mixed-Integer Non-linear Programming with Feasibility Guaranteescited by 8
- 2024GLinSAT: The General Linear Satisfiability Neural Network Layer By Accelerated Gradient Descentcited by 7
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layerscited by 4
- 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
- 2024Compact Optimality Verification for Optimization Proxiescited by 2
- 2025Tightening optimality gap with confidence through conformal predictioncited by 2
12 most cited of 29 All 29 (JSON)
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization27 Sep 2026
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraints26 Aug 2026
- 2026Embedding Linear Equality Constraints in Probabilistic Neural Networks for Dynamic Modelling19 Jun 2026
- 2026DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization Layers28 May 2026
- 2026CAffNet: Hard Constraint-Affine Neural Networks23 May 2026
- 2026Solving Max-Cut to Global Optimality via Feasibility-Preserving Graph Neural Networks8 May 2026
- 2026Parametric Nonconvex Optimization via Convex Surrogates7 Apr 2026
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layers7 Apr 2026
- 2026Improving Feasibility via Fast Autoencoder-Based Projections3 Apr 2026
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNs31 Mar 2026
- 2026Cheap Thrills: Effective Amortized Optimization Using Inexpensive Labels5 Mar 2026
12 newest of 29 All 29 (JSON)