mlsanityData to 14 Oct 2026

Reliable Text-to-SQL with Adaptive Abstention

arXiv 2501.10858 ↗First posted 18 Jan 2025cs.DB cs.AIcited by 20

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have revolutionized natural language interfaces for databases, particularly in text-to-SQL conversion. However, current approaches often generate unreliable outputs when faced with ambiguity or insufficient context. We present Reliable Text-to-SQL (RTS), a novel framework that enhances query generation reliability by incorporating abstention and human-in-the-loop mechanisms. RTS focuses on the critical schema linking phase, which aims to identify the key database elements needed for generating SQL queries. It autonomously detects potential errors during the answer generation process and responds by either abstaining or engaging in user interaction. A vital component of RTS is the Branching Point Prediction (BPP) which utilizes statistical conformal techniques on the hidden layers of the LLM model for schema linking, providing probabilistic guarantees on schema linking accuracy. We validate our approach through comprehensive experiments on the BIRD benchmark, demonstrating significant improvements in robustness and reliability. Our findings highlight the potential of combining transparent-box LLMs with human-in-the-loop processes to create more robust natural language interfaces for databases. For the BIRD benchmark, our approach achieves near-perfect schema linking accuracy, autonomously involving a human when needed. Combined with query generation, we demonstrate that near-perfect schema linking and a small query generation model can almost match SOTA accuracy achieved with a model orders of magnitude larger than the one we use.

Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Builds on 87 of its 113 references that are in the map. First posted on arXiv 18 Jan 2025.

Builds on

87 of 113 references.

References · 87

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  6. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  7. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  8. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  9. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  10. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  11. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
  12. 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
38 more
  1. 2023A Survey on Evaluation of Large Language Modelscited by 1,242
  2. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  3. 2023Teaching Large Language Models to Self-Debugcited by 988
  4. 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 974
  5. 2020A Review of Uncertainty Quantification in Deep Learning: Techniques, Applications and Challengescited by 819
  6. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
  7. 2021A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantificationcited by 792
  8. 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
  9. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  10. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 687
  11. 2021A Survey of Uncertainty in Deep Neural Networkscited by 680
  12. 2023The Internal State of an LLM Knows When It's Lyingcited by 659
  13. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  14. 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 445
  15. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  16. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
  17. 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 411
  18. 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 398
  19. 2020Classification with Valid and Adaptive Coveragecited by 396
  20. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  21. 2022Conformal prediction beyond exchangeabilitycited by 355
  22. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 343
  23. 2020Calibration of Pre-trained Transformerscited by 315
  24. 2022Prompting GPT-3 To Be Reliablecited by 260
  25. 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 256
  26. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
  27. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  28. 2020Reducing conversational agents' overconfidence through linguistic calibrationcited by 210
  29. 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 197
  30. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
  31. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  32. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  33. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 169
  34. 2016Language to Logical Form with Neural Attentioncited by 158
  35. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 138
  36. 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
  37. 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
  38. 2022Natural Language to Code Translation with Executioncited by 124

50 most cited of 87 All 87 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 14.

20 papers.

Sort:

By area:

  1. 2025From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generationcited by 21
  2. 2025AmbiSQL: Interactive Ambiguity Detection and Resolution for Text-to-SQLcited by 11
  3. 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
  4. 2026Arming Data Agents with Tribal Knowledgecited by 7
  5. 2025Are Your LLM-based Text-to-SQL Models Secure? Exploring SQL Injection via Backdoor Attackscited by 6
  6. 2025Confidence Estimation for Text-to-SQL in Large Language Modelscited by 3
  7. 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
  8. 2026CLARITY: A Framework and Benchmark for Conversational Language Ambiguity and Unanswerability in Interactive NL2SQL Systemscited by 2
  9. 2026What Predicts Correctness in Text-to-SQL? A Selective-Prediction Studycited by 2
  10. 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
  11. 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
  12. 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinementcited by 1
8 more
  1. 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehousescited by 1
  2. 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Factcited by 1
  3. 2026Boundary-Aware NL2SQL: Integrating Reliability through Hybrid Reward and Data Synthesiscited by 0
  4. 2026PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Queryingcited by 0
  5. 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
  6. 2026ReliableTableQA:How Much Supervision Does Reliability Annotation Need?cited by 0
  7. 2026Benchmarking Text-to-SQL under Role-Based Access Controlcited by 0
  8. 2026Certified Against Which Oracle? Execution Labels Set the Reported Risk of Conformal Abstention for Text-to-SQLcited by 0