The Hidden Methodological Layer: Uncovering Threats to Validity in LLM-Assisted Empirical Software Engineering
Vict\'oria Gomes, Fabio Palomba, Robert Feldt, Thomas Zimmermann, David Lo, Rodrigo Spinola
Key points
From the paper's conclusion- We argue that rigorous LLM-assisted ESE requires making prompts, model configurations, interaction protocols, validation procedures, and downstream reuse of LLM-generated outputs visible as part of the research method.
Abstract
Context: Large Language Models (LLMs) are increasingly embedded in empirical software engineering (ESE) workflows, supporting tasks such as classification, coding, extraction, synthesis, and evaluation. Their probabilistic and opaque behavior, however, introduces methodological concerns that may affect empirical rigor. Aims: This paper investigates threats to validity introduced by LLM-assisted empirical workflows and examines how LLM interactions influence empirical studies. Method: We conducted a secondary analysis of 50 primary studies comprising 69 LLM-assisted research tasks identified through a systematic literature review. We examined the extent to which LLM-related threats were reported, how these threats were characterized, and how they related to established validity dimensions. Results: LLM-related threats remain substantially underreported. We identified recurring threats including classification errors, prompt-dependent interpretation, workflow instability, evaluator bias, downstream propagation of outputs, and model dependence. These threats can affect multiple validity dimensions depending on where and how LLM outputs enter the workflow. Conclusion: We introduce the concept of hidden methodological layer as a conceptual lens for understanding how LLMs influence empirical software engineering workflows. We argue that rigorous LLM-assisted ESE requires making prompts, model configurations, interaction protocols, validation procedures, and downstream reuse of LLM-generated outputs visible as part of the research method.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Guidelines for empirical studies in software engineering involving large language modelsEmpirical Software Engineering · 2026
- When may LLM outputs influence software requirements? A human-in-the-loop governance frameworkAdvances in Engineering Innovation · 2026
- The Evolving Role of Large Language Models in Human-AI Collaboration for Software EngineeringITM Web of Conferences · 2026
- Empirical insights on the use of large language models in software verification and validation: evidence from the Brazilian IT industryEmpirical Software Engineering · 2026
- A survey on large language models for software engineeringScience China Information Sciences · 2026
- SafeLLM4SE: Statistical Evaluation and Reporting for LLM-based Software Engineering SystemsarXiv · 2026