arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.07372cs.DBcs.CL
收藏

通过可编辑的逐步解释进行交互式 Text-to-SQL 生成

Interactive Text-to-SQL Generation via Editable Step-by-Step Explanations

Purdue University(普渡大学);University of Notre Dame(圣母大学);The University of Sydney(悉尼大学)

Yuan Tian, Zheng Zhang, Zheng Ning, Toby Jia-Jun Li, Jonathan K. Kummerfeld, Tianyi Zhang

AI总结:

针对现有 Text-to-SQL 技术易出错且缺乏灵活修正方式的问题,提出一种允许用户直接编辑查询逐步解释以修复错误的交互机制,实验与用户研究证明其优于多种 SOTA 方法。

摘要:

关系数据库在商业、科学等领域发挥着重要作用。然而,许多用户无法充分发挥关系数据库的分析能力,因为他们不熟悉 SQL 等数据库语言。尽管已提出许多从自然语言自动生成 SQL 的技术,但它们存在两个问题:(1) 仍会犯许多错误,特别是在复杂查询方面;(2) 没有为非专家用户提供一种灵活的方式来验证和修正错误的查询。为了解决这些问题,我们引入了一种新的交互机制,允许用户直接编辑查询的逐步解释来修复错误。我们在多个数据集上的实验,以及一项有 24 名参与者参与的用户研究表明,我们的方法能够取得比多种 SOTA 方法更好的性能。我们的代码和数据集可在 https://github.com/magic-YuanTian/STEPS 获取。

英文摘要:

Relational databases play an important role in business, science, and more. However, many users cannot fully unleash the analytical power of relational databases, because they are not familiar with database languages such as SQL. Many techniques have been proposed to automatically generate SQL from natural language, but they suffer from two issues: (1) they still make many mistakes, particularly for complex queries, and (2) they do not provide a flexible way for non-expert users to validate and refine incorrect queries. To address these issues, we introduce a new interaction mechanism that allows users to directly edit a step-by-step explanation of a query to fix errors. Our experiments on multiple datasets, as well as a user study with 24 participants, demonstrate that our approach can achieve better performance than multiple SOTA approaches. Our code and datasets are available at https://github.com/magic-YuanTian/STEPS.

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

↑