菜单

关于 🐙 GitHub
arXiv 提交日期: 2026-04-28
📄 Abstract - R$^3$-SQL: Ranking Reward and Resampling for Text-to-SQL

Modern Text-to-SQL systems generate multiple candidate SQL queries and rank them to judge a final prediction. However, existing methods face two limitations. First, they often score functionally equivalent SQL queries inconsistently despite identical execution results. Second, ranking cannot recover when the correct SQL is absent from the candidate pool. We propose R$^3$-SQL, a Text-to-SQL framework 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 a pairwise preference across groups with a pointwise utility from the best group rank and size, capturing relative preference, consistency, and candidate quality. To improve candidate recall, R$^3$-SQL introduces agentic resampling, which judges the generated candidate pool and selectively resamples when the correct SQL is likely absent. R$^3$-SQL achieves 75.03 execution accuracy on BIRD-dev, a new state of the art among methods using models with disclosed sizes, with consistent gains across five benchmarks.

顶级标签: natural language processing agents model training
详细标签: text-to-sql ranking resampling execution accuracy candidate generation 或 搜索:

R³-SQL:基于排序奖励与重采样的文本到SQL框架 / R$^3$-SQL: Ranking Reward and Resampling for Text-to-SQL


1️⃣ 一句话总结

该论文提出了一种名为R³-SQL的新方法,通过将执行结果相同的候选SQL语句分组评分,并智能判断何时需要重新生成更多候选方案,解决了现有文本转SQL系统中评分不一致和正确答案缺失的问题,在多个测试基准上取得了领先效果。

源自 arXiv: 2604.25325