Skip to main content
QUICK REVIEW

[Paper Review] How to Turn Your Knowledge Graph Embeddings into Generative Models

Lorenzo Loconte, Nicola Di Mauro|arXiv (Cornell University)|May 25, 2023
Advanced Graph Neural NetworksComputer Science3 citations
TL;DR

This paper proposes Generative Knowledge Graph Circuits (GeKCs), which reinterpret standard knowledge graph embedding (KGE) models like ComplEx, CP, RESCAL, and TuckER as probabilistic circuits. By restricting activations to be non-negative or squaring their outputs, GeKCs enable exact maximum-likelihood estimation, efficient sampling of new triples, and guaranteed satisfaction of logical constraints—while maintaining state-of-the-art link prediction performance with improved scalability on large KGs.

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.

Motivation & Objective

  • To address the limitations of existing KGE models in performing exact maximum-likelihood estimation, efficient sampling, and enforcing logical constraints.
  • To enable probabilistic reasoning over knowledge graphs by transforming score-based KGEs into valid probabilistic circuits (PCs).
  • To maintain or improve link prediction performance while achieving exact training, sampling, and constraint satisfaction.
  • To scale efficiently on large knowledge graphs with millions of entities, overcoming the intractability of partition function computation in traditional KGEs.
  • To provide a unified framework that supports both discriminative and generative learning for KGEs via circuit-based reinterpretation.

Proposed method

  • Reinterpret the score functions of KGE models (e.g., ComplEx, CP, RESCAL, TuckER) as structured computational graphs, or circuits, enabling efficient marginalization and probabilistic inference.
  • Propose two transformation recipes: (1) non-negative restriction of circuit activations to ensure non-negative outputs suitable for probability modeling, and (2) squaring the output of the score function to achieve non-negative scores.
  • Use the resulting non-negative score functions as unnormalized probability densities in a probabilistic circuit framework, enabling exact maximum-likelihood estimation and normalization.
  • Leverage recent advances in probabilistic circuits to guarantee that predictions satisfy logical constraints such as KG schema definitions by design.
  • Train GeKCs using either maximum-likelihood estimation (MLE) or the standard negative sampling objective (PLL), with the former enabling exact learning and the latter improving scalability.
  • Enable exact and efficient sampling of new triples from the learned GeKC distributions, supporting data augmentation and surrogate KG generation.

Experimental results

Research questions

  • RQ1Can standard KGE models such as ComplEx, CP, RESCAL, and TuckER be reinterpreted as probabilistic circuits to enable exact learning and sampling?
  • RQ2Does transforming KGE score functions into non-negative or squared outputs preserve link prediction performance while enabling generative modeling?
  • RQ3Can the resulting GeKC models guarantee satisfaction of logical constraints such as domain and range predicates in a knowledge graph?
  • RQ4How does the scalability of GeKCs compare to standard KGEs on large-scale knowledge graphs with millions of entities?
  • RQ5To what extent do GeKCs improve calibration of predicted probabilities compared to standard KGEs?

Key findings

  • GeKCs achieve state-of-the-art link prediction performance, with only minimal to no drop in performance compared to the original KGE models.
  • The proposed non-negative restriction and squaring transformations preserve the expressiveness of the original KGEs while enabling exact maximum-likelihood estimation and efficient sampling.
  • GeKCs scale more gracefully than standard KGEs on knowledge graphs with millions of entities, especially when using MLE training.
  • In 19 out of 24 cases, GeKCs derived via squaring (e.g., ComplEx², CP²) achieve lower empirical calibration error (ECE) than the original KGEs, indicating better-calibrated predictions.
  • GeKCs guarantee that all predictions satisfy logical constraints such as KG schema definitions by design, eliminating violations that commonly occur in standard KGEs.
  • GeKCs enable efficient and exact sampling of new triples, supporting applications such as data augmentation and surrogate knowledge graph generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.