Reliable Text-to-SQL with Adaptive Abstention
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.
No keywords indexed for this article. Browse by subject →
Yupeng Chang, Xu Wang, Jindong Wang et al.
Shrey Desai, Greg Durrett
Ziwei Ji, Nayeon Lee, Rita Frieske et al.
Showing 50 of 115 references
- Published
- Feb 10, 2025
- Vol/Issue
- 3(1)
- Pages
- 1-30
- License
- View
You May Also Like
Reham Omar, Ishika Dhall · 2023
43 citations
Ziniu Wu, Parimarjan Negi · 2023
39 citations
Jianyang Gao, Cheng Long · 2024
39 citations
Liana Patel, Peter Kraft · 2024
37 citations
Jiayao Zhang, Qiheng Sun · 2023
34 citations