Conversational Code Generation: a Case Study of Designing a Dialogue System for Generating Driving Scenarios for Testing Autonomous Vehicles

📅 2024-10-13
📈 Citations: 1
✨ Influential: 0
📄 PDF
🤖 AI Summary
Autonomous driving testing requires efficient generation of simulation scenario code, yet non-programming domain experts struggle with this task. Method: We propose the first dialogue-based code generation system tailored for driving scenario modeling, integrating lightweight instruction fine-tuning, multi-turn dialogue state tracking, and domain-specific syntactic constraints to reliably translate natural language into symbolic scenario programs. Contribution/Results: Our work is the first to empirically validate the critical role of interactive dialogue in synthesizing complex scenario code. Leveraging minimal labeled data, the system achieves high-precision program synthesis. Human-in-the-loop experiments demonstrate that dialogue-based generation improves success rate by 4.5× over single-turn generation, significantly enhancing modeling accuracy, controllability, and practical usability for autonomous driving scenario creation.

Technology Category

Natural Language Processing: Code Generation / Program Synthesis from Natural LanguageSearch and Optimization: Sampling/Simulation-based SearchPlanning, Routing, and Scheduling: Planning with Language Models

Application Category

User Modeling, Personalization and Recommendation: User modeling and simulation for interactive and conversational systemsSemantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsSearch and Retrieval-Augmented AI: Assisted, interactive, and conversational search
📝 Abstract
Cyber-physical systems like autonomous vehicles are tested in simulation before deployment, using domain-specific programs for scenario specification. To aid the testing of autonomous vehicles in simulation, we design a natural language interface, using an instruction-following large language model, to assist a non-coding domain expert in synthesising the desired scenarios and vehicle behaviours. We show that using it to convert utterances to the symbolic program is feasible, despite the very small training dataset. Human experiments show that dialogue is critical to successful simulation generation, leading to a 4.5 times higher success rate than a generation without engaging in extended conversation.
Problem

Research questions and friction points this paper is trying to address.

Designing a dialogue system for generating autonomous vehicle test scenarios
Enabling non-coding experts to create scenarios via natural language
Improving simulation success rates through conversational code generation
Innovation

Methods, ideas, or system contributions that make the work stand out.

Natural language interface for scenario synthesis
Instruction-following large language model
Dialogue-driven simulation generation success
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
University of Edinburgh
R
Rimvydas Rubavicius
School of Informatics, University of Edinburgh
A
Antonio Valerio Miceli-Barone
School of Informatics, University of Edinburgh
A
A. Lascarides
School of Informatics, University of Edinburgh
S
S. Ramamoorthy
School of Informatics, University of Edinburgh