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

OpenTSLM:用于多变量医学文本和时间序列数据推理的时间序列语言模型

OpenTSLM: Time-Series Language Models for Reasoning over Multivariate Medical Text- and Time-Series Data

Stanford Mussallem Center for Biodesign(斯坦福 Mussallem 生物设计中心);Centre for Digital Health Interventions(数字健康干预中心);Agentic Systems Lab(代理系统实验室);National University of Singapore(新加坡国立大学);Microsoft(微软);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Google Research(谷歌研究);Stanford University(斯坦福大学);Amazon(亚马逊);Division of Cardiovascular Medicine(心血管医学部);Division of Cardiology(心内科部);Pediatric Cardiology(儿童心内科);University of Washington(华盛顿大学)
Patrick Langer, Thomas Kaar, Max Rosenblattl, Maxwell A. Xu, Winnie Chow, Martin Maritsch, Robert Jakob, Ning Wang, Juncheng Liu, Aradhana Verma, Brian Han, Dan… 展开作者

Patrick Langer, Thomas Kaar, Max Rosenblattl, Maxwell A. Xu, Winnie Chow, Martin Maritsch, Robert Jakob, Ning Wang, Juncheng Liu, Aradhana Verma, Brian Han, Daniel Seung Kim, Henry Chubb, Scott Ceresnak, Aydin Zahedivash, Alexander Tarlochan Singh Sandhu, Fatima Rodriguez, Daniel McDuff, Elgar Fleisch, Oliver Aalami, Filipe Barata, Paul Schmiedmayer

AI总结:

OpenTSLM通过整合时间序列作为原生模态,提升对多变量医学文本和时间序列数据的推理能力,其模型在多个任务中均优于基线模型。

摘要:

大型语言模型(LLMs)已逐渐成为解读多模态数据的强大工具。在医学领域,它们特别有潜力将大量临床信息综合成可操作的见解和数字健康应用。然而,一个主要的限制仍然是它们无法处理时间序列。为克服这一差距,我们提出了OpenTSLM,即一组时间序列语言模型(TSLMs),通过将时间序列作为原生模态整合到预训练的LLMs中,使模型能够对任意长度的多个时间序列进行推理。我们研究了OpenTSLM的两种架构。第一种,OpenTSLM-SoftPrompt,通过将可学习的时间序列标记与文本标记通过软提示拼接,隐式地建模时间序列。尽管参数效率高,但我们假设显式的时间序列建模在扩展性上更优,并且优于隐式方法。因此,我们引入了OpenTSLM-Flamingo,通过交叉注意力将时间序列与文本整合。我们对两种变体在一系列文本-时间序列推理任务上进行了基准测试,这些任务将时间序列视为文本标记或图表。我们引入了三个数据集:HAR-CoT、Sleep-CoT和ECG-QA-CoT。在所有任务中,OpenTSLM模型均优于基线模型,达到睡眠分期69.9 F1和HAR 65.4,相比微调的纯文本模型分别为9.05和52.2。值得注意的是,即使10亿参数的OpenTSLM模型也超越了GPT-4o(15.47和2.95)。OpenTSLM-Flamingo在性能上与OpenTSLM-SoftPrompt相当,并在更长的序列上表现更优,同时保持稳定的内存需求。相比之下,SoftPrompt随着序列长度的增加而内存需求呈指数增长,当在ECG-QA上训练时,需要约110GB内存,而40GB VRAM则足以运行OpenTSLM-Flamingo。临床专家对ECG-QA任务中OpenTSLM展现的推理能力进行了评审,发现其表现强劲。为了促进进一步研究,我们提供了所有代码、数据集和模型的开源版本。

英文摘要:

LLMs have emerged as powerful tools for interpreting multimodal data. In medicine, they hold particular promise for synthesizing large volumes of clinical information into actionable insights and digital health applications. Yet, a major limitation remains their inability to handle time series. To overcome this gap, we present OpenTSLM, a family of Time Series Language Models (TSLMs) created by integrating time series as a native modality to pretrained LLMs, enabling reasoning over multiple time series of any length. We investigate two architectures for OpenTSLM. The first, OpenTSLM-SoftPrompt, models time series implicitly by concatenating learnable time series tokens with text tokens via soft prompting. Although parameter-efficient, we hypothesize that explicit time series modeling scales better and outperforms implicit approaches. We thus introduce OpenTSLM-Flamingo, which integrates time series with text via cross-attention. We benchmark both variants against baselines that treat time series as text tokens or plots, across a suite of text-time-series Chain-of-Thought (CoT) reasoning tasks. We introduce three datasets: HAR-CoT, Sleep-CoT, and ECG-QA-CoT. Across all, OpenTSLM models outperform baselines, reaching 69.9 F1 in sleep staging and 65.4 in HAR, compared to 9.05 and 52.2 for finetuned text-only models. Notably, even 1B-parameter OpenTSLM models surpass GPT-4o (15.47 and 2.95). OpenTSLM-Flamingo matches OpenTSLM-SoftPrompt in performance and outperforms on longer sequences, while maintaining stable memory requirements. By contrast, SoftPrompt grows exponentially in memory with sequence length, requiring around 110 GB compared to 40 GB VRAM when training on ECG-QA with LLaMA-3B. Expert reviews by clinicians find strong reasoning capabilities exhibited by OpenTSLMs on ECG-QA. To facilitate further research, we provide all code, datasets, and models open-source.

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

↑