VGSG-CoT: auditable Text-to-SQL for medical records with grounded reasoning
Researchers present a framework that lets language models query electronic medical record databases while showing each table, column, value, join and aggregation decision as a checkable step.
In plain words
Clinicians usually cannot read SQL, the code used to query patient databases, so they cannot check what an AI-generated query actually does. VGSG-CoT makes the model show its reasoning as explicit steps tied to real database evidence. The authors report this keeps accuracy high even for small models.
What was announced
The arXiv abstract describes VGSG-CoT (Value-Grounded Schema-Graph Chain-of-Thought), a Text-to-SQL framework for electronic medical records. It exposes the chain of thought as auditable steps covering table, column, value, join and aggregation choices, addressing the gap faced by clinicians who cannot verify how a generated query is grounded.
Because explicit reasoning can hurt accuracy in compact models, the framework pairs the chain of thought with a grounded evidence module that retrieves value- and schema-level evidence from the database. Using grounded CoT distillation, the authors trained 1.5B and 7B generators that produce both the reasoning and the SQL. On the MIMICSQL benchmark they report execution accuracies of 0.943 and 0.956 respectively, with reasoning steps consistent with the final queries. The authors state these results suggest database-grounded evidence can offset the accuracy cost of explicit reasoning.
What it does not show
- Evidence is limited to the paper's abstract; the full article was not reviewed, so method details and evaluation conditions cannot be verified.
- Reported accuracies come from the authors' own evaluation on MIMICSQL and have not been independently confirmed.
For security and IT teams
- Scope
- The framework targets electronic medical record databases and was evaluated on the MIMICSQL dataset, per the abstract.
Sources
Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 1 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.