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

关于大型语言模型在GitHub工作流中的有效性

On the effectiveness of Large Language Models for GitHub Workflows

Xinyu Zhang, Siddharth Muralee, Sourag Cherupattamoolayil, Aravind Machiry

AI总结:

本研究首次全面评估大型语言模型在GitHub工作流相关任务中的有效性,通过约40万工作流和不同提示级别,发现LLMs在生成和修复工作流方面有潜力,但存在安全性和语义理解上的不足。

摘要:

GitHub工作流或GitHub CI是一个流行的持续集成平台,使开发人员能够通过将各种软件工程任务指定为工作流(即包含作业列表的YAML文件)来自动化这些任务。然而,构建有效的工作流是繁琐的。它们还容易出现严重的安全问题,可能导致供应链漏洞。大型语言模型(LLMs)的最新进展已证明其在各种软件开发任务中的有效性。然而,GitHub工作流在结构和语义上都与常规程序不同。我们进行了首次全面的研究,以了解LLMs在五个工作流相关任务上,在不同提示级别下的有效性。我们整理了一组约40万个工作流,并生成了具有不同详细程度的提示。我们还对LLMs进行了针对GitHub工作流任务的微调。我们对三个最先进的LLMs及其微调变体的评估,揭示了关于LLMs当前有效性和缺点的各种有趣发现。

英文摘要:

GitHub workflows or GitHub CI is a popular continuous integration platform that enables developers to automate various software engineering tasks by specifying them as workflows, i.e., YAML files with a list of jobs. However, engineering valid workflows is tedious. They are also prone to severe security issues, which can result in supply chain vulnerabilities. Recent advancements in Large Language Models (LLMs) have demonstrated their effectiveness in various software development tasks. However, GitHub workflows differ from regular programs in both structure and semantics. We perform the first comprehensive study to understand the effectiveness of LLMs on five workflow-related tasks with different levels of prompts. We curated a set of $\sim$400K workflows and generated prompts with varying detail. We also fine-tuned LLMs on GitHub workflow tasks. Our evaluation of three state-of-the-art LLMs and their fine-tuned variants revealed various interesting findings on the current effectiveness and drawbacks of LLMs.

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

↑