Semirings for Probabilistic and Neuro-Symbolic Logic Programming
Vincent Derkinderen, Robin Manhaeve, Pedro Zuidberg Dos Martires, Luc De Raedt
TL;DR
This work presents a unified semiring-based algebraic framework for probabilistic and neural-symbolic logic programming, showing that many PLP extensions can be cast as algebraic logic programs with semiring-labeled facts and algebraic model counting (AMC). It integrates probabilistic facts, neural facts, distributional/indicator facts, and algebraic facts within a common semantics, enabling inference via logical reasoning, translation to weighted/algebraic model counting, and efficient solving using sd-DNNF-derived arithmetic circuits. A gradient semiring is introduced to enable gradient-based parameter learning across probabilistic and neural components, allowing end-to-end optimization within the algebraic framework. The approach provides a flexible, extensible foundation for coupling neural networks with logic programs and has broad applicability in domains like robotics and SR AI, where discrete and continuous uncertainties must be reasoned about jointly.
Abstract
The field of probabilistic logic programming (PLP) focuses on integrating probabilistic models into programming languages based on logic. Over the past 30 years, numerous languages and frameworks have been developed for modeling, inference and learning in probabilistic logic programs. While originally PLP focused on discrete probability, more recent approaches have incorporated continuous distributions as well as neural networks, effectively yielding neural-symbolic methods. We provide a unified algebraic perspective on PLP, showing that many if not most of the extensions of PLP can be cast within a common algebraic logic programming framework, in which facts are labeled with elements of a semiring and disjunction and conjunction are replaced by addition and multiplication. This does not only hold for the PLP variations itself but also for the underlying execution mechanism that is based on (algebraic) model counting.
