Embeddings as Probabilistic Equivalence in Logic Programs

Jaron Maene, Efthymia Tsamoura
1/1/2025

No official code found. Best implementation: ML-KULeuven/equality_reasoning (3 stars, Python, last commit 2025-11-14).

Abstract

The integration of logic programs with embedding models resulted in a class of neurosymbolic frameworks that jointly learn symbolic rules and representations for the symbols in the logic (constant or predicate). The key idea that enabled this integration was the differentiable relaxation of unification , the algorithm for variable instantiation during inference in logic programs.

Show full abstract

Unlike unification, its relaxed counterpart exploits the similarity between symbols in the embedding space to decide when two symbols are semantically equivalent. We show that this similarity between symbols violates the transitive law of equivalence, leading to undesirable side effects in learning and inference. To alleviate those side effects, we are the first to revamp the well-known possible world semantics of probabilistic logic programs into new semantics called equivalence semantics . In our semantics, a probabilistic logic program induces a probability distribution over all possible equivalence relations between symbols, instead of a probability distribution over all possible subsets of probabilistic facts. We propose a factorization of the equivalence distribution using latent random variables and characterize its expressivity. Additionally, we propose both exact and approximate techniques for reasoning in our semantics. Experiments on well-known benchmarks show that the equivalence semantics leads to neurosymbolic models with up to 42% higher results than state-of-the-art baselines.

DOISemantic Scholar

Code Implementations(1)

Embeddings as Probabilistic Equivalence in Logic Programs (NeurIPS2025)

31PythonNov 18, 20241 years ago
datalogneurosymbolicprobabilistic-programming

Similar Papers

Cite this paper

@article{maene2025embeddings,
  title  = {Embeddings as Probabilistic Equivalence in Logic Programs},
  author = {Jaron Maene and Efthymia Tsamoura},
  year   = {2025},
  doi    = {10.52202/085713-1550},
  url    = {https://doi.org/10.52202/085713-1550},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/ae1adf462b3d049a2ee54ef359321835f99bb7f2.svg)](https://codeofpaper.com/paper/ae1adf462b3d049a2ee54ef359321835f99bb7f2)

Discussion