HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Jiexing Qi Jingyao Tang Ziwei He Xiangpeng Wan Yu Cheng Chenghu Zhou Xinbing Wang Quanshi Zhang Zhouhan Lin

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

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. 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).

Code Repositories

lumia-group/rasat
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
dialogue-state-tracking-on-cosqlRASAT+PICARD
interaction match accuracy: 26.5
question match accuracy: 55.7
semantic-parsing-on-spiderRASAT+PICARD
Accuracy: 75.5
text-to-sql-on-sparcRASAT+PICARD
interaction match accuracy: 45.2
question match accuracy: 67.7
text-to-sql-on-spider-1RASAT
Exact Match Accuracy (in Dev): 72.6
Execution Accuracy (in Dev): 76.6
text-to-sql-on-spider-1RASAT+PICARD
Exact Match Accuracy (in Dev): 75.3
Execution Accuracy (in Dev): 80.5

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL | Papers | HyperAI