DBTagger: Multi-Task Learning for Keyword Mapping in NLIDBs Using Bi-Directional Recurrent Neural Networks
arXiv:2101.04226 · doi:10.14778/3446095.3446103
Abstract
Translating Natural Language Queries (NLQs) to Structured Query Language (SQL) in interfaces deployed in relational databases is a challenging task, which has been widely studied in database community recently. Conventional rule based systems utilize series of solutions as a pipeline to deal with each step of this task, namely stop word filtering, tokenization, stemming/lemmatization, parsing, tagging, and translation. Recent works have mostly focused on the translation step overlooking the earlier steps by using ad-hoc solutions. In the pipeline, one of the most critical and challenging problems is keyword mapping; constructing a mapping between tokens in the query and relational database elements (tables, attributes, values, etc.). We define the keyword mapping problem as a sequence tagging problem, and propose a novel deep learning based supervised approach that utilizes POS tags of NLQs. Our proposed approach, called \textit{DBTagger} (DataBase Tagger), is an end-to-end and schema independent solution, which makes it practical for various relational databases. We evaluate our approach on eight different datasets, and report new state-of-the-art accuracy results, on the average. Our results also indicate that DBTagger is faster than its counterparts up to times and scalable for bigger databases.
To appear in VLDB 2021
References in corpus (11)
- Improving neural networks by preventing co-adaptation of feature detectors
- ADADELTA: An Adaptive Learning Rate Method
- Natural Language Processing (almost) from Scratch
- Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learning
- Gated Feedback Recurrent Neural Networks
- SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learning
- Bridging the Semantic Gap with SQL Query Logs in Natural Language Interfaces to Databases
- Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing
- TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- SODA: Generating SQL for Business Users
- Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation