Loop2Scenic: A Self-Refining Agentic Framework with Closed-Loop Visual Feedback for Multimodal Safety-Critical Driving Scenario Generation

Yuan Gao, Chen Li, Lim Yung Loon, Finn Rasmus Schäfer, Felix Jahncke, Mattia Piccinini, Qunying Song, Sebastian Schmidt and 1 others

Technical University of Munich · University College London

Published December 1, 2026 · on the feed December 3, 2026 · ▲ 6 · arXiv 2612.02878

Vision & multimodalAgentsSafety, alignment & security No code arXiv ↗Hugging Face ↗

The 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.

The Brief

2:50

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Loop2Scenic. A Self-Refining Agentic Framework with Closed-Loop Visual Feedback for Multimodal Safety-Critical Driving Scenario Generation. By Yuan Gao and eight others, from the Technical University of Munich and University College London. Published on the first of December.

Testing an automated driving system means exposing it to the rare, safety-critical corner cases, and those are hard to come by. They are difficult to collect on real roads, and laborious to script by hand in simulation. One existing route uses language models to write programs in Scenic, a domain-specific language for driving scenarios that both humans and machines can read. The trouble is getting scenarios that are diverse, that actually execute, and that faithfully reflect what the user asked for. A program can compile and still describe the wrong situation.

Loop2Scenic closes that gap by looking at the result. It is a self-refining agentic framework that generates driving scenarios with closed-loop visual feedback. A query can arrive as text, as an image or as a video, and the framework combines all three input types with retrieval-augmented generation. Rather than judging a program by its code, it runs the program and checks what comes out on screen against what was requested.

Given a query, the system retrieves an existing Scenic program to serve as a seed, and executes it in the CARLA simulator. A vision-language model then acts as critic. It looks at the rendered views and at the trajectories of the actors in the scene, and scores them against criteria derived from the query. That verdict drives one of three outcomes. The program is accepted, it is repaired in a targeted way, or it is regenerated. The loop runs for several rounds.

To measure fidelity, the authors build a multimodal benchmark: two hundred and fifty queries across five input modalities, each with human-written criteria for whether a generated scenario matches its query. With five rounds, Loop2Scenic reaches a compilation success rate of one hundred percent and a framework accuracy of eighty point two percent. The strongest of four state-of-the-art baselines, using the same underlying model, reaches sixty-five point two percent compilation success and fifty-four point five percent accuracy.

Rounds matter. Mean scenario quality is seventy point five percent with no refinement, seventy-nine percent after three rounds, and eighty point two percent after five. The scenarios are also harder on the systems being tested. Averaged over three reinforcement learning driving policies, the mean SafeBench scores Loop2Scenic produces are two point seven to fourteen point one percent lower than those of the four baselines on matched queries, which the authors read as more critical scenarios.

The generated scenarios are then put to use. The authors evaluate driving systems on them, and in doing so extend Scenic-based closed-loop testing in two directions at once: from modular driving systems to vision-language-action driving stacks, and from traffic that does not react to traffic that does. Watching the rendered scene, rather than trusting the program text, is what lets the framework hold its scenarios to the query.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.