KwaiSQL paper links SQL candidate selection training to stronger generation
Kuaishou researchers report that preference training for picking SQL candidates also improved the model that writes them, on the BIRD Dev benchmark.
In plain words
Text-to-SQL systems turn plain-language questions into database queries, often by generating several candidate queries and then choosing the best one. The KwaiSQL paper trains one model to do both jobs, so lessons from judging candidates feed back into writing them. On the BIRD Dev benchmark, this shared training raised the share of questions with at least one correct candidate.
What was announced
In a new arXiv paper, the authors describe a text-to-SQL setup that combines candidate generation with query selection, and ask whether a shared model can learn both roles at once. Starting from a tool-using generator trained with execution rewards, they apply preference learning to candidate selection and then reuse the resulting checkpoint for both tasks, reasoning that judging how faithfully SQL operations express a question can serve as supervision for generation itself.
The reported results come from the BIRD Dev benchmark, with candidate pools evaluated before selection using the same tools and sampling settings. Selection preference training lifted generation-only pass@16 from 81.79% to 82.83%, meaning more questions had at least one correct candidate among sixteen. The final model reached 74.67% execution accuracy when handling both generation and selection. The authors conclude that learning to compare SQL candidates supplies a training signal that improves generation and raises the ceiling for final selection. The model is publicly available on Hugging Face as Kwai-AutoSQL/Kwai-AutoSQL-27B.
What it does not show
- Evidence is limited to the paper's abstract, so experimental details, baselines and comparisons beyond BIRD Dev are not covered.
- The figures are self-reported by the authors and have not been independently confirmed.
For security and IT teams
- Access
- The model is publicly available on Hugging Face under Kwai-AutoSQL/Kwai-AutoSQL-27B.
Sources
Source-support review completed 30 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 30 Nov 2026
New to the subject? AI from the Ground Up starts from the beginning.