The ART of Link Prediction with KGEs

Yannick Brunink, Michael Cochez, Jacopo UrbaniNeSy - Phase 2 2025

TL;DR

This paper introduces ART, a novel generative Knowledge Graph Embedding (KGE) model that produces intrinsically normalized scores, addressing the critical issue of score incomparability across different queries. ART outperforms existing methods in both discriminative and generative link prediction tasks, offering a more reliable foundation for downstream applications that require score aggregation.

What Problem Does This Paper Address?

Knowledge Graphs (KGs) are powerful tools for representing knowledge, but they are often incomplete, with many missing links (triples). Link Prediction (LP) aims to fill these gaps by predicting likely true triples. A common approach uses Knowledge Graph Embedding (KGE) models, which assign scores to triples. However, a major problem is that these scores are typically unnormalized. This means a model might achieve a perfect ranking for a specific query (e.g., predicting drug side effects) but its scores are not comparable to scores from a different query (e.g., predicting drug interactions). This "blind spot" limits the utility of KGE models in real-world applications where scores need to be combined or interpreted globally, such as in complex query answering or identifying the most plausible facts across an entire KG. Existing methods either use post-hoc calibration, which doesn't fundamentally fix the scoring issue, or employ probabilistic frameworks that struggle to capture complex dependencies.

Methods

The paper proposes a new KGE model called ART (AutoRegressive Transformer). ART is designed to be generative and normalized by design. Instead of just scoring triples, it models the joint probability distribution of subjects, relations, and objects. This is achieved by factorizing the joint distribution using the chain rule of probability: $p(S, R, O) = p(S) \cdot p(R|S) \cdot p(O|R, S)$. Each conditional distribution is modeled using a Transformer architecture (specifically, a decoder-only Transformer with self-attention blocks). The use of Softmax classifiers for the output layers ensures that each conditional distribution is normalized, leading to a normalized joint distribution. This autoregressive factorization is exact for KGs because the variables (subject, relation, object) are discrete and finite. The model is trained using Maximum Likelihood Estimation (MLE) to learn the parameters of these distributions.

Datasets

The authors evaluated ART on three standard KG datasets:

  • FB15k-237: A widely used dataset derived from Freebase.
  • WN18RR: A subset of WordNet, known for its domain adaptation challenges.
  • OGBL-BIO: A large, high-quality biomedical knowledge graph from the Open Graph Benchmark.

The evaluation uses transductive splits, meaning all entities in the validation and test sets are observed during training.

Key Insights and Ideas

  • Query-based ranking metrics (like MRR) are insufficient: These metrics can be misleading because they don't account for score normalization. Models that perform well on MRR might not be as reliable when scores need to be comparable across queries.
  • Intrinsic normalization is superior to post-hoc calibration: ART and another normalized model (ComplEx²) consistently outperformed calibrated models (like ComplEx/Cal) on the proposed global ranking metric (max-F₁), suggesting that building normalization into the model from the start is more effective.
  • ART's Transformer architecture offers expressiveness: ART uses multiple non-linearities within its Transformer blocks, allowing it to capture complex dependencies in the KG more effectively than simpler models that rely solely on larger embeddings.
  • Open World Assumption (OWA) challenges existing evaluation metrics: Metrics like Expected Calibration Error (ECE) often assume a Closed World Assumption (CWA), which can lead to misleading conclusions for generative models under OWA, where unobserved triples might actually be true.

Key Results

  • Improved performance on a new global ranking metric: ART achieved the best or near-best results on the proposed max-F₁ metric (which evaluates global rankings) on two out of three datasets, demonstrating its effectiveness in producing comparable scores.
  • Competitive query-based ranking: ART also performed competitively on traditional query-based MRR metrics, often outperforming or matching other normalized models.
  • ART is more parameter-efficient: Despite having significantly fewer parameters dedicated to its scoring function compared to ComplEx², ART achieved greater expressive power.
  • ART handles distribution shifts better: ART's factorized autoregressive approach made it more robust to distribution shifts, as seen on the WN18RR dataset.

Limitations and Future Work

  • Limitations: The paper acknowledges that while ART improves performance on IR metrics, its uncertainty quantification (e.g., using Expected Calibration Error) can be ambiguous under the Open World Assumption inherent in KGs. The evaluation of normalized models can be sensitive to assumptions about the status of unknown triples.
  • Future Work: The authors suggest applying ART to Complex Query Answering (CQA), which often requires score aggregation. They also propose exploring ART for Knowledge Base Completion (KBC), which involves making binary decisions about triple truthfulness, and investigating potential biases in generative models. Further research into robust evaluation metrics for OWA settings is also highlighted.

Summary updated

BibTeX
@inproceedings{brunink2025art,
  author = {Yannick Brunink and Michael Cochez and Jacopo Urbani},
  title = {{The ART of Link Prediction with KGEs}},
  booktitle = {NeSy - Phase 2},
  year = {2025},
  url = {https://openreview.net/forum?id=xRlIvquvBM},
}
Figure