Query, Don't Train: Privacy-Preserving Tabular Prediction from EHR Data via SQL Queries
Not on the map. Why?
Abstract (arXiv)
Electronic health records (EHRs) contain richly structured, longitudinal data essential for predictive modeling, yet stringent privacy regulations (e.g., HIPAA, GDPR) often restrict access to individual-level records. We introduce Query, Don't Train (QDT): a structured-data foundation-model interface enabling tabular inference via LLM-generated SQL over EHRs. Instead of training on or accessing individual-level examples, QDT uses a large language model (LLM) as a schema-aware query planner to generate privacy-compliant SQL queries from a natural language task description and a test-time input. The model then extracts summary-level population statistics through these SQL queries, and the LLM performs chain-of-thought reasoning over the results to make predictions. This inference-time-only approach enables prediction without supervised model training, ensures interpretability through symbolic, auditable queries, naturally handles missing features without imputation or preprocessing, and effectively manages high-dimensional numerical data to enhance analytical capabilities. We validate QDT on the task of 30-day hospital readmission prediction for Type 2 diabetes patients using a MIMIC-style EHR cohort, achieving F1 = 0.70, which outperforms TabPFN (F1 = 0.68). To our knowledge, this is the first demonstration of LLM-driven, privacy-preserving structured prediction using only schema metadata and aggregate statistics -- offering a scalable, interpretable, and regulation-compliant alternative to conventional foundation-model pipelines.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 27 May 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoningcited by 10
- 2025STRuCT-LLM: Unifying Tabular and Graph Reasoning with Reinforcement Learning for Semantic Parsingcited by 5
- 2026Ambig-DS: A Benchmark for Task-Framing Ambiguity in Data-Science Agentscited by 5
- 2026Measuring Black-Box Confidence via Reasoning Trajectories: Geometry, Coverage, and Verbalizationcited by 0
- 2026Concordia: Self-Improving Synthetic Tables for Federated LLMscited by 0
- 2026Concordia: Self-Improving Synthetic Tables for Federated LLMs11 May 2026
- 2026Ambig-DS: A Benchmark for Task-Framing Ambiguity in Data-Science Agents10 May 2026
- 2026Measuring Black-Box Confidence via Reasoning Trajectories: Geometry, Coverage, and Verbalization7 May 2026
- 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoning2 Sep 2025
- 2025STRuCT-LLM: Unifying Tabular and Graph Reasoning with Reinforcement Learning for Semantic Parsing15 Jun 2025