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.
ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL
Soochow University(苏州大学);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济发展实验室);South China University of Technology(华南理工大学);University of Chinese Academy of Sciences(中国科学院大学);Alibaba DAMO Academy(阿里巴巴达摩院);International Digital Economy Academy (IDEA), China(国际数字经济学院(IDEA),中国)
VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Use
University of Waterloo(滑铁卢大学);Sea AI Lab(Sea AI 实验室);University of Toronto(多伦多大学);Shanghai University(上海大学);HKUST(香港科技大学);M-A-P;National University of Singapore(新加坡国立大学)
MARS$^2$: Scaling Multi-Agent Tree Search via Reinforcement Learning for Code Generation
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Innovation Institute(上海创新研究院);Harbin Institute of Technology(哈尔滨工业大学);Tsinghua University(清华大学)
LearNAT: Learning NL2SQL with AST-guided Task Decomposition for Large Language Models
School of Computer Science, Peking University(北京大学计算机科学系);Key Laboratory of High Confidence Software Technologies, Ministry of Education(教育部高可信软件技术重点实验室);Big Data Technology Research Center, Nanhu Laboratory(纳米实验室大数据技术研究中心);National Engineering Research Center For Software Engineering, Peking University(北京大学软件工程国家工程研究中心);Peking University Information Technology Institute (Tianjin Binhai)(北京大学信息技术研究院(天津滨海));School of Computer Sciences, Beijing University of Posts and Telecommunications(北京邮电大学计算机科学系);Huawei Technologies Co., Ltd(华为技术有限公司);Seed, ByteDance Inc.(字节跳动公司)
Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQL
Institute of Computer Science and Technology, Soochow University, China(苏州大学计算机科学与技术学院);Ant Digital Technologies, Ant Group(蚂蚁集团数字技术部);School of Management, University of Science and Technology of China(中国科学技术大学管理学院)
A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback
Griffith University (Australia)(格里菲斯大学);VinUniversity (Vietnam)(文大学);Humboldt-Universitat zu Berlin (Germany)(柏林洪堡大学);The University of Queensland, Australia (2025)(昆士兰大学)