What is it about?
Most structured data lives in relational databases: collections of linked tables. To apply deep learning to such data, developers currently use a query language to turn the database into a graph, and then build a neural network over that graph in a separate framework. We propose a single language that naitvely works on databases, called Neuro-Relational Programs (NRPs). Every fact in the database carries a list of numbers, known as an embedding. An NRP consists of simple query rules: when a rule joins or merges facts, it also combines their embeddings, and small neural networks can transform the result. We determine mathematically what these programs can compute. Restricted forms of NRPs coincide exactly with models that were previously studied separately, and the full language matches a well-understood logic with counting.
Featured Image
Photo by jonakoh _ on Unsplash
Why is it important?
ecent machine learning systems increasingly process embeddings inside the database itself, but there has been little theory about what such systems can express. Our work provides a common foundation. It shows that several separately studied models are fragments of one declarative language, and it describes the expressive power of the full language exactly. In practice, this points towards systems in which a predictive model over a database is written as a query, with a precise picture of what it can and cannot compute.
Perspectives
My research has mostly been about what graph neural networks can express, using tools from logic. What I enjoyed about this project is that it turns the usual question around. We started from a query language that database researchers have refined over decades, and found that neural architectures naturally integrate with it once facts carry embeddings. I hope the paper helps readers from database theory, logic and machine learning to recognise their own work in each other's.
Arie Soeteman
Universiteit van Amsterdam
Read the Original
This page is a summary of: Neuro-Relational Programs: Unifying Queries and Neural Computation over Structured Data, Proceedings of the ACM on Management of Data, November 2026, ACM (Association for Computing Machinery),
DOI: 10.1145/3850135.
You can read the full text:
Contributors
The following have contributed to this page







