arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01869cs.DBcs.AIcs.SE
收藏

通过SQL质量测量增强面向Text-to-SQL的大语言模型微调

Enhancing LLM Fine-tuning for Text-to-SQLs by SQL Quality Measurement

Prairie View A&M University(Prairie View A&M大学);CREDIT Center(CREDIT中心)

Shouvon Sarker, Xishuang Dong, Xiangfang Li, Lijun Qian

AI总结:

本文提出仅依赖SQL质量测量反馈机制来增强基于大语言模型的Text-to-SQL性能,在BIRD基准上取得与GPT4、T5等SOTA模型相当的EX和VES表现。

摘要:

Text-to-SQL使非专家用户能够使用自然语言查询轻松地从关系数据库中检索所需信息。尽管近期进展显著,尤其是GPT和T5等大语言模型(LLMs)在BIRD等大规模基准上表现出色,但当前最先进的(SOTA)基于LLM的Text-to-SQL模型通常需要大量努力开发SQL分类器等辅助工具才能实现高性能。本文提出了一种新方法,仅需SQL质量测量即可提升基于LLM的Text-to-SQL性能。该方法建立了一种SQL质量评估机制,根据预定义标准和实际数据库响应来评估生成的SQL查询。这一反馈回路使得模型输出能够基于语法正确性和语义准确性进行持续学习和改进。所提方法在BIRD基准上进行了全面验证,评估了不同Text-to-SQL难度级别下的执行准确率(EX)和有效效率分数(VES)。实验结果表明,与GPT4和T5等SOTA模型相比,该方法在EX和VES上均表现出具有竞争力的性能。

英文摘要:

Text-to-SQLs enables non-expert users to effortlessly retrieve desired information from relational databases using natural language queries. While recent advancements, particularly with Large Language Models (LLMs) like GPT and T5, have shown impressive performance on large-scale benchmarks such as BIRD, current state-of-the-art (SOTA) LLM-based Text-to-SQLs models often require significant efforts to develop auxiliary tools like SQL classifiers to achieve high performance. This paper proposed a novel approach that only needs SQL Quality Measurement to enhance LLMs-based Text-to-SQLs performance. It establishes a SQL quality evaluation mechanism to assess the generated SQL queries against predefined criteria and actual database responses. This feedback loop enables continuous learning and refinement of model outputs based on both syntactic correctness and semantic accuracy. The proposed method undergoes comprehensive validation on the BIRD benchmark, assessing Execution Accuracy (EX) and Valid Efficiency Score (VES) across various Text-to-SQLs difficulty levels. Experimental results reveal competitive performance in both EX and VES compared to SOTA models like GPT4 and T5.

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

↑