Differentiable Control Barrier Functions for Vision-based End-to-End Autonomous Driving

Wei Xiao, Tsun-Hsuan Wang, Makram Chahine, Alexander Amini, Ramin M. Hasani, Daniela RusarXiv 2022 · DOI

Abstract

End-to-end (E2E) autonomous driving models offer an elegant mapping from raw pixels to control commands but often lack formal safety guarantees. This paper presents a framework that integrates differentiable Control Barrier Functions (dCBFs) into a neural network architecture, termed BarrierNet. By combining deep learning's representational power with the rigorous safety constraints of control theory, the system ensures lane-keeping and obstacle avoidance even in challenging real-world conditions. Experimental results in simulation and on a full-scale vehicle demonstrate significant reductions in crash rates and improved robustness on icy roads.

Introduction

End-to-end autonomous driving—where a neural network maps raw camera images directly to steering and acceleration—is a promising paradigm. However, these "black-box" models pose significant risks because they lack mathematical guarantees for safety-critical tasks like lane-keeping or obstacle avoidance. Traditional control theory utilizes Control Barrier Functions (CBFs) to provide such guarantees, but these typically require precise ground-truth state information, which is unavailable in pure vision-based systems. This work bridges the gap by introducing differentiable CBFs that can be trained end-to-end with visual inputs.

Methodology: The BarrierNet Architecture

The core contribution is BarrierNet, a multi-level, interpretable architecture that filters neural network commands through a safety layer. The pipeline consists of several key components:

  1. Perception and State Estimation: A CNN and LSTM process front-view camera images. Unlike standard E2E models, intermediate layers are supervised to estimate physical states such as position, speed, and steering angle.
  2. Differentiable Control Barrier Functions (dCBFs): High-Order CBFs handle complex vehicle dynamics. By making these functions differentiable, their parameters can be learned to balance safety with performance, avoiding the over-conservativeness typical of standard CBFs.
  3. Differentiable Safety Layer: This layer acts as a Quadratic Program (QP) solver. It receives a "nominal" control command from the network and modifies it only if it violates safety boundaries, ensuring the output is the closest safe command to the desired one.
The BarrierNet architecture integrating CNN, LSTM, and a differentiable safety layer.

To handle dynamic environments, the authors employ a Disk Covering Approach, where a fixed number of "disks" represent obstacles or lane boundaries. This allows the system to generalize across different road geometries and obstacle counts.

Experimental Results

The system was evaluated using the photorealistic VISTA Simulator and real-world data collected from a Lexus RX 450H.

Simulation Performance

In simulation, the integration of dCBFs led to a dramatic reduction in crash rates. The baseline model's crash rate of 0.53 was nearly halved to 0.28 with dCBFs. When provided with ground-truth state information, the crash rate dropped further to 0.03, highlighting the impact of formal safety constraints.

Real-World Robustness and Lane Keeping

The model demonstrated superior lane-keeping capabilities, maintaining a significantly higher probability of staying within 1 meter of the lane center compared to non-safe baselines.

Comparison of lane-keeping and obstacle avoidance with and without dCBF.

Crucially, the system proved robust in extreme real-world conditions. During testing on icy roads with heavy snow—conditions that typically degrade vision-based systems—the BarrierNet provided necessary corrections to counteract tire slippage and keep the vehicle on its intended path.

Conclusion

This research demonstrates that formal safety guarantees can be integrated into end-to-end vision-based driving systems without sacrificing the benefits of deep learning. By making the safety layer differentiable, the entire system can be optimized for both performance and safety. Future work will address state estimation errors by incorporating uncertainty calibration, allowing the model to adopt more conservative safety margins when visual data is ambiguous.

Summary updated

BibTeX
@misc{xiao2022differentiable,
  author = {Wei Xiao and Tsun-Hsuan Wang and Makram Chahine and Alexander Amini and Ramin M. Hasani and Daniela Rus},
  title = {{Differentiable Control Barrier Functions for Vision-based End-to-End Autonomous Driving}},
  year = {2022},
  eprint = {2203.02401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.02401},
}
Figure