spider-syn / README.md
iamahern's picture
Create README.md
36e6aef verified
---
license: mit
task_categories:
- text2text-generation
language:
- en
tags:
- text-to-sql
pretty_name: Spider-Syn
size_categories:
- 1K<n<10K
---
# Dataset Card for Sypder-Syn
[Spyder-Syn](https://github.com/ygan/Spider-Syn) is a human curated variant of the [Spider](https://yale-lily.github.io/spider) Text-to-SQL database.
The database was created to test the robustness of text-to-SQL models for robustness of synonym substitution.
The source GIT repo for Sypder-Syn is located here: https://github.com/ygan/Spider-Syn
Details regarding the data perterbation methods used and objectives are described in ACL 2021: [arXiv](https://arxiv.org/abs/2106.01065)
## Paper Abstract
> Recently, there has been significant progress in studying neural networks to translate text descriptions into SQL queries. Despite achieving good performance on some public benchmarks, existing text-to-SQL models typically rely on the lexical matching between words in natural language (NL) questions and tokens in table schemas, which may render the models vulnerable to attacks that break the schema linking mechanism. In this work, we investigate the robustness of text-to-SQL models to synonym substitution. In particular, we introduce Spider-Syn, a human-curated dataset based on the Spider benchmark for text-to-SQL translation. NL questions in Spider-Syn are modified from Spider, by replacing their schema-related words with manually selected synonyms that reflect real-world question paraphrases. We observe that the accuracy dramatically drops by eliminating such explicit correspondence between NL questions and table schemas, even if the synonyms are not adversarially selected to conduct worst-case adversarial attacks. Finally, we present two categories of approaches to improve the model robustness. The first category of approaches utilizes additional synonym annotations for table schemas by modifying the model input, while the second category is based on adversarial training. We demonstrate that both categories of approaches significantly outperform their counterparts without the defense, and the first category of approaches are more effective.
## Citation Information
```
@inproceedings{gan-etal-2021-towards,
title = "Towards Robustness of Text-to-{SQL} Models against Synonym Substitution",
author = "Gan, Yujian and
Chen, Xinyun and
Huang, Qiuping and
Purver, Matthew and
Woodward, John R. and
Xie, Jinxia and
Huang, Pengsheng",
month = aug,
year = "2021",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.acl-long.195",
doi = "10.18653/v1/2021.acl-long.195",
pages = "2505--2515",
}
```