CL4KGE: A Curriculum Learning Method for Knowledge Graph Embedding

Yang Liu, Chuan Zhou, Peng Zhang, Yanan Cao, Yongchao Liu, Zhao Li, Hongyang ChenarXiv 2024 · DOI

Knowledge Graph Embedding (KGE) is a fundamental task in AI, mapping entities and relations into continuous vector spaces to enable link prediction and complex query answering. However, standard training regimes often treat all data points equally, ignoring the inherent structural complexity of different triples. This paper introduces CL4KGE, a "plug-and-play" curriculum learning framework that improves KGE performance by strategically ordering training samples from "easy" to "hard."

The Problem: Uniform Training in Complex Graphs

In a typical Knowledge Graph (KG), relationships vary significantly in their structural clarity. Some triples are foundational and easily distinguishable, while others are noisy or ambiguous. Training a model on difficult samples too early can lead to poor convergence and suboptimal representations. CL4KGE addresses this by implementing a curriculum—a structured learning path that allows models to master simpler concepts before tackling complex ones.

The CL4KGE Framework

The proposed framework consists of two primary components: a Difficulty Measurer based on graph topology and a Training Scheduler that controls the introduction of samples.

The CL4KGE framework integrates a Curriculum Framework with a standard KGE Framework to schedule training batches based on triple difficulty.

As shown in Figure 1, the process begins by analyzing the training data to calculate difficulty scores. These scores then inform a pacing function within the training scheduler, which determines the composition of each batch sent to the KGE model (e.g., TransE, RotatE, or ConvE).

Measuring Difficulty via Z-counts

The core innovation of CL4KGE is the Z-count metric. A "Z-path" represents a specific structural pattern where a head entity ($h$) and a tail entity ($t$) are connected through intermediate nodes.

Illustration of Z-paths between a head entity (h) and a tail entity (t) in a subgraph.

The authors demonstrate that for models with "separable" score functions, triples with many Z-paths (as illustrated in Figure 2) are structurally "easier" to predict based on graph topology alone. Counter-intuitively, CL4KGE defines "easy" triples as those with fewer Z-counts. The rationale is that these triples possess more distinct characteristics, forcing the model to learn precise decision boundaries rather than relying on dense local graph structures that might mask deeper semantic features.

Training Scheduler and Pacing Functions

Once triples are ranked by Z-counts, the framework uses a pacing function—such as Linear, Root, or Geometric—to gradually increase the difficulty of the training set. This ensures the model builds a solid foundation on recognizable triples before being exposed to the noise and complexity of high Z-count samples.

Key Results and Insights

CL4KGE was evaluated across several standard benchmarks, including FB15k-237, WN18RR, and Yago3-10. The results consistently showed performance gains for various backbone models:

  • Accuracy Boost: On FB15k-237, TransE's Hits@10 improved from 0.465 to 0.495. On WN18RR, the improvement was even more pronounced, rising from 0.501 to 0.557.
  • Efficiency: Because Z-counts are calculated during a one-time pre-processing step, the method provides a significant performance boost with virtually no additional training cost.
  • Pacing Strategy: Non-linear pacing functions, particularly the Geometric function, were found to be most effective for graph data, suggesting that the rate of introducing difficulty is crucial for optimal convergence.

Conclusion and Future Directions

CL4KGE provides a theoretically grounded and computationally efficient way to enhance KGE models. While currently optimized for separable score functions, future research could extend this curriculum approach to non-linear models like Graph Neural Networks (GNNs) or explore dynamic, self-paced learning where the model adjusts its curriculum based on real-time training loss.

Summary updated

BibTeX
@misc{liu2024cl,
  author = {Yang Liu and Chuan Zhou and Peng Zhang and Yanan Cao and Yongchao Liu and Zhao Li and Hongyang Chen},
  title = {{CL4KGE: A Curriculum Learning Method for Knowledge Graph Embedding}},
  year = {2024},
  eprint = {2408.14840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.14840},
}
Figure