@inproceedings{chan-kuo-2026-leveraging,
title = "Leveraging Open-Source Language Models for Privacy-Preserving Text-to-{SQL} Generation in Electronic Health Records",
author = "Chan, Grace and
Kuo, Po-Chih",
editor = "Kuo, Po-Chih and
Lee, Lung-Hao and
Yen, An-Zi and
Alvarado, Fernando Henrique Calderon and
Argueta, Carlos",
booktitle = "Proceedings of the 38th Conference on Computational Linguistics and Speech Processing ({ROCLING} 2026)",
month = nov,
year = "2026",
address = "National Tsing Hua University. Hsinchu, Taiwan.",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.rocling-main.1/",
pages = "1--11",
ISBN = "979-8-89176-505-4",
abstract = "Electronic Health Records (EHRs) are valuable sources of clinical information, yet querying them often requires specialized knowledge of structured query languages. Large Language Models (LLMs) enable more intuitive access through natural language queries; however, achieving reliable performance often requires domain-specific fine-tuning, and proprietary LLMs may raise privacy concerns because sensitive data must be transmitted to external servers. To address these challenges, we propose a fully open-source, locally deployable framework that integrates two complementary models, Llama-Coder-13B and DeepSeek-Coder-6.7B, fine-tuned using schema-aware prompts. Their outputs undergo confidence-based filtering and rule-based aggregation, leveraging the strengths of both models to improve accuracy and reliability. Evaluated on the EHRSQL 2024 shared task using the Reliability Score (RS), our approach achieves an RS(0) of 82.69 and an RS(10) of 44.99, outperforming other open-source baselines. Although a performance gap remains compared to proprietary LLMs, our system offers a practical privacy-preserving alternative while maintaining competitive performance among open-source approaches."
}<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3">
<mods ID="chan-kuo-2026-leveraging">
<titleInfo>
<title>Leveraging Open-Source Language Models for Privacy-Preserving Text-to-SQL Generation in Electronic Health Records</title>
</titleInfo>
<name type="personal">
<namePart type="given">Grace</namePart>
<namePart type="family">Chan</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Po-Chih</namePart>
<namePart type="family">Kuo</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<originInfo>
<dateIssued>2026-11</dateIssued>
</originInfo>
<typeOfResource>text</typeOfResource>
<relatedItem type="host">
<titleInfo>
<title>Proceedings of the 38th Conference on Computational Linguistics and Speech Processing (ROCLING 2026)</title>
</titleInfo>
<name type="personal">
<namePart type="given">Po-Chih</namePart>
<namePart type="family">Kuo</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Lung-Hao</namePart>
<namePart type="family">Lee</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">An-Zi</namePart>
<namePart type="family">Yen</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Fernando</namePart>
<namePart type="given">Henrique</namePart>
<namePart type="given">Calderon</namePart>
<namePart type="family">Alvarado</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Carlos</namePart>
<namePart type="family">Argueta</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<originInfo>
<publisher>Association for Computational Linguistics</publisher>
<place>
<placeTerm type="text">National Tsing Hua University. Hsinchu, Taiwan.</placeTerm>
</place>
</originInfo>
<genre authority="marcgt">conference publication</genre>
<identifier type="isbn">979-8-89176-505-4</identifier>
</relatedItem>
<abstract>Electronic Health Records (EHRs) are valuable sources of clinical information, yet querying them often requires specialized knowledge of structured query languages. Large Language Models (LLMs) enable more intuitive access through natural language queries; however, achieving reliable performance often requires domain-specific fine-tuning, and proprietary LLMs may raise privacy concerns because sensitive data must be transmitted to external servers. To address these challenges, we propose a fully open-source, locally deployable framework that integrates two complementary models, Llama-Coder-13B and DeepSeek-Coder-6.7B, fine-tuned using schema-aware prompts. Their outputs undergo confidence-based filtering and rule-based aggregation, leveraging the strengths of both models to improve accuracy and reliability. Evaluated on the EHRSQL 2024 shared task using the Reliability Score (RS), our approach achieves an RS(0) of 82.69 and an RS(10) of 44.99, outperforming other open-source baselines. Although a performance gap remains compared to proprietary LLMs, our system offers a practical privacy-preserving alternative while maintaining competitive performance among open-source approaches.</abstract>
<identifier type="citekey">chan-kuo-2026-leveraging</identifier>
<location>
<url>https://aclanthology.org/2026.rocling-main.1/</url>
</location>
<part>
<date>2026-11</date>
<extent unit="page">
<start>1</start>
<end>11</end>
</extent>
</part>
</mods>
</modsCollection>
%0 Conference Proceedings
%T Leveraging Open-Source Language Models for Privacy-Preserving Text-to-SQL Generation in Electronic Health Records
%A Chan, Grace
%A Kuo, Po-Chih
%Y Kuo, Po-Chih
%Y Lee, Lung-Hao
%Y Yen, An-Zi
%Y Alvarado, Fernando Henrique Calderon
%Y Argueta, Carlos
%S Proceedings of the 38th Conference on Computational Linguistics and Speech Processing (ROCLING 2026)
%D 2026
%8 November
%I Association for Computational Linguistics
%C National Tsing Hua University. Hsinchu, Taiwan.
%@ 979-8-89176-505-4
%F chan-kuo-2026-leveraging
%X Electronic Health Records (EHRs) are valuable sources of clinical information, yet querying them often requires specialized knowledge of structured query languages. Large Language Models (LLMs) enable more intuitive access through natural language queries; however, achieving reliable performance often requires domain-specific fine-tuning, and proprietary LLMs may raise privacy concerns because sensitive data must be transmitted to external servers. To address these challenges, we propose a fully open-source, locally deployable framework that integrates two complementary models, Llama-Coder-13B and DeepSeek-Coder-6.7B, fine-tuned using schema-aware prompts. Their outputs undergo confidence-based filtering and rule-based aggregation, leveraging the strengths of both models to improve accuracy and reliability. Evaluated on the EHRSQL 2024 shared task using the Reliability Score (RS), our approach achieves an RS(0) of 82.69 and an RS(10) of 44.99, outperforming other open-source baselines. Although a performance gap remains compared to proprietary LLMs, our system offers a practical privacy-preserving alternative while maintaining competitive performance among open-source approaches.
%U https://aclanthology.org/2026.rocling-main.1/
%P 1-11
Markdown (Informal)
[Leveraging Open-Source Language Models for Privacy-Preserving Text-to-SQL Generation in Electronic Health Records](https://aclanthology.org/2026.rocling-main.1/) (Chan & Kuo, ROCLING 2026)
ACL