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

SQLformer:用于文本到SQL翻译的深度自回归查询图生成

SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation

University of Cambridge(剑桥大学)

Adrián Bazaga, Pietro Liò, Gos Micklem

AI总结:

SQLformer是一种新型Transformer架构,通过自回归生成SQL查询的抽象语法树并融入结构归纳偏置,在六个文本到SQL基准上取得最先进性能。

摘要:

近年来,文本到SQL翻译任务(将自然语言问题转换为可执行的SQL查询)因其在数据访问民主化方面的潜力而受到广泛关注。尽管前景广阔,但适应未见数据库以及将自然语言与SQL语法对齐等挑战阻碍了其广泛应用。为克服这些问题,我们引入了SQLformer,一种专为执行文本到SQL翻译任务而设计的新型Transformer架构。我们的模型以自回归方式将SQL查询预测为抽象语法树(AST),在编码器和解码器层中融入结构归纳偏置。这种由数据库表和列选择引导的偏置,有助于解码器生成以广度优先搜索规范顺序表示为图的SQL查询AST。我们的实验表明,SQLformer在六个著名的文本到SQL基准测试中达到了最先进的性能。

英文摘要:

In recent years, the task of text-to-SQL translation, which converts natural language questions into executable SQL queries, has gained significant attention for its potential to democratize data access. Despite its promise, challenges such as adapting to unseen databases and aligning natural language with SQL syntax have hindered widespread adoption. To overcome these issues, we introduce SQLformer, a novel Transformer architecture specifically crafted to perform text-to-SQL translation tasks. Our model predicts SQL queries as abstract syntax trees (ASTs) in an autoregressive way, incorporating structural inductive bias in the encoder and decoder layers. This bias, guided by database table and column selection, aids the decoder in generating SQL query ASTs represented as graphs in a Breadth-First Search canonical order. Our experiments demonstrate that SQLformer achieves state-of-the-art performance across six prominent text-to-SQL benchmarks.

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

↑