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

5Citations
Citations of this article
15Readers
Mendeley users who have this article in their library.

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.

Cite

CITATION STYLE

APA

Ma, D., Chen, X., Cao, R., Chen, Z., Chen, L., & Yu, K. (2022). Relation-Aware Graph Transformer for SQL-to-Text Generation. Applied Sciences (Switzerland), 12(1). https://doi.org/10.3390/app12010369

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free