mlsanityData to 7 Oct 2026

LEAF-SQL: Level-wise Exploration with Adaptive Fine-graining for Text-to-SQL Skeleton Prediction

arXiv 2605.09295 ↗First posted 10 May 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Text-to-SQL translates natural language questions into executable SQL queries, enabling intuitive database access for non-experts. While large language models achieve strong performance on Text-to-SQL with prompting, they still struggle with complex queries that involve deeply nested logic or multiple clauses. A widely used approach employs SQL skeletons--intermediate representations of query logic--to streamline generation, but existing methods are limited by their reliance on a single structural hypothesis and lack of progressive reasoning. To overcome these limitations, we propose LEAF-SQL, a novel framework that reframes skeleton prediction as a coarse-to-fine tree search process. LEAF-SQL enables systematic exploration of diverse structural hypotheses with adaptive refinement. Several key techniques are employed in LEAF-SQL: (1) a three-level skeleton hierarchy to guide the search, (2) a Skeleton Formulation Agent to generate diverse candidates, and (3) a Skeleton Evaluation Agent to efficiently prune the search space. This integrated design yields skeleton candidates that are both structurally diverse and granularity-adaptive, providing a stronger foundation for the SQL generation. Extensive experiments show that LEAF-SQL consistently improves the performance of various LLM backbones. On the official hidden test set of the challenging BIRD benchmark, our method achieves 71.6 execution accuracy, which outperforms leading search-based and skeleton-based methods, affirming its effectiveness for complex queries.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 33 of its 39 references that are in the map. First posted on arXiv 10 May 2026.

Builds on

33 of 39 references.

References · 33

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2025Qwen3 Technical Reportcited by 8,195
  3. 2024Qwen2.5 Technical Reportcited by 4,713
  4. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  5. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  7. 2023Teaching Large Language Models to Self-Debugcited by 963
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  9. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  10. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  11. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  12. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
21 more
  1. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
  2. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  3. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  4. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
  5. 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
  6. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  7. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
  8. 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 53
  9. 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 51
  10. 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
  11. 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
  12. 2025Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Searchcited by 33
  13. 2023Large Language Model Instruction Following: A Survey of Progresses and Challengescited by 31
  14. 2023Chain of Thought Prompting Elicits Knowledge Augmentationcited by 21
  15. 2025SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQLcited by 19
  16. 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
  17. 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 15
  18. 2025LearNAT: Learning NL2SQL with AST-guided Task Decomposition for Large Language Modelscited by 7
  19. 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6
  20. 2025MCTS-SQL: Light-Weight LLMs can Master the Text-to-SQL through Monte Carlo Tree Searchcited by 4
  21. 2025DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link Graphcited by 4

Built on by

Not cited yet.