arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.09133cs.CL
收藏

RH-SQL:用于Text-to-SQL的精炼模式与难度提示

RH-SQL: Refined Schema and Hardness Prompt for Text-to-SQL

Central South University(中南大学)

Jiawen Yi, Guo Chen, Zixiang Shen

AI总结:

针对现有基于SQL复杂度的Text-to-SQL方法存储与训练成本高的问题,提出RH-SQL,通过精炼模式过滤无关信息并由LM识别难度生成提示,在Spider上以大规模LM达到82.6% EX。

摘要:

Text-to-SQL是一项将自然语言查询转换为结构化查询语言SQL的技术。近来受到关注的一种新颖研究路径聚焦于基于SQL查询复杂度的方法,并取得了显著的性能提升。然而,现有方法需要高昂的存储和训练成本,这阻碍了其实际应用。为解决这一问题,本文提出一种基于精炼模式(Refined Schema)与难度提示(Hardness Prompt)的Text-to-SQL方法。该方法通过精炼模式过滤低相关性的模式信息,并利用语言模型(LM)识别查询难度以构建提示,从而在保持性能的同时降低存储和训练成本。值得一提的是,该方法适用于任意序列到序列(seq2seq)LM。我们在Spider数据集上进行的实验,特别是使用大规模LM时,取得了82.6%的出色执行准确率(EX),证明了本方法的有效性及其对现实应用更强的适用性。

英文摘要:

Text-to-SQL is a technology that converts natural language queries into the structured query language SQL. A novel research approach that has recently gained attention focuses on methods based on the complexity of SQL queries, achieving notable performance improvements. However, existing methods entail significant storage and training costs, which hampers their practical application. To address this issue, this paper introduces a method for Text-to-SQL based on Refined Schema and Hardness Prompt. By filtering out low-relevance schema information with a refined schema and identifying query hardness through a Language Model (LM) to form prompts, this method reduces storage and training costs while maintaining performance. It's worth mentioning that this method is applicable to any sequence-to-sequence (seq2seq) LM. Our experiments on the Spider dataset, specifically with large-scale LMs, achieved an exceptional Execution accuracy (EX) of 82.6%, demonstrating the effectiveness and greater suitability of our method for real-world applications.

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

↑