Leveraging LLM-Generated Schema Descriptions for Unanswerable Question Detection in Clinical Data

Donghee Han, Seungjae Lim, Daeyoung Roh, Sangryul Kim, Sehyun Kim, Mun Yong YiCOLING 2025

TL;DR

This paper introduces a novel method, Schema Aware Unanswerable Question Detection (SQD), to identify unanswerable questions in clinical data. By leveraging LLM-generated schema descriptions, SQD effectively tackles the data imbalance problem inherent in this task, offering a more interpretable and resource-efficient solution compared to existing approaches.

What Problem Does This Paper Address?

The increasing use of Large Language Models (LLMs) for tasks like generating SQL queries from natural language questions, especially in sensitive domains like healthcare, brings a critical challenge: identifying and filtering out "unanswerable" questions. These are questions that, even with access to a database, cannot be answered with the available information. Existing methods often rely on model uncertainty, which can be resource-intensive and lack interpretability. Furthermore, datasets in the clinical domain often suffer from severe data imbalance, with a very small percentage of unanswerable questions, making it difficult for standard binary classifiers to perform well. This paper aims to address these limitations by proposing a method that is interpretable, resource-efficient, and robust to data imbalance.

Methods

The core of the proposed method, Schema Aware Unanswerable Question Detection (SQD), lies in predicting the relevance of database schemas to a given question, rather than directly predicting answerability. This approach helps mitigate the data imbalance issue. The process involves three main stages:

  1. Schema Description Generation via LLM: Instead of using raw Data Definition Language (DDL) which can be ambiguous, the authors use LLMs (like GPT-3.5-turbo) to generate human-readable descriptions of database schemas. These descriptions are enriched with contextual information relevant to the EHR domain, making them more informative than raw DDL. These descriptions are then converted into embeddings.
  2. Transformer Encoder-based Question-Schema Related Probability Prediction: The generated schema embeddings, along with instruction tokens and question tokens, are fed into a Transformer encoder. This encoder learns the relationship between the question and each schema, outputting embeddings that represent the relevance of each schema to the question.
  3. Answerability Determination: A multi-layer perceptron (MLP) uses the schema relevance embeddings to predict a probability for each schema. A question is deemed answerable if the highest predicted schema relevance probability exceeds a predefined threshold, which is optimized to maximize the F1 score on a validation set. If the maximum probability falls below the threshold, the question is classified as unanswerable.

Datasets

The primary dataset used in this study is EHRSQL-2024. This dataset is highlighted as a representative medical text-to-SQL dataset that specifically includes unanswerable questions, which are often overlooked in other benchmarks. The authors note that this is currently the only publicly available text-to-SQL dataset in the healthcare domain that contains unanswerable questions. They also mention that the valid and test splits of this dataset have a higher proportion of unanswerable questions compared to the training set.

Key Insights and Ideas

  • LLM-generated schema descriptions are more effective than raw DDL: The study found that LLMs can generate richer, more contextualized descriptions of database schemas, which significantly improves the performance of the unanswerable question detection model. This is because LLMs can clarify abbreviations and provide context that raw DDL lacks.
  • Schema relevance prediction is a powerful proxy for answerability: By shifting the focus from direct answerability prediction to predicting schema relevance, the method effectively bypasses the severe data imbalance problem common in unanswerable question datasets.
  • Interpretability is a key advantage: The method's ability to predict schema relevance provides a degree of explainability. Users can see why a question is deemed unanswerable by observing which schemas are deemed irrelevant.
  • Resource efficiency: The proposed method does not require training text-to-SQL models, making it more resource-efficient.

Key Results

The proposed SQD method demonstrated superior performance across several metrics compared to various baselines, including LLMs in zero-shot settings and fine-tuned T5 binary classifiers.

  • F1 Score: SQD achieved an F1 score of 0.8547, significantly outperforming baselines like LLaMA3.1 (0.5487), GPT-4o (0.7778), and a T5 binary classifier (0.6340).
  • AUC: SQD achieved an AUC of 0.9062, also leading other methods.
  • ACC: The model reached an accuracy of 0.9426.
  • Robustness to Data Imbalance: The paper emphasizes that SQD's performance is robust to the data imbalance, leading to more balanced inference compared to some baselines that showed biased predictions.
  • Ablation Study: Removing prompt tokens or schema tokens from the model led to a significant drop in performance, underscoring the importance of these components. Specifically, removing schema tokens reduced the F1 score to 0.5739.

Limitations and Future Work

  • Performance on specific question types: The method struggles with certain types of unanswerable questions, particularly those that are directly related to schema terms (e.g., "patient") and ask for specific numerical counts. Confirming answerability for these often requires executing the SQL query.
  • Single Dataset Limitation: The study was conducted on a single dataset (EHRSQL-2024). The authors acknowledge that a wider variety of datasets would be beneficial for validation. They hope their work encourages the creation of more diverse unanswerable question datasets.
  • Generalization to New Schemas: The study did not explicitly address how the method performs when new schemas are added to the database.
  • Future Work: The authors suggest future research could focus on developing agents capable of interacting directly with databases to resolve ambiguity in challenging cases. They also propose improving generalization by augmenting data with LLMs or using pre-learning models to handle unseen schemas and question types.

Summary updated

BibTeX
@inproceedings{han2025leveraging,
  author = {Donghee Han and Seungjae Lim and Daeyoung Roh and Sangryul Kim and Sehyun Kim and Mun Yong Yi},
  title = {{Leveraging LLM-Generated Schema Descriptions for Unanswerable Question Detection in Clinical Data}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=TRcwaazsf0},
}
Figure