Neuro-Relational Programs: Unifying Queries and Neural Computation over Structured Data
Arie Soeteman, Balder ten Cate, Maurice Funk, Benny Kimelfeld, Carsten Lutz, Moritz Schönherr
- Published
- Jun 10, 2026 — 11:16 UTC
Problem
The paper addresses the gap in the integration of neural computation with relational databases, specifically the limitations of existing methods that either rely on graph representations or treat embeddings and relational content separately. The authors propose Neuro-Relational Programs (NRPs) as a novel declarative query language that incorporates numeric vector embeddings directly into relational databases. This work is a preprint and has not yet undergone peer review.
Method
NRPs extend traditional Datalog-style rules by incorporating operations that manipulate embeddings, allowing for a seamless combination of relational reasoning and neural computation. The architecture of NRPs can be interpreted both as a query plan with trainable components and as a neural architecture with inherent relational structure. The authors define zero-ary NRPs for non-adaptive queries and monadic NRPs that generalize Graph Neural Networks (GNNs), specifically capturing Deep Homomorphism Networks. They also introduce frontier-guarded NRPs, which operate over databases with row identifiers. The expressive power of NRPs is characterized using FOCQ, an extension of first-order logic with counting, interpreted over real-weighted structures, establishing a connection to uniform TC$^0$ over ordered databases.
Results
The authors demonstrate that NRPs can recover existing architectures and query formalisms, showcasing their versatility. While specific quantitative results are not detailed in the abstract, the theoretical framework suggests that NRPs can achieve expressive capabilities comparable to established neural architectures and query languages. The paper emphasizes the ability of NRPs to interleave relational reasoning with learnable components, potentially outperforming traditional methods in tasks requiring both structured data querying and neural computation.
Limitations
The authors acknowledge that NRPs, while theoretically robust, may face practical challenges in terms of computational efficiency and scalability when applied to large-scale databases. They do not address potential limitations related to the interpretability of the learned embeddings or the complexity of training NRPs in real-world scenarios. Additionally, the paper does not provide empirical evaluations against specific benchmarks, which would be critical for assessing the practical performance of NRPs.
Why it matters
The introduction of NRPs represents a significant advancement in the field of machine learning and database management, as it provides a unified framework for querying and neural computation over relational data. This work has implications for various applications, including knowledge graph reasoning, relational data analysis, and the development of more sophisticated AI systems that require both structured data manipulation and learning capabilities. The theoretical foundations laid out in this paper could inspire future research in integrating neural networks with relational databases, as published in arXiv.
By Turing Wire editorial staff · Jun 10, 2026 · Editorial standards →
Source: arXiv cs.LG