arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08426cs.CLcs.AIcs.DB
收藏

下一代数据库接口:基于大语言模型的文本到SQL调研

Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL

Department of Computing, The Hong Kong Polytechnic University(香港理工大学计算机系);Faculty of Data Science, City University of Macau(澳门城市大学数据科学学院);College of Cyber Security, Jinan University(暨南大学网络安全学院)

Zijin Hong, Zheng Yuan, Qinggang Zhang, Hao Chen, Junnan Dong, Feiran Huang, Xiao Huang

AI总结:

本文调研了基于大语言模型的文本到SQL方法,分析了技术挑战、数据集、指标及最新进展,并讨论了未来研究方向。

摘要:

生成准确的SQL从用户自然语言问题(文本到SQL)仍然是一个长期存在的挑战,由于涉及用户问题理解、数据库模式理解和SQL生成的复杂性。传统的文本到SQL系统,结合了人类工程和深度神经网络,已经取得了显著进展。随后,预训练语言模型(PLMs)被开发用于文本到SQL任务,取得了有希望的结果。然而,随着现代数据库和用户问题变得更加复杂,参数规模有限的PLMs往往生成错误的SQL。这需要更加复杂和定制化的优化方法,这限制了基于PLM的系统的应用。最近,大语言模型(LLMs)在模型规模增加时显示出在自然语言理解方面的显著能力。因此,整合基于LLM的解决方案可以为文本到SQL研究带来独特的机遇、改进和解决方案。在本次调查中,我们提供对现有基于LLM的文本到SQL研究的全面回顾。具体来说,我们简要概述了文本到SQL的技术挑战和演进过程。接下来,我们介绍设计用于评估文本到SQL系统的数据集和指标。随后,我们呈现了最近在基于LLM的文本到SQL方面的系统分析。最后,我们进行总结,并讨论该领域中剩余的挑战,并建议未来研究方向的期望。所有相关的LLM资源,包括研究论文、基准测试和开源项目,都在我们的仓库中为社区收集:https://github.com/DEEP-PolyU/Awesome-LLM-based-Text2SQL。

英文摘要:

Generating accurate SQL from users' natural language questions (text-to-SQL) remains a long-standing challenge due to the complexities involved in user question understanding, database schema comprehension, and SQL generation. Traditional text-to-SQL systems, which combine human engineering and deep neural networks, have made significant progress. Subsequently, pre-trained language models (PLMs) have been developed for text-to-SQL tasks, achieving promising results. However, as modern databases and user questions grow more complex, PLMs with a limited parameter size often produce incorrect SQL. This necessitates more sophisticated and tailored optimization methods, which restricts the application of PLM-based systems. Recently, large language models (LLMs) have shown significant capabilities in natural language understanding as model scale increases. Thus, integrating LLM-based solutions can bring unique opportunities, improvements, and solutions to text-to-SQL research. In this survey, we provide a comprehensive review of existing LLM-based text-to-SQL studies. Specifically, we offer a brief overview of the technical challenges and evolutionary process of text-to-SQL. Next, we introduce the datasets and metrics designed to evaluate text-to-SQL systems. Subsequently, we present a systematic analysis of recent advances in LLM-based text-to-SQL. Finally, we make a summarization and discuss the remaining challenges in this field and suggest expectations for future research directions. All the related resources of LLM-based, including research papers, benchmarks, and open-source projects, are collected for the community in our repository: https://github.com/DEEP-PolyU/Awesome-LLM-based-Text2SQL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑