Introduction
Graph Neural Networks (GNNs) have become the standard for learning on structured data, yet they harbor a significant, often overlooked bias: the "popularity problem." Because GNNs learn by aggregating information from a node’s neighborhood, nodes with high centrality (many connections) naturally receive richer, more accurate representations than sparse, "unpopular" nodes. This structural bias can lead to systemic inequities in real-world applications, such as job recommendation platforms where well-connected users are favored over newcomers.
While most fairness research in machine learning focuses on sensitive demographic attributes like race or gender, this paper introduces CAFIN (Centrality Aware Fairness inducing IN-processing), a framework designed to mitigate bias stemming from the graph's inherent topology. Crucially, CAFIN operates in the unsupervised learning domain, where labels are unavailable to guide the fairness constraints.
The Challenge of Structural Bias
The "rich get richer" effect in GNNs is not just an observation but a result of the model's architecture. High-degree nodes possess larger computation graphs, providing the model with more data points during training. Consequently, standard GNN gradients are biased toward these high-centrality nodes. This results in a performance disparity where the model excels at predicting properties for popular nodes while failing those on the periphery.
Unlike demographic fairness, structural fairness is domain-agnostic and relies solely on the graph's connectivity. This makes it a universal concern for graph-based systems, especially in scenarios where sensitive attributes are missing or legally restricted from collection.
The CAFIN Framework
CAFIN addresses this disparity through an "in-processing" approach, intervening directly during the training phase by augmenting the model's loss function. Instead of modifying the input graph or post-processing the results, CAFIN forces the model to learn more equitable representations from the start.
1. Fairness-Inducing Loss ($L_f$)
The core of CAFIN is a secondary objective added to the standard GraphSAGE loss. This term incorporates the inverse of node degree, effectively penalizing the model more heavily for errors made on low-degree nodes. This forces the GNN to prioritize the quality of embeddings for "unpopular" nodes that would otherwise be neglected by the gradient updates.
2. Graph Distance Proxy
To ensure that low-degree nodes are accurately positioned in the embedding space, CAFIN uses pairwise graph distances as a target. By aligning the distance between node embeddings with their actual distance in the graph structure, the model maintains global structural integrity even for nodes with few immediate neighbors.
3. Scalability and Joint Training
The final objective is a weighted sum: $L = L_{original} + \alpha L_{fairness}$. The hyperparameter $\alpha$ allows for a controlled trade-off between raw accuracy and group fairness. To handle large-scale networks where calculating all-pairs distances is computationally prohibitive ($O(V^2)$), the authors developed CAFIN-AD. This variant uses "landmarks" to approximate distances, ensuring the framework remains viable for massive datasets.
Experimental Evaluation
The authors evaluated CAFIN across six diverse datasets representing citation networks (Cora, CiteSeer), social networks (Twitch), co-purchase networks (Amazon Photos, Amazon Computers), and biological networks (PPI). Performance was measured using "Imparity" (the performance gap between high- and low-degree groups) and "Improvement in Imparity" (II).
Key Results
The experimental results demonstrate that CAFIN significantly levels the playing field:
- Substantial Fairness Gains: CAFIN achieved an average fairness improvement of 49.50% for Link Prediction and 52.52% for Node Classification across all tested datasets.
- High Impact on Social Media: In the Twitch dataset, the performance disparity was reduced by a staggering 80%.
- Minimal Accuracy Trade-off: Perhaps most importantly, these gains came at a negligible cost. In most cases, overall accuracy dropped by less than 1%, and in some instances, the fairness constraints actually improved general performance.
- Efficiency: Training time increased by less than 1% compared to standard GraphSAGE, despite the added complexity of the fairness loss.
Conclusion and Future Work
CAFIN provides a robust, scalable solution for structural fairness in unsupervised graph learning. By shifting the focus from demographic attributes to graph topology, it offers a way to build fairer systems without requiring sensitive personal data.
However, challenges remain. While landmark approximation helps, scaling to graphs with millions of nodes is still a hurdle. Furthermore, this work primarily addresses degree centrality; future research could investigate whether other metrics, such as Betweenness or PageRank, introduce different forms of bias. Finally, improving the explainability of these fair embeddings will be crucial for deploying such models in high-stakes environments.
Summary updated