Introduction
The safety of autonomous Cyber-Physical Systems (CPSs), particularly self-driving vehicles, relies heavily on their ability to handle "edge cases"—rare, high-risk scenarios involving adverse weather, sensor degradation, or erratic traffic. Traditional methods for collecting such data in the real world are prohibitively expensive and dangerous. While simulators like CARLA offer a safer alternative, standard sampling techniques (e.g., random or grid searches) are often passive, ignoring physical constraints and failing to balance the exploration of new areas with the exploitation of known risky zones.
This paper presents a novel approach to scene generation that actively searches the environmental space of a simulator to identify physically realistic, high-risk test cases. By introducing two active sampling algorithms—Random Neighborhood Search (RNS) and Guided Bayesian Optimization (GBO)—the authors demonstrate a more efficient and diverse method for discovering the boundaries of an autonomous system's operational capabilities.
The Scene Generation Pipeline
The proposed framework utilizes a custom Scenario Description Language (SDL) to define the parameters of a scene, which are then executed within the CARLA simulator. The core of the system is an iterative feedback loop where the results of each simulation are analyzed to update a risk-based scoring function ($S_{Risk}$). This score guides the active samplers in selecting the next set of scene variables.
The pipeline ensures that generated scenes are not only risky but also physically plausible. For instance, environmental variables like precipitation or traffic density are constrained to prevent unrealistic "jumps" between consecutive waypoints, ensuring the synthetic data remains representative of real-world transitions.
Active Sampling and Risk Assessment
The methodology centers on two distinct active sampling strategies:
- Random Neighborhood Search (RNS): RNS balances exploration and exploitation by switching to a local search once a high-risk area is identified. It employs a kd-tree nearest-neighbor approach to sample configurations near known failures.
- Guided Bayesian Optimization (GBO): GBO uses a Gaussian Process (GP) model to predict the risk of unsampled configurations. An Upper Confidence Bound (UCB) acquisition function is used to mathematically navigate the trade-off between exploring uncertain regions and exploiting high-risk ones.
To provide these samplers with a target, the authors developed a scoring function $S_{Risk} = w_1 \cdot RS + w_2 \cdot IS$, where $RS$ is the estimated risk and $IS$ represents actual infractions (e.g., collisions). The estimated risk is derived from the ReSonAte framework, which uses Bow-tie diagrams to model the relationship between threats, barriers, and hazardous top events.
Experimental Results and Insights
The effectiveness of the pipeline was evaluated through an AV case study in an urban CARLA environment. Key results include:
- High-Risk Discovery: GBO and RNS significantly outperformed baseline methods, identifying high-risk scenes in 92% and 83% of iterations, respectively, compared to just 56% for grid search.
- Diversity of Failures: The active samplers discovered a wider variety of failure modes. RNS and GBO identified 6 and 4 distinct clusters of failure types, respectively, whereas baselines were often stuck finding repetitive variations of the same crash.
- Retraining for Robustness: By retraining the AV's perception controller on the discovered edge cases, the authors achieved a measurable improvement in driving proficiency and a reduction in infractions under difficult conditions.
Conclusion
Active, risk-aware sampling provides a powerful tool for the dynamic assurance of autonomous systems. While GBO offers superior predictive power, RNS provides a more computationally efficient alternative for large-scale testing. Future work will focus on improving the scalability of the Gaussian Process models and refining the multi-objective nature of the risk-scoring function to better isolate specific system vulnerabilities.
Summary updated