MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQL
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
- 2025MTSQL-R1: Towards Long-Horizon Multi-Turn Text-to-SQL via Agentic Training12 Oct
- 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction30 Aug
- 2024MAIN-RAG: Multi-Agent Filtering Retrieval-Augmented Generation31 Dec
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec
Other references · 54
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
38 more
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2023ChatDev: Communicative Agents for Software Developmentcited by 893
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 465
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
- 2023AutoAgents: A Framework for Automatic Agent Generationcited by 211
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
- 2025Thinking with Images for Multimodal Reasoning: Foundations, Methods, and Future Frontierscited by 193
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
- 2023InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviewscited by 177
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
- 2023War and Peace (WarAgent): Large Language Model-based Multi-Agent Simulation of World Warscited by 143
- 2024Marco-o1: Towards Open Reasoning Models for Open-Ended Solutionscited by 142
- 2019SParC: Cross-Domain Semantic Parsing in Contextcited by 141
- 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
- 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
- 2024BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Samplingcited by 120
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
- 2024On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agentscited by 92
- 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 90
- 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
- 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 51
- 2025AdaCtrl: Towards Adaptive and Controllable Reasoning via Difficulty-Aware Budgetingcited by 50
- 2024A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLcited by 46
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
- 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQLcited by 38
- 2024MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translationcited by 17
- 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 15
- 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
- 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
Citing papers per year: 2025: 2; 2026: 12.
14 papers.
Sort:
By area:
- 2025ClinTutor-R1: Advancing Scalable and Robust One-to-Many Alignment in Clinical Socratic Educationcited by 5
- 2026RebuttalAgent: Strategic Persuasion in Academic Rebuttal via Theory of Mindcited by 4
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatilitycited by 3
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesiscited by 2
- 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQLcited by 1
- 2026Does Synthetic Layered Design Data Benefit Layered Design Decomposition?cited by 1
- 2026BAP-SQL: Budget-Aware Observation Planning for Agentic Text-to-SQLcited by 1
- 2026Entropy Centroids as Intrinsic Rewards for Test-Time Scalingcited by 0
- 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agentscited by 0
- 2026SERL-SQL: Selective Hindsight Distillation for Text-to-SQL Reinforcement Agentic Learningcited by 0
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learningcited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026Mind or Message? Auditing Theory of Mind in Multi-Agent Social Simulation21 Sep 2026
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learning16 Sep 2026
- 2026BAP-SQL: Budget-Aware Observation Planning for Agentic Text-to-SQL3 Aug 2026
- 2026SERL-SQL: Selective Hindsight Distillation for Text-to-SQL Reinforcement Agentic Learning1 Aug 2026
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agents17 Jun 2026
- 2026Residual Skill Optimization for Text-to-SQL Ensembles20 May 2026
- 2026Does Synthetic Layered Design Data Benefit Layered Design Decomposition?14 May 2026
- 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQL6 May 2026
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatility2 May 2026
- 2026Entropy Centroids as Intrinsic Rewards for Test-Time Scaling28 Apr 2026
- 2026RebuttalAgent: Strategic Persuasion in Academic Rebuttal via Theory of Mind22 Jan 2026
- 2026BAP-SQL: Budget-Aware Observation Planning for Agentic Text-to-SQLcited by 1
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agentscited by 0
- 2026SERL-SQL: Selective Hindsight Distillation for Text-to-SQL Reinforcement Agentic Learningcited by 0
- 2026Mind or Message? Auditing Theory of Mind in Multi-Agent Social Simulationcited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026Mind or Message? Auditing Theory of Mind in Multi-Agent Social Simulation21 Sep 2026
- 2026BAP-SQL: Budget-Aware Observation Planning for Agentic Text-to-SQL3 Aug 2026
- 2026SERL-SQL: Selective Hindsight Distillation for Text-to-SQL Reinforcement Agentic Learning1 Aug 2026
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agents17 Jun 2026
- 2025ClinTutor-R1: Advancing Scalable and Robust One-to-Many Alignment in Clinical Socratic Educationcited by 5
- 2026RebuttalAgent: Strategic Persuasion in Academic Rebuttal via Theory of Mindcited by 4
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatilitycited by 3
- 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQLcited by 1
- 2026Does Synthetic Layered Design Data Benefit Layered Design Decomposition?cited by 1
- 2026Residual Skill Optimization for Text-to-SQL Ensemblescited by 0
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learningcited by 0
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learning16 Sep 2026
- 2026Residual Skill Optimization for Text-to-SQL Ensembles20 May 2026
- 2026Does Synthetic Layered Design Data Benefit Layered Design Decomposition?14 May 2026
- 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQL6 May 2026
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatility2 May 2026
- 2026RebuttalAgent: Strategic Persuasion in Academic Rebuttal via Theory of Mind22 Jan 2026
- 2025ClinTutor-R1: Advancing Scalable and Robust One-to-Many Alignment in Clinical Socratic Education5 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026SQL-Trail: Multi-Turn Reinforcement Learning with Interleaved Feedback for Text-to-SQL
- 2026ReToolSQL: Agentic Reinforcement Learning for Robust Text-to-SQL
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback
- 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewards
- 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQL
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration
- 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL