arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.07128cs.CLcs.AI
收藏

EHRAgent:代码赋能大语言模型实现电子健康记录上的少样本复杂表格推理

EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Records

Georgia Institute of Technology(佐治亚理工学院);Emory University(埃默里大学);University of Washington(华盛顿大学)

Wenqi Shi, Ran Xu, Yuchen Zhuang, Yue Yu, Jieyu Zhang, Hang Wu, Yuanda Zhu, Joyce Ho, Carl Yang, May D. Wang

AI总结:

针对大语言模型在医疗问题解决领域应用不足的问题,提出搭载代码接口、带长期记忆的EHRAgent智能体,通过任务分解、迭代纠错代码实现EHR多表格推理,在三个真实数据集上成功率最高超最强基线29.6%。

摘要:

大语言模型(LLM)作为自主智能体在规划与工具使用方面展现出卓越能力,但针对医疗问题解决开发的模型仍较少。我们提出EHRAgent——一种搭载代码接口的LLM智能体,可自主生成并执行代码以完成电子健康记录(EHR)内的多表格推理。首先,我们将EHR问答任务转化为工具使用规划流程,将复杂任务高效分解为一系列可管理的操作。通过整合交互式编码与执行反馈,EHRAgent能从错误信息中学习,并通过迭代优化初始生成的代码。此外,我们通过引入长期记忆增强该LLM智能体,使EHRAgent能够有效选择过往经验中最相关的成功案例并加以借鉴。在三个真实多表格EHR数据集上的实验表明,EHRAgent的成功率比最强基线高出最高29.6%。EHRAgent利用LLM新兴的少样本学习能力,仅需极少示例即可通过自主代码生成与执行处理复杂临床任务。

英文摘要:

Large language models (LLMs) have demonstrated exceptional capabilities in planning and tool utilization as autonomous agents, but few have been developed for medical problem-solving. We propose EHRAgent, an LLM agent empowered with a code interface, to autonomously generate and execute code for multi-tabular reasoning within electronic health records (EHRs). First, we formulate an EHR question-answering task into a tool-use planning process, efficiently decomposing a complicated task into a sequence of manageable actions. By integrating interactive coding and execution feedback, EHRAgent learns from error messages and improves the originally generated code through iterations. Furthermore, we enhance the LLM agent by incorporating long-term memory, which allows EHRAgent to effectively select and build upon the most relevant successful cases from past experiences. Experiments on three real-world multi-tabular EHR datasets show that EHRAgent outperforms the strongest baseline by up to 29.6% in success rate. EHRAgent leverages the emerging few-shot learning capabilities of LLMs, enabling autonomous code generation and execution to tackle complex clinical tasks with minimal demonstrations.

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

↑