Learning Stability Attention in Vision-based End-to-end Driving Policies

Tsun-Hsuan Wang, Wei Xiao, Makram Chahine, Alexander Amini, Ramin M. Hasani, Daniela Rus

Abstract

End-to-end (E2E) autonomous driving models offer the promise of mapping raw sensory input directly to control commands, yet they often lack the formal stability guarantees required for safety-critical deployment. This paper introduces a framework for learning Stability Attention in Control Lyapunov Functions (att-CLFs). By integrating differentiable optimization layers into a neural network, the system dynamically adjusts its stability priorities based on real-time visual context. Experimental results in the VISTA simulator and on a full-scale autonomous vehicle demonstrate that att-CLFs significantly reduce lane-tracking errors and human interventions compared to vanilla E2E models, while maintaining the computational efficiency necessary for real-time control.

Introduction

End-to-end learning has emerged as a powerful paradigm for autonomous driving, enabling vehicles to navigate complex environments by learning directly from human demonstrations. However, these "black-box" models often exhibit unpredictable behaviors, such as oscillations or "chattering," particularly when faced with novel lighting conditions or unstructured roads. The primary challenge lies in the lack of mathematical certificates that guarantee the vehicle will remain within a stable operating envelope.

Traditional control theory provides a solution through Control Lyapunov Functions (CLFs), which offer rigorous stability guarantees. However, classical CLFs typically rely on fixed parameters and struggle with the high-dimensional, non-linear nature of visual data. This work bridges the gap between deep learning's expressivity and control theory's safety by making the stability constraints themselves context-aware.

Methodology

The proposed framework integrates a differentiable optimization layer directly into the neural network architecture, allowing for end-to-end training while enforcing control-theoretic constraints.

1. Stability Attention (att-CLFs)

Rather than employing a static Lyapunov function, the authors develop att-CLFs that adapt to visual observations. A combination of a Convolutional Neural Network (CNN) and a Long Short-Term Memory (LSTM) network extracts features from camera images to predict the parameters of the CLF. This "stability attention" mechanism allows the model to prioritize different control objectives—such as lateral displacement versus heading alignment—depending on the scene. For instance, the model may focus heavily on lateral correction when drifting near a lane boundary but shift its attention to smooth heading adjustments when centered.

2. Differentiable Quadratic Programs (dQPs)

The control command is derived by solving a Quadratic Program (QP) that minimizes control effort subject to the stability constraints defined by the att-CLF. By utilizing a differentiable QP layer, the entire pipeline remains gradient-compatible, enabling the model to learn the optimal stability parameters through imitation learning from expert driving data.

3. Uncertainty Propagation

To address the inherent noise in visual perception (e.g., glare or motion blur), the framework incorporates uncertainty propagation. Instead of a point estimate, the model propagates state uncertainty through the optimization layer. This results in a distribution of possible controls, which effectively smooths the vehicle's trajectory and prevents jerky maneuvers in high-noise environments.

Experimental Evaluation

Simulation and Real-World Setup

The model was trained using the VISTA Simulator, a photo-realistic, data-driven environment that allows for "guided policy learning" across 200,000 synthetic variations of real-world data. For physical validation, the system was deployed on a 2019 Lexus RX 450H equipped with an NVIDIA 2080Ti GPU, cameras, and differential GPS.

Performance Metrics

The att-CLF approach was compared against vanilla E2E models, classical CLFs, and Nonlinear Model Predictive Control (NMPC):

  • Lane Tracking Accuracy: In simulation, the att-CLF model achieved a mean deviation of 0.218m, a substantial improvement over the vanilla E2E model's 0.573m. While NMPC remained the most precise (0.011m), it was computationally prohibitive.
  • Real-World Reliability: During physical road tests, the att-CLF model required an average of only 1.6 human interventions, compared to 4.0 for the vanilla E2E model.
  • Computational Efficiency: A critical advantage of the att-CLF is its speed. While NMPC required 0.818s for inference, the proposed model ran in just 0.032s, making it highly suitable for real-time deployment.

Discussion and Robustness

One of the most significant findings was the model's robustness to adverse lighting. In scenarios with direct sunlight and heavy glare—conditions that typically cause vanilla E2E models to fail or exhibit unstable "chattering"—the att-CLF maintained a smooth trajectory. The combination of uncertainty propagation and formal stability constraints acted as a regularizer, preventing the model from overreacting to perceptual noise.

Limitations

Despite its success, the framework has limitations. It currently assumes that the environment remains piecewise constant during a single control step, an assumption that may not hold at very high speeds. Additionally, the model's performance remains dependent on the quality of its internal state estimations (e.g., distance to lane center) derived from pixels.

Conclusion

By embedding stability attention into the end-to-end learning process, this research provides a viable path toward trustworthy autonomous driving. The att-CLF framework demonstrates that formal safety guarantees do not have to come at the cost of flexibility or real-time performance. Future work will explore the integration of Control Barrier Functions (CBFs) for explicit obstacle avoidance and methods to account for dynamic environmental changes at high velocities.

Summary updated

BibTeX
@inproceedings{wang2023learning,
  author = {Tsun-Hsuan Wang and Wei Xiao and Makram Chahine and Alexander Amini and Ramin M. Hasani and Daniela Rus},
  title = {{Learning Stability Attention in Vision-based End-to-end Driving Policies}},
  booktitle = {L4DC},
  year = {2023},
}
Figure