SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications
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
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
24 more
- 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 480
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 164
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 138
- 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 105
- 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 91
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 76
- 2022A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future Directionscited by 52
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 50
- 2024A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLcited by 46
- 2024BEAVER: An Enterprise Benchmark for Text-to-SQLcited by 42
- 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
- 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedbackcited by 24
- 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 16
- 2022I Know What You Are Searching For: Code Snippet Recommendation from Stack Overflow Postscited by 3
Built on by
Citing papers per year: 2025: 8; 2026: 8.
16 papers.
Sort:
By area:
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
- 2025DAComp: Benchmarking Data Agents across the Full Data Intelligence Lifecyclecited by 23
- 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactionscited by 19
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQLcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
- 2025Rethinking Text-to-SQL: Dynamic Multi-turn SQL Interaction for Real-world Database Explorationcited by 2
- 2025Agentic NL2SQL to Reduce Computational Costscited by 1
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarioscited by 1
- 2025Can AI autonomously build, operate, and use the entire data stack?cited by 0
- 2026Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?cited by 0
- 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
4 more
- 2026CAPER: Clause-Aligned Process Supervision for Text-to-SQLcited by 0
- 2026Neurosymbolics for Data Engineering: Achieving Long Context Token Reduction Without Finetuningcited by 0
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQLcited by 0
- 2026HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environmentscited by 0
- 2026HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environments8 Oct 2026
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL4 Oct 2026
- 2026Neurosymbolics for Data Engineering: Achieving Long Context Token Reduction Without Finetuning30 Jun 2026
- 2026CAPER: Clause-Aligned Process Supervision for Text-to-SQL2 Jun 2026
- 2026Residual Skill Optimization for Text-to-SQL Ensembles20 May 2026
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarios28 Apr 2026
- 2026Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?26 Jan 2026
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolution3 Jan 2026
- 2025Can AI autonomously build, operate, and use the entire data stack?8 Dec 2025
- 2025DAComp: Benchmarking Data Agents across the Full Data Intelligence Lifecycle3 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQL2 Nov 2025
4 more
- 2025Rethinking Text-to-SQL: Dynamic Multi-turn SQL Interaction for Real-world Database Exploration30 Oct 2025
- 2025Agentic NL2SQL to Reduce Computational Costs16 Oct 2025
- 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactions6 Oct 2025
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL7 Jul 2025
- 2025DAComp: Benchmarking Data Agents across the Full Data Intelligence Lifecyclecited by 23
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQLcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Agentic NL2SQL to Reduce Computational Costscited by 1
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarioscited by 1
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarios28 Apr 2026
- 2025DAComp: Benchmarking Data Agents across the Full Data Intelligence Lifecycle3 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQL2 Nov 2025
- 2025Agentic NL2SQL to Reduce Computational Costs16 Oct 2025
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
- 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactionscited by 19
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
- 2025Can AI autonomously build, operate, and use the entire data stack?cited by 0
- 2026Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?cited by 0
- 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQLcited by 0
- 2026HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environmentscited by 0
- 2026HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environments8 Oct 2026
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL4 Oct 2026
- 2026Residual Skill Optimization for Text-to-SQL Ensembles20 May 2026
- 2026Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?26 Jan 2026
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolution3 Jan 2026
- 2025Can AI autonomously build, operate, and use the entire data stack?8 Dec 2025
- 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactions6 Oct 2025
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL7 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models
- 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs
- 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
- 2025DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQL
- 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
- 2024Lucy: Think and Reason to Solve Text-to-SQL
- 2026LIMIT: Less Is More for Instruction Tuning in Text-to-SQL
- 2026TAHOE: Text-to-SQL with Automated Hint Optimization from Experience