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

超越查询级比较:面向文本到SQL的细粒度强化学习与自动可解释批评

Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiques

ByteDance, Beijing, China(字节跳动,北京,中国)

Guifeng Wang, Yuanfeng Song, Meng Yang, Tao Zhu, Xiaoming Yin, Xing Chen

AI总结:

RuCo-C通过细粒度强化学习和自动可解释批评,提升文本到SQL的评估性能。

摘要:

文本到SQL是一项关键的自然语言处理(NLP)任务,将文本查询转换为可执行的SQL。近年来,该任务取得了显著进展。然而,现有的评估和奖励机制用于训练和评估文本到SQL模型仍然是关键瓶颈。现有方法严重依赖人工标注的黄金SQL查询,其生成成本高且不适用于大规模评估。更重要的是,大多数文本到SQL中的强化学习(RL)方法仅利用最终的二元执行结果作为奖励信号,这种粗粒度的监督忽略了从评分标准角度的详细结构和语义错误。为了解决这些挑战,我们提出RuCo-C,一种新的生成性评判模型,用于细粒度、查询特定的自动评估,通过可解释批评实现无需人工干预的自动评估。我们的框架首先自动为查询生成特定的评估评分标准,链接到可解释的批评。随后,它通过“逐步探索”策略在RL训练过程中整合密集的奖励反馈,动态调整奖励以提高模型性能。全面的实验表明,RuCo-C在文本到SQL评估中优于现有方法,取得了显著的性能提升。

英文摘要:

Text-to-SQL, a pivotal natural language processing (NLP) task that converts textual queries into executable SQL, has seen substantial progress in recent years. However, existing evaluation and reward mechanisms used to train and assess the text-to-SQL models remain a critical bottleneck. Current approaches heavily rely on manually annotated gold SQL queries, which are costly to produce and impractical for large-scale evaluation. More importantly, most reinforcement learning (RL) methods in text-to-SQL leverage only the final binary execution outcome as the reward signal, a coarse-grained supervision that overlooks detailed structural and semantic errors from the perspective of rubrics. To address these challenges, we propose RuCo-C, a novel generative judge model for fine-grained, query-specific automatic evaluation using interpretable critiques without human intervention. Our framework first automatically generates query-specific evaluation rubrics for human-free annotation, linking them to interpretable critiques. Subsequently, it integrates densified reward feedback through a "progressive exploration" strategy during the RL training process, which dynamically adjusts the rewards to enhance the model's performance. Comprehensive experiments demonstrate that RuCo-C outperforms existing methods in text-to-SQL evaluation, yielding significant performance gains.

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

↑