BASE-SQL: A powerful open source Text-To-SQL baseline approach
Not on the map. Why?
Abstract (arXiv)
The conversion of natural language into SQL language for querying databases (Text-to-SQL) has broad application prospects and has attracted widespread attention. At present, the mainstream Text-to-SQL methods are mainly divided into in-context learning (ICL) based methods and supervised fine-tuning (SFT) based methods. ICL-based methods can achieve relatively good results thanks to the use of the most advanced closed-source models. However, in real-world application scenarios, factors such as data privacy, SQL generation efficiency and cost need to be considered. SFT-based methods have certain advantages. At present, methods based on fine-tuning of open source models lack easy-to-implement and effective (cost-effective) baseline methods. We propose a pipeline-based method using open source model fine-tuning, referred to as BASE-SQL, which includes four components: Schema Linking, Candidate SQL Generate, SQL Revision and SQL Merge Revision. Experimental results show that BASE-SQL uses the open source model Qwen2.5-Coder-32B-Instruct, and achieves an accuracy of 67.47% on the BIRD development set and 88.9% on the Spider test set, which is significantly better than other methods using open source models, and even exceeds several methods using the GPT-4o closed-source model. At the same time, BASE-SQL is easy to implement and highly efficient (on average, only five calls to the large language model are required to generate SQL once). The code will be open sourced at https://github.com/CycloneBoy/base_sql.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 26 of its 32 references that are in the map. First posted on arXiv 15 Feb 2025.
Builds on
26 of 32 references.
References · 26
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 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
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
- 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
14 more
- 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
- 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 103
- 2018TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generationcited by 81
- 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 74
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
- 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 53
- 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 51
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 49
- 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
- 2020Hybrid Ranking Network for Text-to-SQLcited by 33
- 2024Decomposition for Enhancing Attention: Improving LLM-based Text-to-SQL through Workflow Paradigmcited by 31
- 2024MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translationcited by 17
- 2024PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQLcited by 7
Built on by
Citing papers per year: 2025: 5; 2026: 4.
9 papers.
- 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
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translationcited by 5
- 2025JOLT-SQL: Joint Loss Tuning of Text-to-SQL with Confusion-aware Noisy Schema Samplingcited by 4
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
- 2025UNJOIN: Enhancing Multi-Table Text-to-SQL Generation via Schema Simplificationcited by 0
- 2026ACE-SQL: Adaptive Co-Optimization via Empirical Credit Assignment for Text-to-SQLcited by 0
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQLcited by 0
- 2026SAFAARI: Schema-Aware Framework for Accelerated Advertiser Response Intelligencecited by 0
- 2026SAFAARI: Schema-Aware Framework for Accelerated Advertiser Response Intelligence27 Jul 2026
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL4 Jul 2026
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestration22 Jun 2026
- 2026ACE-SQL: Adaptive Co-Optimization via Empirical Credit Assignment for Text-to-SQL4 Jun 2026
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation30 Sep 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL30 Jul 2025
- 2025UNJOIN: Enhancing Multi-Table Text-to-SQL Generation via Schema Simplification23 May 2025
- 2025JOLT-SQL: Joint Loss Tuning of Text-to-SQL with Confusion-aware Noisy Schema Sampling20 May 2025
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learning19 May 2025