Text-to-SQL Calibration: No Need to Ask -- Just Rescale Model Probabilities
Not on the map. Why?
Abstract (arXiv)
Calibration is crucial as large language models (LLMs) are increasingly deployed to convert natural language queries into SQL for commercial databases. In this work, we investigate calibration techniques for assigning confidence to generated SQL queries. We show that a straightforward baseline -- deriving confidence from the model's full-sequence probability -- outperforms recent methods that rely on follow-up prompts for self-checking and confidence verbalization. Our comprehensive evaluation, conducted across two widely-used Text-to-SQL benchmarks and multiple LLM architectures, provides valuable insights into the effectiveness of various calibration strategies.
Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Builds on 21 of its 29 references that are in the map. First posted on arXiv 23 Nov 2024.
Builds on
21 of 29 references.
References · 21
- 2017On Calibration of Modern Neural Networkscited by 4,902
- 2023Code Llama: Open Foundation Models for Codecited by 2,130
- 2022Language Models (Mostly) Know What They Knowcited by 1,823
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,133
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 960
- 2017Selective Classification for Deep Neural Networkscited by 825
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 800
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 680
- 2020Calibration of Pre-trained Transformerscited by 308
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 186
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 162
- 2023The Generative AI Paradox: "What It Can Create, It May Not Understand"cited by 98
9 more
- 2023Navigating the Grey Area: How Expressions of Uncertainty and Overconfidence Affect Language Modelscited by 91
- 2019Calibration of Encoder Decoder Models for Neural Machine Translationcited by 68
- 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
- 2024Calibrating Language Models with Adaptive Temperature Scalingcited by 58
- 2022Calibrated Interpretation: Confidence Estimation in Semantic Parsingcited by 33
- 2023Benchmarking and Improving Text-to-SQL Generation under Ambiguitycited by 32
- 2023Zero and Few-shot Semantic Parsing with Ambiguous Inputscited by 16
- 2024I Need Help! Evaluating LLM's Ability to Ask for Users' Support: A Case Study on Text-to-SQL Generationcited by 11
- 2023TCE: A Test-Based Approach to Measuring Calibration Errorcited by 5
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Consensus Enforcement, and Column Explorationcited by 36
- 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedbackcited by 24
- 2025Confidence Estimation for Text-to-SQL in Large Language Modelscited by 2
- 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learningcited by 2
- 2026Calibrated Confidence Estimation for Tabular Question Answeringcited by 0
- 2026TrustDABench: Benchmarking Reliability and Robustness of LLMs for Structured Data Analysiscited by 0
- 2026Certified Against Which Oracle? Execution Labels Set the Reported Risk of Conformal Abstention for Text-to-SQLcited by 0
- 2026Certified Against Which Oracle? Execution Labels Set the Reported Risk of Conformal Abstention for Text-to-SQL22 Sep 2026
- 2026TrustDABench: Benchmarking Reliability and Robustness of LLMs for Structured Data Analysis25 Aug 2026
- 2026Calibrated Confidence Estimation for Tabular Question Answering14 Apr 2026
- 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learning8 Sep 2025
- 2025Confidence Estimation for Text-to-SQL in Large Language Models8 Aug 2025
- 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback25 Mar 2025
- 2025ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Consensus Enforcement, and Column Exploration2 Feb 2025