Prefix-to-SQL:从不完整的用户问题生成文本到SQL
Prefix-to-SQL: Text-to-SQL Generation from Incomplete User Questions
摘要:
现有的文本到SQL的研究只考虑完整的问题作为输入,但外行用户可能会努力制定一个完整的问题。为了建立一个更智能的自然语言接口数据库系统(NLIDB),也处理不完整的问题,我们提出了一个新的任务,前缀到SQL,需要从用户的问题前缀作为输入,并预测预期的SQL。我们构建了一个新的基准称为PAGSAS,其中包含124 K用户问题前缀和5个子任务Advising,GeoQuery,Scholar,ATIS和Spider的预期SQL。此外,我们提出了一个新的指标节省来衡量多少努力可以节省用户。实验结果表明,PAGSAS是具有挑战性的,即使是强基线模型,如T5。由于我们观察到前缀到SQL的难度与省略的标记的数量有关,因此我们将课程学习与越来越多的省略标记的示例相结合。这将在PAGSAS中的子任务GeoQuery上的各个子任务的分数提高了9%。
英文摘要:
Existing text-to-SQL research only considers complete questions as the input, but lay-users might strive to formulate a complete question. To build a smarter natural language interface to database systems (NLIDB) that also processes incomplete questions, we propose a new task, prefix-to-SQL which takes question prefix from users as the input and predicts the intended SQL. We construct a new benchmark called PAGSAS that contains 124K user question prefixes and the intended SQL for 5 sub-tasks Advising, GeoQuery, Scholar, ATIS, and Spider. Additionally, we propose a new metric SAVE to measure how much effort can be saved by users. Experimental results show that PAGSAS is challenging even for strong baseline models such as T5. As we observe the difficulty of prefix-to-SQL is related to the number of omitted tokens, we incorporate curriculum learning of feeding examples with an increasing number of omitted tokens. This improves scores on various sub-tasks by as much as 9% recall scores on sub-task GeoQuery in PAGSAS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。