A Tale of Two Linkings: Dynamically Gating between Schema Linking and Structural Linking for Text-to-SQL Parsing

Sanxing Chen, Aidan San, Xiaodong Liu, Yangfeng Ji
9/30/2020
cs.CL

Official code: sanxing-chen/linking-tale (9 stars, Python, last commit 2020-10-19).

Abstract

In Text-to-SQL semantic parsing, selecting the correct entities (tables and columns) for the generated SQL query is both crucial and challenging; the parser is required to connect the natural language (NL) question and the SQL query to the structured knowledge in the database. We formulate two linking processes to address this challenge: schema linking which links explicit NL mentions to the database and structural linking which links the entities in the output SQL with their structural relationships in the database schema.

Show full abstract

Intuitively, the effectiveness of these two linking processes changes based on the entity being generated, thus we propose to dynamically choose between them using a gating mechanism. Integrating the proposed method with two graph neural network-based semantic parsers together with BERT representations demonstrates substantial gains in parsing accuracy on the challenging Spider dataset. Analyses show that our proposed method helps to enhance the structure of the model output when generating complicated SQL queries and offers more explainable predictions.

View on arXivView PDF

Code Implementations(1)

Codebase for the COLING paper "A Tale of Two Linkings: Dynamically Gating between Schema Linking and Structural Linking for Text-to-SQL Parsing".

90Python, JsonnetOct 17, 20206 years ago

Similar Papers

Cite this paper

@article{chen2020tale,
  title  = {A Tale of Two Linkings: Dynamically Gating between Schema Linking and Structural Linking for Text-to-SQL Parsing},
  author = {Sanxing Chen and Aidan San and Xiaodong Liu and Yangfeng Ji},
  year   = {2020},
  eprint = {2009.14809},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.14809}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.14809.svg)](https://codeofpaper.com/paper/2009.14809)

Discussion