Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL

Zhewei Yao, Guoheng Sun, Lukasz Borchmann, Gaurav Nuti, Zheyu Shen +5 more
5/22/2025
cs.CLcs.AI

No official code found. Best implementation: snowflakedb/ArcticTraining (291 stars, Apache-2.0, last commit 2026-04-27).

Abstract

Translating natural language into SQL (Test2SQL) is a longstanding challenge at the intersection of natural language understanding and structured data access. While large language models (LLMs) have significantly improved fluency in SQL generation, producing correct and executable SQL--particularly for complex queries--remains a bottleneck. We present Arctic-Text2SQL-R1, a reinforcement learning (RL) framework and model family designed to generate accurate, executable SQL using a lightweight reward signal based solely on execution correctness. Our approach avoids brittle intermediate supervision and complex reward shaping, promoting stable training and alignment with the end task. Combined with carefully curated data, strong supervised initialization, and effective training practices, Arctic-Text2SQL-R1 achieves state-of-the-art execution accuracy across six diverse Test2SQL benchmarks, including the top position on the BIRD leaderboard. Notably, our 7B model outperforms prior 70B-class systems, highlighting the framework's scalability and efficiency. We further demonstrate inference-time robustness through simple extensions like value retrieval and majority voting. Extensive experiments and ablation studies offer both positive and negative insights, providing practical guidance for future Test2SQL research.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

ArcticTraining is a framework designed to simplify and accelerate the post-training process for large language models (LLMs)

29141C, C++Jan 10, 20255 months agoApache-2.0

Similar Papers

Cite this paper

@article{yao2025arctictextsqlr,
  title  = {Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL},
  author = {Zhewei Yao and Guoheng Sun and Lukasz Borchmann and Gaurav Nuti and Zheyu Shen and Minghang Deng and Bohan Zhai and Hao Zhang and Ang Li and Yuxiong He},
  year   = {2025},
  eprint = {2505.20315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.20315v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.20315.svg)](https://codeofpaper.com/paper/2505.20315)

Discussion