arXiv:2611.06639cs.CLNov 2026

Manuscript Offprint

arXiv:2611.06639

Replicability, Reproducibility, and Robustness in Political and Social Science Research with Large Language Models

Joan C. Timoneda, Sebastián Vallejo Vera

Abstract

This chapter addresses the central methodological problem of research with large language models: their output is probabilistic, varies across models and versions, and can change downstream statistical results. It distinguishes replicability, reproducibility, and robustness, and proposes a probabilistic standard under which a replication succeeds when it recovers the same distribution of results rather than identical output. It introduces a standardized prompt script, tests within-model variation for encoders and decoders, and develops error-structure analysis to diagnose where models err and whether their errors align. Using three datasets, the chapter shows that measurement choice can flip the sign of downstream regression coefficients. Existing design-based corrections with gold-labeled subsamples restore validity, but come at the cost of estimate precision. The chapter proposes a stacked ensemble of open-weight models that recovers much of the precision lost in the correction step. The chapter concludes with disclosure standards covering code, prompts, codebooks, training data, and trained models.

Keywords: replicability; reproducibility; robustness; measurement error; design-based supervised learning; ensemble methods; transparency; downstream inference; large language models.

*Cross-references to other chapters, sections, and tables refer to the full book. Data and code: https://github.com/llms-political-social-science-book-oup/book-code-data. †Assistant Professor, Department of Political Science, Purdue University. Email: timoneda@purdue.edu. ‡Assistant Professor, Department of Political Science, University of Western Ontario.

In the earlier chapters of the book, we have laid out clear pipelines for applying encoder and decoder LLMs to annotate, classify, summarize, and recover topics from political texts at scale. We have done so with costs and efficiency in mind, consistently highlighting the benefits of encoder models and open-weight decoders in many applied tasks. Transformer models, especially decoders, come with a series of limitations, several of which we have already touched on in earlier chapters. A subset of such limitations falls within the discipline's growing debate around the reproducibility and transparency of results in applied LLM research (hereafter RT) (Spirling, 2023; Barrie, Palmer and Spirling, 2024; Alvarez and Heuberger, 2022).

Let us begin by defining the exact terminology within the RT debate, as the terms are often used interchangeably and inconsistently in the applied literature. Above, we used reproducibility and transparency as two umbrella terms to refer to the general debate. There are, however, two more important concepts to introduce. Following Barrie, Palmer and Spirling (2024), we use replicability to mean that the same data, code, and model yield the same reported results. A related term we bring to the debate more explicitly is robustness, where the same data analyzed under different reasonable LLM choices, such as different models, versions, or prompts, yields similar findings. 1^{1} Although Barrie, Palmer and Spirling (2024) discuss robustness within their broader account of replication, we treat it as a separate dimension. Replicability asks whether we can generate the same results from the same data and model, whereas robustness asks whether we can reach similar results with the same data but different LLMs. Lastly, reproducibility in technical terms means that the same model applied to new data produces similar findings. Transparency means that an outside observer can understand and verify all the moving parts of an analysis (models, data, and methodology). Therefore, the difference between the terms lies in the component that we hold constant: the model (reproducibility), the data (robustness), or both (replicability). In this chapter, we cover all of these concepts under the overall umbrella of the RT debate.

At the heart of the issue is that the same complex architecture that makes decoder LLMs so powerful also makes them unpredictable in ways researchers often cannot control or, with closed models, even inspect. It is difficult to guarantee that an LLM result today will be replicated or reproduced tomorrow. And while the problem is real, neither the diagnosis nor the solutions are settled. RT failures are not uniform across all uses of LLMs, and critics of LLMs often hold these models to a higher standard that traditional, well-established methods rarely meet. The constructive task, as we see it, is to identify the distinct problems that threaten reproducible research, be clear about which of them we can fix or avoid, and which we can only control for and report. Our goal in this chapter is to evaluate the current RT debate, engage with it directly, and provide concrete solutions to each of the central issues.

While RT presents uniquely difficult challenges in the context of Transformer LLM research, we think there are equally strong solutions. Our first contribution is to seek to push the field

1^{1}Some disciplines and authorities swap the definitions of reproducibility and replicability (see National Academies of Sciences, Engineering, and Medicine, 2019).

toward probabilistic RT. Until now, many computational pipelines in political science and the social sciences have been relatively deterministic: replicating work should return identical results and reproducing it should yield roughly equal ones. 2^{2} This determinism held even though inference itself has always been probabilistic. Most of this conventional thinking around RT with quantitative approaches collapses with LLMs, as they cannot guarantee deterministic results. Therefore, since Transformer LLMs are inherently probabilistic, we contend that it is in our best interest as social scientists to switch to probabilistic RT. Instead of drawing exact results or expecting close approximations, we should focus on distributions of results, leveraging the uncertainty of LLMs to determine whether results are replicable, reproducible and robust.

In our probabilistic RT framework, we separate measurement from downstream analysis. There are two reasons for making this conceptual distinction. First, text is an unstructured source of data, and LLMs are often used to extract structured data from it. This is true for annotation tasks but also topic modeling and other tasks. How we approach measurement with LLMs matters (Timoneda and Vallejo Vera, 2025). Second, as researchers, we ultimately care the most about downstream analyses. LLM measures should be good proxies for the concept we want to capture and thus produce unbiased coefficients in our statistical models. This is a focus of recent work, and rightly so (Egami et al., 2023). These two aspects of an LLM-focused pipeline, measurement and downstream analysis, are both crucial yet they demand different RT strategies. We provide further detail and solutions along both dimensions in the following sections.

We would also like to frame the RT discussion on LLMs in more general and perhaps more optimistic terms. The first step is to place the problem of RT in a broader discipline-wide context. The reproducibility problem affects many methods, not just LLMs. LLMs do introduce additional sources of variation that complicate reproducibility further. Yet the problem is structural. As a discipline, we are concerned with the reliability of a measure and how close it is to the ground truth (however we define this), but determining the ground truth has generally been difficult and inconsistent. Long before LLMs, when social scientists could only turn text into data by hand, two trained coders would produce different labels from the same codebook. We could take this a step further and say that the same coder, returning a year later, would likely label some texts differently. Coders, in the end, diverge on how they apply rules and determine ambiguous cases. They also bring different background knowledge to the task.

The same problem surfaces in machine learning, where the benchmark datasets used to evaluate models are themselves human-labeled and contain errors. In fact, Northcutt, Athalye and Mueller (2021) audited ten of the most widely used benchmark test sets and found pervasive labeling errors, averaging at least 3.3 percent, with higher rates in some datasets. 3^{3} These errors are enough to change the evaluation of which models perform best. Many benchmark datasets are

2^{2}Even when there are stochastic elements, such as bootstrapping, random forest, MCMC, and BoW topic models, researchers have been able to fix the random elements, often using seeds.

3^{3}The audited datasets include ImageNet and the IMDB sentiment corpus, among others.

crowdsourced, a practice that builds on research showing that aggregate crowd labels can match expert assessments (for political science, see Benoit et al., 2016). If human annotation were reproducible, similar well-designed crowdsourcing procedures should yield similar labels in the aggregate. But this is not always the case. Coders apply different heuristics when presented with multiple examples of correct labels, producing inconsistent labels (see Ennser-Jedenastik and Meyer, 2018). The quality of the coders affects the quality of the labels, in predictable ways as long as quality can be measured, as does their domain expertise.

Therefore, we suggest thinking about reproducibility of LLM-derived research in light of the general complexities around labeled data, human or otherwise. As Barrie, Palmer and Spirling (2024) and others argue, and we agree, LLMs introduce new challenges that exacerbate the reproducibility problem. Yet we consider these challenges surmountable, requiring a deep understanding of the LLM landscape, the capabilities and flaws of the models, and a clear set of solutions. Our solution rests on a thread that runs throughout this book: for each task, we need a complete picture of LLM performance and how it compares with expert coders. Because model performance and error structures are highly task-specific, comparing the output of one or two models will not suffice. Researchers need to apply a theoretically justifiable and varied ensemble of LLMs to more comprehensively understand LLM task-specific performance. We provide a full set of guidelines for this in the book, which we call benchmark-compare-harmonize, or BCH, introduced in Section 4.11. BCH covers both halves of the RT problem, measurement quality and the consistency of downstream estimates.

In this chapter, we first discuss the problem of RT in more detail, following Barrie, Palmer and Spirling (2024). Next, we introduce probabilistic RT and provide a fixed set of prompting strategies and examples for different applied tasks. We then discuss replicability, reproducibility and robustness in different sections and propose solutions to the central problems. We close by harmonizing LLM measures with downstream analyses and discussing transparency in research.

5.1 RT: The Achilles' Heel of Applied LLM Research

Barrie, Palmer and Spirling (2024) provide one of the most systematic problematizations of LLM research in the social sciences. One of their key concerns is replicability, and they identify two sources of error that affect it: within-model and across-model variation. They organize coding practices along two questions: whether exact replicability is possible, and whether the approach is robust and thus independent of the particular system used to produce it. 4^{4} The classical “data and code” replication from King (1995) demands that results be regenerated exactly but it is fragile, as it requires the replicator to have the same computational environment as the original researcher. Benoit et al. (2016) develop a crowdsourced coding approach that, by contrast, is not exactly replicable (one cannot recruit the identical workers each time). Yet it is robust, as

4^{4}Barrie, Palmer and Spirling (2024) define their second question as fragility of replication, or when replication is dependent on access to a particular model or system. We have changed the terminology and use robustness, but it captures that same idea.

the aggregate annotations across different coders and platforms approximate expert judgment. On Barrie, Palmer and Spirling's (2024) account, proprietary LLMs occupy an uncomfortable position: they are neither replicable nor robust. They are not replicable because their output cannot be regenerated exactly. They are not robust because a model version can be updated or simply cease to exist, so even the tool itself may become unavailable. And LLM results also vary significantly across different models and versions (Walker and Timoneda, 2025; Timoneda, 2026a). Results, therefore, are too dependent on the particular tool used in the research.

Barrie, Palmer and Spirling (2024) document both error sources empirically. For within-model variation, they re-run the same labeling tasks with the same model over several months, and separately repeat a task many times and average the output. Both exhibit substantial variation, with important effects on downstream estimates and statistical significance. For across-model variation, they run the same task across different models and versions, again finding sizable differences in output. Making a strong case for transparent and auditable tools, Spirling (2023) advocates for open-weight models, as they provide the smallest within-model variation and allow for model versions to be saved and reused over time (Barrie, Palmer and Spirling, 2024). We agree with most of this careful and thoughtful diagnosis.

We would only qualify one part of it: how the authors conceptualize and measure robustness. Barrie, Palmer and Spirling (2024) contrast robust crowdsourcing with fragile LLMs by running both over repeated rounds across several months. Run-to-run variability is wider for the language models than for the human coders, except in the case of their locally installed, open-weight Llama implementation, which shows lower variation than the humans. However, this comparison leaves two issues open. First, the evidence points to open-weight models being more robust, and this is a finding the authors themselves highlight. But it also cuts against their own framing. If open-weight LLMs are more robust, then this might be less a general LLM issue, and more a proprietary versus open-weight one. The authors do recommend the use of open-weight models as the closest available option to replication. We take this a step further and make open-weight models central to the study, use, and improvement of LLMs in social science research.

Our second qualification is more conceptual. Barrie, Palmer and Spirling's (2024) comparison is asymmetric. On the LLM side, they measure variation across several different models, but on the human side they measure it within a single pool of crowd workers — the pool they characterize as robust. This is an informative comparison, but a single pool will naturally show less variation than a set of distinct models. The apples-to-apples comparison would set multiple models against multiple pools of coders. We do not actually know whether the human side would look as stable if the comparison were built symmetrically. Would the variance be the same, lower, or higher if we re-ran the task each month with three fresh undergraduate or graduate research assistants? Or with assistants we trained ourselves rather than others working only from written instructions? Robustness requires us to ask which model and which human, and to match the sources of variation on each side before the comparison can carry the weight placed on it.

These qualifications point to a broader way of thinking about LLMs and the RT problem that we advance in this book. The point is less about the findings in Barrie, Palmer and Spirling (2024) and more about how we frame them. When applying LLMs to research, we need to understand the different sources of variation in model outputs, and then address each with a standardized set of procedures and recommendations. Within-model variation is a problem of replicability, while across-model variation is one of robustness. For within-model variation, we start from the architectural reality that decoder models are not deterministic. Aggregated over repeated iterations, however, their outputs let researchers estimate whether a robust central tendency and a constrained variance exist for a given task and model.

This is the logic of probabilistic RT, which we develop in Section 5.2: by using repeated sampling from a single model, we can recover a stable central tendency together with a defined measure of variation. For across-model variation, we extend the implementation guidelines set out in Section 4.11 as the BCH approach. More generally, we insist on the importance of ‘theory’, meaning the principles that link model architectures, tasks, outputs, and downstream results. More theoretical clarity goes a long way toward helping applied researchers produce work consistent with RT principles. For us, this involves developing strong expert-coded datasets, testing more than one model, using fine-tuned models for benchmarking, and reducing measurement and other biases in downstream estimates. In the rest of the chapter, we develop these ideas and introduce our solutions to the reproducibility problem. We begin with the shift toward probabilistic RT.

References (28)