Are requirements really all you need? A case study of LLM-driven configuration code generation for automotive simulations
Krzysztof Lebioda, Nenad Petrovic, Fengjunjie Pan, Vahid Zolfaghari, Andre Schamschurko, Alois Knoll
TL;DR
The paper investigates translating high-level automotive requirements into executable CARLA configuration code using an end-to-end LLM-driven pipeline. It decomposes the task into vehicle-definition, pre-conditions, and post-conditions modules, plus a merger step, and evaluates prompting strategies to understand their impact on translation quality. Results show strong performance for direct requirements but notable challenges with abstract ones, with improvements achieved through logical grouping and reasoning prompts, especially Chain-of-Thought. The work offers a practical pathway for rapid prototyping in software-defined automotive testing and points to future directions such as DSLs, RAG-based extraction, and event-chain-driven code generation to broaden applicability.
Abstract
Large Language Models (LLMs) are taking many industries by storm. They possess impressive reasoning capabilities and are capable of handling complex problems, as shown by their steadily improving scores on coding and mathematical benchmarks. However, are the models currently available truly capable of addressing real-world challenges, such as those found in the automotive industry? How well can they understand high-level, abstract instructions? Can they translate these instructions directly into functional code, or do they still need help and supervision? In this work, we put one of the current state-of-the-art models to the test. We evaluate its performance in the task of translating abstract requirements, extracted from automotive standards and documents, into configuration code for CARLA simulations.
