Data Agnostic RoBERTa-based Natural Language to SQL Query Generation

Debaditya Pal, Harsh Sharma, Kaustubh Chaudhari
10/11/2020
cs.AIcs.CL

Official code: DebadityaPal/RoBERTa-NL2SQL (16 stars, Python, MIT, last commit 2020-12-04).

Abstract

Relational databases are among the most widely used architectures to store massive amounts of data in the modern world. However, there is a barrier between these databases and the average user.

Show full abstract

The user often lacks the knowledge of a query language such as SQL required to interact with the database. The NL2SQL task aims at finding deep learning approaches to solve this problem by converting natural language questions into valid SQL queries. Given the sensitive nature of some databases and the growing need for data privacy, we have presented an approach with data privacy at its core. We have passed RoBERTa embeddings and data-agnostic knowledge vectors into LSTM based submodels to predict the final query. Although we have not achieved state of the art results, we have eliminated the need for the table data, right from the training of the model, and have achieved a test set execution accuracy of 76.7%. By eliminating the table data dependency while training we have created a model capable of zero shot learning based on the natural language question and table schema alone.

View on arXivView PDF

Code Implementations(1)

MIT

A Data Blind Approach to the popular Semantic Parsing task NL2SQL

1615PythonOct 10, 20205 years agoMIT

Similar Papers

Cite this paper

@article{pal2020data,
  title  = {Data Agnostic RoBERTa-based Natural Language to SQL Query Generation},
  author = {Debaditya Pal and Harsh Sharma and Kaustubh Chaudhari},
  year   = {2020},
  eprint = {2010.05243},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.05243}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.05243.svg)](https://codeofpaper.com/paper/2010.05243)

Discussion