Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
Dawei Gao, Haibin Wang, Yaliang Li, Xiuyu Sun, Yichen Qian, Bolin, Ding, Jingren Zhou

TL;DR
This paper evaluates large language models for Text-to-SQL tasks, introduces a new benchmark solution called DAIL-SQL, and explores open-source LLMs with fine-tuning to improve performance and efficiency.
Contribution
It provides a systematic comparison of prompt engineering methods, proposes the DAIL-SQL solution, and investigates open-source LLMs with fine-tuning for Text-to-SQL.
Findings
DAIL-SQL achieves 86.6% execution accuracy on Spider.
Open-source LLMs show potential with supervised fine-tuning.
Token-efficient prompt engineering improves LLM performance.
Abstract
Large language models (LLMs) have emerged as a new paradigm for Text-to-SQL task. However, the absence of a systematical benchmark inhibits the development of designing effective, efficient and economic LLM-based Text-to-SQL solutions. To address this challenge, in this paper, we first conduct a systematical and extensive comparison over existing prompt engineering methods, including question representation, example selection and example organization, and with these experimental results, we elaborate their pros and cons. Based on these findings, we propose a new integrated solution, named DAIL-SQL, which refreshes the Spider leaderboard with 86.6% execution accuracy and sets a new bar. To explore the potential of open-source LLM, we investigate them in various scenarios, and further enhance their performance with supervised fine-tuning. Our explorations highlight open-source LLMs'…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Scientific Computing and Data Management
