Loop2Scenic: A Self-Refining Agentic Framework with Closed-Loop Visual Feedback for Multimodal Safety-Critical Driving Scenario Generation
This paper introduces Loop2Scenic, a framework that uses closed-loop visual feedback to generate diverse and executable driving scenarios from text, image, or video queries. On a benchmark of 250 queries across five modalities, the system achieves a 100% compilation success rate and 80.2% framework accuracy after five refinement rounds, outperforming four state-of-the-art baselines. The generated scenarios also yield lower SafeBench scores than baseline methods, indicating higher safety-critical content for testing automated driving systems.
Article text · Original source
arXiv:2612.02878v1 Announce Type: cross Abstract: Scenario-based testing of automated driving systems must cover safety-critical corner cases, which are difficult to collect on real roads and laborious to script in simulation. Existing methods use language models to generate programs in Scenic, a human- and machine-readable domain-specific language for representing driving scenarios. However, generating diverse, executable scenarios that faithfully reflect the user's query remains challenging. We present Loop2Scenic, a self-refining agentic framework for multimodal driving scenario generation with closed-loop visual feedback, uniquely combining text, image, and video inputs with retrieval-augmented generation. Given a text, image, or video query, it retrieves a Scenic program as a seed and executes it in CARLA. A vision-language model critic evaluates rendered views and actor trajectories against query-derived criteria, guiding program acceptance, targeted repair, or regeneration. Further, we introduce a multimodal benchmark of 250 queries across five input modalities with human-written criteria for evaluating whether generated scenarios match their queries. On this benchmark, five-round Loop2Scenic achieves a compilation success rate (CSR) of 100% and framework accuracy (FA) of 80.2%, outperforming four state-of-the-art methods using the same underlying model. The strongest baseline achieves 65.2% CSR and 54.5% FA. Mean scenario quality rises from 70.5% at zero rounds to 79.0% at three and 80.2% at five. Further, Loop2Scenic achieves observed mean SafeBench scores 2.7-14.1% lower than the four baselines on matched queries, averaged over three reinforcement learning policies, indicating more critical scenarios. We further evaluate driving systems on the generated scenarios, extending Scenic-based closed-loop testing from modular systems to vision-language-action driving stacks and from non-reactive to reactive traffic.