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

ValueNet:一个从数据库信息学习的自然语言到SQL的系统

ValueNet: A Natural Language-to-SQL System that Learns from Database Information

ZHAW Zurich University of Applied Sciences(苏黎世应用科技大学(ZHAW))

Ursin Brunner, Kurt Stockinger

摘要:

几十年来,为数据库构建自然语言(NL)接口一直是一个长期存在的挑战。这些所谓的NL-to-SQL系统的主要优点是,最终用户可以查询复杂的数据库,而不需要知道SQL或底层数据库模式。由于机器学习的重大进步,最近的研究重点一直放在神经网络上,以解决像Spider这样的复杂数据集上的这一挑战。最近的几个NL-to-SQL系统在这个数据集上取得了令人鼓舞的结果。然而,没有一个提供源代码或可执行二进制文件的已发布系统从用户问题中提取和合并值以生成SQL语句。因此,这些系统在现实世界中的实际应用尚未得到充分证明。在本文中,我们提出了ValueNet light和ValueNet --两个端到端的NL到SQL系统,它们使用具有挑战性的Spider数据集合并了值。我们的方法的主要思想是不仅使用来自底层数据库的元数据信息,而且使用基础数据上的信息作为神经网络架构的输入。特别是,我们提出了一种新的架构草图,从用户的问题中提取值,并提出可能的值候选人中没有明确提到的问题。然后,我们使用基于编码器-解码器架构的神经模型来合成SQL查询。最后,我们使用执行准确性指标评估我们的模型,这是一个比大多数挑战参与者使用的更难的指标。我们的实验评估表明,ValueNet light和ValueNet分别达到了67%和62%的准确率,从NL转换到SQL,同时合并值。

英文摘要:

Building natural language (NL) interfaces for databases has been a long-standing challenge for several decades. The major advantage of these so-called NL-to-SQL systems is that end-users can query complex databases without the need to know SQL or the underlying database schema. Due to significant advancements in machine learning, the recent focus of research has been on neural networks to tackle this challenge on complex datasets like Spider. Several recent NL-to-SQL systems achieve promising results on this dataset. However, none of the published systems, that provide either the source code or executable binaries, extract and incorporate values from the user questions for generating SQL statements. Thus, the practical use of these systems in a real-world scenario has not been sufficiently demonstrated yet. In this paper we propose ValueNet light and ValueNet -- two end-to-end NL-to-SQL systems that incorporate values using the challenging Spider dataset. The main idea of our approach is to use not only metadata information from the underlying database but also information on the base data as input for our neural network architecture. In particular, we propose a novel architecture sketch to extract values from a user question and come up with possible value candidates which are not explicitly mentioned in the question. We then use a neural model based on an encoder-decoder architecture to synthesize the SQL query. Finally, we evaluate our model on the Spider challenge using the Execution Accuracy metric, a more difficult metric than used by most participants of the challenge. Our experimental evaluation demonstrates that ValueNet light and ValueNet reach state-of-the-art results of 67% and 62% accuracy, respectively, for translating from NL to SQL whilst incorporating values.

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

↑