arXiv:2611.07772cs.SENov 2026

Manuscript Offprint

arXiv:2611.07772

Adapt the Object to the Subject: Representative Study Material for Empirical Software Engineering

Max Unterbusch, Julian Frattini, Michael Mircea, Alexander Korn, Kurt Schneider, Jonathan Ullrich, Andreas Vogelsang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Max Unterbusch*, Julian Frattini†, Michael Mircea‡, Alexander Korn*, Kurt Schneider‡, Jonathan Ullrich§, and Andreas Vogelsang*

*paluno – The Ruhr Institute for Software Technology, University of Duisburg-Essen, Germany {max.unterbusch, alexander.korn, andreas.vogelsang}@uni-due.de

†Chalmers University of Technology and University of Gothenburg, Sweden julian.frattini@chalmers.se

‡Software Engineering Group, Leibniz University Hannover, Germany {michael.mircea, kurt.schneider}@inf.uni-hannover.de

§Fraunhofer IESE, Germany jonathan.ullrich@iese.fraunhofer.de

Abstract—External validity is a central concern in empirical software engineering, yet the debate has largely focused on whether study participants are representative. How well the study objects they reason about—code, models, or requirements—are representative of each participant's own work is often overlooked. Practitioners' own artifacts would be ideal, but are often out of reach, so researchers sample from public datasets or construct objects artificially. Whether this lack of subject-object fit affects participants' ability to act on the material remains unknown. We take a first step toward answering this question for requirements. We propose an approach that uses an LLM to generate context-adapted synthetic requirements just-in-time during an online survey from a short, participant-supplied context description, optionally injecting requirements smells as controlled stimuli. To validate the approach, we conducted a controlled experiment with 31 industry practitioners in a 2 × 2 design that crosses stimulus generation (static vs. synthetic) with quality (clean vs. smelly). Each participant rated the perceived representativeness and assessability of 20 requirements. Using Bayesian data analysis within a statistical causal-inference framework, we find that perceived representativeness has a strong positive effect on assessability. Synthetic requirements are rated as more representative and—primarily due to this gain—more assessable than static ones sourced from public datasets; smell injection leaves both perceptions unchanged. Our results support treating a lack of study-object representativeness as a first-class validity threat and position context-adapted synthetic study objects as a practical addition to the empirical methodology toolbox.

Index Terms—Study objects, external validity, requirements, empirical research, controlled experiment, Bayesian data analysis, causal inference, sensitivity analysis

I. INTRODUCTION

Empirical studies have become a core instrument of software engineering (SE) research. As SE is an applied science, it is important that our empirical results are useful to practice, which makes external validity a central concern. In general, generalizability can be improved by making studies as realistic and representative as possible considering the target population to which one wants to draw conclusions for [1]. Much of this concern has centered on the study participants, where a long-standing debate asks whether students can adequately represent industry practitioners [2], [3]. However, this concern only addresses one dimension of external validity, the interaction of treatment and selection [4]. The extent to which the study objects—including code, commits, architecture diagrams, and requirements—resemble those that a participant would encounter in their own work is often overlooked [5].

Using practitioners' own artifacts as study material would have high external validity in the setting dimension, but this is often infeasible: Such artifacts are often confidential, hard to obtain, and sometimes too sparse in the phenomenon under study to be useful. A common approach is therefore to sample study objects from public datasets (e.g., [6]–[9]) or construct them artificially (e.g., [10]–[13]). However, in these settings, the material may be of low representativeness and might not match a participant's domain and expertise. Currently, we lack evidence on the extent to which the representativeness of study objects affects the assessability by participants.

We take a first step toward answering this question for a particular SE study object, requirements. Requirements are core to many streams of research, including research on requirements quality [9], [13]–[15]. Unnoticed defects in requirements can become costly problems in downstream SE tasks and risk project success [16]. For this reason, requirements smells have been defined as indicators for potential quality deficiencies [14]. However, for most smells, we lack empirical evidence for their relevance [15], [17], although first studies have begun to investigate their effects [9], [18], [19]. We believe part of the reason is that requirements quality is inherently difficult to study. Whether a requirement smell is genuinely harmful depends on context factors, such as domain, the process model, or the availability of stakeholders who could resolve it [15]. Experiments in requirements quality

© 2025 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

research are only meaningful if participants can relate the presented requirements to a context they know; confronting them with unfamiliar material would undermine the judgments the study relies on.

To address this problem, we propose and evaluate an approach that generates context-adaptive synthetic requirements just-in-time and uses them as study objects. At the start of a study, each participant supplies a short description of their working context, which is used to condition a large language model (LLM) that generates requirements tailored to that participant on the fly. To evaluate whether the approach is capable of adding controlled stimuli, an additional LLM-based mutation step injects requirements smells into the generated study objects, yielding both clean and smelly requirements.

We conducted a controlled experiment with 31 industry practitioners, following a 2×22 \times 2 within-subjects design that crosses the stimulus generation (synthetic vs. static) with the requirement quality (clean vs. smelly). The static condition serves as the control level: requirements sampled from projects in public datasets without adaptation to the participant. Each participant rates requirements from all four combinations of conditions on two questions, capturing the dimension of perceived representativeness and assessability. Both constructs are first-person judgments that only the practitioners themselves can make in their context.

Analyzing the ratings with Bayesian data analysis [20] within a framework for statistical causal inference [21], we find that perceived representativeness has a strong positive effect on participants' assessability, i.e., their confidence in acting on the requirements. Since representativeness could not be experimentally manipulated, we adjusted for known confounders in our causal model and show in a sensitivity analysis that the observed association could only be spurious if an unknown confounder were implausibly strong. Synthetic requirements, which we experimentally controlled, are rated as more representative and, primarily for this reason, more assessable than static ones sourced from public datasets. The LLM-based smell mutation leaves both perceptions unchanged.

In summary, this paper makes the following contributions:

• Empirical evidence that study-object representativeness has a strong positive effect on practitioners' perceived ability to act on the material. Demonstrated here for requirements, this supports treating a lack of object representativeness as a first-class validity threat in human-subject experiments and motivates studying it for other types of study objects.

  • An approach for generating context-adapted study objects just-in-time from a short, participant-supplied context description, here instantiated for requirements with an optional LLM-based mutation step that injects requirements smells. In a controlled experiment with 31 practitioners, synthetic requirements were perceived as more representative and, primarily through this gain, more assessable than static ones sampled from public datasets, while smell injection left both perceptions unchanged. The approach is in principle transferable to other types of SE study objects.

• Methodological guidance on when the approach is and is not appropriate, and how to apply it.

References (54)