How to Turn Your Knowledge Graph Embeddings into Generative Models via Probabilistic Circuits

Lorenzo Loconte, Nicola Di Mauro, Robert Peharz, Antonio Vergari
2/12/2026

No official code found. Best implementation: april-tools/gekcs (55 stars, GPL-3.0, last commit 2026-04-03).

Abstract

Some of the most successful knowledge graph embedding (KGE) models for link prediction -- CP, RESCAL, TuckER, ComplEx -- can be interpreted as energy-based models. Under this perspective they are not amenable for exact maximum-likelihood estimation (MLE), sampling and struggle to integrate logical constraints. This work re-interprets the score functions of these KGEs as circuits -- constrained computational graphs allowing efficient marginalisation. Then, we design two recipes to obtain efficient generative circuit models by either restricting their activations to be non-negative or squaring their outputs. Our interpretation comes with little or no loss of performance for link prediction, while the circuits framework unlocks exact learning by MLE, efficient sampling of new triples, and guarantee that logical constraints are satisfied by design. Furthermore, our models scale more gracefully than the original KGEs on graphs with millions of entities.

View on arXivView PDF

Code Implementations(1)

april-tools/gekcsCommunity100%
GPL-3.0

How to Turn Your Knowledge Graph Embeddings into Generative Models

555Shell, PythonMay 6, 20236 months agoGPL-3.0
generative-modelknowledge-graph-embeddingslink-predictionprobabilistic-circuitstractable-inference+1 more

Similar Papers

Cite this paper

@article{loconte2026turn,
  title  = {How to Turn Your Knowledge Graph Embeddings into Generative Models via Probabilistic Circuits},
  author = {Lorenzo Loconte and Nicola Di Mauro and Robert Peharz and Antonio Vergari},
  year   = {2026},
  eprint = {2305.15944},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.15944},
  journal = {NEURIPS 2023 2023}
}

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/2305.15944.svg)](https://codeofpaper.com/paper/2305.15944)

Discussion