Implementing Tensor Logic: Unifying Datalog and Neural Reasoning via Tensor Contraction
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
The unification of symbolic reasoning and neural networks remains a central challenge in artificial intelligence. Symbolic systems offer reliability and interpretability but lack scalability, while neural networks provide learning capabilities but sacrifice transparency. Tensor Logic, proposed by Domingos, suggests that logical rules and Einstein summation are mathematically equivalent, offering a principled path toward unification. This paper provides empirical validation of this framework through three experiments. First, we demonstrate the equivalence between recursive Datalog rules and iterative tensor contractions by computing the transitive closure of a biblical genealogy graph containing 1,972 individuals and 1,727 parent-child relationships, converging in 74 iterations to discover 33,945 ancestor relationships. Second, we implement reasoning in embedding space by training a neural network with learnable transformation matrices, demonstrating successful zero-shot compositional inference on held-out queries. Third, we validate the Tensor Logic superposition construction on FB15k-237, a large-scale knowledge graph with 14,541 entities and 237 relations. Using Domingos's relation matrix formulation Rr = E^top Ar E, we achieve MRR of 0.3068 on standard link prediction and MRR of 0.3346 on a compositional reasoning benchmark where direct edges are removed during training, demonstrating that matrix composition enables multi-hop inference without direct training examples.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 3 of its 16 references that are in the map. First posted on arXiv 23 Jan 2026.
Builds on
3 of 16 references.
References · 3
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2017End-to-End Differentiable Provingcited by 161
- 2020Logical Neural Networkscited by 119
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Tensor Logic: The Language of AI
- 2025Categorical Construction of Logically Verifiable Neural Architectures
- 2026The Topological Dual of a Dataset: A Logic-to-Topology Encoding for AlphaGeometry-Style Data
- 2026Dense Neuro-Symbolic Reasoning in a Unified Geometry State
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
- 2026Neuro-symbolic PRM: Enhancing Scientific Reasoning via Structured Traces and Symbolic Verification
- 2023Scallop: A Language for Neurosymbolic Programming
- 2026LogicGraph : Benchmarking Multi-Path Logical Reasoning via Neuro-Symbolic Generation and Verification