Tracking Interaction States for Multi-Turn Text-to-SQL Semantic Parsing

Run-Ze Wang, Zhen-Hua Ling, Jing-Bo Zhou, Yu Hu
12/9/2020
cs.CL

Official code: runzewang/IST-SQL (6 stars, Python, last commit 2021-06-22).

Abstract

The task of multi-turn text-to-SQL semantic parsing aims to translate natural language utterances in an interaction into SQL queries in order to answer them using a database which normally contains multiple table schemas. Previous studies on this task usually utilized contextual information to enrich utterance representations and to further influence the decoding process.

Show full abstract

While they ignored to describe and track the interaction states which are determined by history SQL queries and are related with the intent of current utterance. In this paper, two kinds of interaction states are defined based on schema items and SQL keywords separately. A relational graph neural network and a non-linear layer are designed to update the representations of these two states respectively. The dynamic schema-state and SQL-state representations are then utilized to decode the SQL query corresponding to current utterance. Experimental results on the challenging CoSQL dataset demonstrate the effectiveness of our proposed method, which achieves better performance than other published methods on the task leaderboard.

View on arXivView PDF

Code Implementations(1)

runzewang/IST-SQLOfficial100%

Code for AAAI2021 paper

61Python, Jupyter NotebookDec 9, 20205 years ago

Similar Papers

Cite this paper

@article{wang2020tracking,
  title  = {Tracking Interaction States for Multi-Turn Text-to-SQL Semantic Parsing},
  author = {Run-Ze Wang and Zhen-Hua Ling and Jing-Bo Zhou and Yu Hu},
  year   = {2020},
  eprint = {2012.04995},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.04995}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.04995.svg)](https://codeofpaper.com/paper/2012.04995)

Discussion