菜单

关于 🐙 GitHub
arXiv 提交日期: 2026-06-10
📄 Abstract - Neuro-Relational Programs: Unifying Queries and Neural Computation over Structured Data

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 TC$^0$ over ordered databases. Together, these results establish NRPs as a broad declarative framework for querying and neural computation over relational data.

顶级标签: machine learning systems llm
详细标签: relational databases graph neural networks declarative query language expressive power neural-symbolic reasoning 或 搜索:

神经关系程序:统一结构化数据上的查询与神经计算 / Neuro-Relational Programs: Unifying Queries and Neural Computation over Structured Data


1️⃣ 一句话总结

本文提出了一种名为“神经关系程序”的声明式查询语言,它通过扩展Datalog规则,将向量嵌入的操作与关系数据库的查询能力结合,从而让同一个程序既能像带可训练组件的查询计划,又能像内嵌关系结构的神经网络,实现了对关系数据中推理与学习的统一。

源自 arXiv: 2606.11946