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

大语言模型增强的Text-to-SQL生成:综述

Large Language Model Enhanced Text-to-SQL Generation: A Survey

Xiaohu Zhu, Qian Li, Lizhen Cui, Yongkang Liu

AI总结:

本文针对现有text-to-SQL综述缺乏大语言模型相关研究梳理的空白,综述了LLM增强的text-to-SQL生成技术,按训练策略分类并梳理数据集与评估指标,为相关研究提供参考。

摘要:

Text-to-SQL(文本转结构化查询语言)将自然语言查询转换为结构化查询语言(SQL)命令,使用户能够通过自然语言与数据库交互。从本质上讲,text-to-SQL任务是一种文本生成任务,其发展主要依赖于语言模型的迭代。尤其是随着大语言模型(Large Language Models, LLMs)的快速发展,text-to-SQL的实现模式发生了显著变化。现有综述工作主要聚焦于基于规则和基于神经网络的方法,但仍缺乏针对LLM赋能的text-to-SQL的系统性综述。本文对大语言模型增强的text-to-SQL生成研究展开综述,按照训练策略将其分为提示工程、微调、预训练和智能体四大类,同时全面梳理了相关数据集与评估指标。本综述可帮助研究者更好地理解基于LLM的text-to-SQL生成的技术模式、研究现状与挑战。

英文摘要:

Text-to-SQL translates natural language queries into Structured Query Language (SQL) commands, enabling users to interact with databases using natural language. Essentially, the text-to-SQL task is a text generation task, and its development is primarily dependent on changes in language models. Especially with the rapid development of Large Language Models (LLMs), the pattern of text-to-SQL has undergone significant changes. Existing survey work mainly focuses on rule-based and neural-based approaches, but it still lacks a survey of Text-to-SQL with LLMs. In this paper, we survey the large language model enhanced text-to-SQL generations, classifying them into prompt engineering, fine-tuning, pre-trained, and Agent groups according to training strategies. We also summarize datasets and evaluation metrics comprehensively. This survey could help people better understand the pattern, research status, and challenges of LLM-based text-to-SQL generations.

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

↑