RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL

Jiexing Qi, Jingyao Tang, Ziwei He, Xiangpeng Wan, Yu Cheng +4 more
5/14/2022
cs.CLcs.AIcs.DB
transformer-attention

Official code: LUMIA-Group/rasat (65 stars, Python, Apache-2.0, last commit 2023-02-23).

Abstract

Relational structures such as schema linking and schema encoding have been validated as a key component to qualitatively translating natural language into SQL queries. However, introducing these structural relations comes with prices: they often result in a specialized model structure, which largely prohibits using large pretrained models in text-to-SQL.

Show full abstract

To address this problem, we propose RASAT: a Transformer seq2seq architecture augmented with relation-aware self-attention that could leverage a variety of relational structures while inheriting the pretrained parameters from the T5 model effectively. Our model can incorporate almost all types of existing relations in the literature, and in addition, we propose introducing co-reference relations for the multi-turn scenario. Experimental results on three widely used text-to-SQL datasets, covering both single-turn and multi-turn scenarios, have shown that RASAT could achieve state-of-the-art results across all three benchmarks (75.5% EX on Spider, 52.6% IEX on SParC, and 37.4% IEX on CoSQL).

View on arXivView PDF

Code Implementations(1)

LUMIA-Group/rasatOfficial100%
Apache-2.0

The official implementation of the paper "RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL"(EMNLP 2022)

6517Python, HaskellOct 8, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{qi2022rasat,
  title  = {RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL},
  author = {Jiexing Qi and Jingyao Tang and Ziwei He and Xiangpeng Wan and Yu Cheng and Chenghu Zhou and Xinbing Wang and Quanshi Zhang and Zhouhan Lin},
  year   = {2022},
  eprint = {2205.06983},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.06983}
}

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/2205.06983.svg)](https://codeofpaper.com/paper/2205.06983)

Discussion