arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.25510cs.AI
收藏

MTIR-SQL: 面向Text-to-SQL的多轮工具集成推理强化学习

MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQL

Meituan(美团);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Beijing Institute of Technology(北京理工大学);Shanghai Jiao Tong University(上海交通大学);Peking University(北京大学)

Zekun Xu, Siyu Xia, Chuhuai Yue, Jiajun Chai, Mingxue Tian, Xiaohan Wang, Wei Lin, Haoxuan Li, Guojun Yin

AI总结:

针对现有Text-to-SQL强化学习方法依赖静态反馈、纠错能力有限的问题,提出多轮工具集成推理框架MTIR-SQL,通过引入执行感知多轮推理与改进的GRPO算法,在两个基准数据集上取得了优于现有方法的性能。

摘要:

随着大语言模型(LLM)在Text-to-SQL任务中的应用日益广泛,强化学习(RL)已成为提升性能的常用方法。现有方法主要依赖静态执行反馈,限制了实时纠错能力。而将多轮工具调用与动态反馈相结合,可显著提升适应性与鲁棒性,最终增强模型性能。为解决这些问题,我们提出MTIR-SQL,一种创新的面向Text-to-SQL的多轮工具集成推理强化学习框架。该方法引入了执行感知的多轮推理范式,在每个推理步骤无缝融入数据库执行反馈,实现上下文敏感的查询生成与推理过程中的渐进式优化。该框架对GRPO算法进行了扩展,以适配复杂的多轮交互场景。考虑到多轮工具集成推理(MTIR)的训练不稳定性特征以及模型分布可能与初始模型产生显著偏差的问题,我们通过添加轨迹过滤机制并移除KL损失约束来改进GRPO算法。实验结果表明,参数量为4B的MTIR-SQL在BIRD开发集上准确率达到64.4%,在SPIDER开发集上执行准确率达到84.6%,显著优于现有方法。

英文摘要:

As large language models (LLMs) are increasingly used in Text-to-SQL tasks, Reinforcement Learning (RL) has become a common method for improving performance. Existing methods primarily rely on static execution feedback, which restricts real-time error correction. However, integrating multi-turn tool invocation along with dynamic feedback could significantly improve adaptability and robustness, ultimately enhancing model performance. To address these issues, we propose MTIR-SQL, an innovative Multi-turn Tool-Integrated Reasoning reinforcement learning framework for Text-to-SQL. Our approach introduces an execution-aware multi-turn reasoning paradigm that seamlessly incorporates database execution feedback at each reasoning step, enabling context-sensitive query generation and progressive refinement throughout the reasoning process. The framework extends the GRPO algorithm to accommodate complex multi-turn interaction scenarios. Considering the training instability characteristics of MTIR and the potential for significant Deviation of model distribution from the initial model, we enhance the GRPO algorithm by adding a trajectory filtering mechanism and removing KL loss constraints. Experimental results demonstrate that MTIR-SQL, with 4B parameters, achieves \textbf{64.4}\% accuracy in the BIRD Dev and 84.6% execution accuracy in the SPIDER Dev, significantly outperforming existing approaches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑