A Heterogeneous Graph to Abstract Syntax Tree Framework for Text-to-SQL

计算机科学 SQL语言 理论计算机科学 程序设计语言 人工智能
作者
Ruisheng Cao,Chao Lu,J.P. Li,Hanchong Zhang,Hongshen Xu,Wangyou Zhang,Kai Yu
出处
期刊:IEEE Transactions on Pattern Analysis and Machine Intelligence [IEEE Computer Society]
卷期号:: 1-16
标识
DOI:10.1109/tpami.2023.3298895
摘要

Text-to-SQL is the task of converting a natural language utterance plus the corresponding database schema into a SQL program. The inputs naturally form a heterogeneous graph while the output SQL can be transduced into an abstract syntax tree (AST). Traditional encoder-decoder models ignore higher-order semantics in heterogeneous graph encoding and introduce permutation biases during AST construction, thus incapable of exploiting the refined structure knowledge precisely. In this work, we propose a generic heterogeneous graph to abstract syntax tree (HG2AST) framework to integrate dedicated structure knowledge into statistics-based models. On the encoder side, we leverage a line graph enhanced encoder (LGESQL) to iteratively update both node and edge features through dual graph message passing and aggregation. On the decoder side, a grammar-based decoder first constructs the equivalent SQL AST and then transforms it into the desired SQL via post-processing. To avoid over-fitting permutation biases, we propose a golden tree-oriented learning (GTL) algorithm to adaptively control the expanding order of AST nodes. The graph encoder and tree decoder are combined into a unified framework through two auxiliary modules. Extensive experiments on various text-to-SQL datasets, including single/multi-table, single/cross-domain, and multilingual settings, demonstrate the superiority and broad applicability.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
微光熠完成签到,获得积分10
刚刚
Sofia完成签到 ,获得积分0
2秒前
过时的元风完成签到 ,获得积分10
4秒前
tiancai完成签到 ,获得积分10
4秒前
源孤律醒完成签到 ,获得积分10
7秒前
swordshine完成签到,获得积分0
9秒前
烧仙草之完成签到 ,获得积分10
16秒前
马登完成签到,获得积分10
19秒前
20秒前
ding应助TY采纳,获得10
20秒前
alixy完成签到,获得积分10
23秒前
丁丁车完成签到 ,获得积分10
36秒前
qausyh完成签到,获得积分10
41秒前
大好人完成签到 ,获得积分10
42秒前
话说dota完成签到 ,获得积分10
55秒前
执着的诗桃完成签到,获得积分10
57秒前
cquank完成签到,获得积分10
58秒前
苹果大侠完成签到 ,获得积分10
1分钟前
Freddy完成签到 ,获得积分10
1分钟前
1分钟前
kaifangfeiyao完成签到 ,获得积分10
1分钟前
无语的成仁完成签到,获得积分10
1分钟前
拉布拉多多不多完成签到,获得积分10
1分钟前
ZZzz完成签到 ,获得积分10
1分钟前
科研通AI6.1应助Zhao采纳,获得10
1分钟前
呆萌的小海豚完成签到,获得积分10
1分钟前
大模型应助carrot采纳,获得10
1分钟前
站台完成签到,获得积分10
1分钟前
嗯嗯完成签到 ,获得积分10
1分钟前
爆米花应助科研通管家采纳,获得10
1分钟前
包包完成签到 ,获得积分10
1分钟前
从容的水壶完成签到 ,获得积分10
1分钟前
tomato完成签到,获得积分10
1分钟前
科研爱好者完成签到,获得积分10
1分钟前
江南第八完成签到,获得积分10
1分钟前
WXF完成签到 ,获得积分10
1分钟前
香蕉飞瑶完成签到 ,获得积分10
1分钟前
juan完成签到 ,获得积分10
1分钟前
南宫士晋完成签到 ,获得积分10
1分钟前
不秃燃的小老弟完成签到 ,获得积分10
2分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Cambridge History of China: Volume 4, Sui and T'ang China, 589–906 AD, Part Two 1500
Cowries - A Guide to the Gastropod Family Cypraeidae 1200
Quality by Design - An Indispensable Approach to Accelerate Biopharmaceutical Product Development 800
Pulse width control of a 3-phase inverter with non sinusoidal phase voltages 777
Signals, Systems, and Signal Processing 610
Research Methods for Applied Linguistics: A Practical Guide 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6399425
求助须知:如何正确求助?哪些是违规求助? 8216040
关于积分的说明 17407956
捐赠科研通 5452750
什么是DOI,文献DOI怎么找? 2881908
邀请新用户注册赠送积分活动 1858331
关于科研通互助平台的介绍 1700339