Representation Learning Based Predicate Invention on Knowledge Graphs

Man Zhu, Pengfei Huang, Lei Gu, Xiaolong Xu, Jingyu HanAAAI 2025

Abstract

This paper introduces SEmPI (Semantic Embeddings for Predicate Invention), a framework that transitions predicate invention from rigid symbolic logic to scalable representation learning. By embedding knowledge graph relations as trainable matrices that preserve logical structures—such as transitivity and inversion—the model "invents" new, semantically meaningful predicates. Experimental results on FB15k and DRKG datasets show that SEmPI significantly outperforms traditional embedding models in recall and F1 scores, effectively discovering latent patterns in large-scale structured data.

Introduction

In Knowledge Graphs (KGs), predicates define the relationships between entities (e.g., is_a, born_in). However, a fixed vocabulary often fails to capture complex latent patterns or optimize learning efficiency. Predicate Invention (PI) aims to automatically create auxiliary predicates to enhance model conciseness and precision. While traditionally handled by Inductive Logic Programming (ILP), logic-based methods struggle with the scale and noise of modern KGs. This research addresses the gap by leveraging representation learning to identify when new predicates should be introduced.

Methodology: The SEmPI Framework

The authors propose ReLPI (Representation Learning for Predicate Invention) and the SEmPI framework to operationalize this approach.

Semantic Embedding Strategy

Unlike standard vector-based models, SEmPI represents predicates as diagonal matrices ($M_p$) and entities as vectors ($s$ for subject, $o$ for object). The core learning objective is $s \cdot M_p \approx o$. This matrix representation allows the embedding space to respect fundamental logical rules:

  • Transitivity: If predicate $p$ is a composition of $p_1$ and $p_2$, its embedding is $M_{p1} \cdot M_{p2}$.
  • Conjunction: If $p$ averages multiple relations, its embedding is the average of their matrices.
  • Inversion: Inverse relations are modeled via matrix inversion ($M^{-1}$).

The Invention Pipeline

The framework follows a three-step process involving preprocessing, training, and prediction, as depicted in the pipeline below.

The SEmPI pipeline: from graph preprocessing to predicate generation.
  1. Preprocess: The dataset is augmented with "corrupted" negative examples and induced rules to train the model on distinguishing valid predicate patterns.
  2. Train: A 4-layer Multi-Perceptron (MLP) classifier learns to predict the probability of a predicate invention decision.
  3. Predict: The model generates candidate predicates through matrix operations and queries the classifier for validation.

Experimental Evaluation

The researchers evaluated SEmPI on two benchmarks: FB15k (general-world knowledge) and DRKG (large-scale biological data).

Key Results

SEmPI consistently achieved higher recall and F1 scores than variations of TransE-DNN, DistMult-DNN, and ComplEx-DNN. On the FB15k dataset, the model achieved a precision of 0.82 and an F1 score of 0.779. A critical advantage of SEmPI is its superior recall, indicating a robust ability to discover a wide range of relevant latent predicates that traditional models overlook.

Discussion and Qualitative Insights

The most significant insight is the mapping of logical composition to linear algebra. By treating PI as a classification task over an embedding space, SEmPI avoids the combinatorial explosion typical of logic-based methods.

Qualitatively, the model successfully identifies logical chains that condense complex relationships. For instance, it can determine that the sequence medicine:includes_diseases $\rightarrow$ medicine:symptom_of constitutes a single meaningful relationship, as shown in the query example below.

Qualitative example of SEmPI identifying a new predicate based on background knowledge and optimized representations.

Conclusion

SEmPI represents a significant advancement in the scalability of predicate invention. While the model shows a slight precision-recall trade-off due to noise sensitivity, its ability to "calculate" new predicate embeddings is a powerful tool for KG enrichment. Future work will explore more diverse loss functions and the invention of longer, more complex logical structures.

Summary updated

BibTeX
@inproceedings{zhu2025representation,
  author = {Man Zhu and Pengfei Huang and Lei Gu and Xiaolong Xu and Jingyu Han},
  title = {{Representation Learning Based Predicate Invention on Knowledge Graphs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i12.33468},
}
Figure