about
Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions (arxiv.org)
2 points by sel1 on Sep 4, 2019 | hide | past | pdf | discuss on HN

In plain words: When a follow-up question arrives, the system edits the previous SQL query word by word instead of writing one from scratch, reusing parts that stay the same while checking the conversation and table layout. It answered follow-ups more accurately than the best from-scratch systems.

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.

Rui Zhang, Tao Yu, He Yang Er, Sungrok Shim, Eric Xue, Xi Victoria Lin, Tianze Shi, Caiming Xiong, Richard Socher, Dragomir Radev
arXiv:1909.00786 · cs.CL · submitted Sep 2, 2019 · updated Sep 10, 2019
abstract · pdf · html · EMNLP 2019

add comment on HN