Lune

ACL2022Top-tier venue

Towards Robustness of Text-to-SQL Models Against Natural and Realistic Adversarial Table Perturbation

Xinyu Pi, Bing Wang, Yan Gao, Jiaqi Guo, Zhoujun Li, Jian-Guang Lou

Abstract

The robustness of Text-to-SQL parsers against adversarial perturbations plays a crucial role in delivering highly reliable applications. Previous studies along this line primarily focused on perturbations in the natural language question side, neglecting the variability of tables. Motivated by this, we propose the Adversarial Table Perturbation (ATP) as a new attacking paradigm to measure the robustness of Textto-SQL models. Following this proposition, we curate ADVETA, the first robustness evaluation benchmark featuring natural and realistic ATPs. All tested state-of-the-art models experience dramatic performance drops on ADVETA, revealing models' vulnerability in real-world practices. To defend against ATP, we build a systematic adversarial training example generation framework tailored for better contextualization of tabular data. Experiments show that our approach not only brings the best robustness improvement against tableside perturbations but also substantially empowers models against NL-side perturbations. We release our benchmark and code at: https://github.com/microsoft/ContextualSP .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness cites On the Potential of Lexico-logical Alignments for Semantic Parsing to SQL Queries
  • Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness cites Re-examining the Role of Schema Linking in Text-to-SQL
  • RobuT: A Systematic Study of Table QA Robustness Against Human-Annotated Adversarial Perturbations cites Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness
  • RobuT: A Systematic Study of Table QA Robustness Against Human-Annotated Adversarial Perturbations cites BERT-ATTACK: Adversarial Attack Against BERT Using BERT
  • MultiSpider: Towards Benchmarking Multilingual Text-to-SQL Semantic Parsing cites Re-examining the Role of Schema Linking in Text-to-SQL
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. MultiSpider: Towards Benchmarking Multilingual Text-to-SQL Semantic ParsingLongxu Dou, Yan Gao, Mingyang Pan, Dingzirui Wang et al.AAAI 2023 · 35 citations
  2. CABINET: Content Relevance-based Noise Reduction for Table Question AnsweringSohan Patnaik, Heril Changwal, Milan Aggarwal, Sumit Bhatia et al.ICLR 2024 · 34 citations
  3. Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL RobustnessShuaichen Chang, Jun Wang, Mingwen Dong, Lin Pan et al.ICLR 2023 · 9 citations
  4. RobuT: A Systematic Study of Table QA Robustness Against Human-Annotated Adversarial PerturbationsYilun Zhao, Chen Zhao, Linyong Nan, Zhenting Qi et al.ACL 2023 · 7 citations
  5. Towards Robust Numerical Question Answering: Diagnosing Numerical Capabilities of NLP SystemsJialiang Xu, Mengyu Zhou, Xinyi He, Shi Han et al.EMNLP 2022 · 5 citations

Builds on11

  1. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  2. Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 citations
  3. BERT-ATTACK: Adversarial Attack Against BERT Using BERTLinyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue et al.EMNLP 2020 · 529 citations
  4. Re-examining the Role of Schema Linking in Text-to-SQLWenqiang Lei, Weixin Wang, Zhixin Ma, Tian Gan et al.EMNLP 2020 · 71 citations
  5. On the Potential of Lexico-logical Alignments for Semantic Parsing to SQL QueriesTianze Shi, Chen Zhao, Jordan L. Boyd-Graber, Hal Daumé III et al.EMNLP Findings 2020 · 45 citations

Related papers

  1. EVOSCHEMA: TOWARDS TEXT-TO-SQL ROBUSTNESS AGAINST SCHEMA EVOLUTIONTianshu Zhang, Kun Qian, Siddhartha Sahai, Yuan Tian et al.VLDB 2025 · 3 citations
  2. Exploring Schema Generalizability of Text-to-SQLJieyu Li, Lu Chen, Ruisheng Cao, Su Zhu et al.ACL Findings 2023 · 3 citations
  3. Towards Robustness of Text-to-SQL Models against Synonym SubstitutionYujian Gan, Xinyun Chen, Qiuping Huang, Matthew Purver et al.ACL 2021
  4. Towards Generalizable and Robust Text-to-SQL ParsingChang Gao, Bowen Li, Wenxuan Zhang, Wai Lam et al.EMNLP Findings 2022 · 9 citations
  5. Bridging the Generalization Gap in Text-to-SQL Parsing with Schema ExpansionChen Zhao, Yu Su, Adam Pauls, Emmanouil Antonios PlataniosACL 2022 · 19 citations
Dusk over the sea between two cliffs drawn in fine vertical lines