mlsanityData to 14 Oct 2026

SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications

arXiv 2506.18951 ↗First posted 23 Jun 2025cs.DB cs.AIcited by 16

Not on the map. Why?

Abstract (arXiv)

Resolution of complex SQL issues persists as a significant bottleneck in real-world database applications. Current Large Language Models (LLMs), while adept at text-to-SQL translation, have not been rigorously evaluated on the more challenging task of debugging SQL issues. To address this gap, we introduce BIRD-CRITIC, a new SQL issue debugging benchmark comprising 530 PostgreSQL tasks (BIRD-CRITIC-PG) and 570 multi-dialect tasks (BIRD-CRITIC-Multi), distilled from authentic user issues and replayed within new environments to facilitate rigorous evaluation. Baseline evaluations underscore the task's complexity, with the leading reasoning model O3-Mini achieving only 38.87% success rate on BIRD-CRITIC-PG and 33.33% on BIRD-CRITIC-Multi. Meanwhile, advancing open-source models for database tasks is crucial for empowering local development while safeguarding data privacy. Therefore, we present Six-Gym (Sql-fIX-Gym), a training environment for elevating open-source model capabilities for SQL issue debugging. This environment leverages SQL-Rewind strategy, which automatically generates executable issue-solution datasets by reverse-engineering issues from verified SQLs. However, popular trajectory-based fine-tuning methods do not explore substantial supervisory signals. We further propose f-Plan Boosting, which extracts high-level debugging plans from SQL solutions, enabling teacher LLMs to produce 73.7% more successful trajectories for training. We integrate these components into an open-source agent, Bird-Fixer. Based on Qwen-2.5-Coder-14B, Bird-Fixer achieves 38.11% success rate on BIRD-CRITIC-PG and 29.65% on BIRD-CRITIC-Multi, surpassing leading proprietary models such as Claude-3.7-Sonnet and GPT-4.1, marking a significant step toward democratizing sophisticated SQL-debugging capabilities. The leaderboard and source code are available: https://bird-critic.github.io/

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 36 of its 54 references that are in the map. First posted on arXiv 23 Jun 2025.

Builds on

36 of 54 references.

References · 36

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  5. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  7. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  8. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
  9. 2023Teaching Large Language Models to Self-Debugcited by 988
  10. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  11. 2024Executable Code Actions Elicit Better LLM Agentscited by 564
  12. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
24 more
  1. 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 480
  2. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  3. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  5. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
  6. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  7. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
  8. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
  9. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  10. 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
  11. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 164
  12. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
  13. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 138
  14. 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 105
  15. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 91
  16. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 76
  17. 2022A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future Directionscited by 52
  18. 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 50
  19. 2024A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLcited by 46
  20. 2024BEAVER: An Enterprise Benchmark for Text-to-SQLcited by 42
  21. 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
  22. 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedbackcited by 24
  23. 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 16
  24. 2022I Know What You Are Searching For: Code Snippet Recommendation from Stack Overflow Postscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 8.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models
  2. 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs
  3. 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
  4. 2025DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQL
  5. 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
  6. 2024Lucy: Think and Reason to Solve Text-to-SQL
  7. 2026LIMIT: Less Is More for Instruction Tuning in Text-to-SQL
  8. 2026TAHOE: Text-to-SQL with Automated Hint Optimization from Experience