ACL Findings2025
SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs
Yu Guo, Dong Jin, Shenghao Ye, Shuangwu Chen, Jian Yang, Xiaobin Tan
Abstract
Large Language models (LLMs) have demonstrated significant potential in text-to-SQL reasoning tasks, yet a substantial performance gap persists between existing open-source models and their closed-source counterparts. In this paper, we introduce SQLForge, a novel approach for synthesizing reliable and diverse data to enhance text-to-SQL reasoning in LLMs. We improve data reliability through SQL syntax constraints and SQL-to-question reverse translation, ensuring data logic at both structural and semantic levels. We also propose an SQL template enrichment and iterative data domain exploration mechanism to boost data diversity. Building on the augmented data, we fine-tune a variety of open-source models with different architectures and parameter sizes, resulting in a family of models termed SQLForge-LM. SQLForge-LM achieves the state-of-theart performance on the widely recognized Spider and BIRD benchmarks among the opensource models. Specifically, SQLForge-LM achieves EX accuracy of 85.7% on Spider Dev and 59.8% on BIRD Dev, significantly narrowing the performance gap with closed-source methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SQL-Exchange: Transforming SQL Queries Across Domains cites RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
- SQL-Exchange: Transforming SQL Queries Across Domains cites DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- SQL-Exchange: Transforming SQL Queries Across Domains cites Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- SQL-Exchange: Transforming SQL Queries Across Domains cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data cites RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
- An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data cites DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data cites Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- DPC: Training-Free Text-to-SQL Candidate Selection via Dual-Paradigm Consistency cites RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
- DPC: Training-Free Text-to-SQL Candidate Selection via Dual-Paradigm Consistency cites Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-Learning cites An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data
- Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation cites LoRA: Low-Rank Adaptation of Large Language Models
- Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation cites RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
- Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation cites DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
Cited by top-tier papers4
- SQL-Exchange: Transforming SQL Queries Across DomainsMohammadreza Daviran, Brian Lin, Davood RafieiVLDB 2026 · 2 citations
- DPC: Training-Free Text-to-SQL Candidate Selection via Dual-Paradigm ConsistencyBoyan Li, Ou Ocean Kun Hei, Yue Yu, Yuyu LuoACL 2026 · 2 citations
- Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-LearningTrinh Pham, Viet Huynh, Hongzhi Yin, Quoc Viet Hung Nguyen et al.KDD 2026 · 1 citation
- An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled DataTrinh Pham, Thanh Tam Nguyen, Viet Huynh, Hongzhi Yin et al.ICDE 2026
Builds on12
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 citations
- Text-to-SQL Empowered by Large Language Models: A Benchmark EvaluationDawei Gao, Haibin Wang, Yaliang Li, Xiuyu Sun et al.VLDB 2024 · 609 citations
- RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLHaoyang Li, Jing Zhang, Cuiping Li, Hong ChenAAAI 2023 · 343 citations
Related papers
- Synthesizing Text-to-SQL Data from Weak and Strong LLMsJiaxi Yang, Binyuan Hui, Min Yang, Jian Yang et al.ACL 2024
- OpenSQL: Data-Efficient Text-to-SQL for Open-Source LLMs via Synthesized Intermediate SupervisionRuilin Hu, Yuyu Luo, Guoliang Li, Shuangqiao Wu et al.VLDB 2026 · 4 citations
- DTS-SQL: Decomposed Text-to-SQL with Small Large Language ModelsMohammadreza Pourreza, Davood RafieiEMNLP Findings 2024 · 71 citations
- ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLYaxun Dai, Wenxuan Xie, Xialie Zhuang, Tianyu Yang et al.ACL 2026 · 8 citations
- CodeS: Towards Building Open-source Language Models for Text-to-SQLHaoyang Li, Jing Zhang, Hanbing Liu, Ju Fan et al.SIGMOD 2024 · 124 citations
