NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoring

Gyubok Lee, Woosog Chay, Seonhee Cho, Edward Choi · Submission to ICLR 2025 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

Text-to-SQL enables users to interact with databases using natural language, simplifying information retrieval. However, its widespread adoption remains limited for two main reasons: (1) existing benchmarks focus solely on feasible questions that can always be mapped to SQL queries, overlooking infeasible questions that cannot, and (2) current models lack abstention mechanisms, posing the risk of providing incorrect answers. To address these gaps, we introduce TrustSQL, a new benchmark designed to evaluate text-to-SQL reliability. At its core is the proposed Reliability Score (RS), which quantifies a model's helpfulness (correct answers) relative to its harmfulness (incorrect answers weighted by a user-defined penalty). TrustSQL is constructed by re-annotating three datasets—ATIS, Advising, and EHRSQL—while incorporating infeasible questions to enable comprehensive evaluations across diverse model inputs. We evaluate text-to-SQL models integrated with various abstention mechanisms, leveraging classification and uncertainty estimation methods. Our experiments reveal that only a few models achieve positive scores (i.e., helpfulness outweighing harmfulness) under high-penalty settings, indicating that most models are unsuitable for deployment in safety-critical scenarios. This underscores the need to develop models that not only improve SQL generation but also guarantee a certain degree of reliability, ensuring safe deployment.
BibTeX
@misc{lee2024trustsql,
  author = {Gyubok Lee and Woosog Chay and Seonhee Cho and Edward Choi},
  title = {{TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoring}},
  year = {2024},
  eprint = {2403.15879},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.15879},
}
Figure