Abstract
Graph Neural Networks (GNNs) are susceptible to inheriting and amplifying biases present in training data, often leaking sensitive information through network topology. We present Deep Fair Graph Neural Networks (DFGNN), a framework that integrates fairness regularizers—specifically a Sinkhorn distance-based approach—into the GNN architecture. By applying these constraints across all layers, DFGNN learns node representations that achieve demographic parity while maintaining high predictive utility. Our empirical evaluation on the Pokec social network dataset demonstrates that DFGNN effectively navigates the accuracy-fairness trade-off, outperforming simpler mean-matching techniques.
Introduction
The proliferation of automated decision-making systems has brought the issue of algorithmic fairness to the forefront of machine learning research. While much work has focused on i.i.d. data, relational data represented as graphs presents unique challenges. Graph Neural Networks (GNNs) aggregate information from a node’s neighborhood, a process that can inadvertently propagate sensitive attributes (e.g., gender, race) even when they are not explicitly included as features. This "leakage" occurs because neighboring nodes often share similar sensitive characteristics, and the graph structure itself can act as a proxy for these variables.
Problem Formulation
The objective is to learn a representation $h$ that is expressive for a downstream task but independent of a sensitive attribute $S$. We aim for Demographic Parity, which requires that the probability of a model’s prediction be independent of a node's membership in a sensitive group. In the context of GNNs, this requires the latent representations to be "blind" to the sensitive group membership of the nodes, despite the relational dependencies in the graph.
The DFGNN Framework
DFGNN extends the GraphSAGE architecture by incorporating a fairness-aware loss function. The total loss is a weighted sum of the task-specific loss (Binary Cross-Entropy) and a fairness regularizer $F(h)$:
$$h^* = \arg \min_h (1 - \lambda)BCE(h) + \lambda F(h)$$
The hyperparameter $\lambda$ controls the trade-off between accuracy and fairness.
Regularization via Sinkhorn Distance
The authors propose using the Sinkhorn distance as a regularizer. Unlike simple convex relaxations that only match the means of group distributions, the Sinkhorn distance (an entropic-regularized Wasserstein distance) matches the entire probability distribution of the representations. This provides a more rigorous guarantee of independence. Its differentiability allows for seamless integration into the backpropagation process using the Sinkhorn algorithm.
Deep Layer-wise Regularization
A critical finding of this work is that fairness constraints are most effective when applied to every layer of the deep GNN. This "deep regularization" prevents the network from learning biased features in early layers that could be exploited later, even if the final output is regularized. This approach effectively filters sensitive information at each stage of the feature extraction process.
Experimental Setup
The model was tested on the Pokec dataset, a large-scale social network from Slovakia. The task was to predict users' marital status while maintaining fairness with respect to gender. The experiments used an inductive setting, where the model was trained on one portion of the graph and evaluated on a completely separate subgraph to test its generalization capabilities to unseen nodes and structures.
Results and Discussion
The experiments reveal a significant relationship between the regularization strength $\lambda$ and the resulting fairness-accuracy profile.
As illustrated in the figure above, the model's trajectory during training shows how the fairness constraint influences the final state. Higher values of $\lambda$ (e.g., $\lambda=0.9$, dark blue) lead to a substantial reduction in the Difference of Demographic Parity (DDP), often bringing it close to zero, with a manageable decrease in AUROC. The Sinkhorn regularizer consistently provided a better Pareto front than the baseline convex relaxation, and the deep regularization approach proved superior to regularizing only the final layer.
Conclusion
DFGNN offers a robust solution for training fair GNNs on large-scale graphs. By matching distributions via the Sinkhorn distance and employing deep regularization, the framework effectively mitigates the leakage of sensitive information. Future research will explore multi-attribute fairness and the application of DFGNN to heterogeneous graph structures and non-binary classification tasks.
Summary updated