清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

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
3秒前
科研通AI2S应助沉静小笼包采纳,获得10
6秒前
予秋发布了新的文献求助10
6秒前
111完成签到 ,获得积分10
12秒前
夕阳下仰望完成签到 ,获得积分10
15秒前
花花完成签到,获得积分10
20秒前
氟锑酸完成签到 ,获得积分10
33秒前
Lily完成签到 ,获得积分10
44秒前
sieena完成签到,获得积分10
49秒前
云峤完成签到 ,获得积分10
50秒前
xiuxiu125完成签到,获得积分10
59秒前
flysky120完成签到,获得积分10
1分钟前
YangSY完成签到,获得积分10
1分钟前
彭于晏应助沉静小笼包采纳,获得10
1分钟前
SY1005完成签到 ,获得积分10
1分钟前
温暖完成签到 ,获得积分10
1分钟前
khaihay完成签到 ,获得积分10
1分钟前
美丽的芙完成签到 ,获得积分10
1分钟前
1分钟前
1分钟前
1分钟前
1分钟前
1分钟前
1分钟前
星海种花完成签到 ,获得积分10
1分钟前
1分钟前
wmz完成签到 ,获得积分10
1分钟前
SCI的芷蝶完成签到 ,获得积分10
1分钟前
柯彦完成签到 ,获得积分10
1分钟前
等待醉柳完成签到,获得积分10
1分钟前
lala完成签到,获得积分10
1分钟前
dongqulong完成签到 ,获得积分10
1分钟前
搬砖的化学男完成签到 ,获得积分10
2分钟前
Rachel完成签到 ,获得积分10
2分钟前
jixiekaifa完成签到 ,获得积分10
2分钟前
予秋发布了新的文献求助10
2分钟前
龙弟弟完成签到 ,获得积分10
2分钟前
我很好完成签到 ,获得积分10
2分钟前
蔡从安发布了新的文献求助10
2分钟前
范白容完成签到 ,获得积分10
2分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de Guyane Insecta, Polyneoptera 2000
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
Research Methods for Applied Linguistics 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6404400
求助须知:如何正确求助?哪些是违规求助? 8223606
关于积分的说明 17430074
捐赠科研通 5456986
什么是DOI,文献DOI怎么找? 2883660
邀请新用户注册赠送积分活动 1859855
关于科研通互助平台的介绍 1701316