TL;DR
This paper introduces an automated framework for testing autonomous vehicles (AVs) by training a "suicidal pedestrian" agent using reinforcement learning to intentionally cause collisions in the CARLA simulator. By optimizing for high-severity conflicts, the agent successfully exposes critical perception and decision-making blind spots in state-of-the-art end-to-end autonomous driving algorithms.
What Problem Does This Paper Address?
Validating the safety of autonomous vehicles (AVs) is notoriously difficult due to the "long tail" problem: real-world driving datasets are overwhelmingly composed of safe, mundane miles, making critical edge cases—like a pedestrian suddenly stepping into traffic—extremely rare.
While virtual testing environments allow researchers to simulate traffic, most current methods rely on pre-scripted pedestrian behaviors or focus primarily on adversarial vehicles (e.g., cut-ins on highways). These approaches fail to capture the complex, adaptive interactions between vehicles and pedestrians in urban environments. To build truly robust AVs, developers need a way to automatically generate diverse, safety-critical pedestrian scenarios that actively challenge an AV's driving policy.
Methods
The authors frame the traffic scenario as a Markov Decision Process (MDP) and train an adversarial pedestrian using Proximal Policy Optimization (PPO), a standard model-free reinforcement learning algorithm.
Key innovations in their approach include:
- Invariant State Space: Instead of using absolute world coordinates, the pedestrian's state space is defined using relative metrics: the angle and distance to the AV, and the AV's relative direction and speed. This design ensures rotation and translation invariance, allowing the trained agent to generalize across different maps.
- Action Space: The pedestrian outputs a continuous forward direction angle and a scalar velocity (up to 3.5 m/s).
- Shaped Reward Functions: The authors compare two reward structures:
- $R_1$ (Baseline): A simple binary reward (+1) given only when a collision occurs.
- $R_2$ (Shaped): A velocity-dependent reward that penalizes the AV heavily for high-speed impacts, specifically rewarding frontal collisions ($max(3, 1.5v_c)$) more than side impacts ($max(1, 0.5v_c)$). This shapes a natural curriculum, forcing the pedestrian to learn sophisticated tactics like exploiting the AV's occluded vision zones.
- Spawning Constraints: To prevent impossible or trivial scenarios, the pedestrian is initialized within a $120^\circ$ sector ahead of the vehicle at a distance of 7 to 30 meters.
Datasets
The framework is implemented and evaluated within the open-source CARLA simulator.
- Training Environment: Town 2 (featuring T-intersections and two-lane residential roads).
- Testing Environment: Town 1 (used to evaluate the agent's zero-shot generalization capabilities to an unseen environment).
The pedestrian agent was evaluated against three driving models: CARLA's default rule-based Autopilot, and two state-of-the-art end-to-end autonomous driving models: LAV and InterFuser.
Key Insights and Ideas
- The Power of Severity-Shaped Rewards: Training with the velocity-dependent reward ($R_2$) yielded a significantly more aggressive and effective adversary than the binary collision reward ($R_1$). It forced the pedestrian to actively seek out high-speed, dangerous frontal impacts rather than just brushing against the side of a stopped car.
- Uncovering Distinct Failure Modes: The adversarial pedestrian successfully exposed unique architectural weaknesses in state-of-the-art AV models without any prior knowledge of their internal mechanics:
- LAV suffered from perception failures, occasionally misclassifying the pedestrian as a vehicle (applying incorrect dynamic models) or failing to detect them entirely due to poor multi-camera image fusion.
- InterFuser demonstrated strong detection capabilities but suffered from trajectory prediction failures, failing to anticipate the pedestrian's aggressive path and taking no evasive action.
Key Results
The trained pedestrian achieved remarkably high collision rates across different driving algorithms and maps:
- Generalization: When evaluated on the unseen Town 1 map, the $R_2$-trained pedestrian maintained an 86% collision rate against the CARLA baseline agent, proving its relative coordinate state space generalizes well.
- SOTA Vulnerabilities: When deployed against advanced end-to-end models, the pedestrian achieved a 93% collision rate against LAV and a 94% collision rate against InterFuser in Town 2.
- Severity Metrics: InterFuser exhibited a lower moving collision rate (32%–37%) compared to LAV (47%–61%). This indicates that while InterFuser was frequently hit, it usually managed to stop the vehicle first, resulting in less severe accidents than LAV, which often collided while still moving.
Limitations and Future Work
While effective, the authors note several limitations to their current approach:
- Single-Agent Constraints: The simulation is currently limited to one pedestrian and one vehicle, ignoring multi-agent dynamics (e.g., crowds or surrounding traffic).
- Blind Spots to Obstacles: The hand-crafted state vector only tracks the target vehicle. As a result, the pedestrian can sometimes get stuck behind environmental obstacles (like walls or benches) not represented in its state space.
- Future Directions: The authors propose expanding the state space to include image-based or object-based representations of the surroundings. They also plan to introduce goal-conditioned RL to generate a wider variety of realistic pedestrian behaviors beyond purely adversarial ones.
Summary updated