Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalization

Yujian Gan, Xinyun Chen, Matthew Purver
9/11/2021
cs.CL

Official code: ygan/Spider-DK (9 stars, MIT, last commit 2021-10-20).

Abstract

Recently, there has been significant progress in studying neural networks for translating text descriptions into SQL queries under the zero-shot cross-domain setting. Despite achieving good performance on some public benchmarks, we observe that existing text-to-SQL models do not generalize when facing domain knowledge that does not frequently appear in the training data, which may render the worse prediction performance for unseen domains.

Show full abstract

In this work, we investigate the robustness of text-to-SQL models when the questions require rarely observed domain knowledge. In particular, we define five types of domain knowledge and introduce Spider-DK (DK is the abbreviation of domain knowledge), a human-curated dataset based on the Spider benchmark for text-to-SQL translation. NL questions in Spider-DK are selected from Spider, and we modify some samples by adding domain knowledge that reflects real-world question paraphrases. We demonstrate that the prediction accuracy dramatically drops on samples that require such domain knowledge, even if the domain knowledge appears in the training set, and the model provides the correct predictions for related training samples.

View on arXivView PDF

Code Implementations(1)

ygan/Spider-DKOfficial100%
MIT
93Sep 4, 20215 years agoMIT

Similar Papers

Cite this paper

@article{gan2021exploring,
  title  = {Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalization},
  author = {Yujian Gan and Xinyun Chen and Matthew Purver},
  year   = {2021},
  eprint = {2109.05157},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.05157}
}

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

Discussion