» Articles » PMID: 39656836

Establishing Best Practices in Large Language Model Research: an Application to Repeat Prompting

Overview
Date 2024 Dec 10
PMID 39656836
Authors
Affiliations
Soon will be listed here.
Abstract

Objectives: We aimed to demonstrate the importance of establishing best practices in large language model research, using repeat prompting as an illustrative example.

Materials And Methods: Using data from a prior study investigating potential model bias in peer review of medical abstracts, we compared methods that ignore correlation in model outputs from repeated prompting with a random effects method that accounts for this correlation.

Results: High correlation within groups was found when repeatedly prompting the model, with intraclass correlation coefficient of 0.69. Ignoring the inherent correlation in the data led to over 100-fold inflation of effective sample size. After appropriately accounting for this issue, the authors' results reverse from a small but highly significant finding to no evidence of model bias.

Discussion: The establishment of best practices for LLM research is urgently needed, as demonstrated in this case where accounting for repeat prompting in analyses was critical for accurate study conclusions.

Citing Articles

GPT-4 assistance for improvement of physician performance on patient care tasks: a randomized controlled trial.

Goh E, Gallo R, Strong E, Weng Y, Kerman H, Freed J Nat Med. 2025; .

PMID: 39910272 DOI: 10.1038/s41591-024-03456-y.

References
1.
Savage T, Wang J, Gallo R, Boukil A, Patel V, Safavi-Naini S . Large language model uncertainty proxies: discrimination and calibration for medical diagnosis and treatment. J Am Med Inform Assoc. 2024; 32(1):139-149. PMC: 11648734. DOI: 10.1093/jamia/ocae254. View

2.
Goh E, Gallo R, Hom J, Strong E, Weng Y, Kerman H . Large Language Model Influence on Diagnostic Reasoning: A Randomized Clinical Trial. JAMA Netw Open. 2024; 7(10):e2440969. PMC: 11519755. DOI: 10.1001/jamanetworkopen.2024.40969. View

3.
von Wedel D, Schmitt R, Thiele M, Leuner R, Shay D, Redaelli S . Affiliation Bias in Peer Review of Abstracts by a Large Language Model. JAMA. 2023; 331(3):252-253. PMC: 10753437. DOI: 10.1001/jama.2023.24641. View

4.
Riley R, Cole T, Deeks J, Kirkham J, Morris J, Perera R . On the 12th Day of Christmas, a Statistician Sent to Me . . . BMJ. 2023; 379:e072883. PMC: 9844255. DOI: 10.1136/bmj-2022-072883. View

5.
Bland J, Altman D . Correlation, regression, and repeated data. BMJ. 1994; 308(6933):896. PMC: 2539813. DOI: 10.1136/bmj.308.6933.896. View