mlsanityData to 14 Oct 2026

Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL

arXiv 2607.03833 ↗First posted 4 Jul 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

While Large Language Models (LLMs) have achieved remarkable success in Text-to-SQL tasks, their deployment in real-world environments is hindered by latent reliability issues. Identifying these latent weaknesses is critical for building trustworthy database interfaces, yet current diagnostic approaches rely heavily on static, expert-defined rules, which lack the capability for systematic and automated exploration. To bridge this gap, we propose SAGE (Systematic Automated Guided Exploration), a novel framework designed to autonomously uncover latent failure patterns in LLM-based Text-to-SQL generation. Specifically, SAGE generates vulnerability hypotheses for given samples and references a continuously evolving Vulnerability Codex to design targeted perturbations, thereby iteratively verifying and documenting potential defects. Extensive experiments on state-of-the-art open-source LLMs demonstrate that SAGE uncovers a substantial number of failure cases, highlighting the significant fragility of current models. Furthermore, our analysis reveals that the Vulnerability Codex exhibits strong cross-model transferability, indicating that the discovered patterns represent generalized structural weaknesses. Finally, we explore SAGE's potential for remediation. Although preliminary, lightweight fine-tuning on the generated samples yields promising improvements, suggesting a scalable pathway for closing the reliability loop in future work.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 44 references that are in the map. First posted on arXiv 4 Jul 2026.

Builds on

32 of 44 references.

References · 32

  1. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  2. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  3. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  4. 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 398
  5. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
  6. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  7. 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
  8. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  9. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 120
  10. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  11. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
  12. 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
20 more
  1. 2020RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databasescited by 63
  2. 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 53
  3. 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 53
  4. 2024MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLcited by 35
  5. 2024AMBROSIA: A Benchmark for Parsing Ambiguous Questions into Database Queriescited by 35
  6. 2023Benchmarking and Improving Text-to-SQL Generation under Ambiguitycited by 34
  7. 2020Hybrid Ranking Network for Text-to-SQLcited by 33
  8. 2022Towards Robustness of Text-to-SQL Models Against Natural and Realistic Adversarial Table Perturbationcited by 28
  9. 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 16
  10. 2026BiasScope: Towards Automated Detection of Bias in LLM-as-a-Judge Evaluationcited by 14
  11. 2025SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQLcited by 12
  12. 2024FANNO: Augmenting High-Quality Instruction Data with Open-Sourced LLMs Onlycited by 11
  13. 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMscited by 11
  14. 2025AmbiSQL: Interactive Ambiguity Detection and Resolution for Text-to-SQLcited by 11
  15. 2025BASE-SQL: A powerful open source Text-To-SQL baseline approachcited by 9
  16. 2024EPI-SQL: Enhancing Text-to-SQL Translation with Error-Prevention Instructionscited by 8
  17. 2024R3: "This is My SQL, Are You With Me?" A Consensus-Based Multi-Agent System for Text-to-SQL Taskscited by 7
  18. 2025TAG-INSTRUCT: Controlled Instruction Complexity Enhancement through Structure-based Augmentationcited by 3
  19. 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languagescited by 3
  20. 2025SQLord: A Robust Enterprise Text-to-SQL Solution via Reverse Data Generation and Workflow Decompositioncited by 1

Built on by

Not cited yet.