CLHCApr 10, 2021

ShadowGNN: Graph Projection Neural Network for Text-to-SQL Parser

arXiv:2104.04689v2735 citationsHas Code
AI Analysis

This addresses the challenge of adapting Text-to-SQL parsers to rare and unseen database schemas, which is crucial for practical applications like database querying, though it appears incremental as it builds on existing graph and transformer-based methods.

The paper tackles the problem of cross-domain Text-to-SQL parsing, where models struggle with unseen database schemas, by proposing ShadowGNN, which processes schemas at abstract and semantic levels to improve generalization; on the Spider benchmark, it outperforms state-of-the-art models, achieving over 5% absolute performance gain with only 10% of the training data.

Given a database schema, Text-to-SQL aims to translate a natural language question into the corresponding SQL query. Under the setup of cross-domain, traditional semantic parsing models struggle to adapt to unseen database schemas. To improve the model generalization capability for rare and unseen schemas, we propose a new architecture, ShadowGNN, which processes schemas at abstract and semantic levels. By ignoring names of semantic items in databases, abstract schemas are exploited in a well-designed graph projection neural network to obtain delexicalized representation of question and schema. Based on the domain-independent representations, a relation-aware transformer is utilized to further extract logical linking between question and schema. Finally, a SQL decoder with context-free grammar is applied. On the challenging Text-to-SQL benchmark Spider, empirical results show that ShadowGNN outperforms state-of-the-art models. When the annotated data is extremely limited (only 10\% training set), ShadowGNN gets over absolute 5\% performance gain, which shows its powerful generalization ability. Our implementation will be open-sourced at \url{https://github.com/WowCZ/shadowgnn}.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes