LLM-Empowered Event-Chain Driven Code Generation for ADAS in SDV systems
By: Nenad Petrovic , Norbert Kroth , Axel Torschmied and more
Potential Business Impact:
Writes car software from simple instructions.
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.
Similar Papers
LLM-Empowered Functional Safety and Security by Design in Automotive Systems
Software Engineering
Helps cars build safer, smarter software.
On Simulation-Guided LLM-based Code Generation for Safe Autonomous Driving Software
Software Engineering
Makes self-driving car code faster and safer.
Event-Chain Analysis for Automated Driving and ADAS Systems: Ensuring Safety and Meeting Regulatory Timing Requirements
Software Engineering
Makes self-driving cars safer and meet rules.