Back to Search Start Over

Relation-Aware Graph Transformer for SQL-to-Text Generation

Authors :
Da Ma
Xingyu Chen
Ruisheng Cao
Zhi Chen
Lu Chen
Kai Yu
Source :
Applied Sciences, Vol 12, Iss 369, p 369 (2022), Applied Sciences; Volume 12; Issue 1; Pages: 369
Publication Year :
2022
Publisher :
MDPI AG, 2022.

Abstract

Generating natural language descriptions for structured representation (e.g., a graph) is an important yet challenging task. In this work, we focus on SQL-to-text, a task that maps a SQL query into the corresponding natural language question. Previous work represents SQL as a sparse graph and utilizes a graph-to-sequence model to generate questions, where each node can only communicate with k-hop nodes. Such a model will degenerate when adapted to more complex SQL queries due to the inability to capture long-term and the lack of SQL-specific relations. To tackle this problem, we propose a relation-aware graph transformer (RGT) to consider both the SQL structure and various relations simultaneously. Specifically, an abstract SQL syntax tree is constructed for each SQL to provide the underlying relations. We also customized self-attention and cross-attention strategies to encode the relations in the SQL tree. Experiments on benchmarks WikiSQL and Spider demonstrate that our approach yields improvements over strong baselines.

Details

Language :
English
ISSN :
20763417
Volume :
12
Issue :
369
Database :
OpenAIRE
Journal :
Applied Sciences
Accession number :
edsair.doi.dedup.....62e98aea908ad6e5020b98231534c926