IDEAS home Printed from https://ideas.repec.org/p/ebg/heccah/1648.html

Randomness In Large Language Models: What Researchers Need to Know (And Report)

Author

Listed:
  • Coqueret, Guillaume

    (EMLYON Business School)

  • Llull, Joan

    (The Institute for Economic Analysis (IAE); Barcelona School of Economics)

  • Oswald, Florian

    (Università di Torino)

  • Pérignon, Christophe

    (HEC Paris - Finance Department)

  • Scheuch, Christoph

    (Humboldt University of Berlin - Faculty of Economics and Business Administration)

  • Vilhuber, Lars

    (Cornell University - Department of Economics)

Abstract

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.

Suggested Citation

  • Coqueret, Guillaume & Llull, Joan & Oswald, Florian & Pérignon, Christophe & Scheuch, Christoph & Vilhuber, Lars, 2026. "Randomness In Large Language Models: What Researchers Need to Know (And Report)," HEC Research Papers Series 1648, HEC Paris.
  • Handle: RePEc:ebg:heccah:1648
    DOI: 10.2139/ssrn.7191580
    as

    Download full text from publisher

    File URL: https://ssrn.com/abstract=7191580
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.2139/ssrn.7191580?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    JEL classification:

    • C18 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Methodolical Issues: General
    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques
    • C81 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Methodology for Collecting, Estimating, and Organizing Microeconomic Data; Data Access
    • O33 - Economic Development, Innovation, Technological Change, and Growth - - Innovation; Research and Development; Technological Change; Intellectual Property Rights - - - Technological Change: Choices and Consequences; Diffusion Processes

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ebg:heccah:1648. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: David Melon (email available below). General contact details of provider: https://edirc.repec.org/data/hecpafr.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.