Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQL
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Large Language Models (LLMs) can translate natural language into SQL, but small models struggle with multi-table and complex queries in Zero-Shot Learning (ZSL) settings. While Supervised Fine-Tuning (SFT) helps, it falls short for harder cases. To address this, we study how different reasoning strategies (general-purpose reasoning in ZSL, reasoning traces in SFT, and Reinforcement Learning with Verifiable Reward (RLVR) with novel reward functions) affect Text2SQL performance across four benchmarks. We show that partial scoring rewards, computed via SQL execution, are crucial for guiding models even when outputs are not fully correct. These fine-grained signals lead to consistently better Text2SQL outcomes. Small LLMs benefit most from reasoning-aware SFT and RL, with the 14B Qwen-Coder-2.5 surpassing 400B+ models on challenging datasets like BIRD.
Key facts. Cited by 14 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 49 of its 74 references that are in the map. First posted on arXiv 21 Apr 2025.
Builds on
49 of 74 references.
Closest ancestors · 3
Same direction, newest first
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar
- 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback25 Mar
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought26 Oct
Other references · 46
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2025s1: Simple test-time scalingcited by 1,311
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,193
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
34 more
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2022Scaling Laws for Reward Model Overoptimizationcited by 1,056
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 988
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRscited by 373
- 2020Curriculum Learning for Reinforcement Learning Domains: A Framework and Surveycited by 350
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
- 2019Reward Tampering Problems and Solutions in Reinforcement Learning: A Causal Influence Diagram Perspectivecited by 107
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
- 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
- 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
- 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
- 2023How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settingscited by 57
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
- 2023SQL-PaLM: Improved Large Language Model Adaptation for Text-to-SQL (extended)cited by 42
- 2024Instruction Tuning With Loss Over Instructionscited by 40
- 2024TableRAG: Million-Token Table Understanding with Language Modelscited by 40
- 2024BEAVER: An Enterprise Benchmark for Text-to-SQLcited by 37
- 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
- 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
- 2024Self-Refine Instruction-Tuning for Aligning Reasoning in Language Modelscited by 24
- 2025SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQLcited by 19
- 2024LIONs: An Empirically Optimized Approach to Align Language Modelscited by 7
Built on by
Citing papers per year: 2025: 11; 2026: 3.
14 papers.
Sort:
By area:
- 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Usecited by 92
- 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQLcited by 38
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQLcited by 10
- 2025Position: Foundation Models for Tabular Data within Systemic Contexts Need Groundingcited by 5
- 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correctioncited by 5
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translationcited by 5
- 2025Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiquescited by 2
- 2025Cost Trade-offs of Reasoning and Non-Reasoning Large Language Models in Text-to-SQLcited by 2
- 2025QueryGym: Step-by-Step Interaction with Relational Databasescited by 1
- 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewardscited by 1
2 more
- 2026SQL-Zero: Self-Evolving Text-to-SQL4 Sep 2026
- 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewards5 Jun 2026
- 2026From Classification to Ranking: Enhancing LLM Reasoning Capabilities for MBTI Personality Detection26 Jan 2026
- 2025Cost Trade-offs of Reasoning and Non-Reasoning Large Language Models in Text-to-SQL26 Dec 2025
- 2025Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiques27 Nov 2025
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQL29 Oct 2025
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation30 Sep 2025
- 2025QueryGym: Step-by-Step Interaction with Relational Databases25 Sep 2025
- 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Use1 Sep 2025
- 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction30 Aug 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL30 Jul 2025
- 2025Position: Foundation Models for Tabular Data within Systemic Contexts Need Grounding26 May 2025
- 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Usecited by 92
- 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQLcited by 38
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQLcited by 10
- 2025Cost Trade-offs of Reasoning and Non-Reasoning Large Language Models in Text-to-SQLcited by 2
- 2026From Classification to Ranking: Enhancing LLM Reasoning Capabilities for MBTI Personality Detectioncited by 0
- 2026From Classification to Ranking: Enhancing LLM Reasoning Capabilities for MBTI Personality Detection26 Jan 2026
- 2025Cost Trade-offs of Reasoning and Non-Reasoning Large Language Models in Text-to-SQL26 Dec 2025
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQL29 Oct 2025
- 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Use1 Sep 2025
- 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL22 May 2025
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learning19 May 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
- 2025Position: Foundation Models for Tabular Data within Systemic Contexts Need Groundingcited by 5
- 2025Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiquescited by 2
- 2025QueryGym: Step-by-Step Interaction with Relational Databasescited by 1
- 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewardscited by 1
- 2026Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewards5 Jun 2026
- 2025Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiques27 Nov 2025
- 2025QueryGym: Step-by-Step Interaction with Relational Databases25 Sep 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL30 Jul 2025
- 2025Position: Foundation Models for Tabular Data within Systemic Contexts Need Grounding26 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025ConstrainedSQL: Training LLMs for Text2SQL via Constrained Reinforcement Learning
- 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learning
- 2025PaVeRL-SQL: Text-to-SQL via Partial-Match Rewards and Verbal Reinforcement Learning
- 2026Optimizing Small Language Models for NL2SQL via Chain-of-Thought Fine-Tuning
- 2025GradeSQL: Test-Time Inference with Outcome Reward Models for Text-to-SQL Generation from Large Language Models
- 2025LearNAT: Learning NL2SQL with AST-guided Task Decomposition for Large Language Models
- 2025CogniSQL-R1-Zero: Lightweight Reinforced Reasoning for Efficient SQL Generation
- 2026Test-Time Verification for Text-to-SQL via Outcome Reward Models