ACL 2023findings2 citations

Exploring Schema Generalizability of Text-to-SQL

Jieyu Li, Lu Chen, Ruisheng Cao, Su Zhu, Hongshen Xu, Zhi Chen, Hanchong Zhang, Kai Yu

Abstract

Exploring the generalizability of a text-to-SQL parser is essential for a system to automatically adapt the real-world databases. Previous investigation works mostly focus on lexical diversity, including the influence of the synonym and perturbations in both natural language questions and databases. However, the structural variability of database schema (DS), as a widely seen real-world scenario, is yet underexplored. Specifically, confronted with the same input question, the target SQL may be represented in different ways when the DS comes to a different structure. In this work, we provide in-depth discussions about the schema generalizability challenge of text-to-SQL tasks. We observe that current datasets are too templated to study schema generalization. To collect suitable test data, we propose a framework to generate novel text-to-SQL data via automatic and synchronous (DS, SQL) pair altering. When evaluating state-of-the-art text-to-SQL models on the synthetic samples, performance is significantly degraded, which demonstrates the limitation of current research regarding schema generalization.

BibTeX
@inproceedings{li-etal-2023-exploring,
    title = "Exploring Schema Generalizability of Text-to-{SQL}",
    author = "Li, Jieyu  and
      Chen, Lu  and
      Cao, Ruisheng  and
      Zhu, Su  and
      Xu, Hongshen  and
      Chen, Zhi  and
      Zhang, Hanchong  and
      Yu, Kai",
    editor = "Rogers, Anna  and
      Boyd-Graber, Jordan  and
      Okazaki, Naoaki",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2023",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.findings-acl.87/",
    doi = "10.18653/v1/2023.findings-acl.87",
    pages = "1344--1360"
}
Exploring Schema Generalizability of Text-to-SQL · ACL 2023