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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: de Martino, Vincenzo, Castaño, Joel, Palomba, Fabio, Franch, Xavier, Martínez-Fernández, Silverio
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917866844979200
author de Martino, Vincenzo
Castaño, Joel
Palomba, Fabio
Franch, Xavier
Martínez-Fernández, Silverio
author_facet de Martino, Vincenzo
Castaño, Joel
Palomba, Fabio
Franch, Xavier
Martínez-Fernández, Silverio
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_09974
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Framework for Using LLMs for Repository Mining Studies in Empirical Software Engineering
de Martino, Vincenzo
Castaño, Joel
Palomba, Fabio
Franch, Xavier
Martínez-Fernández, Silverio
Software Engineering
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.
title A Framework for Using LLMs for Repository Mining Studies in Empirical Software Engineering
topic Software Engineering
url https://arxiv.org/abs/2411.09974