From Natural Language Processing to Neural Databases
James Thorne, Majid Yazdani, Marzieh Saeidi, Fabrizio Silvestri, Sebastian Riedel, Alon Y. Levy
Abstract
In recent years, neural networks have shown impressive performance gains on long-standing AI problems, such as answering queries from text and machine translation. These advances raise the question of whether neural nets can be used at the core of query processing to derive answers from facts, even when the facts are expressed in natural language. If so, it is conceivable that we could relax the fundamental assumption of database management, namely, that our data is represented as fields of a pre-defined schema. Furthermore, such technology would enable combining information from text, images, and structured data seamlessly.
This paper introduces neural databases , a class of systems that use NLP transformers as localized answer derivation engines. We ground the vision in NeuralDB, a system for querying facts represented as short natural language sentences. We demonstrate that recent natural language processing models, specifically transformers, can answer select-project-join queries if they are given a set of relevant facts. However, they cannot scale to non-trivial databases nor answer set-based and aggregation queries. Based on these insights, we identify specific research challenges that are needed to build neural databases. Some of the challenges require drawing upon the rich literature in data management, and others pose new research opportunities to the NLP community. Finally, we show that with preliminary solutions, NeuralDB can already answer queries over thousands of sentences with very high accuracy.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Autoregressive Entity Retrieval cites Dense Passage Retrieval for Open-Domain Question Answering
- Autoregressive Entity Retrieval cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Relational World Knowledge Representation in Contextual Language Models: A Review cites Autoregressive Entity Retrieval
- Dense Passage Retrieval for Open-Domain Question Answering cites Learning to Retrieve Reasoning Paths over Wikipedia Graph for Question Answering
- Dense Passage Retrieval for Open-Domain Question Answering cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks cites Dense Passage Retrieval for Open-Domain Question Answering
- Logical and Physical Optimizations for SQL Query Execution over Large Language Models cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- DTT: An Example-Driven Tabular Transformer for Joinability by Leveraging Large Language Models cites Deep Entity Matching with Pre-Trained Language Models
- QUEST: Query Optimization in Unstructured Document Analysis cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Cited by top-tier papers10
- Relational World Knowledge Representation in Contextual Language Models: A ReviewTara Safavi, Danai KoutraEMNLP 2021 · 31 citations
- Can Large Language Models Predict Data Correlations from Column Names?Immanuel TrummerVLDB 2023 · 17 citations
- DTT: An Example-Driven Tabular Transformer for Joinability by Leveraging Large Language ModelsArash Dargahi Nobari, Davood RafieiSIGMOD 2024 · 11 citations
- QUEST: Query Optimization in Unstructured Document AnalysisZhaoze Sun, Chengliang Chai, Qiyan Deng, Kaisen Jin et al.VLDB 2025 · 9 citations
- Logical and Physical Optimizations for SQL Query Execution over Large Language ModelsDario Satriani, Enzo Veltri, Donatello Santoro, Sara Rosato et al.SIGMOD 2025 · 7 citations
Builds on6
- Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
- Deep Entity Matching with Pre-Trained Language ModelsYuliang Li, Jinfeng Li, Yoshihiko Suhara, AnHai Doan et al.VLDB 2021 · 484 citations
- Learning to Retrieve Reasoning Paths over Wikipedia Graph for Question AnsweringAkari Asai, Kazuma Hashimoto, Hannaneh Hajishirzi, Richard Socher et al.ICLR 2020 · 322 citations
- Autoregressive Entity RetrievalNicola De Cao, Gautier Izacard, Sebastian Riedel, Fabio PetroniICLR 2021 · 200 citations
- Dense Passage Retrieval for Open-Domain Question AnsweringVladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis et al.EMNLP 2020 · 142 citations
Related papers
- Database reasoning over textJames Thorne, Majid Yazdani, Marzieh Saeidi, Fabrizio Silvestri et al.ACL 2021
- nsDB: Architecting the Next Generation Database by Integrating Neural and Symbolic Systems (Vision)Ye Yuan, Bo Tang, Tianfei Zhou, Zhiwei Zhang et al.VLDB 2024 · 3 citations
- SPARQLing Database Queries from Intermediate Question DecompositionsIrina Saparina, Anton OsokinEMNLP 2021 · 11 citations
- Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic ParsingXi Victoria Lin, Richard Socher, Caiming XiongEMNLP Findings 2020 · 186 citations
- ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL SystemsYi Zhang, Jan Deriu, George Katsogiannis-Meimarakis, Catherine Kosten et al.VLDB 2024 · 65 citations
