arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.09974cs.SE
收藏

一种在实证软件工程中使用LLM开展仓库挖掘研究的框架

A Framework for Using LLMs for Repository Mining Studies in Empirical Software Engineering

Vincenzo de Martino, Joel Castaño, Fabio Palomba, Xavier Franch, Silverio Martínez-Fernández

AI总结:

本研究基于两项软件仓库挖掘研究的经验,提出名为PRIMES的LLM仓库挖掘研究框架,含提示词优化检查清单与结果追踪机制,可提升相关研究的可靠性与可复现性,并指出未来需解决幻觉等挑战。

摘要:

研究背景:大语言模型(Large Language Models, LLMs)的出现为软件工程(Software Engineering, SE)领域提供了分析软件仓库的创新方法,极大地推动了该领域的发展。研究目标:我们的目标是为未来需要在使用LLM开展软件仓库挖掘研究时优化数据收集与数据集的SE研究者建立一套实用框架。研究方法:本经验报告分享了两项过往仓库挖掘研究中的洞见,重点聚焦于用于创建、优化和验证提示词的方法论,这些提示词可提升LLM的输出效果,尤其适用于实证研究中的数据收集场景。研究结果:我们的研究整合出一套名为PRIMES(Prompt Refinement and Insights for Mining Empirical Software repositories,实证软件仓库挖掘的提示词优化与洞见)的框架,包含一份检查清单,可通过迭代流程与不同LLM之间的对比,提升LLM使用性能、优化输出质量并减少错误。我们还通过搭建模型结果追踪机制,强调了可复现性的重要性。研究结论:我们的发现表明,标准化提示工程并使用PRIMES框架,能够提升使用LLM的研究的可靠性与可复现性。最终,本工作呼吁开展进一步研究,以解决LLM集成到工作流中时存在的幻觉、模型偏差以及成本效益等挑战。

英文摘要:

Context: The emergence of Large Language Models (LLMs) has significantly transformed Software Engineering (SE) by providing innovative methods for analyzing software repositories. Objectives: Our objective is to establish a practical framework for future SE researchers needing to enhance the data collection and dataset while conducting software repository mining studies using LLMs. Method: This experience report shares insights from two previous repository mining studies, focusing on the methodologies used for creating, refining, and validating prompts that enhance the output of LLMs, particularly in the context of data collection in empirical studies. Results: Our research packages a framework, coined Prompt Refinement and Insights for Mining Empirical Software repositories (PRIMES), consisting of a checklist that can improve LLM usage performance, enhance output quality, and minimize errors through iterative processes and comparisons among different LLMs. We also emphasize the significance of reproducibility by implementing mechanisms for tracking model results. Conclusion: Our findings indicate that standardizing prompt engineering and using PRIMES can enhance the reliability and reproducibility of studies utilizing LLMs. Ultimately, this work calls for further research to address challenges like hallucinations, model biases, and cost-effectiveness in integrating LLMs into workflows.

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

↑