High-performance autonomous driving, particularly in racing scenarios, requires pushing vehicles to their physical limits. While learning-based methods like Reinforcement Learning (RL) or Imitation Learning are adept at discovering high-performance policies, they often lack formal safety guarantees. These "black box" models might suggest steering commands that lead to catastrophic failures. Researchers from ETH Zurich have addressed this by developing a predictive safety filter that acts as a "guardian angel" for autonomous racing cars, ensuring they stay within track boundaries while remaining minimally invasive to performance goals.
The Challenge of Safe Racing
Existing safety techniques, such as Control Barrier Functions (CBFs), are often difficult to design for highly nonlinear systems like racing cars experiencing significant tire slip. Furthermore, many safety frameworks are overly conservative, intervening so early that they prevent the vehicle from executing aggressive, competitive maneuvers. The goal is a safety layer that is modular, theoretically sound, and permissive enough to allow racing at the limit.
Methodology: The Predictive Safety Filter
The proposed Predictive Safety Filter (PSF) is based on a Model Predictive Control (MPC) framework. It wraps around any potentially unsafe control signal—whether from a human driver or a deep learning model.
Filter Mechanism
The system receives a "desired" control input ($u_d$) from an external agent. It then solves an optimization problem: find a control sequence that is as close as possible to $u_d$ while guaranteeing the existence of a "backup trajectory" that ends in a known safe invariant set.
High-Fidelity Modeling
Unlike simpler kinematic models, this approach employs a nonlinear dynamic bicycle model combined with a Pacejka tire model. This accounts for complex forces like tire saturation and slip, which are critical during high-speed cornering.
Curvature-Aware Invariant Sets
A key technical contribution is the handling of track geometry. The researchers compute a "terminal safe set"—a region where the car can remain indefinitely (e.g., driving in a circle on the centerline). Because track curvature varies, they use an iterative optimization approach (Semidefinite Programming) to compute ellipsoidal safe sets valid across a range of curvatures. The filter is implemented using acados, a fast solver for nonlinear MPC, allowing real-time operation at 80 Hz.
Key Insights: Minimal Invasiveness
The safety filter is independent of the specific task objective, making it highly modular. By minimizing the difference between the desired and applied input ($||u_d - u_0||^2$), the filter only intervenes at the last possible second to prevent a constraint violation.
The "safe set" is not merely a static area; it represents the set of all states from which a feasible $N$-step trajectory exists leading back to a stable steady-state. This approach significantly expands the "playable area" for learning algorithms compared to more conservative methods.
Experimental Results
The approach was evaluated using a 1:28-scale Kyosho Mini-Z remote-controlled car on a custom race track, with sensing provided by a VICON motion capture system.
- Assisted Manual Driving: In tests with human operators, the filter allowed aggressive swerving but overrode inputs whenever the driver attempted to hit a wall.
- Safe Imitation Learning (DAgger): The filter enabled training a neural network policy using the DAgger algorithm directly on physical hardware from the first lap without crashes. Typically, DAgger requires rolling out untrained, dangerous policies.
- Performance: By the fifth training iteration, the filtered neural network achieved trajectories nearly identical to an expert MPC controller, proving the filter does not hinder the acquisition of optimal racing lines.
Limitations and Future Outlook
While effective, the current theoretical proof for the invariant set assumes constant curvature within a segment. Future work could involve a more rigorous treatment of varying curvature. Additionally, the reliance on an accurate physical model suggests that online model learning could help the filter adapt to changing conditions, such as varying floor grip or tire wear.
Summary updated