Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness

Shuaichen Chang, J. Wang, Mingwen Dong, Lin Pan, Henghui Zhu +11 more
2/12/2026

No official code found. Best implementation: awslabs/diagnostic-robustness-text-to-sql (34 stars, Apache-2.0, last commit 2023-05-03).

Abstract

Neural text-to-SQL models have achieved remarkable performance in translating natural language questions into SQL queries. However, recent studies reveal that text-to-SQL models are vulnerable to task-specific perturbations. Previous curated robustness test sets usually focus on individual phenomena. In this paper, we propose a comprehensive robustness benchmark based on Spider, a cross-domain text-to-SQL benchmark, to diagnose the model robustness. We design 17 perturbations on databases, natural language questions, and SQL queries to measure the robustness from different angles. In order to collect more diversified natural question perturbations, we utilize large pretrained language models (PLMs) to simulate human behaviors in creating natural questions. We conduct a diagnostic study of the state-of-the-art models on the robustness set. Experimental results reveal that even the most robust model suffers from a 14.0% performance drop overall and a 50.7% performance drop on the most challenging perturbation. We also present a breakdown analysis regarding text-to-SQL model designs and provide insights for improving model robustness.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Data for paper "Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness"

347PythonJan 19, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{chang2026drspider,
  title  = {Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness},
  author = {Shuaichen Chang and J. Wang and Mingwen Dong and Lin Pan and Henghui Zhu and A. Li and Wuwei Lan and Shenmin Zhang and Jiarong Jiang and Joseph Lilien and Stephen M. Ash and William Yang Wang and Zhiguo Wang and Vittorio Castelli and Patrick Ng and Bing Xiang},
  year   = {2026},
  eprint = {2301.08881},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2301.08881},
  journal = {ICLR 2023 2023}
}

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

Discussion