Neuro-Relational Programs: Unifying Queries and Neural Computation over Structured Data
Not on the map. Why?
Abstract (arXiv)
The conventional approach to deep learning over relational databases applies neural models, such as Graph Neural Networks (GNNs), to a graph representation of the database. Recent approaches instead operate on databases directly, associating tuples with embeddings and extending query mechanisms to jointly process embeddings and relational content. Inspired by these developments, we introduce Neuro-Relational Programs (NRPs), a declarative query language for relational databases whose facts carry numeric vector embeddings. NRPs extend Datalog-style rules with operations that combine, aggregate, and transform embeddings, thereby interleaving relational reasoning and learnable neural components within a single formalism. This yields a general approach to neural computation over relational data: an NRP can be read both as a query plan with trainable components and as a neural architecture with relational structure built in. Natural syntactic fragments of NRPs recover existing architectures and query formalisms. Zero-ary NRPs correspond to non-adaptive query algorithms; monadic NRPs generalize GNN-style message passing and precisely capture Deep Homomorphism Networks, a connection that we extend to frontier-guarded NRPs over databases with row-ids. We characterize the expressive power of unrestricted NRPs with ReLU-FFN transformations by FOCQ, an extension of first-order logic with counting interpreted over real-weighted structures, yielding a precise connection with uniform TC0 over ordered databases. Together, these results establish NRPs as a broad declarative framework for querying and neural computation over relational data.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 35 of its 62 references that are in the map. First posted on arXiv 10 Jun 2026.
Builds on
35 of 62 references.
References · 35
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
- 2018Graph Neural Networks: A Review of Methods and Applicationscited by 1,576
- 2018Relational inductive biases, deep learning, and graph networkscited by 1,360
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
- 2019Heterogeneous Graph Attention Networkcited by 734
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2019Deep Graph Library: A Graph-Centric, Highly-Performant Package for Graph Neural Networkscited by 242
- 2018Zero-shot Recognition via Semantic Embeddings and Knowledge Graphscited by 155
23 more
- 2024RelBench: A Benchmark for Deep Learning on Relational Databasescited by 96
- 2024CARTE: Pretraining and Transfer for Tabular Learningcited by 76
- 2023Scallop: A Language for Neurosymbolic Programmingcited by 63
- 2021Graph Neural Networks with Local Graph Parameterscited by 52
- 2020Efficient Probabilistic Logic Reasoning with Graph Neural Networkscited by 50
- 2025Griffin: Towards a Graph-Centric Relational Database Foundation Modelcited by 47
- 2021A Survey on Neural-symbolic Learning Systemscited by 39
- 2020Learning Differentiable Programs with Admissible Neural Heuristicscited by 32
- 2024Neuro-Symbolic AI: Explainability, Challenges, and Future Trendscited by 10
- 2017First-Order Logic with Counting: At Least, Weak Hanf Normal Forms Always Exist and Can Be Computed!cited by 9
- 2020Scikit-network: Graph Analysis in Pythoncited by 8
- 2021Stable Tuple Embeddings for Dynamic Databasescited by 5
- 2025A Logical View of GNN-Style Computation and the Role of Activation Functionscited by 3
- 2021On Algorithms Based on Finitely Many Homomorphism Countscited by 2
- 2024Selecting Walk Schemes for Database Embeddingcited by 2
- 2026Recursive querying of neural networks via weighted structurescited by 2
- 2020Generative Datalog with Continuous Distributionscited by 1
- 2023When do homomorphism counts help in query algorithms?cited by 1
- 2023Polynomial Time Convergence of the Iterative Evaluation of Datalogo Programscited by 1
- 2024Evaluating Datalog over Semirings: A Grounding-based Approachcited by 1
- 2025Adaptive Query Algorithms for Relational Structures Based on Homomorphism Countscited by 1
- 2026Expressive Power of Deep Homomorphism Networks over Relational Databasescited by 1
- 2026Incorporating Deep Learning Design in Database Queriescited by 1
Built on by
Not cited yet.