Heterogeneous Graph Neural Networks with Loss-decrease-aware Curriculum Learning

Yili Wang · DOI

Abstract

In recent years, heterogeneous graph neural networks (HGNNs) have achieved excellent performance in handling heterogeneous information networks (HINs). Curriculum learning is a machine learning strategy where training examples are presented to a model in a structured order, starting with easy examples and gradually increasing difficulty, aiming to improve learning efficiency and generalization. To better exploit the rich information in HINs, previous methods have started to explore the use of curriculum learning strategy to train HGNNs. Specifically, these works utilize the absolute value of the loss at each training epoch to evaluate the learning difficulty of each training sample. However, the relative loss, rather than the absolute value of loss, reveals the learning difficulty. Therefore, we propose a novel loss-decrease-aware training schedule (LDTS). LDTS uses the trend of loss decrease between each training epoch to better evaluating the difficulty of training samples, thereby enhancing the curriculum learning of HGNNs for downstream tasks. Additionally, we propose a sampling strategy to alleviate training imbalance issues. Our method further demonstrate the efficacy of curriculum learning in enhancing HGNNs capabilities. We call our method Loss-decrease-aware Heterogeneous Graph Neural Networks (LDHGNN).

Introduction

Heterogeneous Information Networks (HINs)—graphs containing diverse types of nodes and relations, such as citation networks involving papers, authors, and institutions—offer a rich source of information but present significant modeling challenges. While Heterogeneous Graph Neural Networks (HGNNs) have become the standard architecture for these graphs, most research has focused on architectural innovations rather than optimizing the training process.

Recent efforts have integrated Curriculum Learning (CL) into HGNN training. CL involves presenting "easy" examples to the model before "hard" ones. However, existing methods like CLGNN typically rely on the absolute value of loss to measure difficulty. This approach is fundamentally flawed: a high loss may indicate a complex outlier rather than a difficult-to-learn sample, while a low loss does not necessarily mean the model has fully captured the sample's underlying patterns. Furthermore, traditional CL methods often ignore difficult samples for much of the training phase, risking overfitting on easy data and underfitting on complex nodes.

The LDHGNN Methodology

To address these limitations, we propose LDHGNN (Loss-decrease-aware Heterogeneous Graph Neural Networks), which introduces two primary innovations:

  1. Loss-Decrease-aware Training Schedule (LDTS): Instead of raw loss, LDTS calculates the relative decrease in loss between epochs ($D = \text{previous\_loss} - \text{current\_loss}$). The intuition is that if a sample’s loss drops significantly after an update, it is "easily learnable." If the loss remains stagnant, the sample is considered difficult.
  2. Probabilistic Sampling Strategy: To prevent the model from ignoring hard samples entirely, loss-decrease values are converted into probabilities via a Softmax function. Nodes are then sampled based on these probabilities. As training progresses, a "pacing function" (Linear, Root, or Geometric) gradually increases the number of sampled nodes, systematically introducing more difficult samples into the training set.

Experimental Setup

We evaluated LDHGNN using the ogbn-mag dataset from the Open Graph Benchmark, a massive, heterogeneous, directed graph. The task involves multi-class classification to identify the venue of a paper among 349 distinct classes.

The ogbn-mag dataset consists of four node types with varying counts across train, validation, and test splits.

Key Results

The results on the ogbn-mag dataset demonstrate the superiority of the loss-decrease metric. LDHGNN significantly outperformed both the base RpHGNN model and the previous state-of-the-art curriculum method, CLGNN.

LDHGNN achieves significantly higher validation and test accuracy compared to the RpHGNN baseline and the CLGNN curriculum method.

LDHGNN improved upon CLGNN by approximately 8.33% on the test set. This suggests that the rate of learning (loss decrease) is a far more effective proxy for sample difficulty than the state of error (absolute loss). By using a sampling strategy rather than a hard cutoff, the model maintains a balanced gradient and avoids the underfitting issues common in prior curriculum approaches.

Conclusion and Future Work

LDHGNN demonstrates that how difficulty is measured in a curriculum is just as critical as the curriculum structure itself. While the performance gains are substantial, future work will focus on reducing the computational overhead of tracking per-node loss decreases and validating the approach across a broader range of HIN benchmarks to ensure universal applicability.

Summary updated

Abstract

In recent years, heterogeneous graph neural networks (HGNNs) have achieved excellent performance in handling heterogeneous information networks (HINs). Curriculum learning is a machine learning strategy where training examples are presented to a model in a structured order, starting with easy examples and gradually increasing difficulty, aiming to improve learning efficiency and generalization. To better exploit the rich information in HINs, previous methods have started to explore the use of curriculum learning strategy to train HGNNs. Specifically, these works utilize the absolute value of the loss at each training epoch to evaluate the learning difficulty of each training sample. However, the relative loss, rather than the absolute value of loss, reveals the learning difficulty. Therefore, we propose a novel loss-decrease-aware training schedule (LDTS). LDTS uses the trend of loss decrease between each training epoch to better evaluating the difficulty of training samples, thereby enhancing the curriculum learning of HGNNs for downstream tasks. Additionally, we propose a sampling strategy to alleviate training imbalance issues. Our method further demonstrate the efficacy of curriculum learning in enhancing HGNNs capabilities. We call our method Loss-decrease-aware Heterogeneous Graph Neural Networks (LDHGNN). The code is public at https://github.com/wangyili00/LDHGNN.
BibTeX
@misc{wang2024heterogeneous,
  author = {Yili Wang},
  title = {{Heterogeneous Graph Neural Networks with Loss-decrease-aware Curriculum Learning}},
  year = {2024},
  eprint = {2405.06522},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.06522},
}
Figure