TL;DR
This paper introduces a mutation-based testing approach to evaluate how well a test suite exercises the internal decision-making weights of an autonomous vehicle's path planner. By intentionally perturbing the weights of the planner's cost function, the method determines if existing test scenarios can detect these changes, providing a metric for "weight coverage." This framework helps engineers identify redundant test cases and ensure critical safety and comfort parameters are thoroughly evaluated.
What Problem Does This Paper Address?
Testing autonomous vehicles (AVs) is notoriously difficult because covering every real-world traffic scenario is practically impossible. While current industry standards rely on "scenario-based testing" (ensuring a car encounters various road layouts, weather conditions, and traffic configurations), this approach has a major blind spot: it doesn't guarantee that the vehicle's internal decision-making logic is thoroughly exercised.
AV path planners typically choose the best trajectory by minimizing a cost function that balances competing priorities like safety, passenger comfort, vehicle physical limitations, and traffic laws. These priorities are balanced using numerical weights. Traditional code coverage metrics fail to show whether these weights are actually driving the planner's choices during a test. The authors address this gap by proposing a way to measure weight coverage—ensuring that every weight significantly influences the planner's decisions in at least one test scenario.
Methods
The authors propose a mutation-based testing framework tailored for optimization-based path planners. Instead of introducing faults into source code (as in traditional mutation testing), they mutate the weights ($w_i$) of the path planner's cost function by multiplying them by a constant factor $K$ (sampling extreme changes like $K=0$ or $10$, and subtle changes like $K=0.9$ or $1.1$).
To determine if a test scenario successfully "covers" a weight, the original path planner and the mutated path planner are both run through a simulator. A weight is considered covered if a test scenario "kills" the mutant—meaning the mutated weight causes the vehicle to behave differently. The authors define three distinct mutation oracles to evaluate this difference:
- Path Oracle (PO): A weak oracle that triggers if the spatial trajectory of the car changes at any timestamp.
- Safety Oracle (SO): A stricter oracle that triggers only if the minimum distance to other objects changes.
- Comfort Oracle (CO): A strict oracle that triggers if the maximum acceleration experienced by the vehicle changes.
Datasets
The approach was evaluated using a proprietary path planner provided by an industrial partner. The test suite consisted of 10 manually designed driving scenarios ($s_1$ to $s_{10}$) tailored for left-hand traffic systems (like Ireland and Japan).
These scenarios capture common driving maneuvers, such as overtaking a parked car, navigating intersections, giving precedence, and reacting to slowing vehicles. One scenario ($s_1$) was generated using a search algorithm specifically designed to create a high-risk, near-collision situation.
Key Insights and Ideas
- Acceleration Weights are Easy to Exercise: Weights governing lateral and normal acceleration ($w_1, w_2, w_4, w_5$) are highly sensitive. They were easily covered across almost all scenarios and oracles because path planning decisions inherently rely heavily on acceleration profiles.
- Context-Specific Weights Need High-Stakes Scenarios: Weights related to speed limits ($w_3$) and sudden direction changes ($w_6$) are much harder to cover. For instance, the speed limit weight was only covered in a highly dangerous scenario ($s_1$) where relaxing the speed constraint allowed the vehicle to accelerate away from an impending collision.
- Pruning Redundant Tests: The framework can identify useless test cases. Scenario $s_3$ (driving straight on a clear road) failed to cover a single weight across any oracle, demonstrating that it adds no value to the test suite and can be safely removed to save compute time.
- Sensitivity to Scale: Extreme mutations ($K=0$, which completely disables an aspect, and $K=10$, which massively exaggerates it) are much easier to detect than subtle variations ($K=0.9$ or $1.1$).
Key Results
The test suite was evaluated against 6 core weights across 7 mutation variants, yielding 42 total mutants.
As shown in the results, 4 out of the 6 weights achieved full coverage across all three oracles. However, the choice of oracle matters immensely: the highly demanding Comfort Oracle (CO) was only triggered by three specific scenarios ($s_2, s_7, s_{10}$), proving that subtle changes in driving smoothness are difficult to surface without complex, multi-agent interactions.
Limitations and Future Work
A primary limitation is the scale of the evaluation, which relied on a small, 10-scenario test suite. Additionally, the partner's path planner utilizes a linear cost function; the mutation behavior might differ significantly for non-linear optimization functions. The simulation environment also used offline, pre-recorded trajectories for dynamic obstacles, meaning other cars did not react dynamically to the ego vehicle's mutated paths.
For future work, the authors plan to scale up the framework using automatically generated test suites and investigate whether high weight coverage correlates with a higher rate of actual fault detection. They also aim to generalize the methodology to other optimization-based software systems outside the autonomous vehicle domain.
Summary updated