arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.04849cs.SEcs.AI
收藏

软件定义汽车代码生成:一种少样本提示方法

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

University of Information Technology VNUHCM(信息技术大学 VNUHCM)

Quang-Dung Nguyen, Tri-Dung Tran, Thanh-Hieu Chu, Hoang-Loc Tran, Xiangwei Cheng, Dirk Slama

AI总结:

本文研究软件定义汽车代码生成,提出仅用系统提示和先进提示工程构建少样本提示策略,无需训练即可引导大语言模型生成SDV代码,并在专用基准上验证其优于其他提示方法。

摘要:

软件定义汽车(SDVs)的出现标志着汽车行业的一次范式转变,软件如今在定义车辆功能方面发挥着关键作用,推动现代车辆的快速创新。开发面向SDV的特定应用需要先进工具来简化代码生成并提高开发效率。近年来,通用大语言模型(LLMs)在各个领域展现出变革性潜力。然而,对专有模型架构的受限访问阻碍了它们适应诸如SDV代码生成等特定任务。在本研究中,我们提出使用提示(prompts),这是一种与LLMs交互并重定向其响应的常见且基本的策略。仅使用系统提示,并借助先进的提示工程技术设计出适当且高效的提示结构,即可对LLMs进行塑造,而无需训练过程或访问其底层设计。本研究通过在专门为评估LLMs生成SDV代码性能而创建的基准上,对不同的模型应用包括裸模型在内的各种提示技术进行了广泛实验。结果表明,采用少样本提示策略的模型在基于定量指标调整LLM答案以匹配预期结果方面优于其他模型。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑