Guidelines for Empirical Studies in Software Engineering involving Large Language Models.
- Sebastian Baltes,
- Florian Angermeir,
- Chetan Arora,
- Marvin Muñoz Barón,
- Chunyang Chen,
- Lukas Böhme
- University of Bayreuth,
- Blekinge Institute of Technology,
- fortiss GmbH,
- Monash University,
- Technical University of Munich,
- Hasso Plattner Institute
Research Output:
Other contribution
Other contribution
Open access
Publication Information
Output type
Research Output:
Other contribution
Other contribution
Original language
EnglishPublication milestones
- Published - 2025
Publication status
Published - 2025
Volume
abs/2508.15503Publisher
arXivAbstract
Large language models (LLMs) are increasingly being integrated into software engineering (SE) research and practice, yet their non-determinism, opaque training data, and evolving architectures complicate the reproduction and replication of empirical studies. We present a community effort to scope this space, introducing a taxonomy of LLM-based study types together with eight guidelines for designing and reporting empirical studies involving LLMs. The guidelines present essential (must) criteria as well as desired (should) criteria and target transparency throughout the research process. Our recommendations, contextualized by our study types, are: (1) to declare LLM usage and role; (2) to report model versions, configurations, and fine-tuning; (3) to document tool architectures; (4) to disclose prompts and interaction logs; (5) to use human validation; (6) to employ an open LLM as a baseline; (7) to use suitable baselines, benchmarks, and metrics; and (8) to openly articulate limitations and mitigations. Our goal is to enable reproducibility and replicability despite LLM-specific barriers to open science. We maintain the study types and guidelines online as a living resource for the community to use and shape (see: https://llm-guidelines.org/)
Funding Details
Supported by the Carlsberg Foundation with grant CF24-0693 and the Alfred P. Sloan Foundation with grant G-2024-22586 to Daniel Russo.
FundersFunding numbers
Carlsberg Foundation
CF24-0693
Sloan Foundation
G-2024-22586
