arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09790cs.SEcs.AIcs.PF
收藏

提示以提升性能:探索大语言模型(LLMs)在软件配置中的应用

Prompting for Performance: Exploring LLMs for Configuring Software

Inria-Simula associate team RIPOST(Inria-Simula联合团队RIPOST);Inria Défi LLM4Code project(Inria LLM4Code项目)

Helge Spieker, Théo Matricon, Nassim Belmecheri, Jørn Eirik Betten, Gauthier Le Bartz Lyan, Heraldo Borges, Quentin Mazouni, Dennis Gross, Arnaud Gotlieb, Mathieu Acher

AI总结:

本研究探索大语言模型(LLMs)通过提示词协助面向性能的软件配置的可行性,在识别相关选项、配置排名等任务上评估多款LLMs,初步揭示其与专家知识的对齐能力及幻觉等局限性,为相关系统评估与方案设计奠基。

摘要:

软件系统通常提供大量配置选项,这些选项会影响执行时间、内存使用、二进制大小或比特率等性能指标。一方面,做出明智的决策具有挑战性,需要具备关于选项及其组合的领域专业知识;另一方面,机器学习技术可以搜索庞大的配置空间,但计算成本很高,因为需要对大量配置进行具体执行。在这项探索性研究中,我们调查大语言模型(LLMs)是否可以通过提示词协助面向性能的软件配置。我们在多个任务上评估了几款LLMs,包括识别相关选项、对配置进行排名,以及为编译器、视频编码器和SAT求解器等各类可配置系统推荐高性能配置。我们的初步结果揭示了LLMs的积极能力和显著局限性:根据任务和系统的不同,LLMs可以很好地与专家知识对齐,但在其他情况下可能会出现幻觉或表面推理。这些发现代表了迈向系统评估和设计基于LLM的解决方案以协助软件配置的第一步。

英文摘要:

Software systems usually provide numerous configuration options that can affect performance metrics such as execution time, memory usage, binary size, or bitrate. On the one hand, making informed decisions is challenging and requires domain expertise in options and their combinations. On the other hand, machine learning techniques can search vast configuration spaces, but with a high computational cost, since concrete executions of numerous configurations are required. In this exploratory study, we investigate whether large language models (LLMs) can assist in performance-oriented software configuration through prompts. We evaluate several LLMs on tasks including identifying relevant options, ranking configurations, and recommending performant configurations across various configurable systems, such as compilers, video encoders, and SAT solvers. Our preliminary results reveal both positive abilities and notable limitations: depending on the task and systems, LLMs can well align with expert knowledge, whereas hallucinations or superficial reasoning can emerge in other cases. These findings represent a first step toward systematic evaluations and the design of LLM-based solutions to assist with software configuration.

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

↑