SADGA:面向文本到SQL的结构感知双图聚合网络
SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQL
摘要:
Text-to-SQL任务旨在将问题的自然语言转换为SQL查询,近年来引起了人们的广泛关注。Text-to-SQL最具挑战性的问题之一是如何将训练好的模型推广到看不见的数据库模式,也称为跨域Text-to-SQL任务。关键在于(i)对问题和数据库模式进行建模的编码方法和(ii)学习问题中的单词与数据库模式中的表/列之间的映射的问题-模式链接方法的可推广性。针对这两个关键问题,本文提出了一种结构感知的双图聚合网络(SADGA)。在SADGA中,我们采用了图结构,为自然语言问题和数据库模式提供了一个统一的编码模型。在统一建模的基础上,我们进一步设计了一种结构感知的聚合方法来学习问题图和模式图之间的映射。结构感知聚合方法具有全局图链接、局部图链接和双图聚合机制。我们不仅从经验上研究了我们的提案的性能,而且在撰写本文时,我们在具有挑战性的文本到SQL基准测试Spider中获得了第三名。
英文摘要:
The Text-to-SQL task, aiming to translate the natural language of the questions into SQL queries, has drawn much attention recently. One of the most challenging problems of Text-to-SQL is how to generalize the trained model to the unseen database schemas, also known as the cross-domain Text-to-SQL task. The key lies in the generalizability of (i) the encoding method to model the question and the database schema and (ii) the question-schema linking method to learn the mapping between words in the question and tables/columns in the database schema. Focusing on the above two key issues, we propose a Structure-Aware Dual Graph Aggregation Network (SADGA) for cross-domain Text-to-SQL. In SADGA, we adopt the graph structure to provide a unified encoding model for both the natural language question and database schema. Based on the proposed unified modeling, we further devise a structure-aware aggregation method to learn the mapping between the question-graph and schema-graph. The structure-aware aggregation method is featured with Global Graph Linking, Local Graph Linking, and Dual-Graph Aggregation Mechanism. We not only study the performance of our proposal empirically but also achieved 3rd place on the challenging Text-to-SQL benchmark Spider at the time of writing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。