Query and Conquer: Execution-Guided SQL Generation
Abstract
We propose a novel approach for generating complex outputs that significantly improves accuracy in text-to-SQL tasks. Our method leverages execution results to select the most semantically consistent query from multiple candidates, enabling smaller, cost-effective models to surpass computationally intensive reasoning methods such as o1, o3-mini, and DeepSeek R1 while reducing inference cost by as much as 30 times. It integrates effortlessly with existing models, offering a practical and scalable pathway to state-of-the-art SQL generation.
Community
While the presented experiments focused on SQL generation, the underlying principle of leveraging execution-based similarity naturally extends to other programming languages and code-generation tasks. Supplementary results on text-to-code benchmarks provided in suggest the broad applicability of execution-guided self-consistency and highlight its potential in program synthesis across diverse domains.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL (2025)
- ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback (2025)
- Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Search (2025)
- Uncovering the Impact of Chain-of-Thought Reasoning for Direct Preference Optimization: Lessons from Text-to-SQL (2025)
- Feather-SQL: A Lightweight NL2SQL Framework with Dual-Model Collaboration Paradigm for Small Language Models (2025)
- ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Format Restriction, and Column Exploration (2025)
- SQLCritic: Correcting Text-to-SQL Generation via Clause-wise Critic (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper