Graph-Reward-SQL: Execution-Free Reinforcement Learning for Text-to-SQL via Graph Matching and Stepwise Reward
Summary
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…
- Venue
- arXiv 2505.12380
- Publisher
- arXiv 2505.12380
- Source
- arxiv
- Access
- open arXiv PDF/abs
- Purpose
- Graph-Reward-SQL: Execution-Free Reinforcement Learning for Text-to-SQL via Graph Matching and Stepwise Reward
- Domain
- reasoning / RL; code / SQL
- Used for
- LLM research reference
- Time period
- arXiv 2025/05/18; Discord LinkedIn mid harvested 2026-09-15
- Author type
- academic/industry (see abs)
- Added
- Sep 15, 2026
- Verified
- Sep 15, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- May 18, 2025
- Last revised
- Oct 3, 2025
- arXiv categories
- cs.LG, cs.DB, cs.PL
- Citations
- 9 (2 influential)
- References
- 43
- Published in
- Conference on Empirical Methods in Natural Language Processing
Abstract (from 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.
Tags
Topics
reasoning / RL; code / SQL
Research notes
- From LinkedIn thread (Discord mid 1327534772267913267). Primary: https://www.linkedin.com/posts/philipp-schmid-a6a2bb196_current-steps-to-build-reasoning-models-like-activity-7283422780459479041-sDra?utm_source=share&utm_medium=member_desktop.
Similar entries
- Paper DAG-Math: Graph-of-Thought Guided Mathematical Reasoning in LLMs
- Paper TROLL: Trust Regions improve Reinforcement Learning for Large Language Models
- Paper Budget-aware Test-time Scaling via Discriminative Verification
- Paper Are Large Reasoning Models Interruptible?
- Paper Variational Reasoning for Language Models
- Paper Amortized Latent Steering: Low-Cost Alternative to Test-Time Optimization