首个基于合成数据的多模型医疗文本转查询基准,支持四种数据库与查询语言。
SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmark
- 构建合成患者数据,覆盖关系型、文档型、图数据库三类模型。
- 生成10,000组自然语言问句与查询对,涵盖40,000条配对数据。
- 评估主流大模型在不同数据库与查询语言下的表现差异,适配医学信息检索研究者。
电子健康记录(EHR)存储于多种异构存储架构的数据库系统中,包括关系型数据库、文档存储和图数据库,其数据库模型显著影响查询复杂度与性能。尽管这一问题在数据库研究中早已明确,但其对日益增长的文本转查询系统的影响尚未被深入探究。本文提出SM3-Text-to-Query,首个基于合成患者数据(Synthea)并遵循SNOMED-CT术语本体的多模型医疗文本转查询基准。该基准提供针对关系型数据库(PostgreSQL)、文档存储(MongoDB)及图数据库(Neo4j 和 GraphDB (RDF))的数据表示,并支持四种主流查询语言:SQL、MQL、Cypher 和 SPARQL。我们系统性地手工设计408个模板问题,经扩充后构建出包含10,000组多样化自然语言问句与查询对的基准数据集(总计40,000对)。在此数据集上,我们评估了若干代表性闭源与开源大模型在上下文学习(ICL)策略下的表现,揭示了不同数据库模型与查询语言在各类模型与策略间的权衡关系。此外,该基准易于扩展至其他查询语言或真实标准患者数据库。
原文摘要 · Abstract (English)
Electronic health records (EHRs) are stored in various database systems with different database models on heterogeneous storage architectures, such as relational databases, document stores, or graph databases. These different database models have a big impact on query complexity and performance. While this has been a known fact in database research, its implications for the growing number of Text-to-Query systems have surprisingly not been investigated so far. In this paper, we present SM3-Text-to-Query, the first multi-model medical Text-to-Query benchmark based on synthetic patient data from Synthea, following the SNOMED-CT taxonomy -- a widely used knowledge graph ontology covering medical terminology. SM3-Text-to-Query provides data representations for relational databases (PostgreSQL), document stores (MongoDB), and graph databases (Neo4j and GraphDB (RDF)), allowing the evaluation across four popular query languages, namely SQL, MQL, Cypher, and SPARQL. We systematically and manually develop 408 template questions, which we augment to construct a benchmark of 10K diverse natural language question/query pairs for these four query languages (40K pairs overall). On our dataset, we evaluate several common in-context-learning (ICL) approaches for a set of representative closed and open-source LLMs. Our evaluation sheds light on the trade-offs between database models and query languages for different ICL strategies and LLMs. Last, SM3-Text-to-Query is easily extendable to additional query languages or real, standard-based patient databases.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。