ScenicNL: Generating Probabilistic Scenario Programs from Natural Language
Not on the map. Why?
Abstract (arXiv)
For cyber-physical systems (CPS), including robotics and autonomous vehicles, mass deployment has been hindered by fatal errors that occur when operating in rare events. To replicate rare events such as vehicle crashes, many companies have created logging systems and employed crash reconstruction experts to meticulously recreate these valuable events in simulation. However, in these methods, "what if" questions are not easily formulated and answered. We present ScenarioNL, an AI System for creating scenario programs from natural language. Specifically, we generate these programs from police crash reports. Reports normally contain uncertainty about the exact details of the incidents which we represent through a Probabilistic Programming Language (PPL), Scenic. By using Scenic, we can clearly and concisely represent uncertainty and variation over CPS behaviors, properties, and interactions. We demonstrate how commonplace prompting techniques with the best Large Language Models (LLM) are incapable of reasoning about probabilistic scenario programs and generating code for low-resource languages such as Scenic. Our system is comprised of several LLMs chained together with several kinds of prompting strategies, a compiler, and a simulator. We evaluate our system on publicly available autonomous vehicle crash reports in California from the last five years and share insights into how we generate code that is both semantically meaningful and syntactically correct.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 17 of its 52 references that are in the map. First posted on arXiv 3 May 2024.
Builds on
17 of 52 references.
References · 17
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019nuScenes: A multimodal dataset for autonomous drivingcited by 4,523
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2017CARLA: An Open Urban Driving Simulatorcited by 2,449
- 2018BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learningcited by 1,288
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
- 2023EmerNeRF: Emergent Spatial-Temporal Scene Decomposition via Self-Supervisioncited by 217
- 2023Language-Guided Traffic Simulation via Scene-Level Diffusioncited by 111
5 more
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2020Uncertainty-based Traffic Accident Anticipation with Spatio-Temporal Relational Learningcited by 91
- 2018Scenic: A Language for Scenario Specification and Scene Generationcited by 83
- 2020Scenic: A Language for Scenario Specification and Data Generationcited by 40
- 2023CADSim: Robust and Scalable in-the-wild 3D Reconstruction for Controllable Sensor Simulationcited by 26
Built on by
Citing papers per year: 2024: 3; 2025: 2; 2026: 5.
10 papers.
- 2024Towards Guaranteed Safe AI: A Framework for Ensuring Robust and Reliable AI Systemscited by 96
- 2024From Dashcam Videos to Driving Simulations: Stress Testing Automated Vehicles against Rare Eventscited by 7
- 2024Synthetic Programming Elicitation for Text-to-Code in Very Low-Resource Programming and Formal Languagescited by 6
- 2025NeuroStrata: Harnessing Neurosymbolic Paradigms for Improved Design, Testability, and Verifiability of Autonomous CPScited by 5
- 2025David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generationcited by 1
- 2026ScenicRules: An Autonomous Driving Benchmark with Multi-Objective Specifications and Abstract Scenarioscited by 1
- 2026Chat2Scenic: An Iterative RAG-Based Framework for Scenario Generation in Autonomous Drivingcited by 1
- 2026Multi-Agent Embodied Autonomous Driving (MAEAD): From V2X Information Exchange to Shared World Modelscited by 0
- 2026From Driving Videos to Simulatable Scenarioscited by 0
- 2026TrafficAlign: Aligning Large Language Models for Traffic Scenario Generationcited by 0
- 2026Chat2Scenic: An Iterative RAG-Based Framework for Scenario Generation in Autonomous Driving15 Jul 2026
- 2026TrafficAlign: Aligning Large Language Models for Traffic Scenario Generation27 Jun 2026
- 2026From Driving Videos to Simulatable Scenarios20 Jun 2026
- 2026Multi-Agent Embodied Autonomous Driving (MAEAD): From V2X Information Exchange to Shared World Models11 Jun 2026
- 2026ScenicRules: An Autonomous Driving Benchmark with Multi-Objective Specifications and Abstract Scenarios17 Feb 2026
- 2025David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generation15 Oct 2025
- 2025NeuroStrata: Harnessing Neurosymbolic Paradigms for Improved Design, Testability, and Verifiability of Autonomous CPS17 Feb 2025
- 2024From Dashcam Videos to Driving Simulations: Stress Testing Automated Vehicles against Rare Events25 Nov 2024
- 2024Synthetic Programming Elicitation for Text-to-Code in Very Low-Resource Programming and Formal Languages5 Jun 2024
- 2024Towards Guaranteed Safe AI: A Framework for Ensuring Robust and Reliable AI Systems10 May 2024
Similar, not cited
Close in wording, no citation either way
- 2024ChatScene: Knowledge-Enabled Safety-Critical Scenario Generation for Autonomous Vehicles
- 2025Seeking to Collide: Online Safety-Critical Scenario Generation for Autonomous Driving with Retrieval Augmented Large Language Models
- 2024Conversational Code Generation: a Case Study of Designing a Dialogue System for Generating Driving Scenarios for Testing Autonomous Vehicles
- 2025CrashAgent: Crash Scenario Generation via Multi-modal Reasoning
- 2025From Words to Collisions: LLM-Guided Evaluation and Adversarial Generation of Safety-Critical Driving Scenarios
- 2025A Tool for Benchmarking Large Language Models' Robustness in Assessing the Realism of Driving Scenarios ↗
- 2026A Local Agentic AI Framework to Generate Edge Case Scenarios for Safety Assurance
- 2026SMc2f: Robust Scenario Mining for Robotic Autonomy from Coarse to Fine