Abstract
Background:
Large language models (LLMs) have demonstrated impressive performance on medical licensing and diagnosis-related exams. However, comparative evaluations to optimize LLM performance and ability in the domain of comprehensive medication management (CMM) are lacking. The purpose of this evaluation was to test various LLMs performance optimization strategies and performance on critical care pharmacotherapy questions used in the assessment of Doctor of Pharmacy students.
Methods:
In a comparative analysis using 219 multiple-choice pharmacotherapy questions, five LLMs (GPT-3.5, GPT-4, Claude 2, Llama2-7b and 2-13b) were evaluated. Each LLM was queried five times to evaluate the primary outcome of accuracy (i.e., correctness). Secondary outcomes included variance, the impact of prompt engineering techniques (e.g., chain-of-thought, CoT) and training of a customized GPT on performance, and comparison to third year doctor of pharmacy students on knowledge recall vs. knowledge application questions. Accuracy and variance were compared with student’s t-test to compare performance under different model settings.
Results:
ChatGPT-4 exhibited the highest accuracy (71.6%), while Llama2-13b had the lowest variance (0.070). All LLMs performed more accurately on knowledge recall vs. knowledge application questions (e.g., ChatGPT-4: 87% vs. 67%). When applied to ChatGPT-4, few-shot CoT across five runs improved accuracy (77.4% vs. 71.5%) with no effect on variance. Self-consistency and the custom-trained GPT demonstrated similar accuracy to ChatGPT-4 with few-shot CoT. Overall pharmacy student accuracy was 81%, compared to an optimal overall LLM accuracy of 73%. Comparing question types, six of the LLMs demonstrated equivalent or higher accuracy than pharmacy students on knowledge recall questions (e.g., self-consistency vs. students: 93% vs. 84%), but pharmacy students achieved higher accuracy than all LLMs on knowledge application questions (e.g., self-consistency vs. students: 68% vs. 80%).
Conclusion:
ChatGPT-4 was the most accurate LLM on critical care pharmacy questions and few-shot CoT improved accuracy the most. Average student accuracy was similar to LLMs overall, and higher on knowledge application questions. These findings support the need for future assessment of customized training for the type of output needed. Reliance on LLMs is only supported with recall-based questions.
Introduction
Large language models (LLMs) have shown remarkable abilities in the medical domain, including diagnosing complex patient cases (), creating and summarizing patient notes (), and generating personalized treatment plans (); however, these tasks have largely focused on more structured diagnostic problems with clearly delineated correct and incorrect answers (; ; ; ). Comprehensive medication management (CMM) poses a more unstructured problem where multiple appropriate courses of action may be available, requiring clinicians, including trainees, to weigh known risks and benefits of medications as a component of a shared decision making model (; ). Importantly, the poly-prescribing of multiple medications (critically ill patients average 13–20 medications at any given time) increases the risk of adverse drug events (ADEs) and medication errors (; ). Given that each year it is estimated that 4 billion prescriptions are dispensed in the United States alone and that medication errors are thought to occur daily for critically ill patients, CMM performed by highly trained clinicians is essential for safe and efficacious medication use. Indeed, it has been shown that critical care pharmacists reduce adverse drug events (ADEs) by 70% ().
LLMs may be an important tool towards making medication use safer; however, the testing of LLMs for CMM has only just begun (; ; ). Thus far, LLMs have been tested for deprescribing benzodiazepines, identifying drug-herb interactions, predicting outcomes from medication regimens, and performance on a national pharmacist examination, showing early promise but also concerning rates of hallucinations and inaccurate information (; ; ). Most LLMs were trained on a widely available corpus (e.g., the Internet), which creates the potential for problems in domains marked by highly technical language germane to healthcare and medication management (). Moreover, improving LLM reasoning abilities via prompt engineering (; , ; ; ) and reasoning engine strategies in the pharmacy domain remains underexplored. Recent efforts to cultivate expert thinking skills among pharmacy trainees further underscore the need for specialized tools that support clinical decision-making in complex environments like CMM ().
As a first step towards clinically characterizing the role of LLMs in CMM, this study aimed to compare the performance of several LLMs on case-based, multiple-choice questions focusing on critical care pharmacotherapy. Further, prompt engineering and reasoning engines techniques were explored.
Methods
Study design
The performance of six LLMs based on pharmacy school course materials was evaluated across multiple-choice questions related to critical care pharmacotherapy. The primary outcome was model accuracy (i.e., correctness when compared to ground truth). A key secondary outcome was model variance (i.e., change over time). Additional secondary outcomes included evaluation of model performance by question type (knowledge recall vs. knowledge application), evaluation of the effect of different prompt engineering techniques on model performance, and performance of LLMs relative to pharmacy students for a subset of questions.
Data source
A total of 219 multiple-choice questions focused on critical care pharmacotherapy topics used in Doctor of Pharmacy curricula from two accredited, four-year colleges of pharmacy were compiled for this study. Questions were written for students in their third professional year who participated in a critical care elective course (99 questions) and critical care module from the core pharmacotherapy series (120 questions). Questions were formatted to have four answer choices and images were converted to textual input. Additionally, questions were further categorized into knowledge-based (51 questions) and skill-based (168), with knowledge questions testing fact recall and application questions testing application of pharmacy knowledge to simple patient cases. Ground truth was established as the correct answer by the course coordinators/item writers of the respective Doctor of Pharmacy courses, who are all considered content experts.
Models
A total of six LLMs were evaluated, including ChatGPT-3.5, ChatGPT-4, Claude2, Llama2-7b, Llama2-13b, and customized ChatGPT-4. ChatGPT-3.5 and ChatGPT-4 are models from OpenAI known for their advanced natural language understanding and generation capabilities. Claude2, developed by Anthropic, focuses on safety and alignment in artificial intelligence (AI) outputs, enhancing understanding and reasoning while prioritizing safe and reliable responses. Llama2-7b and Llama2-13b, part of Meta’s LLaMA suite, are designed for efficiency and effectiveness in natural language tasks. Llama2-7b utilizes a smaller parameter count to achieve competitive performance while Llama2-13b offers improved performance and accuracy due to its increased parameter count, potentially making it more suitable for more complex and nuanced language processing tasks. Additionally, a Custom ChatGPT by OpenAI named PharmacyGPT was trained on a dataset of relevant pharmacy school course materials to serve as a proof-of-concept for domain-specific training. Performance metrics were compared to the ChatGPT-4 results with initialization prompt and CoT prompt.
Initialization prompt
Input was standardized to generate output that provided correct answers and explanations. The following prompt served as a scaffold to orient the model to the specific task and context, with the goal of enhancing model performance by producing more accurate and structured answers: “This is a midterm exam for the critical care elective course in pharmacy school. Please select the most correct answer from the following multiple-choice options and give your reason why you chose it. Please follow the following format to answer the question: The correct answer is: (fill in the blank). The reason is: (fill in the blank).” Further prompt engineering methodology is provided in Appendix A.
Prompt engineering is a set of methodologies centered on using prompts to perform in-context learning and instruct LLMs with the goal to adeptly tackle downstream tasks (; ). Prompts provide specific instructions or cues to the models, which direct LLMs towards a specific task without necessitating time-consuming annotation of large amounts of data for fine-tuning (; ; ; ; ; ). Reasoning engines like Chain-of-Thought, Tree-of-Thought, and Graph-of-Thought break up problems into steps from which logical inferences can be made (akin to showing a step by step process in answering an algebra problem). Reasoning engines are useful because they reduce hallucinations and support assessment for gaps in domain knowledge (, ; ). Both of these methodologies to improve LLM performance were evaluated. Specifically, the effect of prompt engineering (as a means of in-context learning) based on ChatGPT-4 was explored. This means it can better understand the prompt and improve the generation based on it. First, the zero-shot chain-of-thought (CoT) approach was applied by including “Let us think step by step” in the prompt and requesting the model to provide both the answer and the corresponding reasoning steps directly. Zero-Shot CoT was applied to ChatGPT-4 and was evaluated in five separate trials. Model performance parameters were compared to the LLM with an initialization prompt. Then, a few-shot CoT was applied by offering a set of examples including questions, intermediate steps, and answers, requesting the LLM to generate intermediate steps and arrive at the correct final answer for new problems. This was evaluated in five separate trials, and model performance was compared with the initialization prompt results and Zero-Shot CoT results. Chain of thought methodology is further summarized in Appendix B. In the self-consistency (SC) approach, the final result was determined by selecting the answer that obtains the highest number of votes among the five trials, thereby leveraging the model’s ability to produce consistent responses across multiple iterations and potentially enhancing overall performance. The model performance generated by this approach was then compared to those of the initialization prompt, the Zero-Shot CoT, and the CoT results of ChatGPT-4.
PharmacyGPT
In addition to the prompt engineering techniques, a ChatGPT was built based on a custom dataset of relevant pharmacy school course materials as a proof of concept to improve GPT-4 model performance. Performance metrics were compared to the ChatGPT-4 results with initialization prompt and CoT prompt.
Recall vs. application based question analysis and comparison to pharmacy student performance
Response accuracy on recall- and application-based questions from the LLMs (ChatGPT-3.5, ChatGPT −4, Claude2, Llama2-7b, Llama2-13b) with the initialization prompt and GPT-4 engineered with few-shot CoT were compared to pharmacy student performance for 120 multiple-choice questions on which student performance was available. Student performance was available for the core pharmacotherapy course for one year (as questions are updated on a yearly basis).
Statistical analysis
Model accuracy was evaluated by inputting the same prompt into each LLM five separate times and reporting the accuracy of each model for each run when compared to ground truth answer along with the overall average accuracy across all runs. Model variance was evaluated by assigning numeric values (1, 2, 3, 4) to the four answer choices in each question and calculating variance from the response accuracy and the assigned value for each LLM. To further examine the consistency of responses between humans and LLMs across various types of questions, heatmap visualization techniques were used to visualize the distribution of data.
All comparisons were evaluated by two-sided independent-sample t-tests with significance thresholds of 0.05. The analysis was performed using Python 3.11.3 and SciPy version 1.11.4, ensuring robust and reliable statistical computations.
Results
Initialization prompt
The performance of the five LLMs evaluated in terms of accuracy of each of the five runs, average accuracy, and variance over the five runs are included in Table 1. ChatGPT-4 achieved the highest average accuracy rate at 71.6% with a satisfactory variance of 0.14 among five LLMs. Conversely, Llama2-13b had the lowest variance (0.070) among the LLMs, but its accuracy was limited (41.5%). ChatGPT-4 significantly outperformed the other LLMs (Table 2).
Table 1
| LLM | Acc-Run1 | Acc-Run2 | Acc-Run3 | Acc-Run4 | Acc-Run5 | Acc-Avg | Variance |
|---|---|---|---|---|---|---|---|
| ChatGPT-3.5 | 0.55 | 0.53 | 0.51 | 0.55 | 0.54 | 0.54 | 0.30 |
| ChatGPT-4 | 0.73 | 0.70 | 0.71 | 0.72 | 0.70 | 0.71 | 0.14 |
| Claude2 | 0.60 | 0.60 | 0.62 | 0.61 | 0.61 | 0.61 | 0.09 |
| Llama2-7b | 0.36 | 0.38 | 0.36 | 0.35 | 0.35 | 0.36 | 0.21 |
| Llama2-13b | 0.40 | 0.40 | 0.44 | 0.41 | 0.41 | 0.41 | 0.07 |
Response accuracy and variance of LLMs.
Acc-R#: Accuracy of run number #. Acc-Avg: Average accuracy of five runs. Var: Variance of five runs.
Table 2
| Model comparison | ChatGPT-4 acc-avg | Other model acc-avg | p-value |
|---|---|---|---|
| ChatGPT-4 vs. ChatGPT-3.5 | 0.71 | 0.54 | p < 0.01 |
| ChatGPT-4 vs. Claude2 | 0.71 | 0.61 | p < 0.01 |
| ChatGPT-4 vs. Llama2-7b | 0.71 | 0.36 | p < 0.01 |
| ChatGPT-4 vs. Llama2-13b | 0.71 | 0.41 | p < 0.01 |
Comparison of average accuracy of five runs between ChatGPT-4 and other LLMs.
When comparing LLM performance on knowledge versus skill-based questions, all five LLMs demonstrated higher accuracy in knowledge-based questions as shown in Table 3. An inverse pattern was reflected in variance, where all LLMs except for Llama2-7b showed lower variance when answering knowledge questions and higher variance in their responses to application-based questions. In particular, ChatGPT-4 achieved the highest accuracy for recall- and application -based questions, with an accuracy of 87 and 67%, respectively.
Table 3
| LLM | Accuracy-recall | Accuracy-application | Variance-recall | Variance-application |
|---|---|---|---|---|
| ChatGPT-3.5 | 0.69 | 0.50 | 0.22 | 0.33 |
| ChatGPT-4 | 0.87 | 0.67 | 0.08 | 0.15 |
| Claude2 | 0.75 | 0.57 | 0.09 | 0.09 |
| Llama2-7b | 0.41 | 0.34 | 0.22 | 0.21 |
| Llama2-13b | 0.51 | 0.39 | 0.06 | 0.07 |
Average response accuracy and variance of LLMs answering skill-based vs. knowledge-based questions.
All data in this table are averaged over five runs. Accuracy-knowledge: Average accuracy across knowledge-based questions. Accuracy-skill: Average accuracy across skill-based questions. Variance-knowledge: Variance of answers across knowledge-based questions. Variance-skill: Variance of answers across skill-based questions.
Table 4 shows the response accuracy and variance with a zero-shot CoT approach. All five LLMs performed similarly with a zero-shot CoT approach compared to the original initialization prompt used, showing minimal improvement with this approach.
Table 4
| LLM | Acc-Run1 | Acc-Run2 | Acc-Run3 | Acc-Run4 | Acc-Run5 | Acc-avg | Variance |
|---|---|---|---|---|---|---|---|
| ChatGPT-3.5 | 0.55 | 0.53 | 0.53 | 0.56 | 0.54 | 0.54 | 0.32 |
| ChatGPT-4 | 0.73 | 0.70 | 0.71 | 0.72 | 0.70 | 0.71 | 0.13 |
| Claude2 | 0.59 | 0.59 | 0.61 | 0.60 | 0.60 | 0.60 | 0.08 |
| Llama2-7b | 0.35 | 0.34 | 0.33 | 0.33 | 0.35 | 0.34 | 0.13 |
| Llama2-13b | 0.38 | 0.42 | 0.40 | 0.42 | 0.41 | 0.41 | 0.09 |
Average response accuracy and variance of LLMs with zero-shot CoT.
Acc-Run#: Accuracy of run number #. Acc-Avg: Average accuracy of five runs. Var: Average Variance of answers of five runs.
Few-shot CoT was explored, and the results for ChatGPT-4 are presented in Table 5. This table presents a breakdown of ChatGPT-4’s average accuracy and variance across different shot iterations, showcasing the incremental changes in performance with each additional shot. The results demonstrate that CoT could improve model performance from 71.5% to a maximum of 77.4% (p-value <0.001). More CoT examples led to better performance, as evidenced by the highest accuracy achieved with five-shot CoT. However, the use of few-shot CoT did not lead to a reduction in the variance. Visualizations are provided in the Supplemental Figures in Appendix B.
Table 5
| ChatGPT-4 | Accuracy-0-shot | Accuracy-1-shot | Accuracy-3-shot | Accuracy-5-shot |
|---|---|---|---|---|
| ChatGPT-4 | 0.71 | 0.75 | 0.77 | 0.77 |
| Variance-0-shot | Variance-1-shot | Variance-3-shot | Variance-5-shot | |
| ChatGPT-4 | 0.13 | 0.0 | 0.12 | 0.17 |
Average response accuracy and variance of ChatGPT-4 with few-shot CoT across five runs.
Furthermore, the results of the Self-Consistency approach, based on five-shot ChatGPT-4, have shown further promising outcomes. Self-Consistency led to a modest improvement in performance, resulting in a 2% increase in accuracy on the five-shot ChatGPT-4 (Table 6).
Table 6
| Acc-Run1 | Acc-Run2 | Acc-Run3 | Acc-Run4 | Acc-Run5 | Acc-Avg | p-value | |
|---|---|---|---|---|---|---|---|
| Self-consistency | 0.75 | 0.75 | 0.74 | 0.74 | 0.75 | 0.75 | 0.03 |
| 5-shot CoT | 0.70 | 0.74 | 0.70 | 0.73 | 0.75 | 0.726 |
Accuracies of self-consistency and 5-shot CoT of ChatGPT-4.
Acc-Run#: Accuracy of run number #. Acc-Avg: Average Accuracy of five runs. p-value for independent two sample t-test.
In a comparison of recall and application-based questions, student performance was similar across both question types whereas LLM performance was lower for application-based questions with all models. Supplemental Figure 3 in Appendix B shows the average response accuracy between LLMs and students on 120 questions. Students outperformed the best-performing LLM (self-consistency with CoT) model based on 5-shot CoT by 5%.
ChatGPT-4 with self-consistency achieved high accuracy for knowledge-based questions, which outperformed the student average in this domain (93% vs. 84%, p-value = 0.05) (Table 7). However, the performance of the best model for application -based questions was lower than the student average (69% vs. 80%, p-value = 0.024). Additionally, the response accuracy for both recall- and application-based questions improved as more CoT examples were provided. PharmacyGPT outperformed ChatGPT-4 when using the initialization prompt on both recall-based questions (90% vs. 84%, p-value = 0.0310) and application-based questions (69% vs. 60%, p-value = 0.0032). Specifically, PharmacyGPT outperformed the model with self-consistency, which was the best model developed via the prompt engineering approach, on application-based questions.
Table 7
| Accuracy-overall | Accuracy-recall | Accuracy-application | Variance-recall | Variance-application | p-value | |
|---|---|---|---|---|---|---|
| Student | 0.81 | 0.84 | 0.80 | - | - | 0.11 |
| ChatGPT-3.5 | 0.51 | 0.68 | 0.45 | 0.20 | 0.34 | <0.01 |
| ChatGPT-4 | 0.65 | 0.84 | 0.60 | 0.08 | 0.19 | <0.01 |
| ChatGPT-4-1S | 0.70 | 0.87 | 0.65 | 0.01 | 0.10 | <0.01 |
| ChatGPT-4-3S | 0.73 | 0.90 | 0.68 | 0.01 | 0.18 | <0.01 |
| ChatGPT-4-5S | 0.73 | 0.91 | 0.67 | 0.09 | 0.24 | <0.01 |
| Claude2 | 0.59 | 0.73 | 0.55 | 0.02 | 0.13 | <0.01 |
| Llama2-7b | 0.33 | 0.38 | 0.32 | 0.10 | 0.17 | <0.01 |
| Llama2-13b | 0.39 | 0.48 | 0.36 | 0.05 | 0.10 | <0.01 |
| Self-consistency | 0.74 | 0.93 | 0.69 | - | - | <0.01 |
| PharmacyGPT | 0.74 | 0.90 | 0.69 | - | - | 0.01 |
Comparison of LLMs to student performance on 120 multiple-choice questions.
ChatGPT-4-1S, GPT-4 with 1 shot CoT; ChatGPT-4-3S, GPT-4 with 3 shot CoT; ChatGPT-4-5S, GPT-4 with 5 shot CoT.
To further explore the performance across different questions, a heatmap of the average accuracy for each was plotted in Figure 1. This revealed that challenging questions for humans were not necessarily difficult for LLMs, and vice versa, suggesting differences in expertise alignment between LLMs and humans.
Figure 1
Discussion
This study compared the performance of ChatGPT-3.5, ChatGPT-4, Claude2, Llama2-7b, Llama2-13b, and a customized GPT-4 on multiple-choice questions related to critical care pharmacotherapy. The findings demonstrate that specific prompt engineering techniques, particularly the few-shot CoT and self-consistency approaches, enhanced the response accuracy of these language models. ChatGPT-4, in particular, exhibited the highest accuracy across different prompts, outperforming human pharmacy students on knowledge-based questions when advanced prompting techniques were used. LLMs showed worse performance on application based questions compared to pharmacy students, likely reflective of the difference between recall vs. application tasks.
Prompt engineering techniques enhanced performance. ChatGPT-4 showed marked improvements in response accuracy when using few-shot CoT prompting. This improvement underscores the importance of structured prompting in maximizing the utility of LLMs for complex question-answering tasks. The self-consistency approach also contributed to performance gains, albeit modestly. This incremental improvement highlights the potential for combining multiple advanced prompting techniques to optimize LLM outputs. Given that the variance in responses did not significantly decrease with CoT prompting, it is evident that while these techniques enhance accuracy, they do not necessarily stabilize the model’s performance across different runs. These findings align with previous research suggesting that incorporating domain-specific prompts and examples can significantly enhance the reasoning capabilities of LLMs (). For example, ChatGPT-4 outperformed residents on the Family Medicine In-Training Exam (86.5%) but struggled on gastroenterology and pediatric subspecialty exams, showing variability in outcomes across medical domains (; ). Furthermore, GPT-4’s performance was consistently higher in English-speaking environments, with 26 out of 29 passing cases globally, but it faced challenges in non-English settings, indicating the importance of language context in medical evaluations (). Currently, most LLMs are trained on general text datasets, with few designed specifically for medical applications. Consequently, even with advanced prompt engineering techniques, their performance remains limited due to bias and error propagation inherent in the training data (). Previous studies have shown that ChatGPT’s performance on medical exams varies by specialty; for instance, it achieved a passing grade on neurosurgery board finals but failed a gastroenterology board-like examination (). Similarly, GPT-4 excelled in psychiatry and general medicine on Israeli medical board exams, while performing less impressively in pediatrics and OB/GYN (). In ophthalmology exams, ChatGPT Plus showed better results in general medicine compared to subspecialties like neuro-ophthalmology, reflecting how performance varies across disciplines (; ). Customized models like PharmacyGPT demonstrate initial potential for developing LLMs tailored specifically for pharmacy applications (). Thus, gathering relevant pharmacy training data and designing and training dedicated medical LLMs combined with prompt engineering could improve performance.
Although students performed similarly on both recall and application questions, LLMs struggled more with application-based questions, even with prompt-engineering techniques. Recall-based questions typically demand factual recall or recognition. In contrast, application-based questions often require nuanced understanding and reasoning abilities to apply knowledge in complex scenarios, posing greater challenges for LLMs (). Students are specifically trained to develop these practical skills, whereas LLMs have limited exposure to such application-based questions during training, contributing to the performance gap between humans and LLMs (). The superior performance on knowledge-based questions suggests that LLMs have a great ability to retrieve and synthesize information from their training data, a task well-suited to their design and capabilities. Previous research has shown the utility of AI in clinical decision support systems, particularly in areas requiring rapid and precise information retrieval (; ). In contrast, pharmacy students, while knowledgeable, may not have the same depth and breadth of information readily accessible in their memory (). A possibility exists that lower performance (accuracy) and higher variance may exist over time for students, compared to a more stable level of performance for the LLMs.
This paper is the first to compare various prompt engineering techniques across different popular LLMs for answering pharmacy questions; however, this study has limitations. The focus was primarily on highly-structured, multiple-choice questions, whereas in real-world scenarios many questions remain open-ended and ill-structured. Furthermore, only popular decoder-based LLMs (Llama/ChatGPT) were included, which while it maximizes some elements of generalizability, improvements in LLMs are being made at regular increments. LLMs with other architectures, such as encoder-decoder models [T5 ()] and encoder-based models [BERT ()], have not been evaluated. Moreover, while peer-reviewed custom training materials were used, it is known that clinical practice variability, seen in the form of expert judgement, is present in both the materials and exam question answers. Overall, this study provides important groundwork for understanding how to incorporate LLMs into the realm of comprehensive medication management.
Conclusion
This study highlights the potential of LLMs, especially when equipped with advanced prompt engineering techniques, to support pharmacists in knowledge-based decision-making scenarios. These findings underscore the importance of developing and refining LLMs for specialized medical fields to enhance clinical decision support systems. These findings support the need for future assessment of customized training for the type of output needed and emphasize that reliability of LLMs is currently only supported with recall-based questions.
Statements
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Author contributions
HY: Formal analysis, Methodology, Writing – original draft. MH: Data curation, Formal analysis, Methodology, Writing – original draft. AM: Data curation, Methodology, Visualization, Writing – original draft. WH: Supervision, Writing – review & editing. BM: Data curation, Methodology, Writing – review & editing. SS: Data curation, Methodology, Supervision, Writing – review & editing. SL: Supervision, Writing – review & editing. AS: Conceptualization, Formal analysis, Funding acquisition, Methodology, Supervision, Writing – original draft, Writing – review & editing.
Funding
The author(s) declare financial support was received for the research, authorship, and/or publication of this article. Funding through Agency of Healthcare Research and Quality for Drs. Sikora, Smith, and Li were provided through R01HS029009.
Acknowledgments
The authors acknowledge William Hsieh for assistance with creating figures for this article.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declare that no Gen AI was used in the creation of this manuscript.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frai.2024.1514896/full#supplementary-material
References
1
AbbasA.RehmanM. S.RehmanS. S. (2024). Comparing the performance of popular large language models on the National Board of medical examiners sample questions. Cureus16:e55991. doi: 10.7759/cureus.55991
2
AntakiF.ToumaS.MiladD.El-KhouryJ.DuvalR. (2023). Evaluating the performance of ChatGPT in ophthalmology: an analysis of its successes and shortcomings. Ophthalmol Sci.3:100324. doi: 10.1016/j.xops.2023.100324
3
BenaryM.WangX. D.SchmidtM.SollD.HilfenhausG.NassirM.et al. (2023). Leveraging large language models for decision support in personalized oncology. JAMA Netw. Open6:e2343689. doi: 10.1001/jamanetworkopen.2023.43689
4
BommasaniR.LiangB.LeeT. (2023). Holistic evaluation of language models. Ann. N. Y. Acad. Sci.1525, 140–146. doi: 10.1111/nyas.15007
5
BrananT. N.DarleyA.HawkinsW. A. (2024). How critical is it? Integrating critical care into the pharmacy didactic curriculum. Am. J. Health Syst. Pharm.81, 871–875. doi: 10.1093/ajhp/zxae153
6
BrownT. B.MannB.RyderN.SubbiahM.KaplanJ. D.DhariwalP.et al. (2020). Language models are few-shot learners. arXiv:2005.14165.
7
BužančićI.BelecD.DržaićM.KummerI.BrkićJ.FialováD.et al. (2024). Clinical decision making in benzodiazepine deprescribing by healthcare providers vs AI-assisted approach. Br. J. Clin. Pharmacol.90, 662–674. doi: 10.1111/bcp.15963
8
ChowdheryA.NarangS.DevlinJ.BosmaM.MishraG.RobertsA.et al. (2022). PaLM: scaling language modeling with pathways. arXiv:2204.02311.
9
DevlinJ.ChangM. W.LeeK.ToutanovaK. (2018). BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv. doi: 10.48550/arXiv.1810.04805
10
GuanZWuZLiuZet al. CohortGPT: An enhanced GPT for participant recruitment in clinical study. (2023). Available at:https://arxiv.org/abs/2307.11346v1
11
GuX.ChenM.LinY.HuY.ZhangH.WanC.et al. (2024). On the effectiveness of large language models in domain-specific code generation. arXiv:2312.01639.
12
HannaR. E.SmithL. R.MhaskarR.HannaK. (2024). Performance of language models on the family medicine in-training exam. Fam. Med.56, 555–560. doi: 10.22454/FamMed.2024.233738
13
HawkinsW. A.PalmerR. (2024). Cultivating expert thinking skills for experiential pharmacy trainees. Am. J. Health Syst. Pharm. doi: 10.1093/ajhp/zxae366
14
HolmesJ.LiuZ.ZhangL.DingY.SioT. T.McGeeL. A.et al. (2023). Evaluating large language models on a highly-specialized topic, radiation oncology physics. Front. Oncol.13. doi: 10.3389/fonc.2023.1219326
15
HsuH. Y.HsuK. C.HouS. Y.WuC. L.HsiehY. W.ChengY. D. (2023). Examining real-world medication consultations and drug-herb interactions: ChatGPT performance evaluation. JMIR Med. Educ.9:e48433. doi: 10.2196/48433
16
HuY.ChenQ.duJ.PengX.KelothV.ZuoX.et al. (2024). Improving large language models for clinical named entity recognition via prompt engineering. J. Am. Med. Inform. Assoc.31, 1812–1820. doi: 10.1093/jamia/ocad259
17
KanjeeZ.CroweB.RodmanA. (2023). Accuracy of a generative artificial intelligence model in a complex diagnostic challenge. JAMA330, 78–80. doi: 10.1001/jama.2023.8288
18
KatzU.CohenE.ShacharE.SomerJ.FinkA.MorseE.et al. (2024). GPT versus resident physicians: a benchmark based on official board scores. NEJM AI1. doi: 10.1056/AIdbp2300192
19
KunitsuY. (2023). The potential of GPT-4 as a support tool for pharmacists: analytical study using the Japanese National Examination for pharmacists. JMIR Med. Educ.9:e48452. doi: 10.2196/48452
20
LiuM.OkuharaT.ChangX.ShirabeR.NishiieY.OkadaH.et al. (2024). Performance of ChatGPT across different versions in medical licensing examinations worldwide: systematic review and meta-analysis. J. Med. Internet Res.26:e60807. doi: 10.2196/60807
21
LiuZWuZHuMet al. PharmacyGPT: The AI pharmacist. 20, (2023). Accessed May 27, 2024. Available at: http://arxiv.org/abs/2307.10432
22
LiuPYuanWFuJJiangZHayashiHNeubigG. Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing. (2021). Available at:https://arxiv.org/abs/2107.13586v1
23
MaC.WuZ.WangJ.XuS.WeiY.LiuZ.et al. (2024). An iterative optimizing framework for radiology report summarization with ChatGPT. arXiv:2304.08448.
24
NaveedH.KhanA. U.QiuS.et al. (2023). A comprehensive overview of large language models. arXiv. doi: 10.48550/arXiv.2307.06435
25
PryzantRIterDLiJLeeYTZhuCZengM. Automatic prompt optimization with “gradient descent” and beam search. (2023). Available at:https://arxiv.org/abs/2305.03495v2
26
RaeJ. W.BorgeaudS.CaiT.et al. (2022). Scaling language models: methods, analysis & insights from training gopher. arXiv. doi: 10.48550/arXiv.2112.11446
27
RaffelC.ShazeerN.RobertsA.LeeK.NarangS.MatenaM.et al. (2019). Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv:1910.10683.
28
SallamM. (2023). ChatGPT utility in healthcare education, research, and practice: systematic review on the promising perspectives and valid concerns. Healthcare (Basel)11:887. doi: 10.3390/healthcare11060887
29
SikoraA. (2023). Critical care pharmacists: a focus on horizons. Crit. Care Clin.39, 503–527. doi: 10.1016/j.ccc.2023.01.006
30
SmithJ.ChoiP. M.BuntineP. (2023). Will code one day run a code? Performance of language models on ACEM primary examinations and implications. Emerg. Med. Australas.35, 876–878. doi: 10.1111/1742-6723.14280
31
SunHLiXXuYet al. AutoHint: automatic prompt optimization with hint generation. (2023). Available at:https://arxiv.org/abs/2307.07415v2
32
TariqR. A.VashishtR.SinhaA.ScherbakY. (2024). “Medication dispensing errors and prevention” in StatPearls, vol. 73 (StatPearls Publishing), 171–184. Available at:http://www.ncbi.nlm.nih.gov/books/NBK519065/
33
TopolE. J. (2019). High-performance medicine: the convergence of human and artificial intelligence. Nat. Med.25, 44–56. doi: 10.1038/s41591-018-0300-7
34
UllahE.ParwaniA.BaigM. M.SinghR. (2024). Challenges and barriers of using large language models (LLM) such as ChatGPT for diagnostic medicine with a focus on digital pathology – a recent scoping review. Diagn. Pathol.19:43. doi: 10.1186/s13000-024-01464-7
35
WangXWeiJSchuurmansDet al. Self-consistency improves chain of thought reasoning in language models. (2022). Available at:https://arxiv.org/abs/2203.11171v4
36
WeiJ.BosmaM.ZhaoV. Y.et al. (2022a). Finetuned language models are zero-shot learners. arXiv. doi: 10.48550/arXiv.2109.01652
37
WeiJTayYBommasaniRet al. Emergent abilities of large language models. (2022b). Available at:https://arxiv.org/abs/2206.07682v2
38
WeiJ.WangX.SchuurmansD.et al. (2023). Chain-of-thought prompting elicits reasoning in large language models. arXiv. doi: 10.48550/arXiv.2201.11903
39
YangJ.JinH.TangR.HanX.FengQ.JiangH.et al. (2023). Harnessing the power of LLMs in practice: a survey on ChatGPT and beyond. arXiv:2304.13712.
40
YeS.KimD.KimS.HwangH.KimS.JoY.et al. (2024). FLASK: Fine-grained language model evaluation based on alignment skill sets. arXiv:2307.10928.
41
YuK. H.BeamA. L.KohaneI. S. (2018). Artificial intelligence in healthcare. Nat. Biomed. Eng.2, 719–731. doi: 10.1038/s41551-018-0305-z
Summary
Keywords
large language model, artificial intelligence, pharmacy, education, critical care, medical education, higher education, machine learning
Citation
Yang H, Hu M, Most A, Hawkins WA, Murray B, Smith SE, Li S and Sikora A (2025) Evaluating accuracy and reproducibility of large language model performance on critical care assessments in pharmacy education. Front. Artif. Intell. 7:1514896. doi: 10.3389/frai.2024.1514896
Received
21 October 2024
Accepted
23 December 2024
Published
09 January 2025
Volume
7 - 2024
Edited by
Kezhi Li, University College London, United Kingdom
Reviewed by
Jose Amilcar Rizzo Sierra, Polytechnic University of Querétaro, Mexico
Murat Kirisci, Istanbul University-Cerrahpasa, Türkiye
Updates
Copyright
© 2025 Yang, Hu, Most, Hawkins, Murray, Smith, Li and Sikora.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Huibo Yang, aqf7bf@virginia.eduMengxuan Hu, qtq7su@virginia.edu
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.