arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.09901cs.CL
收藏

GP:文本到SQL解析器的上下文无关文法预训练

GP: Context-free Grammar Pre-training for Text-to-SQL Parsers

OneConnect Financial Technology Big Data Lab(平安金融科技大数据实验室)

Liang Zhao, Hexin Cao, Yunsong Zhao

摘要:

提出了一种新的文本到SQL分析方法-语法预训练(GP),以解码问题和数据库之间的深层关系。首先,为了更好地利用数据库中的信息,在被识别为一列的问题词后面添加一个随机值,并将新句子作为模型输入。其次,在参考原编码的基础上,对解码器部分的向量初始化进行了优化,使其能够关注问题信息。最后,采用一种新的方法,称为洪水水平,以获得非零的训练损失,可以推广更好的结果。通过使用GRAPPA和RAT-SQL模型对句子进行编码,我们在跨DB Text-to-SQL数据集spider上实现了更好的性能(72.8 dev,69.8 test)。实验表明,该方法在训练过程中易于收敛,具有良好的鲁棒性。

英文摘要:

A new method for Text-to-SQL parsing, Grammar Pre-training (GP), is proposed to decode deep relations between question and database. Firstly, to better utilize the information of databases, a random value is added behind a question word which is recognized as a column, and the new sentence serves as the model input. Secondly, initialization of vectors for decoder part is optimized, with reference to the former encoding so that question information can be concerned. Finally, a new approach called flooding level is adopted to get the non-zero training loss which can generalize better results. By encoding the sentence with GRAPPA and RAT-SQL model, we achieve better performance on spider, a cross-DB Text-to-SQL dataset (72.8 dev, 69.8 test). Experiments show that our method is easier to converge during training and has excellent robustness.

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

↑