Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing

0Citations
Citations of this article
16Readers
Mendeley users who have this article in their library.
Get full text

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 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 compositional generalization ability. Based on these observations, we propose a method named p-align to improve the compositional generalization of Text-to-SQL models. Further experiments validate the effectiveness of our method. Source code and data are available.

Cite

CITATION STYLE

APA

Liu, A., Liu, W., Hu, X., Li, S., Ma, F., Yang, Y., & Wen, L. (2023). Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (pp. 688–700). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.findings-acl.43

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free