Back to Search
Start Over
Relation-Aware Graph Transformer for SQL-to-Text Generation
- 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.
- Subjects :
- Fluid Flow and Transfer Processes
Technology
relation-aware graph transformer (RGT)
QH301-705.5
Process Chemistry and Technology
Physics
QC1-999
General Engineering
InformationSystems_DATABASEMANAGEMENT
Engineering (General). Civil engineering (General)
Computer Science Applications
Chemistry
abstract SQL syntax tree
General Materials Science
SQL-to-text
TA1-2040
Biology (General)
Instrumentation
QD1-999
Subjects
Details
- Language :
- English
- ISSN :
- 20763417
- Volume :
- 12
- Issue :
- 369
- Database :
- OpenAIRE
- Journal :
- Applied Sciences
- Accession number :
- edsair.doi.dedup.....62e98aea908ad6e5020b98231534c926