English

Confidence Estimation for Text-to-SQL in Large Language Models

Computation and Language 2025-08-21 v1 Databases

Abstract

Confidence estimation for text-to-SQL aims to assess the reliability of model-generated SQL queries without having access to gold answers. We study this problem in the context of large language models (LLMs), where access to model weights and gradients is often constrained. We explore both black-box and white-box confidence estimation strategies, evaluating their effectiveness on cross-domain text-to-SQL benchmarks. Our evaluation highlights the superior performance of consistency-based methods among black-box models and the advantage of SQL-syntax-aware approaches for interpreting LLM logits in white-box settings. Furthermore, we show that execution-based grounding of queries provides a valuable supplementary signal, improving the effectiveness of both approaches.

Keywords

Cite

@article{arxiv.2508.14056,
  title  = {Confidence Estimation for Text-to-SQL in Large Language Models},
  author = {Sepideh Entezari Maleki and Mohammadreza Pourreza and Davood Rafiei},
  journal= {arXiv preprint arXiv:2508.14056},
  year   = {2025}
}
R2 v1 2026-07-01T04:57:14.590Z