journal article·2023-02-09Open access

DIR: A Large-Scale Dialogue Rewrite Dataset for Cross-Domain Conversational Text-to-SQL

Jieyu Li, Zhi Chen, Lu Chen, Zichen Zhu, Hanqi Li, Ruisheng Cao, Kai Yu

Applied Sciences· Volume 13· Issue 4

Abstract

Semantic co-reference and ellipsis always lead to information deficiency when parsing natural language utterances with SQL in a multi-turn dialogue (i.e., conversational text-to-SQL task). The methodology of dividing a dialogue understanding task into dialogue utterance rewriting and language understanding is feasible to tackle this problem. To this end, we present a two-stage framework to complete conversational text-to-SQL tasks. To construct an efficient rewriting model in the first stage, we provide a large-scale dialogue rewrite dataset (DIR), which is extended from two cross-domain conversational text-to-SQL datasets, SParC and CoSQL. The dataset contains 5908 dialogues involving 160 domains. Therefore, it not only focuses on conversational text-to-SQL tasks, but is also a valuable corpus for dialogue rewrite study. In experiments, we validate the efficiency of our annotations with a popular text-to-SQL parser, RAT-SQL. The experiment results illustrate 11.81 and 27.17 QEM accuracy improvement on SParC and CoSQL, respectively, when we eliminate the semantic incomplete representations problem by directly parsing the golden rewrite utterances. The experiment results of evaluating the performance of the two-stage frameworks using different rewrite models show that the efficiency of rewrite models is important and still needs improvement. Additionally, as a new benchmark of the dialogue rewrite task, we also report the performance results of different baselines for related studies. Our dataset will be publicly available once this paper is accepted.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · Speech and dialogue systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

X-LANCE Lab, MoE Key Lab of Artificial Intelligence, AI Institute, Department of Computer Science and Engineering, Shanghai Jiao Tong University, Shanghai 200240, China

Funding

China NSFC Projects · Shanghai Municipal Science and Technology Major Project

References (40)

Show source-provided references
1. Natural language interfaces to databases-an introduction10.1017/S135132490000005X ↗
2. Quan, J., Xiong, D., Webber, B., and Hu, C. (2019, January 3–7). GECOR: An End-to-End Generative Ellipsis and Co-reference Resolution Model for Task-Oriented Dialogue. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1462 ↗
3. Chen, Z., Chen, L., Li, H., Cao, R., Ma, D., Wu, M., and Yu, K. (2021, January 1–6). Decoupled Dialogue Modeling and Semantic Parsing for Multi-Turn Text-to-SQL. Proceedings of the Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, Virtual.10.18653/v1/2021.findings-acl.270 ↗
4. Yu, T., Zhang, R., Yasunaga, M., Tan, Y.C., Lin, X.V., Li, S., Heyang Er, I.L., Pang, B., Chen, T., and Ji, E. (August, January 28). SParC: Cross-Domain Semantic Parsing in Context. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics, Florence, Italy.
5. Yu, T., Zhang, R., Er, H., Li, S., Xue, E., Pang, B., Lin, X.V., Tan, Y.C., Shi, T., and Li, Z. (2019, January 3–7). CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databases. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1204 ↗
6. The graph neural network model10.1109/TNN.2008.2005605 ↗
7. Bogin, B., Gardner, M., and Berant, J. (2019). Global reasoning over database structures for text-to-sql parsing. arXiv.10.18653/v1/D19-1378 ↗
8. Lin, X.V., Socher, R., and Xiong, C. (2020). Bridging textual and tabular data for cross-domain text-to-sql semantic parsing. arXiv.10.18653/v1/2020.findings-emnlp.438 ↗
9. Chen, Z., Chen, L., Zhao, Y., Cao, R., Xu, Z., Zhu, S., and Yu, K. (2021). ShadowGNN: Graph projection neural network for text-to-SQL parser. arXiv.10.18653/v1/2021.naacl-main.441 ↗
10. Hui, B., Geng, R., Wang, L., Qin, B., Li, Y., Li, B., Sun, J., and Li, Y. (2022, January 22–27). S2SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL Parsers. Proceedings of the Findings of the Association for Computational Linguistics, ACL 2022, Dublin, Ireland.10.18653/v1/2022.findings-acl.99 ↗
11. Wang, B., Shin, R., Liu, X., Polozov, O., and Richardson, M. (2019). Rat-sql: Relation-aware schema encoding and linking for text-to-sql parsers. arXiv.10.18653/v1/2020.acl-main.677 ↗
12. Cao, R., Chen, L., Chen, Z., Zhao, Y., Zhu, S., and Yu, K. (2021). LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations. arXiv.10.18653/v1/2021.acl-long.198 ↗
13. Krishnamurthy, J., Dasigi, P., and Gardner, M. (2017, January 7–11). Neural Semantic Parsing with Type Constraints for Semi-Structured Tables. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics, Copenhagen, Denmark.10.18653/v1/D17-1160 ↗
14. Yin, P., and Neubig, G. (2017). A Syntactic Neural Model for General-Purpose Code Generation. arXiv.10.18653/v1/P17-1041 ↗
15. Guo, J., Zhan, Z., Gao, Y., Xiao, Y., Lou, J.G., Liu, T., and Zhang, D. (2019). Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation. arXiv.10.18653/v1/P19-1444 ↗
16. Scholak, T., Schucher, N., and Bahdanau, D. (2021). PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models. arXiv.10.18653/v1/2021.emnlp-main.779 ↗
17. Hui, B., Geng, R., Ren, Q., Li, B., Li, Y., Sun, J., Huang, F., Si, L., Zhu, P., and Zhu, X. (2021). Dynamic Hybrid Relation Network for Cross-Domain Context-Dependent Semantic Parsing. arXiv.10.1609/aaai.v35i14.17550 ↗
18. Li, Y., Zhang, H., Li, Y., Wang, S., Wu, W., and Zhang, Y. (2021). Pay More Attention to History: A Context Modeling Strategy for Conversational Text-to-SQL. arXiv.10.21437/Interspeech.2022-10596 ↗
19. Shi, P., Ng, P., Wang, Z., Zhu, H., Li, A.H., Wang, J., dos Santos, C.N., and Xiang, B. (2021, January 2–9). Learning contextual representations for semantic parsing with generation-augmented pre-training. Proceedings of the AAAI Conference on Artificial Intelligence, Virtual.10.1609/aaai.v35i15.17627 ↗
20. Yu, T., Zhang, R., Polozov, O., Meek, C., and Awadallah, A.H. (2021, January 4). SCoRE: Pre-Training for Context Representation in Conversational Semantic Parsing. Proceedings of the International Conference on Learning Representations, Vienna, Austria.
21. Zheng, Y., Wang, H., Dong, B., Wang, X., and Li, C. (2022, January 22–27). HIE-SQL: History Information Enhanced Network for Context-Dependent Text-to-SQL Semantic Parsing. Proceedings of the Findings of the Association for Computational Linguistics, ACL 2022, Dublin, Ireland.10.18653/v1/2022.findings-acl.236 ↗
22. Yu, T., Wu, C.S., Lin, X.V., Wang, B., Tan, Y.C., Yang, X., Radev, D., Socher, R., and Xiong, C. (2020). Grappa: Grammar-augmented pre-training for table semantic parsing. arXiv.
23. Cai, Z., Li, X., Hui, B., Yang, M., Li, B., Li, B., Cao, Z., Li, W., Huang, F., and Si, L. (2022). STAR: SQL Guided Pre-Training for Context-dependent Text-to-SQL Parsing. arXiv.10.18653/v1/2022.findings-emnlp.89 ↗
24. Pan, Z., Bai, K., Wang, Y., Zhou, L., and Liu, X. (2019, January 22–27). Improving open-domain dialogue systems via multi-turn incomplete utterance restoration. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Dublin, Ireland.10.18653/v1/D19-1191 ↗
25. Su, H., Shen, X., Zhang, R., Sun, F., Hu, P., Niu, C., and Zhou, J. (August, January 28). Improving Multi-turn Dialogue Modelling with Utterance ReWriter. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy.
26. Elgohary, A., Peskov, D., and Boyd-Graber, J. (2019, January 3–7). Can You Unpack That? Learning to Rewrite Questions-in-Context. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1605 ↗
27. Regan, M., Rastogi, P., Gupta, A., and Mathias, L. (2019). A dataset for resolving referring expressions in spoken dialogue via contextual query rewrites (cqr). arXiv.
28. Eric, M., and Manning, C.D. (2017). Key-value retrieval networks for task-oriented dialogue. arXiv.10.18653/v1/W17-5506 ↗
29. Han, T., Liu, X., Takanobu, R., Lian, Y., Huang, C., Peng, W., and Huang, M. (2020). MultiWOZ-coref: A multi-domain task-oriented dataset enhanced with annotation corrections and co-reference annotation. arXiv.10.1007/978-3-030-88483-3_16 ↗
30. Liu, Q., Chen, B., Guo, J., Lou, J.G., Zhou, B., and Zhang, D. (2020). How far are we from effective context modeling? An exploratory study on semantic parsing in context. arXiv.10.24963/ijcai.2020/495 ↗
31. Stainton, R.J. (2006). Words and Thoughts: Subsentences, Ellipsis, and the Philosophy of Language, Oxford University Press. Available online: https://academic.oup.com/book/0/chapter/314898219/chapter-ag-pdf/44494641/book_36193_section_314898219.ag.pdf.10.1093/acprof:oso/9780199250387.001.0001 ↗
32. Rastogi, P., Gupta, A., Chen, T., and Mathias, L. (2019, January 2–7). Scaling Multi-Domain Dialogue State Tracking via Query Reformulation. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, Minneapolis, MN, USA.10.18653/v1/N19-2013 ↗
33. Sutskever, I., Vinyals, O., and Le, Q.V. (2014). Sequence to sequence learning with neural networks. arXiv.
34. Liu, Q., Chen, B., Lou, J.G., Zhou, B., and Zhang, D. (2020, January 16–20). Incomplete Utterance Rewriting as Semantic Segmentation. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Virtual.10.18653/v1/2020.emnlp-main.227 ↗
35. Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5–9). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Munich, Germany.10.1007/978-3-319-24574-4_28 ↗
36. Sokolova, M., Japkowicz, N., and Szpakowicz, S. (2006, January 4–8). Beyond accuracy, F-score and ROC: A family of discriminant measures for performance evaluation. Proceedings of the Australasian Joint Conference on Artificial Intelligence, Hobart, Australia.10.1007/11941439_114 ↗
37. Habash, N., and Sadat, F. (2006, January 4–9). Arabic preprocessing schemes for statistical machine translation. Proceedings of the Human Language Technology Conference of the NAACL, Companion Volume: Short Papers, New York, NY, USA.10.3115/1614049.1614062 ↗
38. Lin, C.Y. (2004, January 4–10). Rouge: A package for automatic evaluation of summaries. Proceedings of the Text Summarization Branches Out, Barcelona, Spain.
39. Zhang, R., Yu, T., Er, H., Shim, S., Xue, E., Lin, X.V., Shi, T., Xiong, C., Socher, R., and Radev, D. (2019, January 3–7). Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1537 ↗
40. Cai, Y., and Wan, X. (2020, January 16–20). IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online.10.18653/v1/2020.emnlp-main.560 ↗