Skip to content

Translation in progress Some entries still include text in the original language.

Loop2Scenic: A Self-Refining Agent Framework with Closed-Loop Visual Feedback for Safety-Critical Multimodal Driving Scenario GenerationLoop2Scenic: 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, Johannes Betz
Professorship of Autonomous Vehicle Systems, Technical University of Munich; University College London, University of London; Data Analytics and Machine Learning Group, Technical University of Munich
Hugging Face Daily PapersarXiv:2612.02878Originally published Indexed by this site · 3 days agoEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors propose Loop2Scenic, which uses multimodal retrieval and VLM visual feedback to generate driving scenarios; the five-round version achieves an FA of 80.2% on 250 queries.

Questions
Safety-critical autonomous driving scenarios are difficult to collect on real roads, and manually writing Scenic programs is time-consuming. The authors focus on the problem that existing generation frameworks lack query-alignment feedback on rendered results, and that multimodal retrieval does not fully exploit scenario videos.
Methods
Loop2Scenic retrieves Scenic seed programs and code snippets from text, image, or video queries; after execution in CARLA, a VLM review combines multi-view and trajectory scoring and chooses to accept, repair components, or regenerate. The authors also construct 250 five-modality queries and human standards.
Experiments and results
The five-round version achieves GSR and CSR of 100% and FA of 80.2% on 250 queries, versus 54.5% for Chat2Scenic. On matched queries, its SafeBench three-policy average OS is 2.7–14.1% lower than the four baselines; the authors additionally test three VLA stacks and three RL policies.
Limitations and future work
The authors plan to add repair memory and release the implementation in the future. The SQ difference intervals on matched executable queries all contain zero; the backbone and the reviewer share Qwen3.8-Max, 15 of the 35 human-verified queries overlap with reviewer development, and the downstream difficulty comparison also does not isolate the separate effect of refinement.
Experimental setupQwen3.8-Max、Qwen3.8-Flash et al. · Loop2Scenic Bench、SafeBench et al. · GSR、CSR et al.
AI summaryLoop2Scenic is a self-refining agent framework with closed-loop visual feedback that generates and repairs Scenic safety-critical driving scenarios. A vision-language model reviews CARLA-rendered frames and trajectories, guiding acceptance, repair, or regeneration. On a 250-query, five-modality benchmark, after five rounds of self-refinement the compilation success rate is 100% and the framework accuracy is 80.2%, and the SafeBench score is 2.7-14.1% lower than four baselines, with scenarios being more critical.

Loop2Scenic is a self-refining agent framework with closed-loop visual feedback that generates and repairs Scenic safety-critical driving scenarios. A vision-language model reviews CARLA-rendered frames and trajectories, guiding acceptance, repair, or regeneration. On a 250-query, five-modality benchmark, after five rounds of self-refinement the compilation success rate is 100% and the framework accuracy is 80.2%, and the SafeBench score is 2.7-14.1% lower than four baselines, with scenarios being more critical.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study how to generate executable, aligned, and safety-critical Scenic driving test scenarios from multimodal queries.

    The core problem is how to automatically transform text, image, and video queries into executable Scenic scenarios that conform to the query and can stress-test driving systems.

    • Application motivation: The authors state that safety-critical scenarios can expose ADS failures not covered by routine driving, but collecting them on real roads is costly and actively reproducing them poses safety risks; manually writing scenarios also limits benchmark coverage.
    • Feedback gap: The authors argue that open-loop methods do not use rendering results, and compiler or runtime error checks can only improve executability, not determine whether a generated scenario conforms to the query.
    • Retrieval gap: The authors point out that some methods first convert visual input to text and then retrieve code indexed only by text, without exploiting the video unfolding of inventory scenarios in simulation.
    • Core idea: Use multimodal retrieval to provide executable seeds, then have a VLM review rendered views and actor trajectories and decide, according to query criteria, whether to accept, locally repair, or regenerate.
    • Paper outputs: Proposes the Loop2Scenic framework and Loop2Scenic Bench, containing 250 queries, five input modalities, and human-aligned criteria, and conducts generation quality, criticality, and closed-loop driving evaluations.
    • Task boundary: This is scenario generation and testing research and does not posit an attacker or malicious input; the victim objects correspond to the tested modular driving systems, VLA driving stacks, and state-input RL policies.
  2. What related research exists?

    Related work is divided into Scenic program generation, feedback and multimodal retrieval, self-refining agents, and downstream driving evaluation.

    Scenic program generation

    • ChatScene, Ext-Scenic, TrafficAlign: assemble programs from predefined snippets, templates, or mappings; the authors consider their generation scope limited by these resources.
    • ScenicNL, NL2Scenic, D-V2S: generate complete programs and must ensure both syntax and cross-component consistency; Talk2Traffic generates components separately.
    • Chat2Scenic: iteratively generates components and conditions on preceding code to improve compatibility and compilation success rate; the authors note that it is still text-based and open-loop, and programs are neither executed nor repaired.

    Feedback, multimodal input, and retrieval

    • ScenicNL, ARISE: use compilation or execution errors to correct programs; the authors position these as addressing executability rather than post-rendering query alignment.
    • Talk2Traffic, conversational Scenic editor, Dashcam-to-Sim: use manual inspection, user modification requests, and rule-based visual feature difference feedback, respectively; the authors state that they do not have a VLM directly evaluate rendered scenarios against query criteria.
    • D-V2S, Ext-Scenic, Talk2Traffic: cover video description, sketch and narrative, or visual-to-text retrieval; Loop2Scenic instead jointly matches explanatory text, original media, and inventory description–video representations.

    Self-refining agents and driving evaluation

    • Self-Refine, Reflexion: improve subsequent attempts by directly modifying outputs and by retaining reflections, respectively; DiLu and Agent-Driver update experiential memory or modify trajectories after collision checks.
    • EvoDrive: evolves adversarial scenario generators to expose driving policy failures while maintaining realism; the authors note that its objective is not to align with users' multimodal queries.
    • Baselines and benchmarks: Table 2 compares ChatScene, ScenicNL, NL2Scenic, and Chat2Scenic, all using the 250 Loop2Scenic Bench queries; downstream uses SafeBench and Bench2Drive metrics.

    The authors position this paper as combining multimodal seed retrieval, query-specific visual inspection, and Scenic repair/regeneration, and as supplementing closed-loop testing under VLA and reactive traffic.

  3. How does the paper address this problem?

    Loop2Scenic starts with multimodal retrieval and uses execution results and VLM visual review to drive component-level iterative repair.

    Loop2Scenic consists of four modules: Interactive, RAG, Evaluation, and Generation: it first interprets the query and retrieves a seed, then executes in CARLA, and a visual review decides whether to accept, repair, or regenerate; each revision is re-executed and re-evaluated (Figure 2).

    Query interpretation and multimodal retrieval

    • Structured interpretation: The VLM Interpreter organizes arbitrary combinations of text, images, and video into header, content, and summary, covering eight categories of elements: weather, ego, adversarial objects, temporary modifications, roadside structures, spatial relations, constraints, and map.
    • Seed retrieval: The Scenario Database contains 200 "description—BEV video—Scenic program" entries; Qwen3-VL-Embedding-2B jointly embeds the query text and available raw media, and selects the Top-1 seed by cosine similarity.
    • Code retrieval: The DSL Database contains 922 snippets with type labels and records 145 source IDs; all-MiniLM-L6-v2 embeds descriptions, and for each component, after filtering by type, at most the 3 snippets with the highest cosine similarity are taken as CodeICL examples.

    Execution, scoring, and feedback decisions

    • Execution observation: Iteration starts from seed P0; CARLA records BEV, labeled top-down views, FPV, and actor trajectories; when execution fails, the error information is passed to the repair module.
    • Hierarchical criteria: The review generates criteria from the query in one pass, organized into five layers: Road Layout, Traffic Infrastructure, Static Objects, Dynamic Actors, and Environment, and reuses them across rounds.
    • Upper/lower-bound scoring: Each criterion is recorded as (1,1) if satisfied, (0,0) if not satisfied, and (0,1) if unobservable, aggregated as st±=100 meanλmeanη∈λmeanj∈ηvt,j±; unobservable items count as unsatisfied in the lower bound and satisfied in the upper bound.
    • Interaction constraints: When the recording is shorter than 5 s or the nearest ego—actor distance exceeds 40 m, the adjusted acceptance score is capped at τ−10; missing measurements do not trigger this check.

    Program generation and error repair

    • Component order: The Header Generator first constructs the header, then the Component Generator generates in the order of spatial relations, ego, adversarial objects, roadside structures, temporary modifications, and constraints; subsequent components can reference already-assembled code.
    • Repair or regeneration: Repair rewrites only the components jointly specified by the interpretation and the repair set Ct, preserving the remaining components; regeneration overwrites all scenario content; both use the interpretation, retrieved snippets, and existing code.
    • Error handling: The Error Resolver makes at most 3 additional FIX calls outside the refinement budget; on persistent failure, simulation is skipped, and repairing after locating the erroneous component consumes one refinement update.

    Stopping, output, and benchmark construction

    • Default parameters: tmax=5, acceptance threshold τ=90, repair/regeneration threshold τlo=60; stop when accepted, otherwise choose repair if the upper-bound score reaches 60, and regeneration if below 60.
    • Output selection: After the budget is exhausted, return the candidate with no execution errors and the highest adjusted score, with ties going to the newer version; if none, take the latest error-free revision, or fall back to the original inventory seed.
    • Loop2Scenic Bench: 250 safety-critical queries, 50 each of text, image, image–text, video, and video–text, from 14 public sources; each has human-aligned criteria.
    • Coverage and audit: 301 scenario type labels cover five categories, and categories may overlap; during construction, 13 verbatim or near-verbatim NHTSA queries were replaced, and among the 250, no input file is identical to a seed library input file (Appendix C).
  4. What experiments did the paper conduct?

    The experiments cover the main generation table, six backbones, visual reviewer validation, refinement ablations, and SafeBench and closed-loop driving tests.

    Experimental setup

    • Generation backbone: Default Qwen3.8-Max; Table A14 additionally tests Qwen3.8-Flash, DeepSeek-V4.1-Flash, Qwen3.8-27B, Gemma-4-31B-it, and Nemotron-3-Nano-Omni.
    • Generation baselines: ChatScene, ScenicNL, NL2Scenic, Chat2Scenic, all using Qwen3.8-Max (thinking); for media queries, the text baselines generate descriptions.
    • Data and runs: Loop2Scenic Bench has 250 queries, 50 per modality; the main experiment uses one generation run per method and one reviewed scenario per executable program, and does not report the number of generation repetitions.
    • Generation metrics: GSR, CSR, RT, Tokens; SQ is averaged only over executable outputs, FA counts non-executable queries as zero, and FA=CSR×SQ/100.
    • Alignment review: An independent Qwen3.8-Max judge scores according to human criteria and five-layer rules, with method labels hidden; cross-method human verification includes 99 outputs from 35 queries.
    • Driving evaluation: SafeBench first tunes SAC, then tests SAC, PPO, and TD3; closed-loop additionally tests SimLingo, ORION, and OpenDriveVLA, with metrics including OS, DS, SR, and CR.

    Main results

    According to Table 2, all use 250 queries and Qwen3.8-Max; RT is model-call seconds per query, excluding CARLA, rendering, and report review.

    Swipe horizontally to read the table

    Method/SettingGSR(%)CSR(%)SQFA(%)RT(s)Tokens
    ChatScene87.629.276.622.483924,871
    ScenicNL100.029.678.123.185133,936
    NL2Scenic97.226.490.623.989930,575
    Chat2Scenic100.065.283.654.5127474,893
    Loop2Scenic, no retrieval and no loop100.060.883.050.526097,917
    Loop2Scenic, 0 rounds100.0100.070.570.553373,119
    Loop2Scenic, 1 round100.0100.075.775.7619121,799
    Loop2Scenic, 5 rounds100.0100.080.280.21085279,516
    • Authors' interpretation: Multimodal retrieval provides an executable starting point, and visual feedback improves query alignment through repair and regeneration; the five-round version achieves the highest FA in the table.
    • Conditional alignment exception: In Table A16, the paired ΔSQ relative to the four baselines on executable queries is +4.8, +4.0, −2.9, −2.0, and all four 95% intervals contain zero; the authors state that a conditional alignment advantage cannot be established from this.
    • Cost accounting: The five-round RT is lower than Chat2Scenic, but Tokens are higher; RT excludes simulation, rendering, and report review and cannot be regarded as complete end-to-end time.

    Refinement, retrieval, and failure analysis

    • Visual feedback comparison: On 125 queries, three-round critic-guided is 79.5 FA, random repair without critic is 74.7, a difference of 4.8 points, 95% CI [2.5,7.2]; regeneration without critic is 77.3, a difference of 2.2 points, interval [−0.5,5.0] contains zero (Table A15).
    • Refinement without seeds: Keeping code retrieval and execution feedback, three rounds raise FA from 60.1 to 70.9 (+10.8, 95% CI [7.6,14.2]) and CSR from 74.8% to 85.6% (Appendix F.2.3).
    • Failure destinations: Of the 640 revision candidates in the three-round text-seed run, 312 were not rendered; ultimately, by retaining executed candidates and seed fallback, all 250 returned programs are executable (Table A19).

    Reviewer validation and backbone transfer

    • Visual critic: On 254 human-scored recordings and 96 scenarios, the deployed C6 three-view criteria reviewer has Spearman ρ=0.52 [0.41,0.62] with human SQ; C1 is 0.11 [−0.04,0.25] (Table A10).
    • Misjudgment trade-off: C6 accepts 33% of recordings, with false accept 37 and false reject 38; the holistic variant accepts 8–15%, corresponding to false accept 7–20 and false reject 59–74.
    • Judge–human agreement: On 99 cross-method outputs, α=0.840 [0.71,0.92], ρ=0.781, MAE=0.050; the generator, critic, and judge share Qwen3.8-Max (Table A13).
    • Alternative backbones: All six backbones have CSR of 100%; FA is Qwen3.8-Max 80.2, Qwen3.8-Flash 75.1, DeepSeek-V4.1-Flash 74.7, Qwen3.8-27B 75.0, Gemma-4-31B-it 74.5, and Nemotron-3-Nano-Omni 70.9 (Table A14). Flash has only 249 reviewed outputs, and Nemotron compiles valid critic criteria for only 13 queries.

    Safety criticality and closed-loop driving

    • SafeBench results: Five-round Loop2Scenic has a three-policy average OS of 0.725 on 250 scenarios, and three-round is 0.737; on matched queries, the authors report that the five-round version has a policy-average OS 2.7–14.1% lower than the four baselines (Table 3).
    • Interval exception: In Table A22, Chat2Scenic's differences on the three scenario sets are −0.020, −0.030, −0.028, and all intervals contain zero; the authors state that its gap remains uncertain.
    • VLA/RL tests: From three to five rounds, six driving systems under two traffic modes show DS decreases of 1.9–5.1 points and SR decreases of 0.2–6.0 percentage points (Table 4); the authors also state that this comparison does not isolate the separate effect of refinement.
    • Reactive traffic: Across six policies, Other→ego contacts drop from 129 to 28, while all collisions change only from 1,127 to 1,050; OpenDriveVLA's CR rises from 0.764 to 0.778 (Tables A24–A25).

    Other ablations and analyses

    • Seed library size: Reducing from 200 to 50 seeds, three-round FA is 78.4 versus 79.0, a difference of −0.6 points across all queries, 95% CI [−2.5,1.3] (Figure A8).
    • Fixed-quality coverage: 60.4% of queries have five-round output SQ≥0.8, versus 15.2–45.2% for the four baselines (Table A17).
    • High-quality threshold exception: The advantage intervals over Chat2Scenic at SQ≥0.9 and 1.0 both contain zero; for text-only, at SQ=1.0, NL2Scenic and Chat2Scenic have higher values.
    • Generation prompt ablation: Without seeds and visual feedback, G7 has CSR of 74.8% and FA of 60.1%, versus 8.8% and 6.3% for zero-shot G1 (Table A9).
    • Retrieval component: The deployed 2B encoder achieves HIT@1 of 78.0 on known text+video item retrieval; this study reuses indexed scenario videos and does not test independently recorded query videos (Table A5, Appendix B).
  5. What are some points that can be further explored?

    The authors plan to add repair memory; the appendix also explicitly limits the evidential scope of the human validation, conditional alignment, and downstream difficulty conclusions.

    Limitations and future directions noted by the authors

    • Repair memory: The Conclusion states that future work will add repair memory.
    • Implementation release: Appendix A.1 states that the authors plan to release the implementation in the future, and it cannot currently be regarded as a fully public implementation.
    • Conditional alignment: Appendix F.3 points out that the FA comparison of 80.2 versus 54.5 includes execution coverage and cannot establish an alignment advantage under successful execution conditions; all matched SQ intervals contain zero.
    • Actor fidelity: Appendix F.3 points out that the five-round DO is 63.6, and actor mismatches remain; high environment alignment or overall SQ cannot establish actor behavior fidelity.
    • Scope of human validation: Appendix E.2 points out that the generator, critic, and judge all share Qwen3.8-Max, and 15 of the 35 validation queries overlap with judge development, so refinement gains on unseen queries cannot be independently established.
    • Boundaries of downstream interpretation: Appendices G.1–G.2 point out that alignment retention after route adaptation and SAC tuning is unmeasured; the difficulty comparison does not isolate the effect of refinement, nor does it certify scenario avoidability or realism.

    Scope of experimental coverage

    • Generation evaluation: The main table covers 250 queries, 50 per modality across five modalities, and four baselines; each method has one generation run, and intervals capture only query variation (Appendix F.3).
    • Backbone evaluation: Table A14 covers six backbones; Flash has one missing review, and Nemotron has valid critic criteria for only 13 queries.
    • Human evidence: Critic validation consists of 254 recorded segments from 96 scenarios; cross-method judge validation consists of 99 outputs from 35 queries, scored by a second annotator (Appendix E).
    • Retrieval evidence: Appendix B is a known-item seed selection of 200 queries against 200 scenarios, reusing indexed videos; the authors explicitly did not test independently recorded query videos.
    • Driving evaluation: Three VLA stacks and three state-input RL policies; each Loop2Scenic queue corresponds to 500 scene episodes per policy per traffic mode (Appendix G.2).
  6. Summarize the main content of the paper

    Loop2Scenic connects multimodal retrieval, visual self-refinement, and closed-loop driving testing into a single scenario generation and evaluation pipeline.

    Loop2Scenic is a scenario generation framework for safety-critical autonomous driving testing, and also provides a 250-query five-modality benchmark; its goal is to transform user queries into executable and aligned Scenic programs.

    • Problem: The authors argue that existing methods either only check code errors or convert visual input to text before retrieval, lacking feedback that directly evaluates rendered scenarios and trajectories against query criteria.
    • Method: The system retrieves one of 200 seed programs and at most 3 component code snippets; after execution in CARLA, a VLM combines three views and trajectories to give upper- and lower-bound scores, then accepts, locally repairs, or regenerates; by default at most five rounds, with execution error repair and seed fallback.
    • Generation results: On 250 queries with Qwen3.8-Max, the five-round version has GSR and CSR of 100% and FA of 80.2%; Chat2Scenic has CSR of 65.2% and FA of 54.5% (Table 2).
    • Ablation evidence: On 125 queries, three-round visual guidance is 4.8 FA points higher than random repair without critic, 95% CI [2.5,7.2]; however, the gap interval between regeneration without critic and visual guidance contains zero (Table A15).
    • Criticality and driving tests: The three-RL-policy average SafeBench OS of five-round scenarios is 0.725; on matched queries, the authors report it is 2.7–14.1% lower than the four baselines, but Chat2Scenic's paired intervals all contain zero (Tables 3, A22).
    • Evidence boundary: In cross-method human checking, the judge's α is 0.840, but the backbone, critic, and judge share Qwen3.8-Max; the SQ advantage on matched executable queries is not established, and the downstream tests also do not isolate the separate contribution of refinement to difficulty.

    The authors argue that multimodal retrieval provides an executable starting point, the visual closed loop improves alignment, and the generated scenarios can be used for non-reactive and reactive traffic stress testing of VLA and RL policies; future work plans to add repair memory.

Research lineage

Connected via shared benchmarks in library
Explore in knowledge graph →

Related papers

Read originalhuggingface.co