Skip to main content
QUICK REVIEW

[Paper Review] Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustness

Shuaichen Chang, Jun Wang|arXiv (Cornell University)|Jan 21, 2023
Topic ModelingComputer Science8 citations
TL;DR

Dr.Spider introduces a comprehensive robustness benchmark for text-to-SQL, with 17 perturbation types across DB, NLQ, and SQL, revealing that state-of-the-art models still suffer notable performance drops under perturbations.

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.

Motivation & Objective

  • Assess robustness of text-to-SQL models against task-specific perturbations in databases, natural language questions, and SQL queries.
  • Provide a diverse, linguistically rich perturbation suite to reveal weaknesses not captured by existing benchmarks.
  • Analyze how model architecture, size, and decoding strategies influence robustness.
  • Offer insights and practical guidance for designing more robust text-to-SQL systems.

Proposed method

  • Curate 17 perturbations covering DB, NLQ, and SQL perturbations based on the Spider benchmark.
  • Use three perturbation principles: task specificity, linguistic richness, and diagnostic comprehensiveness.
  • Leverage PLMs (OPT 66B) to generate categorized NLQ paraphrases guided by expert crowdsourcing and automated filters.
  • Programmatically alter DB schemas/contents and corresponding SQL to create perturbations.
  • Perturb SQL tokens and NLQ indicators while minimizing surface-level NLQ changes to isolate semantic effects.
  • Evaluate state-of-the-art text-to-SQL models (RatSQL, GraPPa, SmBop, T5-family, Picard, Codex) using pre-perturbation and post-perturbation metrics (EX and EM).

Experimental results

Research questions

  • RQ1How robust are leading text-to-SQL models to perturbations in DB schemas/contents, NLQs, and SQL itself?
  • RQ2Which perturbation categories most degrade model performance, and how does this vary by model architecture and size?
  • RQ3Do decoder architectures (top-down vs bottom-up) and entity-linking features affect robustness?
  • RQ4What strategies can improve robustness, such as combining decoders or improving value linking?
  • RQ5How do generated NLQ perturbations compare to human-authored perturbations in quality and effectiveness?

Key findings

  • State-of-the-art models show substantial drops under perturbations, with an overall 14.0% average performance decline and up to 50.7% on the hardest perturbation.
  • Dr.Spider exposes vulnerabilities across DB, NLQ, and SQL perturbations, revealing that larger models tend to be more robust.
  • Bottom-up decoders (SmBop) show better DB perturbation robustness, while top-down decoders (GraPPa) excel under NLQ perturbations.
  • Entity linking between question tokens and DB content improves robustness for certain perturbations, particularly in value prediction, but may slightly hurt EM by over-relying on string matching.
  • Value-level perturbations (value-synonym) pose significant challenges, underscoring limits of lexical alignment approaches and the need for deeper semantic understanding.
  • The perturbation framework balances task-specific linguistic richness with diagnostic coverage, providing a more natural and diverse robustness evaluation than prior work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.