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

关系感知的半自回归NL2SQL语义语义解析

Relation Aware Semi-autoregressive Semantic Parsing for NL2SQL

Ant Group(蚂蚁集团);Fudan University(复旦大学)

Junyang Huang, Yongbo Wang, Yongliang Wang, Yang Dong, Yanghua Xiao

摘要:

自然语言到SQL(NL 2 SQL)旨在将给定数据库的自然语言解析为SQL查询,广泛出现在实际的互联网应用中。数据库模式和问句的联合编码是NL2SQL中一个困难而重要的任务。一种解决方案是将输入视为异构图。然而,它未能学习到好的词汇表征问题的话语。学习更好的词表示对于构建一个设计良好的NL2SQL系统非常重要。为了解决这一难题,我们提出了一个关系感知的半自回归语义解析(\MODN)框架,该框架更适合于NL2SQL。它首先学习关系嵌入模式实体和问题词与预定义的模式关系与ELECTRA和关系感知Transformer层作为骨干。然后,我们解码查询SQL与半自回归解析器和预定义的SQL语法。从实证结果和案例研究,我们的模型表明,在学习更好的词表示在NL2SQL的有效性。

英文摘要:

Natural language to SQL (NL2SQL) aims to parse a natural language with a given database into a SQL query, which widely appears in practical Internet applications. Jointly encode database schema and question utterance is a difficult but important task in NL2SQL. One solution is to treat the input as a heterogeneous graph. However, it failed to learn good word representation in question utterance. Learning better word representation is important for constructing a well-designed NL2SQL system. To solve the challenging task, we present a Relation aware Semi-autogressive Semantic Parsing (\MODN) ~framework, which is more adaptable for NL2SQL. It first learns relation embedding over the schema entities and question words with predefined schema relations with ELECTRA and relation aware transformer layer as backbone. Then we decode the query SQL with a semi-autoregressive parser and predefined SQL syntax. From empirical results and case study, our model shows its effectiveness in learning better word representation in NL2SQL.

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

↑