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

- **ID:** 957
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2505.12380
- **Authors:** Weng, Han, Wu, Puzhen, Cui, Longjie, Zhan, Yi, Liu, Boyi, Song, Yuanfeng, Zeng, Dun, Yang, Yingxiang, et al. (13 authors)
- **Venue:** arXiv 2505.12380
- **Publisher:** arXiv 2505.12380
- **Published:** 2025
- **Source:** arxiv
- **Access:** open arXiv PDF/abs
- **Tags:** arxiv, 2505-12380, reasoning-rl, code-sql, linkedin-thread
- **Topics:** reasoning / RL; code / SQL
- **Added:** 2026-09-15
- **Verified:** 2026-09-15
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/957

## 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…

## Attributes

- **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)

## From the source (fetched 2026-10-03)

- **Published:** May 18, 2025 (arXiv)
- **Last revised:** Oct 3, 2025 (arXiv)
- **arXiv categories:** cs.LG, cs.DB, cs.PL (arXiv)
- **Citations:** 9 (2 influential) (Semantic Scholar)
- **References:** 43 (Semantic Scholar)
- **Published in:** Conference on Empirical Methods in Natural Language Processing (Semantic Scholar)

## Abstract

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.

## 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

- [DAG-Math: Graph-of-Thought Guided Mathematical Reasoning in LLMs](https://papers.projxon.ai/entries/935) (paper, #935)
- [TROLL: Trust Regions improve Reinforcement Learning for Large Language Models](https://papers.projxon.ai/entries/931) (paper, #931)
- [Budget-aware Test-time Scaling via Discriminative Verification](https://papers.projxon.ai/entries/954) (paper, #954)
- [Are Large Reasoning Models Interruptible?](https://papers.projxon.ai/entries/969) (paper, #969)
- [Variational Reasoning for Language Models](https://papers.projxon.ai/entries/948) (paper, #948)
- [Amortized Latent Steering: Low-Cost Alternative to Test-Time Optimization](https://papers.projxon.ai/entries/941) (paper, #941)
