ScenicNL: Generating Probabilistic Scenario Programs from Natural Language
Karim Elmaaroufi, Devan Shanker, Ana Cismaru, Marcell, Vazquez-Chanlatte, Alberto Sangiovanni-Vincentelli, Matei Zaharia, and Sanjit, A. Seshia

TL;DR
ScenicNL is an AI system that converts natural language police crash reports into probabilistic scenario programs using large language models, enabling better simulation of rare events in cyber-physical systems.
Contribution
It introduces a novel method for translating natural language crash reports into probabilistic scenario programs with LLMs, addressing limitations of existing prompting techniques.
Findings
Successfully generates semantically meaningful Scenic code from crash reports.
Demonstrates the system's effectiveness on real-world autonomous vehicle crash data.
Provides insights into the challenges of reasoning about probabilistic scenarios with LLMs.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAI-based Problem Solving and Planning · Software Engineering Research · Model-Driven Software Engineering Techniques
