mlsanityData to 7 Oct 2026

David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generation

arXiv 2510.14115 ↗First posted 15 Oct 2025cs.SE cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Scenario simulation is central to testing autonomous driving systems. Scenic, a domain-specific language (DSL) for CARLA, enables precise and reproducible scenarios, but NL-to-Scenic generation with large language models (LLMs) suffers from scarce data, limited reproducibility, and inconsistent metrics. We introduce NL2Scenic, an open dataset and framework with 146 NL/Scenic pairs, a difficulty-stratified 30-case test split, an Example Retriever, and 14 prompting variants (ZS, FS, CoT, SP, MoT). We evaluate 13 models: four proprietary (GPT-4o, GPT-5, Claude-Sonnet-4, Gemini-2.5-pro) and nine open-source code models (Qwen2.5Coder 0.5B-32B; CodeLlama 7B/13B/34B), using text metrics (BLEU, ChrF, EDIT-SIM, CrystalBLEU) and execution metrics (compilation and generation), and compare them with an expert study (n=11). EDIT-SIM correlates best with human judgments; we also propose EDIT-COMP (F1 of EDIT-SIM and compilation) as a robust dataset-level proxy that improves ranking fidelity. GPT-4o performs best overall, while Qwen2.5Coder-14B reaches about 88 percent of its expert score on local hardware. Retrieval-augmented prompting, Few-Shot with Example Retriever (FSER), consistently boosts smaller models, and scaling shows diminishing returns beyond mid-size, with Qwen2.5Coder outperforming CodeLlama at comparable scales. NL2Scenic and EDIT-COMP offer a standardized, reproducible basis for evaluating Scenic code generation and indicate that mid-size open-source models are practical, cost-effective options for autonomous-driving scenario programming.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 26 of its 59 references that are in the map. First posted on arXiv 15 Oct 2025.

Builds on

26 of 59 references.

References · 26

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2019Scalability in Perception for Autonomous Driving: Waymo Open Datasetcited by 2,436
  6. 2017CARLA: An Open Urban Driving Simulatorcited by 2,431
  7. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  8. 2023Teaching Large Language Models to Self-Debugcited by 963
  9. 2023Argoverse 2: Next Generation Datasets for Self-Driving Perception and Forecastingcited by 701
  10. 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
  11. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  12. 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
14 more
  1. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  2. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  3. 2020Metrics for Multi-Class Classification: an Overviewcited by 140
  4. 2018Scenic: A Language for Scenario Specification and Scene Generationcited by 79
  5. 2016Latent Predictor Networks for Code Generationcited by 73
  6. 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
  7. 2019Does BLEU Score Work for Code Migration?cited by 49
  8. 2023Synthetic Datasets for Autonomous Driving: A Surveycited by 48
  9. 2020Scenic: A Language for Scenario Specification and Data Generationcited by 39
  10. 2022Aligning Offline Metrics and Human Judgments of Value for Code Generation Modelscited by 14
  11. 2024ScenicNL: Generating Probabilistic Scenario Programs from Natural Languagecited by 10
  12. 2024From Dashcam Videos to Driving Simulations: Stress Testing Automated Vehicles against Rare Eventscited by 7
  13. 2024Conversational Code Generation: a Case Study of Designing a Dialogue System for Generating Driving Scenarios for Testing Autonomous Vehiclescited by 4
  14. 2025MoT: Modularization-of-Thought Prompting for Effective Code Generationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Text2Scenario: Text-Driven Scenario Generation for Autonomous Driving Test
  2. 2025A Tool for Benchmarking Large Language Models' Robustness in Assessing the Realism of Driving Scenarios ↗
  3. 2025Large Language Models in Code Co-generation for Safe Autonomous Vehicles
  4. 2025Do LLM Modules Generalize? A Study on Motion Generation for Autonomous Driving
  5. 2025LLM-based Realistic Safety-Critical Driving Video Generation
  6. 2025On Simulation-Guided LLM-based Code Generation for Safe Autonomous Driving Software
  7. 2025Are requirements really all you need? A case study of LLM-driven configuration code generation for automotive simulations
  8. 2024Multimodal Large Language Model Driven Scenario Testing for Autonomous Vehicles