Bug2Scenario: Root-Cause-Preserving Test Scenario Amplification for Autonomous Driving Software
Yuchen Cao, Zhenyu Mao, Jacky Wai Keung, Yifei Wang, Yihan Liao, Jingyu Zhang
Abstract
Simulation-based fuzzing exposes autonomous driving system (ADS) failures by repeatedly mutating and executing scenarios, but converting one failure into reusable regression scenarios remains difficult. Such variants test whether the mechanism persists after software changes, for example by varying weather or actor placement while retaining a collision's actor-route conflict. We present Bug2Scenario, a root-cause-guided post-fuzzing framework. From scenario data, traces, and oracle evidence, it extracts a root-cause pattern. An LLM proposes semantic variations over actors, missions, routes, and weather. Deterministic rules construct DriveFuzz-compatible scenarios. Execution evidence and manual review assess preservation. Separating these responsibilities prevents fluency, syntax, or recurring labels from masquerading as causal evidence. Under matched seeds, six LLM backbones, candidate budget, and execution pipeline, Bug2Scenario improves strict preservation by 6.7 percentage points (p=0.104; not significant) and boundary-inclusive preservation by 10.6 points (p=0.011). Feedback helps some initially unsuccessful seeds yield a strictly preserved candidate. Seed-level stopping then avoids further API calls and simulator runs. Remaining failures reflect actor-placement constraints, simulator instability, and incomplete or conflicting causal evidence. Bug2Scenario thus produces reliable ADS regression assets. Our implementation is available at https://github.com/YgcCoder/Bug2Sce.
Create a lesson
Metadata
- Comments
- 11 pages, 3 figures, and 2 tables. Accepted at APSEC 2026. Yuchen Cao and Zhenyu Mao contributed equally. Code and artifacts: https://github.com/YgcCoder/Bug2Sce
Related papers
From Ambiguous Tickets to Ranked Hypotheses: Multi-Agent Root-Cause Analysis for Autonomous Heavy-Vehicle Software
Shared title terminologycs.SEMarten Seegers, Maximilian Kneissl, Enrique Aguayo-Lara et al.
Simulation-Based Testing of RCM-Constrained Robotic Software via Task Manifolds
Shared title terminologycs.SEZhenyu Jiang, Yanlin Li, Rongjie Yan et al.
Think Before You Code: A Benchmark for Testing LLMs on Software Engineering Deliberation
Shared title terminologycs.SEAshman Mehra
Inquest: Log-Guided Root-Cause Code Localization with a Staged Agent
Shared title terminologycs.SEYuvraj Sehgal, Sneh Patel, Mahsa Panahandeh et al.
CLEW: Log-Anchored Backward Tracing for Root-Cause Code Localization
Shared title terminologycs.SEWenji Bai, Muhammad Waseem, Jaakko Peltonen et al.
Autonomous Code Review: Hidden-Test Results on GitHub Issues
Shared title terminologycs.SEAdam Shakhabov