HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Bidirectional Attention for SQL Generation

Tong Guo; Huilin Gao

Bidirectional Attention for SQL Generation

Abstract

Generating structural query language (SQL) queries from natural language is a long-standing open problem. Answering a natural language question about a database table requires modeling complex interactions between the columns of the table and the question. In this paper, we apply the synthesizing approach to solve this problem. Based on the structure of SQL queries, we break down the model to three sub-modules and design specific deep neural networks for each of them. Taking inspiration from the similar machine reading task, we employ the bidirectional attention mechanisms and character-level embedding with convolutional neural networks (CNNs) to improve the result. Experimental evaluations show that our model achieves the state-of-the-art results in WikiSQL dataset.

Code Repositories

openbotai/nl2sql
Mentioned in GitHub
guotong1988/NL2SQL
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
code-generation-on-wikisqlBidirectional Attention for SQL Generation
Exact Match Accuracy: 69
Execution Accuracy: 62.5

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Bidirectional Attention for SQL Generation | Papers | HyperAI