Neural Databases

10/14/2020
by   James Thorne, et al.
1

In recent years, neural networks have shown impressive performance gains on long-standing AI problems, and in particular, answering queries from natural language text. These advances raise the question of whether they can be extended to a point where we can relax the fundamental assumption of database management, namely, that our data is represented as fields of a pre-defined schema. This paper presents a first step in answering that question. We describe NeuralDB, a database system with no pre-defined schema, in which updates and queries are given in natural language. We develop query processing techniques that build on the primitives offered by the state of the art Natural Language Processing methods. We begin by demonstrating that at the core, recent NLP transformers, powered by pre-trained language models, can answer select-project-join queries if they are given the exact set of relevant facts. However, they cannot scale to non-trivial databases and cannot perform aggregation queries. Based on these findings, we describe a NeuralDB architecture that runs multiple Neural SPJ operators in parallel, each with a set of database sentences that can produce one of the answers to the query. The result of these operators is fed to an aggregation operator if needed. We describe an algorithm that learns how to create the appropriate sets of facts to be fed into each of the Neural SPJ operators. Importantly, this algorithm can be trained by the Neural SPJ operator itself. We experimentally validate the accuracy of NeuralDB and its components, showing that we can answer queries over thousands of sentences with very high accuracy.

READ FULL TEXT

page 5

page 6

research
06/02/2021

Database Reasoning Over Text

Neural models have shown impressive performance gains in answering queri...
research
04/02/2023

Querying Large Language Models with SQL

In many use-cases, information is stored in text but not available in st...
research
01/27/2022

TableQuery: Querying tabular data with natural language

This paper presents TableQuery, a novel tool for querying tabular data u...
research
01/20/2023

A Simple Algorithm for Consistent Query Answering under Primary Keys

We consider the dichotomy conjecture for consistent query answering unde...
research
09/20/2021

Neural Unification for Logic Reasoning over Natural Language

Automated Theorem Proving (ATP) deals with the development of computer p...
research
01/16/2020

Schema2QA: Answering Complex Queries on the Structured Web with a Neural Model

Virtual assistants today require every website to submit skills individu...
research
08/10/2023

Banzhaf Values for Facts in Query Answering

Quantifying the contribution of database facts to query answers has been...

Please sign up or login with your details

Forgot password? Click here to reset