Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations

About

This work aims to tackle the challenging heterogeneous graph encoding problem in the text-to-SQL task. Previous methods are typically node-centric and merely utilize different weight matrices to parameterize edge types, which 1) ignore the rich semantics embedded in the topological structure of edges, and 2) fail to distinguish local and non-local relations for each node. To this end, we propose a Line Graph Enhanced Text-to-SQL (LGESQL) model to mine the underlying relational features without constructing meta-paths. By virtue of the line graph, messages propagate more efficiently through not only connections between nodes, but also the topology of directed edges. Furthermore, both local and non-local relations are integrated distinctively during the graph iteration. We also design an auxiliary task called graph pruning to improve the discriminative capability of the encoder. Our framework achieves state-of-the-art results (62.8% with Glove, 72.0% with Electra) on the cross-domain text-to-SQL benchmark Spider at the time of writing.

Ruisheng Cao, Lu Chen, Zhi Chen, Yanbin Zhao, Su Zhu, Kai Yu• 2021

Related benchmarks

TaskDatasetResultRank
Text-to-SQLSpider (test)--
140
Text-to-SQLSpider (dev)--
100
Text-to-SQLSpider 1.0 (dev)
Exact Match Accuracy75.1
92
Text-to-SQLSpider 1.0 (test)
EM Acc (Overall)72
91
Question AnsweringAIRQA-REAL
SGL Score12.2
12
Text-to-SQLSpider-SYN 1.0 (val)
EM Accuracy64.6
10
Text-to-SQLSpider hidden (test)
Exact Match (EM)72
10
Text-to-SQLSpider-DK 1.0 (val)
EM48.4
10
Text-to-SQLSpider-Realistic 1.0 (test)
Exact Match (EM)69.2
9
Text-to-SQLSpider-Realistic 1.0 (val)
EM69.2
7
Showing 10 of 12 rows

Other info

Follow for update