Objective

Large language models (LLMs) are AI programs that read and write text. They have done well on medical licensing exams and on diagnosis questions. Those tasks usually have one clear right answer. Medication management for very sick patients is less tidy. A pharmacist must weigh the risks and benefits of several drugs at once, and more than one plan can be reasonable. Patients in intensive care take many medicines at the same time, which raises the chance of mistakes.

The researchers wanted to know how well several popular LLMs handle the kind of multiple-choice questions given to Doctor of Pharmacy students in critical care courses. This is a first step toward judging whether such tools could ever support pharmacists or help teach them.

The study asked these questions:

  • Which LLM answers critical care pharmacy questions most accurately, and how steady are its answers across repeated tries?
  • Do prompt engineering techniques (ways of wording a request, such as asking the model to reason step by step) raise accuracy?
  • Does a custom chatbot trained on pharmacy course materials do better?
  • How do the models compare with pharmacy students, on recall questions versus questions that apply knowledge?

Methods

This was a comparison study that tested software on exam questions. It can show how well each model scored on these questions. It cannot show how the tools would work with real patients or in a live classroom.

The team collected 219 multiple-choice questions used in Doctor of Pharmacy courses at two accredited colleges of pharmacy. The questions were written for third-year students. Of these, 99 came from a critical care elective course and 120 from a critical care module in the core pharmacotherapy series. Each question had four answer choices, and images were turned into text. The questions were sorted into 51 knowledge (recall) questions and 168 skill (application) questions, where application questions use knowledge on simple patient cases. Course coordinators, who are content experts, set the correct answers.

The models were ChatGPT-3.5, ChatGPT-4, Claude 2, Llama2-7b and Llama2-13b, plus a custom ChatGPT called PharmacyGPT that was trained on pharmacy course materials. Every model was asked the full question set five separate times.

For ChatGPT-4 the team tried several prompting methods: a starting prompt that set the scene as a pharmacy exam, a zero-shot chain-of-thought prompt (adding a line asking the model to think step by step), few-shot chain-of-thought (giving worked examples first, tested with 1, 3 and 5 examples), and self-consistency (taking the answer chosen most often across the five tries).

Accuracy was the share of correct answers. Variance showed how much answers changed between runs. Student results were available for 120 questions from one year of the core course. Groups were compared with two-sided t-tests, with a 0.05 cutoff for significance. The paper does not mention ethics approval.

Key Findings

ChatGPT-4 was the most accurate model, prompt wording helped it somewhat, and models did better on recall than on application questions. Students beat every model on application questions.

Model comparison

  • With the starting prompt, ChatGPT-4 reached 71.6% accuracy, with a variance of 0.14.
  • Averages for the others, as shown in the paper's table: ChatGPT-3.5 at 54%, Claude 2 at 61%, Llama2-7b at 36% and Llama2-13b at 41%.
  • Llama2-13b had the lowest variance (0.070), meaning its answers changed least between runs, but its accuracy was limited at 41.5%.
  • ChatGPT-4 scored significantly higher than each of the other four models.

Recall versus application

  • Every model scored higher on recall questions than on application questions. ChatGPT-4 got 87% of recall questions right and 67% of application questions.
  • Variance mostly went the other way: all models except Llama2-7b gave steadier answers on recall questions and less steady answers on application questions.

Prompt techniques

  • Adding a step-by-step line (zero-shot chain-of-thought) changed little.
  • Few-shot chain-of-thought raised ChatGPT-4 from 71.5% to a high of 77.4% (p below 0.001). More examples gave better scores, and the best result came with five examples. Variance did not drop.
  • Self-consistency added about 2 percentage points on top of five-shot prompting (75% against about 73% for five-shot prompting alone, p = 0.03).
  • PharmacyGPT beat ChatGPT-4 with the starting prompt on recall questions (90% vs 84%, p = 0.0310) and on application questions (69% vs 60%, p = 0.0032).

Compared with students (120 questions)

  • Overall, students scored 81%. The best models scored 73% to 74% overall.
  • On recall questions, the self-consistency setup beat students (93% vs 84%, p = 0.05).
  • On application questions, students did better than every model. The best setup scored 69% against 80% for students (p = 0.024).
  • A heat map suggested that questions hard for students were not always hard for the models, and the reverse.

What the pattern means in plain terms

The gaps were not small. A model that answers about 7 in 10 questions correctly would still miss a large share of an exam. Prompt techniques helped the best model by a few points, which is useful but did not close the distance to students on case-based questions. Repeating the same question five times did not give identical answers, so one run alone can mislead.

Implications

The authors conclude that chatbots look reliable only for recall-based questions and that using them for harder pharmacy tasks needs more testing.

Pharmacy educators

The authors suggest that these tools could support pharmacists in decisions that rest on knowledge. Our reading (not the authors' recommendation): an instructor could use a chatbot as a quick fact-checker or study aid for recall material, but should not hand it questions about applying knowledge to cases without checking the answer.

Students

Our reading (not the authors' recommendation): the results hint that students can trust a chatbot's recall answers a little more than its case-based answers. Even on recall, the best score was 93%, so some answers were wrong.

Exam writers and school leaders

Our reading (not the authors' recommendation): because the models were weaker on application questions, case-based items may be harder to answer with a chatbot than simple recall items. The study did not test cheating, so this is only a guess.

Developers and researchers

The authors say the custom PharmacyGPT shows early promise, and that building medical models with pharmacy training data plus careful prompting could help. They also call for testing customized training for the type of output needed. The evidence is thin for firm advice, since this was one set of questions at two colleges.

Our reading (not the authors' recommendation): any program that lets students use chatbots for study should tell them plainly that recall answers are more dependable than case-based ones, and should have them check answers against course materials.

Limitations

The authors name several limits. The questions were highly structured multiple-choice items, while real pharmacy questions are often open-ended and messy. Only popular models of one design (the Llama and ChatGPT kind) were tested, and models change quickly. Expert judgment varies in clinical practice, so the course materials and the answer keys could themselves reflect different views.

The paper does not mention, but the student comparison covered only 120 questions from one year of one course, so it may not reflect other classes or years.

The paper does not mention, but the application questions were far more numerous (168) than the recall questions (51), so the recall results rest on fewer items.

The paper does not mention, but a few details are inconsistent. The abstract names five models while the methods list six, and the table labels for knowledge and skill questions do not always match. Readers should treat small gaps with care.

The paper does not mention, but the study did not test how students would use these tools or whether using them changes learning.

Future Directions

The authors say future work should look at how customized training can match the type of output needed. The study also leaves open questions:

  • Can models trained on pharmacy materials close the gap with students on application questions?
  • How do LLMs perform on open-ended, ill-structured questions, which are closer to real practice?
  • Do other model designs, such as encoder-decoder and encoder-based models, give different results?
  • How do newer model versions compare, given that models are updated often?
  • What explains the pattern in which questions hard for students are not always hard for models?
  • How would results change if the same test were run with students from other colleges and other years?
  • Would asking the models to explain their reasoning in more detail help students spot wrong answers?

The bottom line: On 219 critical care pharmacy questions, ChatGPT-4 was the best model at 71.6%, and worked examples in the prompt raised it to 77.4%. Models matched or beat students on recall questions, but students led on questions that apply knowledge to patient cases. The evidence comes from one question set at two colleges, with a student comparison on only 120 questions. For now, a chatbot looks useful for recall help and should be checked carefully on case-based work, since the evidence is limited to this one set of questions.