mlsanityData to 7 Oct 2026

CogniSQL-R1-Zero: Lightweight Reinforced Reasoning for Efficient SQL Generation

arXiv 2507.06013 ↗First posted 8 Jul 2025cs.AIcited by 2

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

Translating natural language into SQL (Text-to-SQL) remains a core challenge at the intersection of language understanding and structured data access. Although large language models (LLMs) have improved fluency, generating correct and executable SQL, especially for complex queries, continues to be challenging. We introduce CogniSQL-R1-Zero, a reinforcement learning (RL) framework and model that produces accurate SQL using a lightweight reward signal based on execution correctness and format-tag compliance. By avoiding intermediate supervision, hybrid pipelines and complex reward shaping, our method encourages stable learning and stronger alignment with the ultimate task objective-producing executable programs. CogniSQL-R1-Zero achieves state-of-the-art execution accuracy on Text2SQL benchmark; BIRD bench, outperforming prior supervised and instruction-tuned baselines including SFT CodeS-7B, DeepSeek-Coder 236B, and Mistral 123B-despite being trained on a significantly smaller 7B backbone. This result underscores the scalability and efficiency of our RL-based approach when trained on just four NVIDIA A100 GPUs (40 GB VRAM each). To support further research in efficient and interpretable Text-to-SQL modeling, we release two curated datasets: (i) a collection of 5,024 reasoning traces with varying context lengths, and (ii) a positive-sampled corpus of 36,356 corpus of weakly supervised queries, each annotated with six semantically diverse reasoning paths. Together, these contributions advance scalable, execution-aligned Text-to-SQL generation.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 30 of its 51 references that are in the map. First posted on arXiv 8 Jul 2025.

Builds on

30 of 51 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025REARANK: Reasoning Re-ranking Agent via Reinforcement Learning26 May
  2. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar

Other references · 28

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  5. 2024Qwen2.5 Technical Reportcited by 4,713
  6. 2024Mixtral of Expertscited by 1,785
  7. 2016Concrete Problems in AI Safetycited by 1,582
  8. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  9. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  10. 2023A General Theoretical Paradigm to Understand Learning from Human Preferencescited by 906
  11. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  12. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
16 more
  1. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
  2. 2025SFT or RL? An Early Investigation into Training R1-Like Reasoning Large Vision-Language Modelscited by 209
  3. 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 171
  4. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  5. 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 127
  6. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
  7. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 90
  8. 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
  9. 2025ReMA: Learning to Meta-think for LLMs with Multi-Agent Reinforcement Learningcited by 78
  10. 2024A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLcited by 46
  11. 2025Ignore the KL Penalty! Boosting Exploration on Critical Tokens to Enhance RL Fine-Tuningcited by 33
  12. 2022UniSAr: A Unified Structure-Aware Autoregressive Language Model for Text-to-SQLcited by 20
  13. 2025Learning to Think: Information-Theoretic Reinforcement Fine-Tuning for LLMscited by 16
  14. 2025RL of Thoughts: Navigating LLM Reasoning with Inference-time Reinforcement Learningcited by 16
  15. 2025Group Relative Policy Optimization for Image Captioningcited by 9
  16. 2025Graph-Reward-SQL: Execution-Free Reinforcement Learning for Text-to-SQL via Graph Matching and Stepwise Rewardcited by 7

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL
  2. 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewards
  3. 2025JudgeSQL: Reasoning over SQL Candidates with Weighted Consensus Tournament
  4. 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL
  5. 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learning
  6. 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewards
  7. 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learning
  8. 2025Reinforcing Code Generation: Improving Text-to-SQL with Execution-Based Learning