mlsanityData to 7 Oct 2026

MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQL

arXiv 2511.01008 ↗First posted 2 Nov 2025cs.CLcited by 14

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Large Language Models (LLMs) often struggle with the precise logic and schema alignment required for complex Text-to-SQL tasks. While current methods rely heavily on static prompting, they lack the ability to dynamically adapt and self-correct through environmental interaction. To bridge this gap, we propose MARS-SQL, a trainable multi-agent framework for Text-to-SQL. Rather than introducing a new standalone SQL primitive, MARS-SQL makes an agentic workflow trainable by decomposing the problem into three specialized roles: schema grounding, query generation, and solution validation. Central to our approach is a generation agent trained via a multi-turn RL policy within a ReAct-style loop. The agent learns to iteratively reason, execute intermediate SQL actions on a live database, and refine its strategy based on execution feedback. To improve robustness, we further introduce a validation mechanism that treats solution selection as a generative modeling task, identifying the optimal interaction trajectory through next-token prediction probabilities. Empirical evaluations demonstrate the effectiveness of coupling interactive learning with trajectory ranking. MARS-SQL achieves state-of-the-art performance, recording an execution accuracy of 77.84% on the BIRD development dataset and 89.75% on the Spider test dataset, while also transferring strongly to out-of-domain benchmarks. Code is available at https://github.com/YangHaolin0526/MARS-SQL.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 58 of its 72 references that are in the map. First posted on arXiv 2 Nov 2025.

Builds on

58 of 72 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025MTSQL-R1: Towards Long-Horizon Multi-Turn Text-to-SQL via Agentic Training12 Oct
  2. 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction30 Aug
  3. 2024MAIN-RAG: Multi-Agent Filtering Retrieval-Augmented Generation31 Dec
  4. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec

Other references · 54

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
  7. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
  8. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  9. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  10. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
  11. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  12. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
38 more
  1. 2024A Survey on LLM-as-a-Judgecited by 1,384
  2. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  3. 2023ChatDev: Communicative Agents for Software Developmentcited by 893
  4. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  5. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  6. 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 465
  7. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  8. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
  9. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  10. 2023AutoAgents: A Framework for Automatic Agent Generationcited by 211
  11. 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
  12. 2025Thinking with Images for Multimodal Reasoning: Foundations, Methods, and Future Frontierscited by 193
  13. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
  14. 2023InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviewscited by 177
  15. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  16. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  17. 2023War and Peace (WarAgent): Large Language Model-based Multi-Agent Simulation of World Warscited by 143
  18. 2024Marco-o1: Towards Open Reasoning Models for Open-Ended Solutionscited by 142
  19. 2019SParC: Cross-Domain Semantic Parsing in Contextcited by 141
  20. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
  21. 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
  22. 2024BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Samplingcited by 120
  23. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
  24. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
  25. 2024On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agentscited by 92
  26. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 90
  27. 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
  28. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  29. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
  30. 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 51
  31. 2025AdaCtrl: Towards Adaptive and Controllable Reasoning via Difficulty-Aware Budgetingcited by 50
  32. 2024A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLcited by 46
  33. 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
  34. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQLcited by 38
  35. 2024MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translationcited by 17
  36. 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 15
  37. 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
  38. 2025Advancing Language Multi-Agent Learning with Credit Re-Assignment for Interactive Environment Generalizationcited by 11

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 12.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026SQL-Trail: Multi-Turn Reinforcement Learning with Interleaved Feedback for Text-to-SQL
  2. 2026ReToolSQL: Agentic Reinforcement Learning for Robust Text-to-SQL
  3. 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback
  4. 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewards
  5. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
  6. 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQL
  7. 2025RAISE: Reasoning Agent for Interactive SQL Exploration
  8. 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL