A statistical framework for evaluating the repeatability and reproducibility of large language models.
Cathy Shyr, Boyu Ren, Chih-Yuan Hsu, Minh-Ha Nguyen, Mike Enger, Chao Yan, Rory J Tinker, Thomas A Cassini,
Department of Biomedical Informatics, Vanderbilt University Medical Center, Nashville, TN 37203, United States. · Laboratory for Psychiatric Biostatistics, McLean Hospital, Belmont, MA 02478, United States.
Key points
From the paper's conclusion- We developed and validated generalizable metrics for quantifying LLM output variability. The proposed metrics can complement accuracy-based evaluation to inform experimental design and support more rigorous comparison and selection of models, prompts, and generation settings.
Abstract
OBJECTIVES: Systematic evaluation of variability in large language model (LLM)-generated outputs is critical for assessing their reliability. We developed a general statistical framework and Python package (llmReproScore) for quantifying the repeatability and reproducibility of LLM outputs. MATERIALS AND METHODS: Following US Food and Drug Administration terminology, our framework establishes four metrics for quantifying LLM repeatability and reproducibility along two dimensions: semantic and internal. Semantic metrics quantify variability in the meaning of LLM-generated outputs, whereas internal metrics quantify variability in token-generation certainty. We validated these metrics, and as an illustrative use case, applied them to diagnostic reasoning outputs generated across LLMs and prompting strategies using US Medical Licensing Examination questions and 90 real-world rare disease cases from the Undiagnosed Diseases Network. RESULTS: Validation results showed that semantic scores aligned with human ratings (Spearman ρ = 0.88 for repeatability and 0.66 for reproducibility) and confirmed that internal metrics capture variability in token-generation certainty. In the illustrative use case, LLM repeatability was generally not associated with accuracy, suggesting that LLM output variability and accuracy capture distinct dimensions of model performance. DISCUSSION: The proposed metrics can be used to characterize LLM output variability and systematically compare models, prompts, and generation settings. These comparisons can inform more rigorous selection of LLM configurations based on repeatability and reproducibility. CONCLUSION: We developed and validated generalizable metrics for quantifying LLM output variability. The proposed metrics can complement accuracy-based evaluation to inform experimental design and support more rigorous comparison and selection of models, prompts, and generation settings.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Same Patient, Different Order: Action-Level Reliability of Clinical LLM Agents Under Repeated RunsarXiv · 2026
- Development of a Framework for Evaluating Large Language Model Safety and Reliability: a Proof-of-Concept Evaluation.Journal of medical systems · 2026
- Accuracy and confidence calibration of large language models on neurology board-style questionsmedRxiv · 2026
- Clean Engineering, Unstable Measurement: A Preregistered Reliability Failure of Black-Box LLM Observers on Shared EndpointsarXiv · 2026
- Confidence Measurement Metrics in Multimodal Large Language Models for Ultrasound-Based Radiology Cases: Comparative Evaluation Study of Self-Reported, Consistency-Based, and Hybrid MethodsJournal of Medical Internet Research · 2026
- Is one run enough? Reproducibility of flagship large language models across temperature and reasoning settings in biomedical text processingJournal of the American Medical Informatics Association · 2026