Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL

Yuntao Li, Hanchu Zhang, Yutian Li, Sirui Wang, Wei Wu +1 more
12/16/2021
cs.CLcs.AI

Official code: JuruoMP/RAT-SQL-TC (5 stars, Python, Apache-2.0, last commit 2022-04-13).

Abstract

Conversational text-to-SQL aims at converting multi-turn natural language queries into their corresponding SQL (Structured Query Language) representations. One of the most intractable problems of conversational text-to-SQL is modelling the semantics of multi-turn queries and gathering the proper information required for the current query.

Show full abstract

This paper shows that explicitly modelling the semantic changes by adding each turn and the summarization of the whole context can bring better performance on converting conversational queries into SQLs. In particular, we propose two conversational modelling tasks in both turn grain and conversation grain. These two tasks simply work as auxiliary training tasks to help with multi-turn conversational semantic parsing. We conducted empirical studies and achieved new state-of-the-art results on the large-scale open-domain conversational text-to-SQL dataset. The results demonstrate that the proposed mechanism significantly improves the performance of multi-turn semantic parsing.

View on arXivView PDF

Code Implementations(1)

JuruoMP/RAT-SQL-TCOfficial100%
Apache-2.0

Code for our paper "Pay More Attention to History: A Context Modeling Strategy for Conversational Text-to-SQL"

52Python, JsonnetMar 28, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2021more,
  title  = {Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL},
  author = {Yuntao Li and Hanchu Zhang and Yutian Li and Sirui Wang and Wei Wu and Yan Zhang},
  year   = {2021},
  eprint = {2112.08735},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.08735}
}

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/2112.08735.svg)](https://codeofpaper.com/paper/2112.08735)

Discussion