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

使用模式依赖学习改进Text-to-SQL

Improving Text-to-SQL with Schema Dependency Learning

Alibaba Group(阿里巴巴集团)

Binyuan Hui, Xiang Shi, Ruiying Geng, Binhua Li, Yongbin Li, Jian Sun, Xiaodan Zhu

摘要:

Text-to-SQL旨在将自然语言问题映射到SQL查询。基于草图的方法结合执行引导(EG)解码策略在WikiSQL基准测试中表现出很强的性能。然而,执行引导解码依赖于数据库执行,这显著地减慢了推理过程,因此对于许多现实世界的应用是不令人满意的。在本文中,我们提出了模式依赖引导的多任务文本到SQL模型(SDSQL),以指导网络有效地捕捉问题和模式之间的相互作用。所提出的模型优于所有现有的方法在这两个设置与或没有EG。我们发现模式依赖学习部分覆盖了EG的好处,并证明了对它的需求。没有EG的SDSQL大大减少了推理过程中的时间消耗,只牺牲了少量的性能,并为下游应用程序提供了更大的灵活性。

英文摘要:

Text-to-SQL aims to map natural language questions to SQL queries. The sketch-based method combined with execution-guided (EG) decoding strategy has shown a strong performance on the WikiSQL benchmark. However, execution-guided decoding relies on database execution, which significantly slows down the inference process and is hence unsatisfactory for many real-world applications. In this paper, we present the Schema Dependency guided multi-task Text-to-SQL model (SDSQL) to guide the network to effectively capture the interactions between questions and schemas. The proposed model outperforms all existing methods in both the settings with or without EG. We show the schema dependency learning partially cover the benefit from EG and alleviates the need for it. SDSQL without EG significantly reduces time consumption during inference, sacrificing only a small amount of performance and provides more flexibility for downstream applications.

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

↑