Skip to main content
QUICK REVIEW

[Paper Review] EvoSchema: Towards Text-to-SQL Robustness Against Schema Evolution

Tianshu Zhang, Kun Qian|arXiv (Cornell University)|Mar 11, 2026
Natural Language Processing TechniquesComputer Science0 citations
TL;DR

EvoSchema is a benchmark and training paradigm that evaluates and improves text-to-SQL robustness under realistic schema changes, especially at the table level, by using a comprehensive taxonomy of perturbations and schema-design augmentation during training.

ABSTRACT

Neural text-to-SQL models, which translate natural language questions (NLQs) into SQL queries given a database schema, have achieved remarkable performance. However, database schemas frequently evolve to meet new requirements. Such schema evolution often leads to performance degradation for models trained on static schemas. Existing work either mainly focuses on simply paraphrasing some syntactic or semantic mappings among NLQ, DB and SQL, or lacks a comprehensive and controllable way to investigate the model robustness issue under the schema evolution, which is insufficient when facing the increasingly complex and rich database schema changes in reality, especially in the LLM era. To address the challenges posed by schema evolution, we present EvoSchema, a comprehensive benchmark designed to assess and enhance the robustness of text-to-SQL systems under real-world schema changes. EvoSchema introduces a novel schema evolution taxonomy, encompassing ten perturbation types across columnlevel and table-level modifications, systematically simulating the dynamic nature of database schemas. Through EvoSchema, we conduct an in-depth evaluation spanning different open source and closed-source LLMs, revealing that table-level perturbations have a significantly greater impact on model performance compared to column-level changes. Furthermore, EvoSchema inspires the development of more resilient text-to-SQL systems, in terms of both model training and database design. The models trained on EvoSchema's diverse schema designs can force the model to distinguish the schema difference for the same questions to avoid learning spurious patterns, which demonstrate remarkable robustness compared to those trained on unperturbed data on average. This benchmark offers valuable insights into model behavior and a path forward for designing systems capable of thriving in dynamic, real-world environments.

Motivation & Objective

  • Motivate robust text-to-SQL systems that cope with evolving database schemas in real-world applications.
  • Introduce a comprehensive schema evolution taxonomy with ten perturbation types across column and table levels.
  • Create EvoSchema by perturbing BIRD-based schemas to simulate realistic evolution scenarios.
  • Assess open-source and closed-source LLMs under schema evolution to understand robustness gaps.
  • Propose a training paradigm that augments data with diverse schema designs to enhance robustness.

Proposed method

  • Define a schema evolution taxonomy with ten perturbation types (five column-level: add, remove, rename, split, merge; five table-level: add, remove, rename, split, merge).
  • Synthesize EvoSchema by perturbing seeds from the BIRD dataset while keeping NLQs fixed and adjusting gold SQL accordingly.
  • Use a hybrid data-generation framework combining heuristics and GPT models (GPT-3.5, GPT-4) to create realistic column/table perturbations.
  • Apply human validation and cross-validation with SQL experts to ensure correctness of altered schemas and gold SQL.
  • Introduce two evaluation metrics, Table Match F1 and Column Match F1, to measure robustness at table and column levels.
  • Train models with augmented schema designs to force distinction between schema changes and reduce learning of spurious patterns.
Figure 1. The left (a) is the overview of the framework to collect EvoSchema dataset. The top right (b) is a column-level schema evolution example; the bottom right (c) is a table-level schema evolution example.
Figure 1. The left (a) is the overview of the framework to collect EvoSchema dataset. The top right (b) is a column-level schema evolution example; the bottom right (c) is a table-level schema evolution example.

Experimental results

Research questions

  • RQ1How sensitive are current text-to-SQL models to different types of schema evolution (column- vs table-level perturbations)?
  • RQ2Can training with diversified schema designs improve model robustness to schema evolution across perturbation types?
  • RQ3What are effective metrics to quantify robustness under schema evolution in text-to-SQL?

Key findings

  • Table-level perturbations have a significantly larger impact on model performance than column-level perturbations.
  • Two fine-grained metrics, Table Match F1 and Column Match F1, reveal robustness differences across perturbation types.
  • Augmenting training data with diverse schema designs (perturbation training) yields improved robustness, with notable gains on various perturbation evaluation data.
  • Models trained with EvoSchema perturbations show up to 33-point gains on certain schema-perturbation evaluations compared to models trained only on unperturbed data.
  • The benchmarking across open-source and closed-source LLMs highlights relative differences in sensitivity to schema changes and informs design of more resilient text-to-SQL systems.
Figure 2. An overview of different perturbation types of EvoSchema . The top is an unperturbed example in BIRD (Li et al. , 2024d ) ; the middle is the column-level perturbation; the bottom is the table-level perturbation. “Remove Col in SQL”: remove columns that appear in gold SQL; “Remove Tables”:
Figure 2. An overview of different perturbation types of EvoSchema . The top is an unperturbed example in BIRD (Li et al. , 2024d ) ; the middle is the column-level perturbation; the bottom is the table-level perturbation. “Remove Col in SQL”: remove columns that appear in gold SQL; “Remove Tables”:

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.