arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.09693cs.LG
收藏

ConstrainedSQL:通过约束强化学习训练用于Text2SQL任务的大语言模型

ConstrainedSQL: Training LLMs for Text2SQL via Constrained Reinforcement Learning

Rensselaer Polytechnic Institute(拉特格斯理工大学);IBM Research(IBM研究院)

Weiqin Chen, Nhan Huu Pham, Michael Robert Glass, Long Hai Vu, Gaetano Rossiello, Dharmashankar Subramanian, Santiago Paternain

AI总结:

针对现有Text2SQL大语言模型强化学习训练易出现奖励黑客的问题,提出融入可解释奖励与约束信号的ConstrainedSQL框架,经理论验证与数据集实验证明其性能优于现有最优RL训练的Text2SQL大模型。

摘要:

强化学习(RL)在提升Text2SQL大语言模型的推理能力方面展现出巨大潜力,尤其是搭配GRPO、DAPO等先进算法时效果突出。但这类方法的性能对奖励函数设计高度敏感,不当奖励会引发奖励黑客问题:模型会利用奖励机制漏洞获取高分,却并未真正完成任务。本研究提出面向Text2SQL的约束强化学习框架ConstrainedSQL,该框架融入自然且可解释的奖励与约束信号,并在训练过程中动态平衡二者的权衡。我们为该约束强化学习框架建立了理论保证,在知名Text2SQL数据集上开展的数值实验证实,本方法性能优于当前最优的经强化学习训练的大语言模型。

英文摘要:

Reinforcement learning (RL) has demonstrated significant promise in enhancing the reasoning capabilities of Text2SQL LLMs, especially with advanced algorithms such as GRPO and DAPO. However, the performance of these methods is highly sensitive to the design of reward functions. Inappropriate rewards can lead to reward hacking, where models exploit loopholes in the reward structure to achieve high scores without genuinely solving the task. This work considers a constrained RL framework for Text2SQL that incorporates natural and interpretable reward and constraint signals, while dynamically balancing trade-offs among them during the training. We establish the theoretical guarantees of our constrained RL framework and our numerical experiments on the well-known Text2SQL datasets substantiate the improvement of our approach over the state-of-the-art RL-trained LLMs.

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

↑