arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.06983cs.CLcs.AIcs.DBcs.LG
收藏

RASAT:将关系结构集成到文本到SQL的预训练Seq2Seq模型中

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

Shanghai Jiao Tong University(上海交通大学);ProtagoLabs;Microsoft Research(微软研究院);Chinese Academy of Sciences(中国科学院);IGSNRR(中国科学院地理科学与资源研究所)

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

摘要:

关系结构(如模式链接和模式编码)已被验证为将自然语言定性转换为SQL查询的关键组件。然而,引入这些结构关系是有代价的:它们通常会导致专门的模型结构,这在很大程度上禁止在文本到SQL中使用大型预训练模型。为了解决这个问题,我们提出了RASAT:一个Transformer seq2seq架构,增强了关系感知的自我注意力,可以利用各种关系结构,同时有效地继承T5模型的预训练参数。我们的模型可以将几乎所有类型的文献中现有的关系,此外,我们建议引入共指关系的多回合的情况下。在三个广泛使用的文本到SQL数据集上的实验结果表明,RASAT可以在所有三个基准测试中实现最先进的结果(Spider上的75.5% EX,SParC上的52.6% IEX和CoSQL上的37.4% IEX)。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑