Towards Understanding the Generalization of Medical Text-to-SQL Models and Datasets
Not on the map. Why?
Abstract (arXiv)
Electronic medical records (EMRs) are stored in relational databases. It can be challenging to access the required information if the user is unfamiliar with the database schema or general database fundamentals. Hence, researchers have explored text-to-SQL generation methods that provide healthcare professionals direct access to EMR data without needing a database expert. However, currently available datasets have been essentially "solved" with state-of-the-art models achieving accuracy greater than or near 90%. In this paper, we show that there is still a long way to go before solving text-to-SQL generation in the medical domain. To show this, we create new splits of the existing medical text-to-SQL dataset MIMICSQL that better measure the generalizability of the resulting models. We evaluate state-of-the-art language models on our new split showing substantial drops in performance with accuracy dropping from up to 92% to 28%, thus showing substantial room for improvement. Moreover, we introduce a novel data augmentation approach to improve the generalizability of the language models. Overall, this paper is the first step towards developing more robust text-to-SQL models in the medical domain.footnoteThe dataset and code will be released upon acceptance.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 19 of its 38 references that are in the map. First posted on arXiv 22 Mar 2023.
Builds on
19 of 38 references.
References · 19
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 784
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
- 2022UnifiedSKG: Unifying and Multi-Tasking Structured Knowledge Grounding with Text-to-Text Language Modelscited by 231
- 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
- 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
- 2017Learning a Neural Semantic Parser from User Feedbackcited by 98
- 2018TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generationcited by 81
7 more
- 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 76
- 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
- 2018Robust Text-to-SQL Generation with Execution-Guided Decodingcited by 51
- 2022Memory-efficient NLLB-200: Language-specific Expert Pruning of a Massively Multilingual Machine Translation Modelcited by 36
- 2022Proton: Probing Schema Linking Information from Pre-trained Language Models for Text-to-SQL Parsingcited by 30
- 2021Weakly Supervised Text-to-SQL Parsing through Question Decompositioncited by 15
- 2019Dynamic Prediction of ICU Mortality Risk Using Domain Adaptationcited by 6
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 2; 2026: 1.
9 papers.
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Imagescited by 53
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health recordscited by 8
- 2023Question Answering for Electronic Health Records: A Scoping Review of datasets and modelscited by 7
- 2024Unmasking Database Vulnerabilities: Zero-Knowledge Schema Inference Attacks in Text-to-SQL Systemscited by 6
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generationcited by 4
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHRcited by 3
- 2024Beyond Text-to-SQL for IoT Defense: A Comprehensive Framework for Querying and Classifying IoT Threatscited by 1
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
- 2026Large Language Models for Structured Clinical Data Analysis: Dual-Agent Grounding and Validationcited by 0
- 2026Large Language Models for Structured Clinical Data Analysis: Dual-Agent Grounding and Validation28 Sep 2026
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQL28 Dec 2025
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation28 Feb 2025
- 2024Beyond Text-to-SQL for IoT Defense: A Comprehensive Framework for Querying and Classifying IoT Threats25 Jun 2024
- 2024Unmasking Database Vulnerabilities: Zero-Knowledge Schema Inference Attacks in Text-to-SQL Systems20 Jun 2024
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHR22 May 2024
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records14 Mar 2024
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images28 Oct 2023
- 2023Question Answering for Electronic Health Records: A Scoping Review of datasets and models12 Oct 2023