R^3-SQL: Ranking Reward and Resampling for Text-to-SQL
摘要
# Paper page - R^3-SQL: Ranking Reward and Resampling for Text-to-SQL Source: [https://huggingface.co/papers/2604.25325](https://huggingface.co/papers/2604.25325) ## Abstract R$^3$\-SQL addresses inconsistencies in scoring functionally equivalent SQL queries and improves candidate recall through unified reward ranking and agentic resampling techniques\. Modern[Text\-to\-SQL](https://huggingface.co/papers?q=Text-to-SQL)systems generate multiple candidate[SQL queries](https://huggingface.co/papers
查看缓存全文
缓存时间: 2026/05/11 10:44
Paper page - R^3-SQL: Ranking Reward and Resampling for Text-to-SQL
Source: https://huggingface.co/papers/2604.25325
Abstract
R^3-SQL addresses inconsistencies in scoring functionally equivalent SQL queries and improves candidate recall through unified reward ranking and agentic resampling techniques.
ModernText-to-SQLsystems generate multiple candidateSQL queriesand rank them to judge a final prediction. However, existing methods face two limitations. First, they often score functionally equivalentSQL queriesinconsistently despite identical execution results. Second, ranking cannot recover when the correct SQL is absent from the candidate pool. We propose R^3-SQL, aText-to-SQLframework that addresses both issues through unified reward for ranking and resampling. R^3-SQL first groups candidates by execution result and ranks groups for consistency. To score each group, it combines apairwise preferenceacross groups with apointwise utilityfrom the best group rank and size, capturing relative preference, consistency, and candidate quality. To improve candidate recall, R^3-SQL introducesagentic resampling, which judges the generated candidate pool and selectively resamples when the correct SQL is likely absent. R^3-SQL achieves 75.03execution accuracyon BIRD-dev, a new state of the art among methods using models with disclosed sizes, with consistent gains across five benchmarks.
View arXiv pageView PDFAdd to collection
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2604.25325 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2604.25325 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2604.25325 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
相似文章
Progress-SQL:通过渐进式奖励改进文本到SQL的强化学习
Progress-SQL 提出了一种多轮强化学习框架,采用渐进式奖励用于文本到SQL,利用 Oracle 引导的诊断树提供密集的奖励信号,并在 BIRD 和 Spider 等基准上改进 SQL 查询生成。
SERL-SQL:面向Text-to-SQL强化智能体学习的选择性事后蒸馏
SERL-SQL提出了一种面向多轮Text-to-SQL智能体的选择性执行反馈强化学习框架,利用教师-学生似然差距对SQL动作token上的GRPO优势进行重新加权。该方法在BIRD和Spider基准上取得了强劲的结果。
用记忆替代训练:面向Text-to-SQL的列表式选择
MaP-SQL 通过采用结构化记忆检索和基于排列的排名聚合,无需微调即可增强 Text-to-SQL 的列表式选择性能,在减少令牌使用量的同时超越了最先进的方法。
单数据库奖励可被轻易利用:面向可信 Text-to-SQL 强化学习的反事实执行
论文指出 Text-to-SQL 强化学习中的单数据库奖励极易被 hack,并提出在隐藏数据库副本上执行反事实执行的方法,将奖励作弊率从 54.1% 降至 1.9%,且不会误拒正确查询;同时发现 AgentTune 中存在一个可利用的 SQL 奖励漏洞,已在上游修复。
MEM-SQL:记忆增强的文本转 SQL
该论文介绍了 HARE(一个具备历史感知能力的 Text-to-SQL 基准)和 MEM-SQL(一种由记忆驱动的方法,通过按需模式链接复用已验证的 SQL 模板和代码块),将六个语言模型的平均执行准确率从 37.1% 提升至 50.0%,同时将输入 token 数量减少了 76.6%,延迟降低了 68.8%。