mlsanityData to 14 Oct 2026

Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause Frequencies

arXiv 2505.23804 ↗First posted 27 May 2025cs.CL cs.AI cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

While large language models (LLMs) achieve strong performance on text-to-SQL parsing, they sometimes exhibit unexpected failures in which they are confidently incorrect. Building trustworthy text-to-SQL systems thus requires eliciting reliable uncertainty measures from the LLM. In this paper, we study the problem of providing a calibrated confidence score that conveys the likelihood of an output query being correct. Our work is the first to establish a benchmark for post-hoc calibration of LLM-based text-to-SQL parsing. In particular, we show that Platt scaling, a canonical method for calibration, provides substantial improvements over directly using raw model output probabilities as confidence scores. Furthermore, we propose a method for text-to-SQL calibration that leverages the structured nature of SQL queries to provide more granular signals of correctness, named "sub-clause frequency" (SCF) scores. Using multivariate Platt scaling (MPS), our extension of the canonical Platt scaling technique, we combine individual SCF scores into an overall accurate and calibrated score. Empirical evaluation on two popular text-to-SQL datasets shows that our approach of combining MPS and SCF yields further improvements in calibration and the related task of error detection over traditional Platt scaling.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 37 of its 54 references that are in the map. First posted on arXiv 27 May 2025.

Builds on

37 of 54 references.

References · 37

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  3. 2017On Calibration of Modern Neural Networkscited by 4,960
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  5. 2022Language Models (Mostly) Know What They Knowcited by 1,856
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  7. 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 974
  8. 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 812
  9. 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
  10. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  11. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 687
  12. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
25 more
  1. 2019Measuring Calibration in Deep Learningcited by 446
  2. 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 445
  3. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  5. 2019Beyond temperature scaling: Obtaining well-calibrated multiclass probabilities with Dirichlet calibrationcited by 364
  6. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  7. 2023A Categorical Archive of ChatGPT Failurescited by 168
  8. 2024Language Models with Conformal Factuality Guaranteescited by 131
  9. 2024Relying on the Unreliable: The Impact of Language Models' Reluctance to Express Uncertaintycited by 106
  10. 2017Learning a Neural Semantic Parser from User Feedbackcited by 99
  11. 2020Multivariate Confidence Calibration for Object Detectioncited by 98
  12. 2020Distribution-free binary classification: prediction sets, confidence intervals and calibrationcited by 79
  13. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  14. 2019Calibration of Encoder Decoder Models for Neural Machine Translationcited by 68
  15. 2020On the Inference Calibration of Neural Machine Translationcited by 61
  16. 2021Top-label calibration and multiclass-to-binary reductionscited by 46
  17. 2024Multicalibration for Confidence Scoring in LLMscited by 46
  18. 2019Model-based Interactive Semantic Parsing: A Unified Framework and A Text-to-SQL Case Studycited by 40
  19. 2018Confidence Modeling for Neural Semantic Parsingcited by 33
  20. 2022Calibrated Interpretation: Confidence Estimation in Semantic Parsingcited by 33
  21. 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniquescited by 24
  22. 2023Text-to-SQL Error Correction with Language Models of Codecited by 21
  23. 2024Multi-group Uncertainty Quantification for Long-form Text Generationcited by 13
  24. 2023Error Detection for Text-to-SQL Semantic Parsingcited by 12
  25. 2023A Multilingual Translator to SQL with Database Schema Pruning to Improve Self-Attentioncited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.