Performance of Large Language Models on Pharmacy Exam: A Comparative Assessment Using the NAPLEX

Mirana Angel, Haiyi Xing, Anuj Patel, Amal Alachkar, Pierre BaldibioRxiv 2023

TL;DR

This paper evaluates the performance of six Large Language Models (LLMs) on the North American Pharmacist Licensure Examination (NAPLEX), a critical test for pharmacy licensure. The study reveals significant performance disparities among LLMs, with GPT-4 emerging as the clear leader, being the only model to achieve a passing score. This highlights the growing potential of LLMs in specialized professional fields and the need to consider their integration into pharmacy education and practice.

What Problem Does This Paper Address?

While Large Language Models (LLMs) have shown impressive capabilities across various domains, their application and performance in specialized fields like pharmacy remain relatively unexplored. The North American Pharmacist Licensure Examination (NAPLEX) is a rigorous assessment designed to ensure that candidates possess the necessary knowledge and skills to practice pharmacy safely and effectively. This paper addresses the question of how well current LLMs can perform on such a high-stakes, specialized exam, and what this implies for the future of pharmacy education and practice. The authors aim to bridge this knowledge gap by evaluating LLMs' reasoning abilities on NAPLEX-style questions.

Methods

The researchers evaluated six LLMs: GPT-3.5 (multiple variants), GPT-4, Llama-2 (7B, 13B, 70B parameters, both chat-finetuned and non-chat-finetuned), and Mistral-7B (instruct version). They employed a "zero-shot prompting" methodology, meaning the LLMs were given questions without any prior examples or context to guide their responses. This approach was chosen to assess the models' inherent capabilities. The LLMs were presented with 225 multiple-choice questions from the APhA Complete Review for Pharmacy. Answers were then compared against the provided answer key. A classification system was used to categorize responses as "Correct," "False," or "Unanswered," with specific criteria for determining an "Unanswered" response (e.g., providing a hint but not a direct answer).

Datasets

The primary dataset used for evaluation consisted of 225 multiple-choice questions sourced from the "APhA Complete Review for Pharmacy, 13th Edition | Pharmacy Library." This dataset is designed to prepare individuals for the standard NAPLEX examination. No new benchmarks were introduced; the study utilized an existing resource representative of the NAPLEX.

Key Insights and Ideas

  • GPT-4 is the current champion: The study unequivocally demonstrates that GPT-4 significantly outperforms other evaluated LLMs on the NAPLEX, being the only model to achieve a passing score. This suggests that model scale and architecture play a crucial role in handling complex, domain-specific knowledge.
  • Chat-finetuning matters: Chat-finetuned versions of models, particularly Llama-2 and Mistral, showed improved performance compared to their non-finetuned counterparts. This indicates that training LLMs for conversational and Q&A formats enhances their ability to tackle exam-style questions, even when the underlying knowledge base is the same.
  • Model size correlates with performance: A clear positive correlation was observed between model size (parameter count) and accuracy, especially within the same model family (e.g., Llama-2). Larger models generally performed better, suggesting that increased capacity for learning complex patterns is beneficial.
  • A threshold for understanding: The research hints at a potential threshold in model size (around 150 billion parameters) beyond which performance significantly improves in understanding complex queries. This implies that smaller models may struggle with the depth and breadth of knowledge required for such exams.
  • Beyond memorization: While LLMs can pass exams, the paper raises the crucial point of differentiating memorized knowledge from practical application and nuanced judgment, which are essential in patient care.

Key Results

  • GPT-4: Achieved an accuracy of 87.1% and was the only model to pass the NAPLEX exam.
  • GPT-3.5 Series: Showed accuracies ranging from 67.6% to 67.6%, with GPT-3.5-0301 being the only variant to answer all questions.
  • Llama-2-70B-chat: Performed best among the Llama-2 models with 48.0% accuracy.
  • Mistral-7B-instruct: Achieved 39.1% accuracy.
  • Smaller models (e.g., Llama-2-7B, Mistral-7B): Exhibited significantly lower accuracies, with some falling below 15%.
  • Unanswered Questions: The number of unanswered questions varied greatly, with larger and more capable models leaving fewer unanswered questions. GPT-4 left only one unanswered question, while some smaller models left over 100.

Limitations and Future Work

The authors acknowledge that their study used a sample of NAPLEX questions, not the entire exam, and that passing a sample does not guarantee passing the actual licensure exam. They also note that the performance of LLMs can be influenced by various factors, including prompt engineering and the specific training data used.

Future work could involve:

  • Evaluating LLMs on a more comprehensive set of NAPLEX questions or actual exam data.
  • Exploring different prompting strategies to further optimize LLM performance.
  • Investigating the ethical implications and practical integration of LLMs into pharmacy education and practice, focusing on how they can complement human expertise rather than replace it.
  • Addressing the challenge of LLMs' inability to access recent data, which is critical for time-sensitive matters in pharmacy.
  • Developing strategies to mitigate potential negative impacts of LLM reliance, such as promoting critical thinking and information literacy among students.

Summary updated

BibTeX
@misc{angel2023performance,
  author = {Mirana Angel and Haiyi Xing and Anuj Patel and Amal Alachkar and Pierre Baldi},
  title = {{Performance of Large Language Models on Pharmacy Exam: A Comparative Assessment Using the NAPLEX}},
  year = {2023},
  doi = {10.1101/2023.12.06.570434},
  howpublished = {bioRxiv},
}
Figure