DrugRAG: 通过一种新颖的检索增强生成流水线提升药学LLM性能
DrugRAG: Enhancing Pharmacy LLM Performance Through A Novel Retrieval-Augmented Generation Pipeline
AI总结:
本研究评估了大型语言模型在药学执业资格问答任务中的性能,并开发了一种外部知识整合方法以提高准确性,通过DrugRAG流水线整合结构化药物知识,从而提升药学相关问答任务的LLM性能。
摘要:
在本研究中,我们评估了大型语言模型(LLM)在药学执业资格问答任务中的性能,并开发了一种外部知识整合方法以提高准确性。我们使用一个包含141个问题的药学数据集,对十个参数规模不同的LLM(8十亿到70十亿以上)进行了基准测试,测量了基线准确性。基线性能范围从46%到92%,其中GPT-5(92%)和o3(89%)取得了最高分数,而较小的开源模型表现显著较低。然后,我们开发了DrugRAG,一种三步检索增强生成(RAG)流水线,该流水线检索结构化、基于证据的药物信息,并将上下文药理学证据添加到模型提示中,该流水线在模型架构或参数无需更改的情况下外部运行。DrugRAG在所有五个评估模型上均提高了准确性,提升幅度范围从7到21个百分点(例如,Gemma 3 27B:61.0%到71%,Llama 3.1 8B:46%到67%)。McNemar分析显示,这些改进在较小和中等规模的开源模型中具有统计学显著性。这些发现表明,通过DrugRAG整合结构化外部药物知识可以提高LLM在药学相关问答任务中的性能,而无需修改底层模型,为提升基于证据的药学相关AI应用提供了实用的流水线。
英文摘要:
In our study, we evaluated large language model (LLM) performance on pharmacy licensure-style question-answering tasks and developed an external knowledge integration method to improve accuracy. We benchmarked ten LLMs with varying parameter sizes (8 billion to 70+ billion) using a 141-question pharmacy dataset, measuring baseline accuracy without modification. Baseline performance ranged from 46% to 92%, with GPT-5 (92%) and o3 (89%) achieving the highest scores, while smaller open-source models showed substantially lower performance. We then developed DrugRAG, a three-step retrieval-augmented generation (RAG) pipeline that retrieves structured, evidence-based drug information and augments model prompts with contextual pharmacological evidence, operating externally and requiring no changes to model architecture or parameters. DrugRAG increased accuracy across all five evaluated models, with gains ranging from 7 to 21 percentage points (e.g., Gemma 3 27B: 61.0% to 71%, Llama 3.1 8B: 46% to 67%). McNemar analyses demonstrated statistically significant paired improvements primarily in smaller and mid-sized open-source models. These findings demonstrate that integrating structured external drug knowledge via DrugRAG can improve LLM performance on pharmacy-focused question-answering tasks without modifying the underlying models, providing a practical pipeline for enhancing evidence-based pharmacy-focused AI applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。