mlsanityData to 14 Oct 2026

Graph-Reward-SQL: Execution-Free Reinforcement Learning for Text-to-SQL via Graph Matching and Stepwise Reward

arXiv 2505.12380 ↗First posted 18 May 2025cs.LG cs.DB cs.PLcited by 7

On the map: LLM alignment / RLHF / preference optimisation → Process reward models for reasoning

also in 1 more
Abstract (arXiv)

Reinforcement learning (RL) has been widely adopted to enhance the performance of large language models (LLMs) on Text-to-SQL tasks. However, existing methods often rely on execution-based or LLM-based Bradley-Terry reward models. The former suffers from high execution latency caused by repeated database calls, whereas the latter imposes substantial GPU memory overhead, both of which significantly hinder the efficiency and scalability of RL pipelines. To this end, we propose a novel reward model framework for RL-based Text-to-SQL named Graph-Reward-SQL, which employs the GMNScore outcome reward model. We leverage SQL graph representations to provide accurate reward signals while significantly reducing time cost and GPU memory usage. Building on this foundation, we further introduce StepRTM, a stepwise reward model that provides intermediate supervision over Common Table Expression (CTE) subqueries. This encourages both functional correctness and readability of SQL. Extensive comparative and ablation experiments on standard benchmarks, including Spider and BIRD, demonstrate that our method consistently outperforms existing reward models.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Process reward models for reasoning, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 29 of its 43 references that are in the map. First posted on arXiv 18 May 2025.

Builds on

29 of 43 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewards7 May
  2. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis3 Feb

Other references · 27

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2017Deep reinforcement learning from human preferencescited by 3,912
  4. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  5. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  6. 2015Gated Graph Sequence Neural Networkscited by 796
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 687
  9. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  10. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  11. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  12. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
15 more
  1. 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 205
  2. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  3. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 164
  4. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 164
  5. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 138
  6. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 126
  7. 2023DeepSpeed-Chat: Easy, Fast and Affordable RLHF Training of ChatGPT-like Models at All Scalescited by 108
  8. 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 105
  9. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  10. 2025SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learningcited by 68
  11. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
  12. 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 54
  13. 2020Neural Subgraph Matchingcited by 47
  14. 2018Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sourcescited by 25
  15. 2022Reward Design For An Online Reinforcement Learning Algorithm Supporting Oral Self-Carecited by 18

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 3.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL
  2. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL
  3. 2026SQL-Trail: Multi-Turn Reinforcement Learning with Interleaved Feedback for Text-to-SQL
  4. 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQL
  5. 2025ConstrainedSQL: Training LLMs for Text2SQL via Constrained Reinforcement Learning
  6. 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learning
  7. 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learning
  8. 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL