Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL
Preprint
Abstract
Conversational text-to-SQL aims at converting multi-turn natural language queries into their corresponding SQL (Structured Query Language) representations. One of the most intractable problems of conversational text-to-SQL is modelling the semantics of multi-turn queries and gathering the proper information required for the current query. This paper shows that explicitly modelling the semantic changes by adding each turn and the summarization of the whole context can bring better performance on converting conversational queries into SQLs. In particular, we propose two conversational modelling tasks in both turn grain and conversation grain. These two tasks simply work as auxiliary training tasks to help with multi-turn conversational semantic parsing. We conducted empirical studies and achieved new state-of-the-art results on the large-scale open-domain conversational text-to-SQL dataset. The results demonstrate that the proposed mechanism significantly improves the performance of multi-turn semantic parsing.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Tracking Interaction States for Multi-Turn Text-to-SQL Semantic ParsingProceedings of the AAAI Conference on Artificial Intelligence, 2021
- LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations2021
- IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation2020
- CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databases2019
- Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task2018
- Acquiring Word-Meaning Mappings for Natural Language InterfacesJournal of Artificial Intelligence Research, 2003