mlsanityData to 14 Oct 2026

SLM-SQL: An Exploration of Small Language Models for Text-to-SQL

arXiv 2507.22478 ↗First posted 30 Jul 2025cs.CLcited by 10

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have demonstrated strong performance in translating natural language questions into SQL queries (Text-to-SQL). In contrast, small language models (SLMs) ranging from 0.5B to 1.5B parameters currently underperform on Text-to-SQL tasks due to their limited logical reasoning capabilities. However, SLMs offer inherent advantages in inference speed and suitability for edge deployment. To explore their potential in Text-to-SQL applications, we leverage recent advancements in post-training techniques. Specifically, we used the open-source SynSQL-2.5M dataset to construct two derived datasets: SynSQL-Think-916K for SQL generation and SynSQL-Merge-Think-310K for SQL merge revision. We then applied supervised fine-tuning and reinforcement learning-based post-training to the SLM, followed by inference using a corrective self-consistency approach. Experimental results validate the effectiveness and generalizability of our method, SLM-SQL. On the BIRD development set, the five evaluated models achieved an average improvement of 31.4 points. Notably, the 0.5B model reached 56.87% execution accuracy (EX), while the 1.5B model achieved 67.08% EX. We will release our dataset, model, and code to github: https://github.com/CycloneBoy/slmsql.

Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 31 of its 47 references that are in the map. First posted on arXiv 30 Jul 2025.

Builds on

31 of 47 references.

References · 31

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  5. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  6. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  7. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  8. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  9. 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 223
  10. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  11. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  12. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 169
19 more
  1. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 164
  2. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 138
  3. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 120
  4. 2024Small Language Models: Survey, Measurements, and Insightscited by 112
  5. 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 105
  6. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 91
  7. 2025SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learningcited by 68
  8. 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
  9. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
  10. 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 53
  11. 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 52
  12. 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQLcited by 38
  13. 2024Small Language Models Learn Enhanced Reasoning Skills from Medical Textbookscited by 30
  14. 2025Automatic Metadata Extraction for Text-to-SQLcited by 27
  15. 2024MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translationcited by 19
  16. 2025SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQLcited by 19
  17. 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQLcited by 14
  18. 2025BASE-SQL: A powerful open source Text-To-SQL baseline approachcited by 9
  19. 2025When Reasoning Beats Scale: A 1.5B Reasoning Model Outranks 13B LLMs as Discriminatorcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 4.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SQuaD-SQL: Efficient Text-to-SQL with Small Language Models via LLM-Guided Knowledge Distillation
  2. 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs
  3. 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
  4. 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models
  5. 2025GradeSQL: Test-Time Inference with Outcome Reward Models for Text-to-SQL Generation from Large Language Models
  6. 2024Lucy: Think and Reason to Solve Text-to-SQL
  7. 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL
  8. 2026Optimizing Small Language Models for NL2SQL via Chain-of-Thought Fine-Tuning