R$^3$-SQL: Ranking Reward and Resampling for Text-to-SQL
Hojae Han, Yeonseok Jeong, Seung-won Hwang, Zhewei Yao, Yuxiong He

TL;DR
R$^3$-SQL introduces a unified reward and resampling framework for Text-to-SQL tasks, improving ranking consistency and candidate recall, leading to state-of-the-art accuracy.
Contribution
It proposes a novel approach combining group-based ranking and agentic resampling to enhance Text-to-SQL performance.
Findings
Achieves 75.03% execution accuracy on BIRD-dev, setting a new state-of-the-art.
Demonstrates consistent improvements across five benchmark datasets.
Abstract
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-SQL, a Text-to-SQL framework that addresses both issues through unified reward for ranking and resampling. R-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-SQL introduces agentic resampling, which judges the generated candidate pool and selectively…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
