Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing
Aiwei Liu, Wei Liu, Xuming Hu, Shuang Li, Fukun Ma, Yawen Yang, Lijie Wen
Abstract
In the context-dependent Text-to-SQL task, the generated SQL statements are refined iteratively based on the user input utterance from each interaction. The input text from each interaction can be viewed as component modifications to the previous SQL statements, which could be further extracted as the modification patterns. Since these modification patterns could also be combined with other SQL statements, the models are supposed to have the compositional generalization to these novel combinations. This work is the first exploration of compositional generalization in context-dependent Text-to-SQL scenarios. To facilitate related studies, we constructed two challenging benchmarks named CoSQL-CG and SParC-CG by recombining the modification patterns and existing SQL statements. The following experiments show that almost all current models struggle on our proposed benchmarks. Furthermore, we found that better aligning the previous SQL statements with the input utterance could give models better combinatorial generalization ability. Based on these observations, we propose a method name p-align to improve the combinatorial generalization of Text-to-SQL models. Further experiments validate the effectiveness of our model.- Anthology ID:
- 2023.findings-acl.43
- 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:
- 688–700
- Language:
- URL:
- https://aclanthology.org/2023.findings-acl.43
- DOI:
- 10.18653/v1/2023.findings-acl.43
- Cite (ACL):
- Aiwei Liu, Wei Liu, Xuming Hu, Shuang Li, Fukun Ma, Yawen Yang, and Lijie Wen. 2023. Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing. In Findings of the Association for Computational Linguistics: ACL 2023, pages 688–700, Toronto, Canada. Association for Computational Linguistics.
- Cite (Informal):
- Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing (Liu et al., Findings 2023)
- PDF:
- https://preview.aclanthology.org/naacl24-info/2023.findings-acl.43.pdf