Safe and Performant Controller Synthesis using Gradient-based Model Predictive Control and Control Barrier Functions

A. Singh, Aastha Mishra, Manan Tayal, Shishir Kolathaya, Pushpak Jagtap

Abstract

This paper introduces a two-stage control framework designed to bridge the gap between high-performance planning and rigorous safety guarantees for autonomous systems. By combining soft-constrained gradient-based Model Predictive Control (MPC) with a Control Barrier Function (CBF) safety filter, the proposed GMPC-CBF method achieves scalability to high-dimensional robots and provable safety in cluttered environments. Experimental results demonstrate a 100% safety rate and superior computational efficiency compared to sampling-based alternatives.

Introduction

Autonomous systems like drones and self-driving cars must satisfy a "dual mandate": they must be performant (fast and efficient) and strictly safe (avoiding all obstacles). Current solutions typically struggle with this balance. Safety filters like CBFs can lead to jerky behavior if the underlying controller is "safety-blind," while state-constrained optimal control often suffers from the "curse of dimensionality," making real-time execution difficult for complex robots. This work proposes a framework that is safety-aware from the outset while remaining computationally light enough for high-dimensional systems.

Methods

The authors propose a two-stage pipeline to ensure both efficiency and safety:

  1. Stage 1: Soft-Constrained Gradient MPC. Instead of treating safety as a hard constraint initially, it is incorporated into the cost function as a penalty term. The system uses L-BFGS, a gradient-based optimization algorithm, to solve this. Because it utilizes gradients rather than random sampling, the computation scales linearly rather than exponentially as robot complexity increases.
  2. Stage 2: CBF-QP Safety Filter. The output from the first stage serves as a reference for a Control Barrier Function-based Quadratic Program (CBF-QP). This stage provides the formal mathematical guarantee of safety, making only minimal adjustments to the already safety-aware plan from Stage 1.
Trajectory comparison for obstacle avoidance across different methods.

Key Results and Insights

The framework was evaluated using a 3D Dubins car and a 6D planar quadrotor. The proposed GMPC-CBF method was compared against standard Gradient MPC (GMPC), sampling-based MPC (MPPI), and MPPI with a safety filter (MPPI-CBF).

  • Guaranteed Safety: GMPC-CBF achieved a 100% safety rate in all tests. In contrast, GMPC and MPPI alone frequently violated safety constraints, achieving only 85-88% safety.
  • Path Efficiency: In the quadrotor task, the competing MPPI-CBF method resulted in a 110.6% higher cumulative cost, indicating that the proposed method finds significantly more efficient paths to the goal.
  • Computational Speed: GMPC-CBF proved faster than sampling-based methods. For the unicycle task, it required only 0.14s per step compared to MPPI's 0.24s.
Quantitative comparison of safety, cost, and computation time across different robotic tasks.

A major finding of this research is the advantage of gradient-based methods over sampling. While sampling-based methods like MPPI can become "lost" as dimensions increase, gradient-based optimization provides a clear direction for improvement, allowing for efficient scaling to high-dimensional state spaces.

Conclusion

The GMPC-CBF framework offers a robust solution for safe robotic navigation. While highly effective, future work is needed to address the challenges of designing valid CBFs for highly complex environments and incorporating learning-based components to handle dynamics uncertainty. Expanding these tests to full 3D environments with complex obstacles remains a primary goal for future iterations.

Summary updated

BibTeX
@misc{singh2025safe,
  author = {A. Singh and Aastha Mishra and Manan Tayal and Shishir Kolathaya and Pushpak Jagtap},
  title = {{Safe and Performant Controller Synthesis using Gradient-based Model Predictive Control and Control Barrier Functions}},
  year = {2025},
  eprint = {2507.13872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13872},
}
Figure