Re-appraising the Schema Linking for Text-to-SQL

Yujian Gan, Xinyun Chen, Matthew Purver


Abstract
Most text-to-SQL models, even though based on the same grammar decoder, generate the SQL structure first and then fill in the SQL slots with the correct schema items. This second step depends on schema linking: aligning the entity references in the question with the schema columns or tables. This is generally approached via Exact Match based Schema Linking (EMSL) within a neural network-based schema linking module. EMSL has become standard in text-to-SQL: many state-of-the-art models employ EMSL, with performance dropping significantly when the EMSL component is removed. In this work, however, we show that EMSL reduces robustness, rendering models vulnerable to synonym substitution and typos. Instead of relying on EMSL to make up for deficiencies in question-schema encoding, we show that using a pre-trained language model as an encoder can improve performance without using EMSL, giving a more robust model. We also study the design choice of the schema linking module, finding that a suitable design benefits performance and interoperability. Finally, based on the above study of schema linking, we introduce the grammar linking to help model align grammar references in the question with the SQL keywords.
Anthology ID:
2023.findings-acl.53
Volume:
Findings of the Association for Computational Linguistics: ACL 2023
Month:
July
Year:
2023
Address:
Toronto, Canada
Editors:
Anna Rogers, Jordan Boyd-Graber, Naoaki Okazaki
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
835–852
Language:
URL:
https://aclanthology.org/2023.findings-acl.53
DOI:
10.18653/v1/2023.findings-acl.53
Bibkey:
Cite (ACL):
Yujian Gan, Xinyun Chen, and Matthew Purver. 2023. Re-appraising the Schema Linking for Text-to-SQL. In Findings of the Association for Computational Linguistics: ACL 2023, pages 835–852, Toronto, Canada. Association for Computational Linguistics.
Cite (Informal):
Re-appraising the Schema Linking for Text-to-SQL (Gan et al., Findings 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.findings-acl.53.pdf
Video:
 https://aclanthology.org/2023.findings-acl.53.mp4