HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions

Rui Zhang; Tao Yu; He Yang Er; Sungrok Shim; Eric Xue; Xi Victoria Lin; Tianze Shi; Caiming Xiong; Richard Socher; Dragomir Radev

Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions

Abstract

We focus on the cross-domain context-dependent text-to-SQL generation task. Based on the observation that adjacent natural language questions are often linguistically dependent and their corresponding SQL queries tend to overlap, we utilize the interaction history by editing the previous predicted query to improve the generation quality. Our editing mechanism views SQL as sequences and reuses generation results at the token level in a simple manner. It is flexible to change individual tokens and robust to error propagation. Furthermore, to deal with complex table structures in different domains, we employ an utterance-table encoder and a table-aware decoder to incorporate the context of the user utterance and the table schema. We evaluate our approach on the SParC dataset and demonstrate the benefit of editing compared with the state-of-the-art baselines which generate SQL from scratch. Our code is available at https://github.com/ryanzhumich/sparc_atis_pytorch.

Code Repositories

amolk/editsql
pytorch
Mentioned in GitHub
hyan5/learning_to_simulate_nl_feedback
pytorch
Mentioned in GitHub
ryanzhumich/editsql
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
dialogue-state-tracking-on-cosqlEdit-SQL+BERT
interaction match accuracy: 13.7
question match accuracy: 40.8
text-to-sql-on-sparcEditSQL + BERT
interaction match accuracy: 25.3
question match accuracy: 47.9

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
Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions | Papers | HyperAI