mlsanityData to 14 Oct 2026

ScenicNL: Generating Probabilistic Scenario Programs from Natural Language

arXiv 2405.03709 ↗First posted 3 May 2024cs.SE cs.AI cs.LGcited by 10

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

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2019nuScenes: A multimodal dataset for autonomous drivingcited by 4,523
  4. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  5. 2017CARLA: An Open Urban Driving Simulatorcited by 2,449
  6. 2018BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learningcited by 1,288
  7. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
  8. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  9. 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
  10. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
  11. 2023EmerNeRF: Emergent Spatial-Temporal Scene Decomposition via Self-Supervisioncited by 217
  12. 2023Language-Guided Traffic Simulation via Scene-Level Diffusioncited by 111
5 more
  1. 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
  2. 2020Uncertainty-based Traffic Accident Anticipation with Spatio-Temporal Relational Learningcited by 91
  3. 2018Scenic: A Language for Scenario Specification and Scene Generationcited by 83
  4. 2020Scenic: A Language for Scenario Specification and Data Generationcited by 40
  5. 2023CADSim: Robust and Scalable in-the-wild 3D Reconstruction for Controllable Sensor Simulationcited by 26

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 2; 2026: 5.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024ChatScene: Knowledge-Enabled Safety-Critical Scenario Generation for Autonomous Vehicles
  2. 2025Seeking to Collide: Online Safety-Critical Scenario Generation for Autonomous Driving with Retrieval Augmented Large Language Models
  3. 2024Conversational Code Generation: a Case Study of Designing a Dialogue System for Generating Driving Scenarios for Testing Autonomous Vehicles
  4. 2025CrashAgent: Crash Scenario Generation via Multi-modal Reasoning
  5. 2025From Words to Collisions: LLM-Guided Evaluation and Adversarial Generation of Safety-Critical Driving Scenarios
  6. 2025A Tool for Benchmarking Large Language Models' Robustness in Assessing the Realism of Driving Scenarios ↗
  7. 2026A Local Agentic AI Framework to Generate Edge Case Scenarios for Safety Assurance
  8. 2026SMc2f: Robust Scenario Mining for Robotic Autonomy from Coarse to Fine