mlsanityData to 7 Oct 2026

Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewards

arXiv 2505.04671 ↗First posted 7 May 2025cs.CL cs.LGcited by 25

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

also in 1 more
Abstract (arXiv)

Recent advances in large language models (LLMs) trained with reinforcement learning (RL) have improved Text-to-SQL performance. However, RL-based approaches still struggle with complex queries due to two key limitations: insufficient stepwise execution-aware reasoning grounded in database feedback, and the lack of process-level rewards for guiding reasoning optimization. To address these issues, we propose CoCTE, a divide-and-conquer and execution-aware reasoning framework that progressively composes SQL queries through intermediate view validation and structured Common Table Expressions (CTEs), improving both accuracy and interpretability. To realize a CoCTE reasoning process, we develop Reward-SQL, a unified approach with three stages: (1) model initialization, which equips LLMs with structured CoCTE reasoning capabilities; (2) process reward design, which delivers fine-grained, execution-aware supervision; and (3) process-supervised RL and inference, which integrates process rewards into training and guides the inference stage by process rewards. This paper addresses the core challenges in Reward-SQL and makes the following contributions. We introduce a process reward model (PRM) that combines execution-aware trajectory scoring with entropy-based step weighting, providing dense and interpretable supervision across reasoning steps. We integrate PRM into both RL training and inference stages, stabilizing optimization and improving trajectory exploration with process-level signals. Experiments show that Reward-SQL significantly outperforms baselines with comparable model sizes, and exhibits strong cross-domain generalization.

Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 26 of its 58 references that are in the map. First posted on arXiv 7 May 2025.

Builds on

26 of 58 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar
  2. 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback25 Mar
  3. 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL19 Feb
  4. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQL2 Oct

Other references · 22

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  3. 2024OpenAI o1 System Cardcited by 1,220
  4. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
  5. 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 426
  6. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  7. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  8. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  9. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  10. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  11. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
  12. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 90
10 more
  1. 2025SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learningcited by 67
  2. 2018Variance Reduction for Policy Gradient with Action-Dependent Factorized Baselinescited by 65
  3. 2018Robust Text-to-SQL Generation with Execution-Guided Decodingcited by 51
  4. 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 42
  5. 2025ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Consensus Enforcement, and Column Explorationcited by 34
  6. 2025NL2SQL-BUGs: A Benchmark for Detecting Semantic Errors in NL2SQL Translationcited by 31
  7. 2025SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQLcited by 19
  8. 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
  9. 2024AutoPrep: Natural Language Question-Aware Data Preparation with a Multi-Agent Frameworkcited by 12
  10. 2025Graph Neural Networks for Databases: A Surveycited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 19.

25 papers.

Sort:

By area:

  1. 2025A Survey of Process Reward Models: From Outcome Signals to Process Supervisions for Large Language Modelscited by 37
  2. 2025Agentar-Scale-SQL: Advancing Text-to-SQL through Orchestrated Test-Time Scalingcited by 20
  3. 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
  4. 2026Reasoning and Tool-use Compete in Agentic RL:From Quantifying Interference to Disentangled Tuningcited by 15
  5. 2025Graph-Reward-SQL: Execution-Free Reinforcement Learning for Text-to-SQL via Graph Matching and Stepwise Rewardcited by 7
  6. 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Surveycited by 7
  7. 2026Large Language Model Post-Training: A Unified View of Off-Policy and On-Policy Learningcited by 5
  8. 2026AgenticDataBench: A Comprehensive Benchmark for Data Agentscited by 5
  9. 2026Rewarding the Scientific Process: Process-Level Reward Modeling for Agentic Data Analysiscited by 4
  10. 2026ETS: Energy-Guided Test-Time Scaling for Training-Free RL Alignmentcited by 3
  11. 2026TABQAWORLD: Optimizing Multimodal Reasoning for Multi-Turn Table Question Answeringcited by 3
  12. 2026Enhancing Table Reasoning with Deterministic Table-State Rewardscited by 2
13 more
  1. 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
  2. 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQLcited by 1
  3. 2026PRO-CUA: Process-Reward Optimization for Computer Use Agentscited by 1
  4. 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewardscited by 1
  5. 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
  6. 2026BAP-SQL: Budget-Aware Observation Planning for Agentic Text-to-SQLcited by 1
  7. 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQLcited by 0
  8. 2026Process Rewards with Learned Reliabilitycited by 0
  9. 2026CAPER: Clause-Aligned Process Supervision for Text-to-SQLcited by 0
  10. 2026Turning Off-Policy Tokens On-Policy: A Plug-in Approach for Improving LLM Alignmentcited by 0
  11. 2026From Test-Time Scaling to Reusable Memory: Measuring Crystallization in Text-to-SQLcited by 0
  12. 2026Data Agents: Agentic Data Systemscited by 0
  13. 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025CogniSQL-R1-Zero: Lightweight Reinforced Reasoning for Efficient SQL Generation
  2. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL
  3. 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL
  4. 2026Test-Time Verification for Text-to-SQL via Outcome Reward Models
  5. 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL
  6. 2025JudgeSQL: Reasoning over SQL Candidates with Weighted Consensus Tournament
  7. 2025GradeSQL: Test-Time Inference with Outcome Reward Models for Text-to-SQL Generation from Large Language Models
  8. 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learning