Software Defined Vehicle Code Generation: A Few-Shot Prompting Approach
Quang-Dung Nguyen, Tri-Dung Tran, Thanh-Hieu Chu, Hoang-Loc Tran, Xiangwei Cheng, Dirk Slama

TL;DR
This paper explores using advanced prompt engineering with large language models to generate software code for Software-Defined Vehicles, demonstrating that few-shot prompting significantly improves performance without retraining the models.
Contribution
It introduces a prompt-based approach for SDV code generation, showing that few-shot prompting enhances LLM performance without needing access to proprietary model architectures.
Findings
Few-shot prompting outperforms other techniques in SDV code generation
A benchmark was created to evaluate LLMs in this domain
Prompt engineering can effectively adapt LLMs for specific tasks
Abstract
The emergence of Software-Defined Vehicles (SDVs) marks a paradigm shift in the automotive industry, where software now plays a pivotal role in defining vehicle functionality, enabling rapid innovation of modern vehicles. Developing SDV-specific applications demands advanced tools to streamline code generation and improve development efficiency. In recent years, general-purpose large language models (LLMs) have demonstrated transformative potential across domains. Still, restricted access to proprietary model architectures hinders their adaption to specific tasks like SDV code generation. In this study, we propose using prompts, a common and basic strategy to interact with LLMs and redirect their responses. Using only system prompts with an appropriate and efficient prompt structure designed using advanced prompt engineering techniques, LLMs can be crafted without requiring a training…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAutonomous Vehicle Technology and Safety · Software Testing and Debugging Techniques · Advanced Software Engineering Methodologies
