Confidence Estimation for Error Detection in Text-to-SQL Systems

Oleg Somov, Elena Tutubalina
1/16/2025
cs.LGcs.CL

No official code found. Best implementation: runnerup96/error-detection-in-text2sql (5 stars, last commit 2025-04-21).

Abstract

Text-to-SQL enables users to interact with databases through natural language, simplifying the retrieval and synthesis of information. Despite the success of large language models (LLMs) in converting natural language questions into SQL queries, their broader adoption is limited by two main challenges: achieving robust generalization across diverse queries and ensuring interpretative confidence in their predictions. To tackle these issues, our research investigates the integration of selective classifiers into Text-to-SQL systems. We analyse the trade-off between coverage and risk using entropy based confidence estimation with selective classifiers and assess its impact on the overall performance of Text-to-SQL models. Additionally, we explore the models' initial calibration and improve it with calibration techniques for better model alignment between confidence and accuracy. Our experimental results show that encoder-decoder T5 is better calibrated than in-context-learning GPT 4 and decoder-only Llama 3, thus the designated external entropy-based selective classifier has better performance. The study also reveal that, in terms of error detection, selective classifier with a higher probability detects errors associated with irrelevant questions rather than incorrect query generations.

View on arXivView PDF

Code Implementations(1)

Repository for AAAI-2025 paper "Confidence Estimation for Error Detection in Text-to-SQL Systems"

53Python, Jupyter NotebookDec 17, 20241 years ago

Similar Papers

Cite this paper

@article{somov2025confidence,
  title  = {Confidence Estimation for Error Detection in Text-to-SQL Systems},
  author = {Oleg Somov and Elena Tutubalina},
  year   = {2025},
  eprint = {2501.09527},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.09527v1}
}

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/2501.09527.svg)](https://codeofpaper.com/paper/2501.09527)

Discussion