Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Graph Contrastive Learning Based on Relation-Symmetrical Structure

Ke Liang, Yue Liu|arXiv (Cornell University)|Nov 19, 2022
Advanced Graph Neural NetworksComputer Science11 citations
TL;DR

This paper proposes KGE-SymCL, a knowledge graph contrastive learning framework that leverages relation-symmetrical structures to construct positive contrastive pairs without relying on language models. By identifying entities in symmetrical relational positions as semantically similar, the method enhances KGE model performance across link prediction and entity classification tasks, consistently outperforming state-of-the-art baselines with minimal computational overhead.

ABSTRACT

Knowledge graph embedding (KGE) aims at learning powerful representations to benefit various artificial intelligence applications. Meanwhile, contrastive learning has been widely leveraged in graph learning as an effective mechanism to enhance the discriminative capacity of the learned representations. However, the complex structures of KG make it hard to construct appropriate contrastive pairs. Only a few attempts have integrated contrastive learning strategies with KGE. But, most of them rely on language models ( e.g., Bert) for contrastive pair construction instead of fully mining information underlying the graph structure, hindering expressive ability. Surprisingly, we find that the entities within a relational symmetrical structure are usually similar and correlated. To this end, we propose a knowledge graph contrastive learning framework based on relation-symmetrical structure, KGE-SymCL, which mines symmetrical structure information in KGs to enhance the discriminative ability of KGE models. Concretely, a plug-and-play approach is proposed by taking entities in the relation-symmetrical positions as positive pairs. Besides, a self-supervised alignment loss is designed to pull together positive pairs. Experimental results on link prediction and entity classification datasets demonstrate that our KGE-SymCL can be easily adopted to various KGE models for performance improvements. Moreover, extensive experiments show that our model could outperform other state-of-the-art baselines.

Motivation & Objective

  • To address the limitation of existing contrastive KGE methods that rely heavily on pre-trained language models for positive pair construction, which can introduce noise and reduce robustness.
  • To explore structural inductive biases in knowledge graphs—specifically, relation-symmetrical structures—as a more stable and intrinsic criterion for contrastive learning.
  • To develop a plug-and-play contrastive learning framework that enhances the discriminative capacity of various KGE models without architectural modification.
  • To demonstrate that symmetrical structural patterns in KGs inherently encode semantic similarity, enabling effective self-supervised contrastive learning.

Proposed method

  • The framework identifies relation-symmetrical structures in knowledge graphs, where entities connected via symmetric relations from a common pivot are considered semantically correlated.
  • It constructs positive pairs by selecting entities that occupy symmetrical positions in such structures, forming a self-supervised contrastive learning signal.
  • A novel self-supervised alignment loss is introduced to pull together these structurally derived positive pairs during training.
  • The method is designed as a plug-and-play module, compatible with various KGE models including COMPGCN, SimKGC, and others.
  • Relation-symmetrical structures are extracted via a one-time traversal of the KG, stored in a dictionary for efficient reuse.
  • The framework jointly optimizes a contrastive loss based on structural positive pairs and a downstream task loss (e.g., link prediction or entity classification).

Experimental results

Research questions

  • RQ1Can relation-symmetrical structures in knowledge graphs serve as a reliable, model-agnostic criterion for constructing positive contrastive pairs in KGE?
  • RQ2How does leveraging structural symmetry improve the discriminative capacity of KGE models compared to language model–based contrastive learning?
  • RQ3To what extent is the proposed KGE-SymCL framework robust and generalizable across different KGE architectures and benchmark datasets?
  • RQ4What is the impact of hyperparameters such as hop count, sampling number, and loss weighting on the performance of KGE-SymCL?

Key findings

  • KGE-SymCL consistently improves performance across multiple KGE models, including COMPGCN and SimKGC, on both link prediction and entity classification benchmarks.
  • The method achieves state-of-the-art results on WN18RR, FB15K-237, and NELL-995, outperforming existing contrastive KGE methods.
  • The framework introduces only a small runtime overhead—approximately 2.5 to 6.7 additional minutes for training on WN18RR and FB15K-237 with COMPGCN—making it practical for real-world use.
  • The model is robust to variations in hop count (K) and sampling number (m), with minimal performance fluctuation, indicating stability in hyperparameter sensitivity.
  • The trade-off hyperparameter α is found to be highly influential, with optimal performance achieved at α = 0.001, due to the magnitude difference between contrastive and task losses.
  • Structure extraction takes 50–120 minutes for standard KGs on a single CPU, but this cost is incurred only once and reused, making inference efficient.

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.