ProbGate at EHRSQL 2024: Enhancing SQL Query Generation Accuracy through Probabilistic Threshold Filtering and Error Handling

Sangryul Kim, Donghee Han, Sehyun Kim
4/25/2024
cs.CLcs.AI

No official code found. Best implementation: venzino-han/probgate_ehrsql (7 stars, last commit 2024-06-28).

Abstract

Recently, deep learning-based language models have significantly enhanced text-to-SQL tasks, with promising applications in retrieving patient records within the medical domain. One notable challenge in such applications is discerning unanswerable queries. Through fine-tuning model, we demonstrate the feasibility of converting medical record inquiries into SQL queries. Additionally, we introduce an entropy-based method to identify and filter out unanswerable results. We further enhance result quality by filtering low-confidence SQL through log probability-based distribution, while grammatical and schema errors are mitigated by executing queries on the actual database. We experimentally verified that our method can filter unanswerable questions, which can be widely utilized even when the parameters of the model are not accessible, and that it can be effectively utilized in practice.

View on arXivView PDF

Code Implementations(1)

71Shell, PythonMar 5, 20242 years ago

Similar Papers

Cite this paper

@article{kim2024probgate,
  title  = {ProbGate at EHRSQL 2024: Enhancing SQL Query Generation Accuracy through Probabilistic Threshold Filtering and Error Handling},
  author = {Sangryul Kim and Donghee Han and Sehyun Kim},
  year   = {2024},
  eprint = {2404.16659},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.16659v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.16659.svg)](https://codeofpaper.com/paper/2404.16659)

Discussion