Po-Chih Kuo
Author directoryOther people with similar names: Grace Chan
Unverified author pages with similar names: Po-Chih Kuo
2026
Leveraging Open-Source Language Models for Privacy-Preserving Text-to-SQL Generation in Electronic Health Records
Grace Chan | Po-Chih Kuo
Proceedings of the 38th Conference on Computational Linguistics and Speech Processing (ROCLING 2026)
Grace Chan | Po-Chih Kuo
Proceedings of the 38th Conference on Computational Linguistics and Speech Processing (ROCLING 2026)
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.
Search