Software Defined Vehicle Code Generation: A Few-Shot Prompting Approach

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Nguyen, Quang-Dung, Tran, Tri-Dung, Chu, Thanh-Hieu, Tran, Hoang-Loc, Cheng, Xiangwei, Slama, Dirk
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909891770187776
author Nguyen, Quang-Dung
Tran, Tri-Dung
Chu, Thanh-Hieu
Tran, Hoang-Loc
Cheng, Xiangwei
Slama, Dirk
author_facet Nguyen, Quang-Dung
Tran, Tri-Dung
Chu, Thanh-Hieu
Tran, Hoang-Loc
Cheng, Xiangwei
Slama, Dirk
contents 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 session or access to their base design. This research investigates the extensive experiments on different models by applying various prompting techniques, including bare models, using a benchmark specifically created to evaluate LLMs' performance in generating SDV code. The results reveal that the model with a few-shot prompting strategy outperforms the others in adjusting the LLM answers to match the expected outcomes based on quantitative metrics.
format Preprint
id arxiv_https___arxiv_org_abs_2511_04849
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Software Defined Vehicle Code Generation: A Few-Shot Prompting Approach
Nguyen, Quang-Dung
Tran, Tri-Dung
Chu, Thanh-Hieu
Tran, Hoang-Loc
Cheng, Xiangwei
Slama, Dirk
Software Engineering
Artificial Intelligence
I.2.6; I.2.7; D.2.3
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 session or access to their base design. This research investigates the extensive experiments on different models by applying various prompting techniques, including bare models, using a benchmark specifically created to evaluate LLMs' performance in generating SDV code. The results reveal that the model with a few-shot prompting strategy outperforms the others in adjusting the LLM answers to match the expected outcomes based on quantitative metrics.
title Software Defined Vehicle Code Generation: A Few-Shot Prompting Approach
topic Software Engineering
Artificial Intelligence
I.2.6; I.2.7; D.2.3
url https://arxiv.org/abs/2511.04849