mlsanityData to 14 Oct 2026

What Predicts Correctness in Text-to-SQL? A Selective-Prediction Study

arXiv 2607.06799 ↗First posted 7 Jul 2026cs.LG cs.AIcited by 2

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

Evaluating uncertainty in AI-generated SQL queries requires estimating whether a query is correct, where correct means it executes to the same result as a human-written reference. We study which signals predict correctness on hard multi-table text-to-SQL, using AUROC to measure how well each ranks correct queries above incorrect ones. On BIRD and Spider, black-box signals such as string, structural, and execution self-consistency, a schema-relevance score, and query executability all fall between about 0.61 and 0.68 AUROC, with string self-consistency strongest at 0.675; white-box log-probability is similar (0.67). The signals that move past this ceiling are verification-based: an LLM judge scores from 0.72 (GPT-4o-mini) to 0.78 (Claude). Judges from different providers make different errors, so a two-provider ensemble reaches 0.82 AUROC with a well-calibrated probability (expected calibration error 0.03) and supports useful abstention frontiers (for example, answering 27% of questions at 24% selective risk) where self-consistency offers no valid low-risk subset. The pattern holds across two benchmarks, two generators, and two judge providers. We also ask whether a verifier can be trained. Fine-tuned verifiers, both encoder and generative, reach about 0.77 to 0.79 AUROC in-distribution but fall to about 0.66 on unseen schemas; scaling to 7B, adding schema diversity, distilling a strong judge's rationales, and cross-benchmark training all fail to close that gap. Cross-schema transfer appears to track model scale and reasoning rather than fine-tuning. In practice, correctness uncertainty for text-to-SQL lives in reasoning-based signals: a fine-tuned verifier is a good in-domain tool, but a verifier that generalizes across schemas currently means a large frozen reasoning model.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 16 of its 17 references that are in the map. First posted on arXiv 7 Jul 2026.

Builds on

16 of 17 references.

References · 16

  1. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  2. 2017On Calibration of Modern Neural Networkscited by 4,960
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  4. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  5. 2023Teaching Large Language Models to Self-Debugcited by 988
  6. 2017Selective Classification for Deep Neural Networkscited by 852
  7. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  8. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  9. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  10. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  11. 2022Conformal Risk Controlcited by 299
  12. 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 271
4 more
  1. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
  2. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 164
  3. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  4. 2025Reliable Text-to-SQL with Adaptive Abstentioncited by 20

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Confidence Estimation for Error Detection in Text-to-SQL Systems
  2. 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models
  3. 2026TraceSQL: Traceable Answerability Estimation for Reference-Free Text-to-SQL Verification
  4. 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQL
  5. 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learning
  6. 2024SQLFixAgent: Towards Semantic-Accurate Text-to-SQL Parsing via Consistency-Enhanced Multi-Agent Collaboration
  7. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL
  8. 2025JudgeSQL: Reasoning over SQL Candidates with Weighted Consensus Tournament