Cooptimizing Safety and Performance Using Safety Value-Constrained Model Predictive Control

Hao Wang, Nam Nguyen, Armand Jordana, Ludovic Righetti, Somil BansalarXiv 2026

TL;DR

This paper introduces Safety Value MPC, a framework that guarantees long-term safety for high-dimensional robotic systems without sacrificing performance. By embedding a learning-based Hamilton-Jacobi (HJ) reachability value function as a terminal constraint within Model Predictive Control (MPC), the system ensures it always steers toward a control-invariant safe zone, significantly outperforming traditional safety filters and vanilla MPC in real-world hardware trials.

What Problem Does This Paper Address?

Robots operating in the real world must balance high performance with strict safety constraints (e.g., avoiding obstacles while operating under strict actuator torque limits). Model Predictive Control (MPC) is the industry standard for handling these constraints, but it suffers from a fundamental flaw: it operates over a finite planning horizon. Because it cannot see past its planning window, a standard MPC controller can inadvertently steer a robot into a state where a future collision becomes mathematically unavoidable.

Existing solutions typically fall into two camps:

  1. Conservative Terminal Sets: Forcing the robot to end its planning horizon in a small, easily calculated safe zone (like hovering in place). This severely restricts the robot's agility and performance.
  2. Safety Filtering: Letting a primary controller optimize for performance, and using a secondary "filter" (like a Control Barrier Function) to override inputs if danger is imminent. This decouples safety from performance, often resulting in myopic, jerky, or suboptimal behavior.

The authors address the challenge of co-optimizing safety and performance over an infinite horizon for high-dimensional systems without suffering from excessive conservatism.

Methods

The core innovation is augmenting the standard state-constrained MPC formulation with a reachability-based safety value function terminal constraint.

Here is how it works:

  • The Terminal Constraint: At the end of the MPC planning horizon $h$, the predicted state $x(h)$ must satisfy $V_s(x(h)) \ge \epsilon$, where $V_s$ is a safety value function derived from Hamilton-Jacobi (HJ) reachability analysis. This function characterizes the maximal control-invariant safe set—the largest possible region from which the robot can safely recover indefinitely.
  • Learning the Value Function: Computing HJ reachability suffers from the curse of dimensionality. To scale this to a 14-dimensional robotic manipulator, the authors utilize DeepReach, a neural PDE solver.
  • Better Conditioning: Standard HJ reachability uses a non-differentiable "minimum-over-time" objective function, which is notoriously difficult for neural networks to learn accurately. The authors replace this with a smooth, exponential summation objective ($J = \sum e^{-\alpha l}$), which heavily penalizes constraint violations and provides much cleaner gradients for training.
  • Online Optimization: The resulting non-convex MPC problem is solved online in real-time using Sequential Convex Programming (SCP).

Datasets

Not discussed in the paper. The authors do not use static datasets; instead, they validate their approach using custom physics simulations and real-world robotic hardware experiments.

Key Insights and Ideas

  • Maximal Means Optimal: Because HJ reachability defines the maximal control-invariant set, using it as a terminal constraint gives the MPC solver the largest possible feasible region. This minimizes performance degradation compared to handcrafted or linearized terminal sets.
  • The Optimization Alignment: Incorporating safety directly into the MPC optimization loop (co-optimization) yields smoother trajectories, wider physical safety margins, and fewer active control constraints (less actuator saturation) than reactive safety filtering.
  • Smooth Approximations Win: The transition to an exponential penalty sum objective for training the neural safety value function was an "aha moment" that dramatically improved value function accuracy over standard gradient-free reachability solvers.

Key Results

The framework was evaluated against two baselines: Vanilla State-Constrained MPC and a Smooth Blending Safety Filter (SB-Filter).

  • Simulation (14D Flexiv Rizon Manipulator): At a short planning horizon ($h=8$), Safety Value MPC achieved an 81% safety rate, outperforming Vanilla MPC (70%) and performing comparably to the SB-Filter (83%). Crucially, the proposed method maintained a larger average distance to obstacles and resulted in significantly fewer active control constraints, preserving control authority for low-level tracking.
  • Hardware Experiments: In real-world trials on a Flexiv Rizon 10s manipulator carrying a heavy 7.5kg payload past a virtual obstacle, the proposed method achieved an 80% safety rate. In comparison, Vanilla MPC achieved only 30%, and the SB-Filter achieved 40%, demonstrating the framework's superior robustness against real-world modeling mismatches.
Method Hardware Safety Rate
Vanilla MPC 30%
Smooth Blending Filter 40%
Ours (Safety Value MPC) 80%

Limitations and Future Work

  • No Formal Guarantees: Because the safety value function is approximated using a neural network, the theoretical mathematical guarantees of recursive feasibility do not fully hold in practice.
  • Optimization Failures: The true viscosity solution of the HJ equation is non-differentiable. Even though the neural network smooths this out, the value function landscape can still vary rapidly, causing the gradient-based SCP solver to occasionally fail to find a feasible path (accounting for 72 out of 83 failure cases in ablation studies).
  • Computational Overhead: Executing forward and backward passes through the neural network at every step of the SCP solver increases planning time. Future work will focus on optimizing and compiling the neural network models to reduce latency.

Summary updated

BibTeX
@misc{wang2026cooptimizing,
  author = {Hao Wang and Nam Nguyen and Armand Jordana and Ludovic Righetti and Somil Bansal},
  title = {{Cooptimizing Safety and Performance Using Safety Value-Constrained Model Predictive Control}},
  year = {2026},
  eprint = {2604.23863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.23863},
}
Figure