Randomness in large language models: What researchers need to know (and report)
summary
The gist
Large language model outputs should be treated as draws from a distribution rather than as fixed measurements.<ref:2607.24372#pg1…
In short
LLM outputs are non-deterministic due to sampling, updates, rounding, and routing. The study shows that repeated classifications can yield different statistics even with fixed inputs. Researchers should report model used, settings (like temperature), and provide raw outputs for reproducibility.
Key concepts
- Sources of Non-Determinism
- LLM outputs vary because of several factors: deliberate sampling, silent model updates, floating-point rounding errors, and expert routing. These sources introduce randomness into the model's responses across different calls.
- Control and Reproducibility
- Control over randomness is highest when running open-weight models locally. This allows researchers to archive weights, fix batch sizes, and preserve the exact software environment. Commercial services offer much less control over these execution details.
- Temperature Parameter (T)
- The temperature setting controls deliberate sampling in LLMs. Setting T=0 removes this sampling randomness, which significantly improves consistency for models like DeepSeek and Gemma-4 when deployed locally, concentrating statistics at a single value.
- Reporting Standards
- Authors must report the specific model, settings used, and output stability in their paper. A replication package containing all raw outputs is required so data editors can verify results by reproducing them using the provided parameters.
Terminology used across episodes
This episode discusses
- Randomness in large language models: What researchers need to know (and report) · Paper Radio
- Non-Determinism of "Deterministic" LLM Settings
- Optimizing Temperature for Language Models with Multi-Sample Inference
- Buffer Overflow in Mixture of Experts
- Large Language Models as Simulated Economic Agents: What Can We Learn from Homo Silicus?
- Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inference
- Assessing Consistency and Reproducibility in the Outputs of Large Language Models: Evidence Across Diverse Finance and Accounting Tasks
The paper
Randomness in large language models: What researchers need to know (and report) · Read on arXiv
Guillaume Coqueret, Joan Llull, Florian Oswald, Christophe Pérignon, Christoph Scheuch, Lars Vilhuber
EMLYON Business School, France · Institute for Economic Analysis (IAE-CSIC) · University of Turin and Collegio Carlo Alberto, Italy · HEC Paris, France · Humboldt University of Berlin, Germany · Cornell University
Large language models (LLMs) are increasingly used to generate data for research. Typical use cases are classifications, annotations, information extraction, and generation of numerical scores. Unlike conventional measurements, LLM outputs can vary across repeated requests even when the prompt and apparent model settings remain unchanged. This variation arises from deliberate sampling, silent model updates, numerical rounding, or expert routing. Setting a dedicated temperature parameter to zero removes deliberate sampling when that option is available, but it does not eliminate the other sources of randomness. Exact reproduction is therefore generally not possible when using proprietary application programming interfaces. Local execution of open-weight models offers greater control, but reproducibility still depends on the complete hardware and software stack. We illustrate these issues through sentiment classifications of corporate filings and examine their consequences for downstream regression results. We then propose a reporting standard for articles and replication packages, as well as guidance for data editors and authors. Together, these findings and recommendations establish that LLM outputs should be treated as draws from a distribution rather than as fixed measurements.
Transcript
Introduction to the show: ident: Economics. The day in economics: theory, mechanisms and the evidence beneath them.
Ruth: We're looking at the paper: "Randomness in large language models".
Paper summary: Iris: We've established that LLM outputs are not deterministic and this paper calls it "Randomness in large language models: What researchers need to know (and report)". The authors argue that this variation stems from several factors, including deliberate sampling, silent model updates, numerical rounding, and expert routing.
Ruth: They focus on the practical consequences of this randomness by illustrating it through sentiment classifications of corporate filings. The main takeaway is that repeated classifications can produce very different regression statistics even when the filing excerpts and prompts remain fixed.
Warren: And they highlight that for commercial providers like OpenAI or Anthropic, researchers have very little control over the serving infrastructure, which means they can't archive the deployed model or identify the specific hardware used.
Iris: That lack of transparency is what causes a lot of issues because researchers often treat this generated data as if it were fixed observations when it’s actually variable. The paper notes that existing policies in fields like economics and management only offer limited guidance for this situation.
Ruth: So the paper isn't just pointing out a problem; they are trying to guide the community on how to handle these sources of variation, which is why they propose specific reporting standards for authors and data editors.
Warren: They make a distinction between what authors need to report in their papers and what the replication package requires, classifying these items into different priorities.
Iris: It’s about making sure that when someone wants to check your work, they have a clear way to verify if the results were truly reproducible given the sources of randomness identified.
Ruth: This paper also touches on how rapidly LLMs are being adopted in economics and management research, examining articles published between January two thousand twenty and July two thousand twenty-six in top-tier journals <ref:2607.24372#pg1>. They show a striking increase in the use of these models.
Warren: So while adoption is growing fast, the authors caution that this estimate based only on titles and abstracts is likely conservative because it doesn't reflect how researchers actually use them in their full articles.
Iris: It’s a warning about how quickly these tools are being integrated, but it also shows that there's still a lag between adoption and the actual practice of using them in published research.
Ruth: So, to summarize this section of the paper, it lays out the mechanics of LLM non-determinism and explains why it challenges traditional methods of measurement when using these models for generating data.
Conclusion: Warren: Looking at this paper, "Randomness in large language models: What researchers need to know (and report)", the authors conclude that LLM output should be viewed as draws from a distribution rather than fixed measurements.
Ruth: They urge researchers to adopt minimal requirements for reporting and verification to ensure the stability of research foundations, stressing that this is how we maintain research integrity.
Iris: They also emphasize that using open-weight models offers advantages over proprietary models because they are not locked into preserving legacy models, which makes control much easier for those who need exact results.
Warren: So the final recommendation is to set temperature to zero when possible and insist on strict documentation requirements for all LLM usage in published work. That's the practical path forward they suggest.
Ruth: And they stress that archived open weights on a controlled local stack provide the strongest route to exact reproduction, but only when you have documented and preserved the complete serving environment.
Warren: It’s a lot of documentation effort, but it seems necessary if we want to trust the results derived from these large language models in our quantitative fields.
Iris: This paper is important because it moves us away from treating LLM output as perfect answers and forces us to treat it with the skepticism that every other complex measurement requires.
More episodes
- 2509.22173-How firms, bureaucrats, and ministries benefit from the revolving door: Evidence from Japan
- 2604.24546-Comonotonic improvement under feasibility constraints
- 2403.03612-Understanding Consumers' Perceived Privacy Violations in Online Advertising
- 2204.05793-Coarse Personalization
- 2110.12041-Slow Movers in Panel Data
- 2304.00412-Incentives and Strategic Behaviour: An Experiment
- 2309.01889-The Local Projection Residual Bootstrap for AR(1) Models
- 2604.15563-True and Pseudo-True Parameters
- 2305.08729-Group knowledge and individual introspection
- 2407.14959-(Non-)Commutative Aggregation