Proceedings

RECPARSER: A Recursive Semantic Parsing Framework for Text-to-SQL Task

Video Download BibTeX Cite

Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence. Main track. Pages 3644-3650.

https://doi.org/10.24963/ijcai.2020/504

Abstract

Neural semantic parsers usually fail to parse long and complicated utterances into nested SQL queries, due to the large search space. In this paper, we propose a novel recursive semantic parsing framework called RECPARSER to generate the nested SQL query layer-by-layer. It decomposes the complicated nested SQL query generation problem into several progressive non-nested SQL query generation problems. Furthermore, we propose a novel Question Decomposer module to explicitly encourage RECPARSER to focus on different components of an utterance when predicting SQL queries of different layers. Experiments on the Spider dataset show that our approach is more effective compared to the previous works at predicting the nested SQL queries. In addition, we achieve an overall accuracy that is comparable with state-of-the-art approaches.

  1. [Affolter et al., 2019] Katrin Affolter, Kurt Stockinger, and Abra- ham Bernstein. A comparative survey of recent natural language interfaces for databases. The VLDB Journal, 28:793 -819, 2019.
  2. [Andreas et al., 2016] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Learning to compose neural networks for question answering. In NAACL, pages 1545-1554, San Diego, California, June 2016. Association for Computational Linguis- tics.
  3. [Androutsopoulos et al., 1995] Ion Androutsopoulos, Graeme D Ritchie, and Peter Thanisch. Natural language interfaces to databases-an introduction. Natural language engineering, 1(1):29-81, 1995.
  4. [Bogin et al., 2019] Ben Bogin, Matt Gardner, and Jonathan Be- rant. Global reasoning over database structures for text-to-sql parsing. In EMNLP/IJCNLP, 2019.
  5. [Devlin et al., 2018] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirec- tional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
  6. [Finegan-Dollak et al., 2018] Catherine Finegan-Dollak, Jonathan K. Kummerfeld, Li Zhang, Karthik Ramanathan, Sesh Sadasivam, Rui Zhang, and Dragomir Radev. Improving text-to-SQL evaluation methodology. In ACL, pages 351-360, Melbourne, Australia, July 2018. Association for Computational Linguistics.
  7. [Fuglede and Topsoe, 2004] Bent Fuglede and Flemming Topsoe. Jensen-shannon divergence and hilbert space embedding. In In- ternational Symposium onInformation Theory, 2004. ISIT 2004. Proceedings., page 31. IEEE, 2004.
  8. [Guo et al., 2019] Jiaqi Guo, Zecheng Zhan, Yan Gao, Yan Xiao, Jian-Guang Lou, Ting Liu, and Dongmei Zhang. Towards com- plex text-to-sql in cross-domain database with intermediate rep- resentation. In ACL, 2019.
  9. [He et al., 2019] Pengcheng He, Yi Mao, Kaushik Chakrabarti, and Weizhu Chen. X-sql: reinforce schema representation with con- text. arXiv preprint arXiv:1908.08113, 2019.
  10. [Hochreiter and Schmidhuber, 1997] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997.
  11. [Hwang et al., 2019] Wonseok Hwang, Jinyeung Yim, Seunghyun Park, and Minjoon Seo. A comprehensive exploration on wik- isql with table-aware word contextualization. arXiv preprint arXiv:1902.01069, 2019.
  12. [Iyyer et al., 2016] Mohit Iyyer, Wen tau Yih, and Ming-Wei Chang. Answering complicated question intents expressed in de- composed question sequences. ArXiv, abs/1611.01242, 2016.
  13. [Kim et al., 2018] Wonsik Kim, Bhavya Goyal, Kunal Chawla, Jungmin Lee, and Keunjoo Kwon. Attention-based ensemble for deep metric learning. In ECCV, pages 736-751, 2018.
  14. [Lee, 2019] Dongjun Lee. Clause-wise and recursive decod- ing for complex and cross-domain text-to-sql generation. In EMNLP/IJCNLP, pages 6047-6053, 2019.
  15. [Li and Jagadish, 2014] Fei Li and HV Jagadish. Constructing an interactive natural language interface for relational databases. Proceedings of the VLDB Endowment, 8(1):73-84, 2014.
  16. [Li and Jagadish, 2016] Fei Li and H. V. Jagadish. Understand- ing natural language queries over relational databases. SIGMOD Record, 45:6-13, 2016.
  17. [Lin et al., 2019] Kevin Lin, Ben Bogin, Mark Neumann, Jonathan Berant, and Matt Gardner. Grammar-based neural text-to-sql generation. arXiv preprint arXiv:1905.13326, 2019.
  18. [Popescu et al., 2003] Ana-Maria Popescu, Oren Etzioni, and Henry Kautz. Towards a theory of natural language interfaces to databases. In Proceedings of the 8th international conference on Intelligent user interfaces, pages 149-157. ACM, 2003.
  19. [Rabinovich et al., 2017] Maxim Rabinovich, Mitchell Stern, and Dan Klein. Abstract syntax networks for code generation and semantic parsing. In ACL, pages 1139-1149, Vancouver, Canada, July 2017. Association for Computational Linguistics.
  20. [Talmor and Berant, 2018] Alon Talmor and Jonathan Berant. The web as a knowledge-base for answering complex questions. In NAACL, pages 641-651, New Orleans, Louisiana, June 2018. As- sociation for Computational Linguistics.
  21. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Par- mar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, pages 5998-6008, 2017.
  22. [Wei et al., 2019] Bolin Wei, Ge Li, Xin Xia, Zhiyi Fu, and Zhi Jin. Code generation as a dual task of code summarization. In NIPS, pages 6559-6569, 2019.
  23. [Xu et al., 2018] Xiaojun Xu, Chang Liu, and Dawn Xiaodong Song. Sqlnet: Generating structured queries from natural lan- guage without reinforcement learning. ArXiv, abs/1711.04436, 2018.
  24. [Yu et al., 2018a] Tao Yu, Michihiro Yasunaga, Kai Yang, Rui Zhang, Dongxu Wang, Zifan Li, and Dragomir Radev. Syn- taxSQLNet: Syntax tree networks for complex and cross-domain text-to-SQL task. In EMNLP, pages 1653-1663, Brussels, Bel- gium, October-November 2018. Association for Computational Linguistics.
  25. [Yu et al., 2018b] Tao Yu, Rui Zhang, Kai Yang, Michihiro Ya- sunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir R. Radev. Spi- der: A large-scale human-labeled dataset for complex and cross- domain semantic parsing and text-to-sql task. In EMNLP, 2018.
  26. [Zhang et al., 2019a] Haoyu Zhang, Jingjing Cai, Jianjun Xu, and Ji Wang. Complex question decomposition for semantic parsing. In ACL, 2019.
  27. [Zhang et al., 2019b] Rui Zhang, Tao Yu, He Yang Er, Sungrok Shim, Eric Xue, Xi Victoria Lin, Tianze Shi, Caiming Xiong, Richard Socher, and Dragomir R. Radev. Editing-based sql query generation for cross-domain context-dependent questions. In EMNLP/IJCNLP, 2019.
  28. [Zhong et al., 2017] Victor Zhong, Caiming Xiong, and Richard Socher. Seq2sql: Generating structured queries from natural language using reinforcement learning. CoRR, abs/1709.00103, 2017.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards