arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.16178cs.LGcs.AIcs.CE
收藏

Context Clues:面向电子健康记录临床预测任务的长上下文模型评估

Context Clues: Evaluating Long Context Models for Clinical Prediction Tasks on EHRs

Stanford University(斯坦福大学);Prealize Health(普瑞拉利兹健康)

Michael Wornow, Suhana Bedi, Miguel Angel Fuentes Hernandez, Ethan Steinberg, Jason Alan Fries, Christopher Re, Sanmi Koyejo, Nigam H. Shah

AI总结:

该研究首次系统评估上下文长度对电子健康记录(EHR)数据建模的影响,验证了长上下文模型(如基于Mamba的模型)在EHRSHOT基准上的性能优势及对EHR三类独特属性的更强鲁棒性,为EHR长序列建模提供了参考。

摘要:

基于电子健康记录(EHR)训练的基础模型(FMs)已在众多临床预测任务上取得了当前最优结果。然而,现有大多数EHR基础模型的上下文窗口不足1000个token,这使其无法对可能包含超过1万个事件的完整患者EHR进行建模。亚二次长上下文架构(如Mamba)的最新进展提供了一种有前景的解决方案,但这类架构在EHR数据上的应用尚未得到充分研究。\n我们填补了这一空白,首次对上下文长度对EHR数据建模的影响进行了系统性评估。研究发现,更长的上下文模型能够提升预测性能——我们基于Mamba的模型在EHRSHOT预测基准的14项任务中,有9项超越了此前的最优水平。\n但对于临床应用而言,仅靠模型性能是不够的——对EHR独特属性的鲁棒性至关重要。因此,我们还针对EHR数据三个此前研究不足的属性对模型进行了评估:(1)“复制转发”诊断的普遍性,这会导致EHR序列内出现token的人工重复;(2)EHR事件之间的不规则时间间隔,这会使上下文窗口内的时间跨度差异很大;(3)疾病复杂度随时间的自然增加,这使得EHR中后期的token比早期的更难预测。\n对EHRSHOT结果进行分层分析后我们发现,上述每种属性的程度越高,与模型性能的负相关性就越强,但长上下文模型对这些属性的更极端水平具有更强的鲁棒性。我们的工作凸显了使用长上下文架构进行EHR数据建模的潜力,也为识别由自然语言以外领域驱动的序列数据建模新挑战提供了案例研究。我们的模型和代码已发布于:https://github.com/som-shahlab/long_context_clues

英文摘要:

Foundation Models (FMs) trained on Electronic Health Records (EHRs) have achieved state-of-the-art results on numerous clinical prediction tasks. However, most existing EHR FMs have context windows of <1k tokens. This prevents them from modeling full patient EHRs which can exceed 10k's of events. Recent advancements in subquadratic long-context architectures (e.g., Mamba) offer a promising solution. However, their application to EHR data has not been well-studied. We address this gap by presenting the first systematic evaluation of the effect of context length on modeling EHR data. We find that longer context models improve predictive performance -- our Mamba-based model surpasses the prior state-of-the-art on 9/14 tasks on the EHRSHOT prediction benchmark. For clinical applications, however, model performance alone is insufficient -- robustness to the unique properties of EHR is crucial. Thus, we also evaluate models across three previously underexplored properties of EHR data: (1) the prevalence of "copy-forwarded" diagnoses which creates artificial repetition of tokens within EHR sequences; (2) the irregular time intervals between EHR events which can lead to a wide range of timespans within a context window; and (3) the natural increase in disease complexity over time which makes later tokens in the EHR harder to predict than earlier ones. Stratifying our EHRSHOT results, we find that higher levels of each property correlate negatively with model performance, but that longer context models are more robust to more extreme levels of these properties. Our work highlights the potential for using long-context architectures to model EHR data, and offers a case study for identifying new challenges in modeling sequential data motivated by domains outside of natural language. We release our models and code at: https://github.com/som-shahlab/long_context_clues

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

↑