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

Sepideh Entezari Maleki, Mohammadreza Pourreza, Davood Rafiei
8/8/2025
cs.CLcs.DB

No confident code implementation found for this paper. 2 possible matches can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{maleki2025confidence,
  title  = {Confidence Estimation for Text-to-SQL in Large Language Models},
  author = {Sepideh Entezari Maleki and Mohammadreza Pourreza and Davood Rafiei},
  year   = {2025},
  eprint = {2508.14056},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.14056v1}
}

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

Discussion