Simple and Effective Relation-based Embedding Propagation for Knowledge Representation Learning

Huijuan Wang, Siming Dai, Weiyue Su, Hui Zhong, Zeyang Fang, Zhengjie Huang, Shikun Feng, Zeyu Chen, Yu Sun, Dianhai Yu

Abstract

Knowledge Graph (KG) representation learning often faces a trade-off between the scalability of triplet-based methods and the contextual richness of Graph Neural Networks (GNNs). We present Relation-based Embedding Propagation (REP), a non-parametric post-processing method that injects global graph context into pre-trained embeddings. By treating relations as directional operations and utilizing simple averaging for aggregation, REP achieves state-of-the-art performance with significant computational savings. Our evaluation across small to large-scale datasets demonstrates that REP can reduce training time by up to 95% while providing a substantial boost in link prediction accuracy.

Introduction

Knowledge Graphs like Wikidata and Freebase serve as the backbone for numerous AI applications, yet they are inherently incomplete. Knowledge Representation Learning (KRL) aims to address this by mapping entities and relations into continuous vector spaces. Currently, the field is divided between fast, scalable triplet-based models (e.g., TransE, RotatE) that ignore entity neighborhoods, and powerful GNN-based models that capture global context but struggle with the computational demands of massive graphs.

This paper introduces Relation-based Embedding Propagation (REP) to bridge this "scalability-effectiveness" gap. REP allows simple triplet-based models to gain the contextual advantages of GNNs without the overhead of complex neural layers or retraining from scratch.

Methodology

REP is designed as a lightweight post-processing technique. Unlike standard GNNs that learn transformation matrices, REP leverages the inherent geometry of the pre-trained embedding space.

Relational Context Functions

Because KGs are directed and multi-relational, simple neighbor averaging is insufficient. REP utilizes the scoring logic of the base model to derive context. For instance, if a model assumes $head + relation \approx tail$, REP derives the context for a head entity from its tail and relation as $(tail - relation)$. This ensures that the semantic meaning of specific relations (e.g., "born in" vs. "died in") is preserved during propagation.

The REP framework: Entity embeddings are propagated through relational context functions and aggregated to form context embeddings, which are then combined with the original embeddings.

Non-Parametric Aggregation and Adaptation

Information from neighbors is aggregated using simple averaging, removing the need for backpropagation during the refinement phase. The final entity embedding $e^{k+1}$ is a weighted combination of the original embedding $e^k$ and the calculated context embedding, controlled by a scalar hyperparameter $\alpha$:

$$e^{k+1} = \alpha e^k + (1 - \alpha) \mathbb{E}_{(e,r) \in N} C(e^k, r)$$

This iterative process allows information to flow across multiple "hops" in the graph, effectively capturing long-range dependencies.

Experimental Evaluation

We evaluated REP across three scales: standard benchmarks (WN18RR, FB15k-237), medium-scale graphs (OGBL-WikiKG2 with 2.5M entities), and large-scale graphs (WikiKG90M-LSC with 87M entities).

One of the most significant findings is the "Half-Training Hack." Our results show that a triplet-based model trained for only half its usual duration, when refined with REP, can outperform the same model trained to full convergence. This suggests a path toward drastically reducing the carbon footprint and time cost of training large-scale KG embeddings.

Key Results and Insights

  • Efficiency: On the FB15k-237 dataset, REP-OTE was 20x faster per epoch than the state-of-the-art GC-OTE. On OGBL-WikiKG2, the speedup exceeded 50x.
  • Performance Gain: REP provided a 10% relative improvement in Mean Reciprocal Rank (MRR) over base triplet models on the OGBL-WikiKG2 dataset.
  • Scalability: REP successfully processed the WikiKG90M-LSC dataset, a scale where many traditional GNN-based models fail due to memory constraints.
MRR performance vs. training steps. Solid lines (with REP) consistently outperform dashed lines (base models), even when the base model is trained for significantly more steps.

Conclusion

Relation-based Embedding Propagation (REP) offers a simple yet powerful solution for enhancing Knowledge Graph embeddings. By moving the complexity of context-awareness from the training phase to a non-parametric post-processing phase, REP achieves a superior balance of speed and accuracy. Future work will explore intelligent neighbor pruning to further refine the signal-to-noise ratio in extremely dense graphs.

Summary updated

BibTeX
@inproceedings{wang2022simple,
  author = {Huijuan Wang and Siming Dai and Weiyue Su and Hui Zhong and Zeyang Fang and Zhengjie Huang and Shikun Feng and Zeyu Chen and Yu Sun and Dianhai Yu},
  title = {{Simple and Effective Relation-based Embedding Propagation for Knowledge Representation Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/382},
}
Figure