Know When to Abstain: Conformal Confidence Estimation for Text-to-SQL
Not on the map. Why?
Abstract (arXiv)
Text-to-SQL systems often return queries that execute successfully but answer the wrong question. Detecting these errors at deployment is hard because execution correctness is defined against a gold query, which exists only in labeled data. We formulate confidence estimation for Text-to-SQL as probabilistic query validation under a latent correctness variable that is observable at calibration time through gold-SQL execution and latent at deployment. Our estimator separates generation from validation. A generator LLM writes and executes the query, and a different critic LLM judges the query and its execution result. The critic's validation and execution-grounded alignment scores are fused with the generator's verbalized confidence, token-level uncertainty, and SQL-structural features in a Random Forest, using two sequential LLM calls. Two calibration steps give finite-sample guarantees. A Learn-then-Test threshold ensures, with probability 1-δ, that the error rate among accepted queries stays below a user-chosen budget. A conformal p-value bounds the false abstention rate. On Spider we use GPT-OSS-120B as generator and Gemma-4-31B as critic. The estimator obtains an AUARC of 0.899. Without abstention, 22.6% of queries are wrong. With a 15% risk budget (δ=0.1), a threshold is certified on all 10 resampled splits, and the system accepts 52.4% of queries on average with 9.1% observed error. Five different critic models give similar results. In a controlled comparison on Spider with Olmo-3-32B as generator, the estimator obtains an AUARC of 89.5, compared with 81.2 for the strongest logit-based baseline. Applied to BIRD without retraining, the confidence scores remain informative (AUROC 0.72, against 0.79 on Spider), but the risk guarantee does not transfer, as expected without exchangeability.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 28 of its 36 references that are in the map. Submitted 23 Nov 2026, announced 24 Nov 2026.
Builds on
28 of 36 references.
References · 28
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 6,016
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,494
- 2022Language Models (Mostly) Know What They Knowcited by 2,077
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,205
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 1,072
- 2017Selective Classification for Deep Neural Networkscited by 1,025
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 911
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 884
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 747
- 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 345
- 2020Calibration of Pre-trained Transformerscited by 335
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 267
16 more
- 2023Conformal Language Modelingcited by 189
- 2021Testing for Outliers with Conformal p-valuescited by 150
- 2024Know Your Limits: A Survey of Abstention in Large Language Modelscited by 143
- 2024API Is Enough: Conformal Prediction for Large Language Models Without Logit-Accesscited by 73
- 2024BEAVER: An Enterprise Benchmark for Text-to-SQLcited by 51
- 2025NL2SQL-BUGs: A Benchmark for Detecting Semantic Errors in NL2SQL Translationcited by 38
- 2022Calibrated Interpretation: Confidence Estimation in Semantic Parsingcited by 36
- 2025Reliable Text-to-SQL with Adaptive Abstentioncited by 22
- 2024TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoringcited by 20
- 2024SQLFixAgent: Towards Semantic-Accurate Text-to-SQL Parsing via Consistency-Enhanced Multi-Agent Collaborationcited by 14
- 2025SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQLcited by 14
- 2025Confidence Estimation for Error Detection in Text-to-SQL Systemscited by 12
- 2025The Consistency Hypothesis in Uncertainty Quantification for Large Language Modelscited by 9
- 2024Text-to-SQL Calibration: No Need to Ask -- Just Rescale Model Probabilitiescited by 8
- 2025Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause Frequenciescited by 6
- 2025Confidence Estimation for Text-to-SQL in Large Language Modelscited by 6
Built on by
Not cited yet.