Reliable Text-to-SQL with Adaptive Abstention
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
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
38 more
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 974
- 2020A Review of Uncertainty Quantification in Deep Learning: Techniques, Applications and Challengescited by 819
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
- 2021A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantificationcited by 792
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 687
- 2021A Survey of Uncertainty in Deep Neural Networkscited by 680
- 2023The Internal State of an LLM Knows When It's Lyingcited by 659
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 445
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 411
- 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 398
- 2020Classification with Valid and Adaptive Coveragecited by 396
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2022Conformal prediction beyond exchangeabilitycited by 355
- 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 343
- 2020Calibration of Pre-trained Transformerscited by 315
- 2022Prompting GPT-3 To Be Reliablecited by 260
- 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 256
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 2020Reducing conversational agents' overconfidence through linguistic calibrationcited by 210
- 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 197
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 169
- 2016Language to Logical Form with Neural Attentioncited by 158
- 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 138
- 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
- 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
- 2022Natural Language to Code Translation with Executioncited by 124
50 most cited of 87 All 87 (JSON)
Built on by
Citing papers per year: 2025: 6; 2026: 14.
20 papers.
Sort:
By area:
- 2025From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generationcited by 21
- 2025AmbiSQL: Interactive Ambiguity Detection and Resolution for Text-to-SQLcited by 11
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
- 2026Arming Data Agents with Tribal Knowledgecited by 7
- 2025Are Your LLM-based Text-to-SQL Models Secure? Exploring SQL Injection via Backdoor Attackscited by 6
- 2025Confidence Estimation for Text-to-SQL in Large Language Modelscited by 3
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2026CLARITY: A Framework and Benchmark for Conversational Language Ambiguity and Unanswerability in Interactive NL2SQL Systemscited by 2
- 2026What Predicts Correctness in Text-to-SQL? A Selective-Prediction Studycited by 2
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinementcited by 1
8 more
- 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehousescited by 1
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Factcited by 1
- 2026Boundary-Aware NL2SQL: Integrating Reliability through Hybrid Reward and Data Synthesiscited by 0
- 2026PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Queryingcited by 0
- 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
- 2026ReliableTableQA:How Much Supervision Does Reliability Annotation Need?cited by 0
- 2026Benchmarking Text-to-SQL under Role-Based Access Controlcited 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
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Fact14 Aug 2026
- 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehouses8 Aug 2026
- 2026Benchmarking Text-to-SQL under Role-Based Access Control24 Jul 2026
- 2026ReliableTableQA:How Much Supervision Does Reliability Annotation Need?10 Jul 2026
- 2026What Predicts Correctness in Text-to-SQL? A Selective-Prediction Study7 Jul 2026
- 2026Residual Skill Optimization for Text-to-SQL Ensembles20 May 2026
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinement1 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026CLARITY: A Framework and Benchmark for Conversational Language Ambiguity and Unanswerability in Interactive NL2SQL Systems24 Apr 2026
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering20 Mar 2026
- 2026PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Querying2 Mar 2026
8 more
- 2026Arming Data Agents with Tribal Knowledge13 Feb 2026
- 2026Boundary-Aware NL2SQL: Integrating Reliability through Hybrid Reward and Data Synthesis15 Jan 2026
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL2 Nov 2025
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answering25 Aug 2025
- 2025AmbiSQL: Interactive Ambiguity Detection and Resolution for Text-to-SQL21 Aug 2025
- 2025Confidence Estimation for Text-to-SQL in Large Language Models8 Aug 2025
- 2025Are Your LLM-based Text-to-SQL Models Secure? Exploring SQL Injection via Backdoor Attacks7 Mar 2025
- 2025From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generation1 Feb 2025
- 2026Arming Data Agents with Tribal Knowledgecited by 7
- 2026Arming Data Agents with Tribal Knowledge13 Feb 2026
- 2025AmbiSQL: Interactive Ambiguity Detection and Resolution for Text-to-SQLcited by 11
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
- 2025Confidence Estimation for Text-to-SQL in Large Language Modelscited by 3
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2026CLARITY: A Framework and Benchmark for Conversational Language Ambiguity and Unanswerability in Interactive NL2SQL Systemscited by 2
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinementcited by 1
- 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehousescited by 1
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Factcited by 1
- 2026PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Queryingcited by 0
- 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
- 2026ReliableTableQA:How Much Supervision Does Reliability Annotation Need?cited by 0
12 most cited of 14 All 14 (JSON)
- 2026Certified Against Which Oracle? Execution Labels Set the Reported Risk of Conformal Abstention for Text-to-SQL22 Sep 2026
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Fact14 Aug 2026
- 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehouses8 Aug 2026
- 2026Benchmarking Text-to-SQL under Role-Based Access Control24 Jul 2026
- 2026ReliableTableQA:How Much Supervision Does Reliability Annotation Need?10 Jul 2026
- 2026Residual Skill Optimization for Text-to-SQL Ensembles20 May 2026
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinement1 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026CLARITY: A Framework and Benchmark for Conversational Language Ambiguity and Unanswerability in Interactive NL2SQL Systems24 Apr 2026
- 2026PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Querying2 Mar 2026
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL2 Nov 2025
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answering25 Aug 2025
12 newest of 14 All 14 (JSON)