Abstract
Recent research reveals that GNN-based graph representation learning may inadvertently introduce various structural biases. In this work, we discover a phenomenon of structural bias in graph representation learning called class bias amplification, which refers to the exacerbation of performance bias between different classes by GNN encoder. We conduct an in-depth theoretical study of this phenomenon from a novel spectral perspective. Our analysis suggests that structural disparities between nodes in different classes result in varying local convergence speeds for node embeddings. This phenomenon leads to bias amplification in the classification results of downstream tasks. Based on the theoretical insights, we propose random graph coarsening, which is proved to be effective in dealing with the above issue. Finally, we propose an unsupervised graph contrastive learning model called Random Graph Coarsening Contrastive Learning (RGCCL), which utilizes random coarsening as data augmentation and mitigates class bias amplification by contrasting the coarsened graph with the original graph. Extensive experiments on various datasets demonstrate the advantage of our method when dealing with class bias amplification.
Introduction: The "Rich-Get-Richer" Problem in GNNs
Graph Neural Networks (GNNs) have revolutionized the field of Graph Representation Learning (GRL) by effectively aggregating information from neighborhood structures. However, this reliance on structure introduces a hidden side effect: class bias amplification.
While traditional models like Multi-Layer Perceptrons (MLPs) ignore graph structure and may show some performance variance between classes due to label distribution, GNNs often significantly widen this gap. This phenomenon occurs even when training labels are perfectly balanced across classes. The root cause is not just label imbalance, but structural bias. Some communities within a graph are naturally denser and better connected than others. GNNs inadvertently amplify these structural differences, leading to superior performance on well-connected classes at the expense of sparse ones.
Theoretical Diagnosis: A Spectral Perspective
To understand why this amplification occurs, we analyze GNNs from a spectral perspective. While previous studies often focused on global graph behavior, the culprit for class bias lies in "local" structural disparities.
Nodes in dense communities (with specific spectral properties) converge to their stationary representations much faster during message passing than nodes in sparse communities. This leads to an embedding concentration discrepancy: nodes in dense classes form tight, easily separable clusters in the embedding space, while nodes in sparse classes remain scattered and noisy. Using Quadratic Discriminant Analysis (QDA), we can prove that when one class is more concentrated (lower variance) than another, a downstream classifier naturally becomes biased toward the more concentrated class.
Proposed Method: Random Graph Coarsening Contrastive Learning (RGCCL)
To mitigate this bias, we introduce Random Graph Coarsening Contrastive Learning (RGCCL). The core idea is to "level the playing field" by balancing embedding densities across the graph through a novel data augmentation and contrastive framework.
1. Random Graph Coarsening
Unlike standard edge dropping, random graph coarsening iteratively merges nodes into "super-nodes." We employ a probability function that specifically favors merging low-degree (sparse) nodes. This process artificially increases the density of sparse regions, creating a more structurally balanced version of the graph.
2. Contrastive Learning Framework
The model is trained by contrasting the original graph with its coarsened counterpart. By forcing the GNN to align node embeddings with their corresponding super-node embeddings, the model effectively "pushes" sparse, scattered classes to become more concentrated. This mimics the natural convergence behavior of denser classes, reducing the concentration discrepancy in the final embedding space.
Experimental Evaluation
We evaluated RGCCL on six benchmark datasets, including citation networks (Cora, Citeseer, Pubmed), e-commerce networks (Amazon Photo, Amazon Computers), and the large-scale Ogbn-Arxiv dataset.
Key Results
- Superior Accuracy: RGCCL consistently outperformed ten state-of-the-art baselines (including GRACE, GCA, and SPAN) in both overall accuracy and Macro-F1 scores. The improvement was particularly notable on the Computers dataset, where other models exhibited heavy bias.
- Bias Reduction: Using metrics such as Matthew’s coefficient and standard deviation of class density, we confirmed that RGCCL produces the most balanced embeddings, effectively shrinking the performance gap between the "easiest" and "hardest" classes.
- Scalability: By contrasting the original graph with a smaller, coarsened version, RGCCL is highly memory-efficient. It successfully processed the large-scale Ogbn-Arxiv dataset without requiring the heavy sub-sampling common in other contrastive models.
Conclusion and Future Work
Class bias amplification is a significant hurdle for fair and robust graph representation learning. By identifying the spectral roots of this phenomenon—local convergence speed and embedding concentration—we provide a theoretical foundation for addressing structural unfairness. RGCCL offers a scalable, unsupervised solution that regularizes graph structure through coarsening.
A primary limitation of this work is the homophily assumption, where we assume nodes of the same class tend to connect. In heterophilic settings, where nodes connect to different types, the structural dynamics of bias likely differ. Investigating class bias in heterophilic graphs remains a vital direction for future research.
Summary updated