Establishing best practices in large language model research: an application to repeat prompting.

J Am Med Inform Assoc

Division of Hospital Medicine, Stanford University, Stanford, CA 94305, United States.

Published: December 2024

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.

Download full-text PDF

Source
http://dx.doi.org/10.1093/jamia/ocae294DOI Listing

Publication Analysis

Top Keywords

best practices
12
repeat prompting
12
establishing best
8
practices large
8
large language
8
language model
8
model
6
prompting
5
model application
4
application repeat
4

Similar Publications

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!