DBAINov 8, 2024

SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmark

arXiv:2411.05521v216 citationsh-index: 12Has CodeNIPS
Originality Incremental advance
AI Analysis

This work addresses the problem of evaluating Text-to-Query systems across heterogeneous database models for researchers and practitioners in medical informatics, though it is incremental as it builds on existing benchmarks by extending to multi-model contexts.

The paper tackles the lack of investigation into how different database models affect Text-to-Query systems by introducing SM3-Text-to-Query, the first multi-model medical benchmark based on synthetic patient data, which includes 40K question/query pairs across four query languages and evaluates various LLMs to reveal trade-offs between database models and query languages.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes