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

Zhewei Yao, Guoheng Sun, Lukasz Borchmann, Zheyu Shen, Minghang Deng, Bohan Zhai, Hao Zhang, Ang Li, Yuxiong He

TL;DR

Snowflake researchers have introduced Arctic-Text2SQL-R1, an RL-based framework that achieves state-of-the-art performance by rewarding models based on a surprisingly simple signal: execution correctness. By combining Group Relative Policy Optimization (GRPO) with rigorous data filtering, their 32B model claimed the #1 spot on the BIRD leaderboard, proving that complex reward engineering is unnecessary for deep SQL reasoning.

What Problem Does This Paper Address?

Translating natural language into SQL (Text2SQL) is the key to democratizing data access for non-technical users. However, standard Supervised Fine-Tuning (SFT) often fails on complex queries involving multi-table joins or nested logic because models learn to mimic the "surface" of the SQL rather than the underlying reasoning.

Previous attempts to use Reinforcement Learning (RL) to fix this often relied on "reward shaping"—complex formulas that gave partial credit for things like correct syntax or keyword usage. These methods are notoriously brittle and often lead to "reward hacking," where the model finds shortcuts to get a high score without actually solving the problem.

Methods

The authors introduce a streamlined RL approach centered on Group Relative Policy Optimization (GRPO). Unlike traditional RL, GRPO doesn't require a separate "critic" model, significantly reducing memory overhead during training.

The "secret sauce" is the minimalist reward function:

  • 1.0 if the SQL execution results exactly match the ground truth.
  • 0.1 if the SQL has correct syntax and is executable (even if the answer is wrong).
  • 0 otherwise.

This "execution-only" reward forces the model to reason through the entire compositional structure of the query to get the final answer right. The framework also utilizes Online RL, where the model continually interacts with the database environment during training, and a model-based filtering process to ensure that synthetic training data (generated via Gretel-Synth) is high-quality and actually executable.

Datasets

The study used a mix of established benchmarks and synthetic data:

  • Training: Filtered versions of BIRD and Spider, plus a curated synthetic dataset called Gretel-Synth-Filtered.
  • Evaluation: A diverse suite of six benchmarks to test generalization: BIRD (dev/test), Spider (test), Spider 2.0-SQLite, Spider-DK (testing robustness to domain knowledge), EHRSQL (electronic health records), and a Science Benchmark.

Key Insights and Ideas

  • Simple Rewards > Complex Engineering: The authors found that more "fine-grained" rewards actually induced "lazy" behaviors. A simple execution-based signal was more stable and effective for aligning the model with the end goal.
  • The "U-Shaped" Response Length: Interestingly, as the models' accuracy improved during RL, the length of their "thinking" process (Chain-of-Thought) initially decreased and then gradually increased. This suggests an early phase of learning efficiency followed by a phase of developing more grounded, robust reasoning.
  • Data Filtering is Non-Negotiable: A critical finding was that many "gold" queries in standard datasets return empty results. Removing these from the RL training set was essential to prevent the model from receiving uninformative rewards.
  • Massive Efficiency Gains: Their 7B parameter model outperformed prior 70B-class systems, demonstrating that task-specific RL can make smaller models punch way above their weight class.

Key Results

  • #1 on BIRD: The Arctic-Text2SQL-R1-32B model achieved 71.83% execution accuracy on the BIRD test set, setting a new record for single-model performance.
  • Breaking the 70% Barrier: The 14B model became the first open-source model of its size to surpass the 70% milestone on BIRD.
  • Broad Superiority: Across six diverse benchmarks, the Arctic-R1 family consistently outperformed both specialized Text2SQL models (like OmniSQL) and general-purpose giants like GPT-4o and DeepSeek-V3.
  • Inference-Time Boosts: Simple additions like "value retrieval" and "majority voting" (running the query multiple times and picking the most common answer) further boosted performance by up to 1 percentage point.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Algorithm Comparison: They focused on GRPO and did not exhaustively tune hyperparameters for other algorithms like PPO.
  • Prompt Sensitivity: While they found prompt format to be crucial, they did not systematically explore every possible variation.
  • Model Diversity: The current study is centered on the Qwen2.5-Coder family; testing the framework on other base model architectures (like Llama or Mistral) is a logical next step to prove its universal applicability.
  • Data Augmentation: Their attempts at LLM-based data augmentation were largely unsuccessful due to a lack of linguistic diversity, suggesting a need for better synthetic generation techniques.

Summary updated

BibTeX
@inproceedings{yao2026arctic,
  author = {Zhewei Yao and Guoheng Sun and Lukasz Borchmann and Zheyu Shen and Minghang Deng and Bohan Zhai and Hao Zhang and Ang Li and Yuxiong He},
  title = {{Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1345},
}

Loading related content...

Figure