LLM-Empowered Event-Chain Driven Code Generation for ADAS in SDV systems

📅 2025-11-26
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of automatically translating natural-language requirements into trustworthy automotive software code. We propose an event-chain-driven, retrieval-augmented code synthesis framework to simultaneously satisfy architectural correctness, behavioral consistency, and real-time feasibility in ADAS and software-defined vehicle (SDV) systems. Our method integrates large language models (LLMs) with retrieval-augmented generation (RAG) over vehicle signal specifications, explicitly modeling causal and temporal constraints. Code generation is guided by event-chain constraints, while signal mapping and formal verification mechanisms mitigate hallucination. Crucially, no LLM fine-tuning is required to ensure signal usage accuracy and system-level behavioral consistency. Evaluated on an emergency braking scenario, the framework generates executable, formally verified real-time code—demonstrating its effectiveness and engineering practicality for complex, safety-critical automotive applications.

Technology Category

Application Category

📝 Abstract
This paper presents an event-chain-driven, LLM-empowered workflow for generating validated, automotive code from natural-language requirements. A Retrieval-Augmented Generation (RAG) layer retrieves relevant signals from large and evolving Vehicle Signal Specification (VSS) catalogs as code generation prompt context, reducing hallucinations and ensuring architectural correctness. Retrieved signals are mapped and validated before being transformed into event chains that encode causal and timing constraints. These event chains guide and constrain LLM-based code synthesis, ensuring behavioral consistency and real-time feasibility. Based on our initial findings from the emergency braking case study, with the proposed approach, we managed to achieve valid signal usage and consistent code generation without LLM retraining.
Problem

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

Generates automotive code from natural language requirements
Retrieves and validates vehicle signals to reduce LLM hallucinations
Uses event chains to ensure behavioral consistency in code
Innovation

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

RAG layer retrieves signals from VSS catalogs
Event chains encode causal and timing constraints
LLM-based code synthesis guided by event chains
🔎 Similar Papers
No similar papers found.
Nenad Petrovic
Nenad Petrovic
Faculty of Electronic Engineering, University of Nis
Semantic TechnologyModel-Driven Software EngineeringDomain-Specific LanguagesLLM
N
Norbert Kroth
CARIAD SE, Wolfsburg, Germany
A
Axel Torschmied
CARIAD SE, Wolfsburg, Germany
Y
Yinglei Song
Chair of Robotics, Artificial Intelligence and Real-Time Systems, Technical University of Munich, Munich, Germany
Fengjunjie Pan
Fengjunjie Pan
Technical University of Munich
AI AgentLLMAutomotiveRoboticsModel-based Engineering
Vahid Zolfaghari
Vahid Zolfaghari
Technical University of Munich
Large Language ModelsAutonomous driving
N
Nils Purschke
Chair of Robotics, Artificial Intelligence and Real-Time Systems, Technical University of Munich, Munich, Germany
Sven Kirchner
Sven Kirchner
Technical University of Munich
C
Chengdong Wu
Chair of Robotics, Artificial Intelligence and Real-Time Systems, Technical University of Munich, Munich, Germany
A
Andre Schamschurko
Chair of Robotics, Artificial Intelligence and Real-Time Systems, Technical University of Munich, Munich, Germany
Y
Yi Zhang
Chair of Robotics, Artificial Intelligence and Real-Time Systems, Technical University of Munich, Munich, Germany
Alois Knoll
Alois Knoll
Technische Universität München
RoboticsAISensor Data FusionAutonomous DrivingCyber Physical Systems