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

SQL-ASTRA: 缓解代理SQL中的稀疏反馈 via 列集匹配和轨迹聚合

SQL-ASTRA: Alleviating Sparse Feedback in Agentic SQL via Column-Set Matching and Trajectory Aggregation

Griffith University(格里菲斯大学);Fudan University(复旦大学);The University of Hong Kong(香港大学);Peking University(北京大学);InFly;Shanghai Innovation Institute(上海创新研究院);Shanghai Academy of Artificial Intelligence for Science(上海人工智能科学研究院)

Long Li, Zhijian Zhou, Jiangxuan Long, Peiyang Liu, Weidi Xu, Zhe Wang, Shirui Pan, Chao Qu

AI总结:

本文提出SQL-ASTRA框架,通过列集匹配和轨迹聚合解决代理SQL中的稀疏反馈问题,引入轨迹奖励和列集匹配奖励,提升多轮任务的奖励分配效率与稳定性。

摘要:

代理强化学习(RL)在复杂任务中展现出潜力,但文本到SQL仍主要受限于单轮范式。主要瓶颈是信用分配问题。在传统范式中,奖励仅由最终轮反馈决定,忽略了中间过程,导致信用评估模糊。为此,我们提出代理SQL框架,其特征是通用的双层奖励机制,旨在提供有效的轨迹级评估和密集的步骤级信号。首先,我们引入聚合轨迹奖励(ATR)以解决多轮信用分配。利用非对称转移矩阵,ATR将过程导向得分聚合,以激励持续改进。利用李雅普诺夫稳定性理论,我们证明ATR作为能量耗散操作符,保证无环策略和单调收敛。其次,列集匹配奖励(CSMR)提供即时步骤级奖励以缓解稀疏性。通过在每轮执行查询,CSMR将二元(0/1)反馈转换为密集的[0, 1]信号基于部分正确性。在BIRD数据集上,与二元奖励GRPO相比,取得了5%的提升。值得注意的是,我们的方法在相同模型下优于SOTA Arctic-Text2SQL-R1-7B在BIRD和Spider 2.0上的表现,推动文本到SQL向稳健的多轮代理范式发展。

英文摘要:

Agentic Reinforcement Learning (RL) shows promise for complex tasks, but Text-to-SQL remains mostly restricted to single-turn paradigms. A primary bottleneck is the credit assignment problem. In traditional paradigms, rewards are determined solely by the final-turn feedback, which ignores the intermediate process and leads to ambiguous credit evaluation. To address this, we propose Agentic SQL, a framework featuring a universal two-tiered reward mechanism designed to provide effective trajectory-level evaluation and dense step-level signals. First, we introduce Aggregated Trajectory Reward (ATR) to resolve multi-turn credit assignment. Using an asymmetric transition matrix, ATR aggregates process-oriented scores to incentivize continuous improvement. Leveraging Lyapunov stability theory, we prove ATR acts as an energy dissipation operator, guaranteeing a cycle-free policy and monotonic convergence. Second, Column-Set Matching Reward (CSMR) provides immediate step-level rewards to mitigate sparsity. By executing queries at each turn, CSMR converts binary (0/1) feedback into dense [0, 1] signals based on partial correctness. Evaluations on BIRD show a 5% gain over binary-reward GRPO. Notably, our approach outperforms SOTA Arctic-Text2SQL-R1-7B on BIRD and Spider 2.0 using identical models, propelling Text-to-SQL toward a robust multi-turn agent paradigm.

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

↑