mlsanityData to 14 Oct 2026

On Simulation-Guided LLM-based Code Generation for Safe Autonomous Driving Software

arXiv 2504.02141 ↗First posted 2 Apr 2025cs.SE cs.AIcited by 3

On the map: End-to-end autonomous driving → Large language models for driving

Abstract (arXiv)

Automated Driving System (ADS) is a safety-critical software system responsible for the interpretation of the vehicle's environment and making decisions accordingly. The unbounded complexity of the driving context, including unforeseeable events, necessitate continuous improvement, often achieved through iterative DevOps processes. However, DevOps processes are themselves complex, making these improvements both time- and resource-intensive. Automation in code generation for ADS using Large Language Models (LLM) is one potential approach to address this challenge. Nevertheless, the development of ADS requires rigorous processes to verify, validate, assess, and qualify the code before it can be deployed in the vehicle and used. In this study, we developed and evaluated a prototype for automatic code generation and assessment using a designed pipeline of a LLM-based agent, simulation model, and rule-based feedback generator in an industrial setup. The LLM-generated code is evaluated automatically in a simulation model against multiple critical traffic scenarios, and an assessment report is provided as feedback to the LLM for modification or bug fixing. We report about the experimental results of the prototype employing Codellama:34b, DeepSeek (r1:32b and Coder:33b), CodeGemma:7b, Mistral:7b, and GPT4 for Adaptive Cruise Control (ACC) and Unsupervised Collision Avoidance by Evasive Manoeuvre (CAEM). We finally assessed the tool with 11 experts at two Original Equipment Manufacturers (OEMs) by conducting an interview study.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Large language models for driving, one of 9 directions in End-to-end autonomous driving. Builds on 25 of its 48 references that are in the map. First posted on arXiv 2 Apr 2025.

Builds on

25 of 48 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Engineering Safety Requirements for Autonomous Driving with Large Language Models24 Mar
  2. 2024LangProp: A code optimization framework using Large Language Models applied to driving18 Jan
  3. 2023LaMPilot: An Open Benchmark Dataset for Autonomous Driving with Language Model Programs7 Dec

Other references · 22

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  7. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  8. 2023Text2Motion: From Natural Language Instructions to Feasible Planscited by 224
  9. 2023Don't Make Your LLM an Evaluation Benchmark Cheatercited by 194
  10. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
  11. 2023Language-Guided Traffic Simulation via Scene-Level Diffusioncited by 111
  12. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
10 more
  1. 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
  2. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  3. 2023AI-assisted coding: Experiments with GPT-4cited by 43
  4. 2021In-IDE Code Generation from Natural Language: Promise and Challengescited by 42
  5. 2023Fully Autonomous Programming with Large Language Modelscited by 31
  6. 2023Requirements Engineering using Generative AI: Prompts and Prompting Patternscited by 13
  7. 2023Software Testing of Generative AI Systems: Challenges and Opportunitiescited by 7
  8. 2019Ethical Interviews in Software Engineeringcited by 3
  9. 2024An Industrial Experience Report about Challenges from Continuous Monitoring, Improvement, and Deployment for Autonomous Driving Featurescited by 3
  10. 2024Correlation of Software-in-the-Loop Simulation with Physical Testing for Autonomous Drivingcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Large Language Models in Code Co-generation for Safe Autonomous Vehicles
  2. 2025David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generation
  3. 2025LLM-based Realistic Safety-Critical Driving Video Generation
  4. 2025Are requirements really all you need? A case study of LLM-driven configuration code generation for automotive simulations
  5. 2026PlannerForge: LLM Agents for Scenario-Based Testing of Motion Planners in Autonomous Driving
  6. 2025A Multi-Agent LLM Framework for Design Space Exploration in Autonomous Driving Systems
  7. 2025SAFE: Harnessing LLM for Scenario-Driven ADS Testing from Multimodal Crash Data ↗
  8. 2025LLM-Empowered Event-Chain Driven Code Generation for ADAS in SDV systems