Skip to main content
QUICK REVIEW

[Paper Review] Towards Evaluation Guidelines for Empirical Studies involving LLMs

Stefan Wagner, Marvin Muñoz Barón|arXiv (Cornell University)|Nov 12, 2024
Artificial Intelligence in LawSocial Sciences3 citations
TL;DR

This paper proposes the first comprehensive set of evaluation guidelines for empirical studies involving large language models (LLMs) in software engineering research. It classifies studies into distinct types—LLMs as research tools, LLMs as evaluative tools, and LLMs as components of new tools—and provides actionable guidelines on prompt reporting, open LLM baselines, human validation, and reproducibility to enhance rigor and transparency in LLM-based research.

ABSTRACT

In the short period since the release of ChatGPT, large language models (LLMs) have changed the software engineering research landscape. While there are numerous opportunities to use LLMs for supporting research or software engineering tasks, solid science needs rigorous empirical evaluations. However, so far, there are no specific guidelines for conducting and assessing studies involving LLMs in software engineering research. Our focus is on empirical studies that either use LLMs as part of the research process or studies that evaluate existing or new tools that are based on LLMs. This paper contributes the first set of holistic guidelines for such studies. Our goal is to start a discussion in the software engineering research community to reach a common understanding of our standards for high-quality empirical studies involving LLMs.

Motivation & Objective

  • Address the lack of standardized evaluation guidelines for empirical studies involving LLMs in software engineering research.
  • Identify and classify distinct types of LLM-based empirical studies to tailor methodological guidance.
  • Improve reproducibility and validity of LLM-related research by establishing transparent reporting practices.
  • Promote community-wide adoption of best practices through structured, study-type-specific guidelines.
  • Highlight critical threats to validity introduced by LLMs' non-determinism, versioning, and parameter sensitivity.

Proposed method

  • Proposes a taxonomy of three main study types: LLMs as research tools (e.g., for data annotation), LLMs as evaluative tools (e.g., benchmarking LLMs), and LLMs as components of new tools.
  • Recommends reporting exact prompt configurations, including system prompts, few-shot examples, and hyperparameters like temperature and top_p.
  • Advocates for using open-source LLMs (e.g., Code LLaMA via Hugging Face) as baselines to ensure reproducibility and enable independent verification.
  • Stipulates human validation of LLM outputs, especially in annotation tasks, with explicit reporting of inter-rater reliability metrics.
  • Recommends including replication packages with clear instructions for reproducing results using open models.
  • Introduces a framework for prompt development, emphasizing systematic design and documentation, especially when prompts are user-generated or modified iteratively.

Experimental results

Research questions

  • RQ1What are the distinct types of empirical studies involving LLMs in software engineering research?
  • RQ2How can researchers ensure reproducibility when using LLMs due to model non-determinism and evolving versions?
  • RQ3What are the key methodological challenges in using LLMs as annotators or evaluative tools in empirical studies?
  • RQ4How can open-source LLMs be effectively used as baselines to improve transparency and replicability?
  • RQ5What role does human validation play in ensuring the reliability of LLM-generated outputs in research settings?

Key findings

  • LLMs used in empirical studies must be reported with full configuration details, including prompt structure, temperature, top_p, and maximum token length, to ensure reproducibility.
  • Using open-source LLMs such as Code LLaMA as baselines enables independent replication and strengthens the credibility of results.
  • Human validation of LLM outputs is essential, with inter-rater reliability of 90% reported in a subset of LLM-generated annotations as a benchmark for accuracy.
  • Prompt design significantly influences LLM outputs, necessitating systematic documentation and sharing of prompts to allow for comparison and replication.
  • Even with identical model versions, LLM performance can vary over time due to updates by commercial providers, highlighting the need for version and configuration transparency.
  • The lack of standardized benchmarks and evaluation protocols remains a major barrier to reproducibility, underscoring the need for community-wide guidelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.