Augmenting Multi-Turn Text-to-SQL Datasets with Self-Play

Qi Liu, Zihuiwen Ye, Tao Yu, Phil Blunsom, Linfeng Song
10/21/2022
cs.CL

Official code: leuchine/self_play_picard (13 stars, Python, Apache-2.0, last commit 2022-10-20).

Abstract

The task of context-dependent text-to-SQL aims to convert multi-turn user utterances to formal SQL queries. This is a challenging task due to both the scarcity of training data from which to learn complex contextual dependencies and to generalize to unseen databases.

Show full abstract

In this paper we explore augmenting the training datasets using self-play, which leverages contextual information to synthesize new interactions to adapt the model to new databases. We first design a SQL-to-text model conditioned on a sampled goal query, which represents a user's intent, that then converses with a text-to-SQL semantic parser to generate new interactions. We then filter the synthesized interactions and retrain the models with the augmented data. We find that self-play improves the accuracy of a strong baseline on SParC and CoSQL, two widely used cross-domain text-to-SQL datasets. Our analysis shows that self-play simulates various conversational thematic relations, enhances cross-domain generalization and improves beam-search.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Using self-play to augment multi-turn text-to-SQL datasets

130Python, HaskellDec 7, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2022augmenting,
  title  = {Augmenting Multi-Turn Text-to-SQL Datasets with Self-Play},
  author = {Qi Liu and Zihuiwen Ye and Tao Yu and Phil Blunsom and Linfeng Song},
  year   = {2022},
  eprint = {2210.12096},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12096}
}

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

Discussion