A tensor network formalism for neuro-symbolic AI
Alex Goessmann, Janina Schütte, Maximilian Fröhlich, Martin Eigel
TL;DR
The paper presents a unified tensor-network framework that casts neural, probabilistic, and symbolic AI as contractions over structured representations. It introduces Computation-Activation Networks (CompActNets) and the tnreason library to model and train hybrid logical and probabilistic architectures, bridging propositional logic, graphical models, and neural decompositions. By representing logic with boolean tensors, probability with nonnegative tensors, and neural computations as tensor-network contractions, the approach enables scalable, exact or approximate inference via message passing and novel training schemes. This work advances explainable, verifiable neuro-symbolic AI with a practical toolkit for implementing and experimenting with hybrid models across domains.
Abstract
The unification of neural and symbolic approaches to artificial intelligence remains a central open challenge. In this work, we introduce a tensor network formalism, which captures sparsity principles originating in the different approaches in tensor decompositions. In particular, we describe a basis encoding scheme for functions and model neural decompositions as tensor decompositions. The proposed formalism can be applied to represent logical formulas and probability distributions as structured tensor decompositions. This unified treatment identifies tensor network contractions as a fundamental inference class and formulates efficiently scaling reasoning algorithms, originating from probability theory and propositional logic, as contraction message passing schemes. The framework enables the definition and training of hybrid logical and probabilistic models, which we call Hybrid Logic Network. The theoretical concepts are accompanied by the python library tnreason, which enables the implementation and practical use of the proposed architectures.
