TL;DR
This paper tackles the "degree bias" in Graph Neural Networks (GNNs), where nodes with fewer connections (low-degree) are harder to classify than those with many connections (high-degree). They introduce a novel "Hardness Adaptive Reweighted" (HAR) contrastive loss that intelligently assigns more importance to difficult-to-learn nodes and their relationships, significantly improving performance for underrepresented low-degree nodes.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are powerful tools for learning from graph-structured data, like social networks or citation graphs. However, a common issue is "degree bias": GNNs tend to perform much better on nodes with many connections (high-degree) than on nodes with few connections (low-degree). This happens because low-degree nodes often have insufficient or noisy information from their limited neighbors, making it hard for GNNs to learn accurate representations for them. While Graph Contrastive Learning (GCL) has shown promise in mitigating this bias, existing methods still struggle with providing enough useful information to low-degree nodes and treating all learned relationships equally, even when some are more informative than others.
Methods
The core of this paper is the Hardness Adaptive Reweighted (HAR) contrastive loss. Unlike standard contrastive losses that treat all positive and negative pairs equally, HAR introduces two key innovations:
- More Positives: It leverages node labels to identify more positive pairs for each node, ensuring that even low-degree nodes have a richer set of similar examples to learn from.
- Adaptive Weighting: It quantifies the "learning hardness" of nodes and their relationships. "Hard-to-learn" nodes are those that are either from the same class but have different origins (hard positives) or are highly similar to the current node but belong to a different class (hard negatives). HAR then adaptively assigns higher weights to these hard-to-learn positive and negative pairs, allowing the model to focus on the most informative signals and ignore noisy ones.
To demonstrate the broader applicability of HAR, the authors also propose SHARP (Semi-supervised Hardness Adaptive Reweighted with Pseudo-labels). This framework extends HAR to semi-supervised settings, where not all data is labeled. SHARP uses a two-step process: first, it pre-trains a model on labeled data using HAR, and then it uses this pre-trained model to generate pseudo-labels for unlabeled data, which are then used for fine-tuning.
Datasets
The proposed methods were evaluated on four standard graph datasets:
- Cora: A citation network.
- CiteSeer: Another citation network.
- PubMed: A citation network from the biomedical domain.
- Wiki-CS: A dataset of Wikipedia articles related to computer science.
These datasets are commonly used for node classification tasks and represent different graph structures and characteristics.
Key Insights and Ideas
- Degree bias is a significant problem: The paper clearly illustrates how GNN performance degrades for low-degree nodes, impacting fairness and overall utility.
- Not all relationships are equal: The core idea that some positive and negative pairs are more informative than others is crucial. HAR's adaptive weighting mechanism directly addresses this by prioritizing "hard-to-learn" connections.
- Leveraging labels for more positives is effective: By using node labels, HAR can generate a more comprehensive set of positive examples, which is particularly beneficial for nodes with limited neighbors.
- Semi-supervised learning is key for real-world applicability: The SHARP framework demonstrates that HAR can be effectively integrated into semi-supervised learning pipelines, making it practical for scenarios with incomplete labels.
- Visualizations confirm improved structure: t-SNE visualizations show that SHARP creates clearer class boundaries and better separation between clusters, indicating more discriminative embeddings.
Key Results
- Improved Degree-Level Performance: SHARP consistently outperforms baseline methods, especially for low-degree nodes. For instance, on the Cora dataset with GAT layers, SHARP shows over a 10% improvement for degree-1 nodes compared to the GAT baseline.
- Competitive Global Performance: Despite focusing on subgroup fairness, SHARP maintains competitive or improved global F1-scores across multiple datasets and GNN architectures (GCN and GAT).
- Efficiency with Fewer Labels: SHARP can achieve comparable or better performance with significantly fewer labeled samples (e.g., 50% fewer) compared to standard GCNs.
- Robustness: The method shows robustness to hyperparameter choices, with performance varying minimally across different settings.
- Clearer Embeddings: t-SNE visualizations reveal that SHARP produces embeddings with sharper class boundaries and better inter-class separation.
Limitations and Future Work
- Low Labeled Data Scenarios: The paper notes that when the proportion of labeled data is very low (e.g., less than 30%), SHARP's improvement might be limited due to insufficient feature information.
- Future Work: The authors suggest exploring the use of pre-trained models to inject richer semantic information into low-degree nodes and extending the approach to more complex scenarios like heterogeneous graphs. They also plan to investigate different fine-tuning strategies for semi-supervised learning.
Summary updated