mlsanityData to 14 Oct 2026

ExeSQL: Self-Taught Text-to-SQL Models with Execution-Driven Bootstrapping for SQL Dialects

arXiv 2505.17231 ↗First posted 22 May 2025cs.CL cs.AI cs.DBcited by 12

On the map: Synthetic data and self-improvement for LLMs → Synthetic reasoning data and bootstrapping

Abstract (arXiv)

Recent text-to-SQL models have achieved strong performance, but their effectiveness remains largely confined to SQLite due to dataset limitations. However, real-world applications require SQL generation across multiple dialects with varying syntax and specialized features, which remains a challenge for current models. The main obstacle in building a dialect-aware model lies in acquiring high-quality dialect-specific data. Data generated purely through static prompting - without validating SQLs via execution - tends to be noisy and unreliable. Moreover, the lack of real execution environments in the training loop prevents models from grounding their predictions in executable semantics, limiting generalization despite surface-level improvements from data filtering. This work introduces ExeSQL, a text-to-SQL framework with execution-driven, agentic bootstrapping. The method consists of iterative query generation, execution-based filtering (e.g., rejection sampling), and preference-based training, enabling the model to adapt to new SQL dialects through verifiable, feedback-guided learning. Experiments show that ExeSQL bridges the dialect gap in text-to-SQL, achieving average improvements of 15.2%, 10.38%, and 4.49% over GPT-4o on PostgreSQL, MySQL, and Oracle, respectively, across multiple datasets of varying difficulty.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Synthetic reasoning data and bootstrapping, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 54 of its 80 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

54 of 80 references.

Closest ancestors · 1

Same direction, newest first

  1. 2022STaR: Bootstrapping Reasoning With Reasoning28 Mar

Other references · 53

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2017Proximal Policy Optimization Algorithmscited by 15,215
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  7. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  8. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  9. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  10. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  11. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  12. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
38 more
  1. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  2. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  3. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  4. 2023LIMA: Less Is More for Alignmentcited by 1,100
  5. 2023StarCoder: may the source be with you!cited by 799
  6. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 687
  9. 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 686
  10. 2023Reinforced Self-Training (ReST) for Language Modelingcited by 500
  11. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  12. 2023Mitigating Hallucination in Large Multi-Modal Models via Robust Instruction Tuningcited by 445
  13. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
  14. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
  15. 2021TAPEX: Table Pre-training via Learning a Neural SQL Executorcited by 235
  16. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
  17. 2023G-LLaVA: Solving Geometric Problem with Multi-Modal Large Language Modelcited by 210
  18. 2024ALLaVA: Harnessing GPT4V-Synthesized Data for Lite Vision-Language Modelscited by 205
  19. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
  20. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  21. 2023Mitigating the Alignment Tax of RLHFcited by 183
  22. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 169
  23. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 164
  24. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  25. 2024VideoDPO: Omni-Preference Alignment for Video Diffusion Generationcited by 108
  26. 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 77
  27. 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 68
  28. 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 53
  29. 2022Self-Guided Noise-Free Data Generation for Efficient Zero-Shot Learningcited by 50
  30. 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47
  31. 2024Image Textualization: An Automatic Framework for Creating Accurate and Detailed Image Descriptionscited by 43
  32. 2024ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweightingcited by 37
  33. 2024Mitigating Catastrophic Forgetting in Language Transfer via Model Mergingcited by 36
  34. 2024StructLM: Towards Building Generalist Models for Structured Knowledge Groundingcited by 29
  35. 2024Personalized Visual Instruction Tuningcited by 24
  36. 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 23
  37. 2024UniCoder: Scaling Code Large Language Model via Universal Codecited by 18
  38. 2024SQL-GEN: Bridging the Dialect Gap for Text-to-SQL Via Synthetic Data And Model Mergingcited by 16

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 11.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026EXPO-SQL: Execution-based Clause-level Policy Optimization for Text-to-SQL
  2. 2025GradeSQL: Test-Time Inference with Outcome Reward Models for Text-to-SQL Generation from Large Language Models
  3. 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models
  4. 2025Text2SQL-Flow: A Robust SQL-Aware Data Augmentation Framework for Text-to-SQL
  5. 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
  6. 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQL
  7. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL
  8. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale