arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.16416cs.CL
收藏

通过提示工程改进大型语言模型在临床命名实体识别中的表现

Improving Large Language Models for Clinical Named Entity Recognition via Prompt Engineering

University of Texas Health Science at Houston(德克萨斯大学休斯顿健康科学中心);Yale University(耶鲁大学);National Institutes of Health(美国国立卫生研究院)

Yan Hu, Qingyu Chen, Jingcheng Du, Xueqing Peng, Vipina Kuttichi Keloth, Xu Zuo, Yujia Zhou, Zehan Li, Xiaoqian Jiang, Zhiyong Lu, Kirk Roberts, Hua Xu

AI总结:

本研究针对 GPT-3.5 和 GPT-4 在临床命名实体识别中的不足,提出融合任务描述、标注指南、错误分析和少样本标注的提示框架,在 MTSamples 和 VAERS 上显著提升 F1 分数,验证了其临床应用潜力。

摘要:

目的:本研究量化了 GPT-3.5 和 GPT-4 在临床命名实体识别(NER)任务中的能力,并提出了任务特定的提示以提升其性能。材料与方法:我们在两个临床 NER 任务上评估了这些模型:(1)按照 2010 年 i2b2 概念提取共享任务,从 MTSamples 语料库的临床笔记中提取医疗问题、治疗和检查;(2)从疫苗不良事件报告系统(VAERS)的安全报告中识别与神经系统疾病相关的不良事件。为了提升 GPT 模型的性能,我们开发了一个临床任务特定的提示框架,包括(1)带有任务描述和格式规范的基线提示,(2)基于标注指南的提示,(3)基于错误分析的指令,以及(4)用于少样本学习的标注样本。我们评估了每个提示的有效性,并将这些模型与 BioClinicalBERT 进行了比较。结果:使用基线提示时,GPT-3.5 和 GPT-4 在 MTSamples 上取得了 0.634 和 0.804 的宽松 F1 分数,在 VAERS 上取得了 0.301 和 0.593 的宽松 F1 分数。额外的提示组件持续提升了模型性能。当使用全部四个组件时,GPT-3.5 和 GPT-4 在 MTSamples 上取得了 0.794 和 0.861 的宽松 F1 分数,在 VAERS 上取得了 0.676 和 0.736 的宽松 F1 分数,证明了我们提示框架的有效性。尽管这些结果落后于 BioClinicalBERT(在 MTSamples 数据集上 F1 为 0.901,在 VAERS 上为 0.802),但考虑到所需训练样本很少,这一结果非常有前景。结论:虽然将 GPT 模型直接应用于临床 NER 任务尚未达到最优性能,但我们的任务特定提示框架通过融入医学知识和训练样本,显著增强了 GPT 模型在潜在临床应用中的可行性。

英文摘要:

Objective: This study quantifies the capabilities of GPT-3.5 and GPT-4 for clinical named entity recognition (NER) tasks and proposes task-specific prompts to improve their performance. Materials and Methods: We evaluated these models on two clinical NER tasks: (1) to extract medical problems, treatments, and tests from clinical notes in the MTSamples corpus, following the 2010 i2b2 concept extraction shared task, and (2) identifying nervous system disorder-related adverse events from safety reports in the vaccine adverse event reporting system (VAERS). To improve the GPT models' performance, we developed a clinical task-specific prompt framework that includes (1) baseline prompts with task description and format specification, (2) annotation guideline-based prompts, (3) error analysis-based instructions, and (4) annotated samples for few-shot learning. We assessed each prompt's effectiveness and compared the models to BioClinicalBERT. Results: Using baseline prompts, GPT-3.5 and GPT-4 achieved relaxed F1 scores of 0.634, 0.804 for MTSamples, and 0.301, 0.593 for VAERS. Additional prompt components consistently improved model performance. When all four components were used, GPT-3.5 and GPT-4 achieved relaxed F1 socres of 0.794, 0.861 for MTSamples and 0.676, 0.736 for VAERS, demonstrating the effectiveness of our prompt framework. Although these results trail BioClinicalBERT (F1 of 0.901 for the MTSamples dataset and 0.802 for the VAERS), it is very promising considering few training samples are needed. Conclusion: While direct application of GPT models to clinical NER tasks falls short of optimal performance, our task-specific prompt framework, incorporating medical knowledge and training samples, significantly enhances GPT models' feasibility for potential clinical applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑