Promoting Fairness in GNNs: A Characterization of Stability

Yaning Jia, Chunhui ZhangarXiv 2023

Abstract

The Lipschitz bound, a technique from robust statistics, can limit the maximum changes in the output concerning the input, taking into account associated irrelevant biased factors. It is an efficient and provable method for examining the output stability of machine learning models without incurring additional computation costs. Recently, Graph Neural Networks (GNNs), which operate on non-Euclidean data, have gained significant attention. However, no previous research has investigated the GNN Lipschitz bounds to shed light on stabilizing model outputs, especially when working on non-Euclidean data with inherent biases. Given the inherent biases in common graph data used for GNN training, it poses a serious challenge to constraining the GNN output perturbations induced by input biases, thereby safeguarding fairness during training. Recently, despite the Lipschitz constant's use in controlling the stability of Euclidean neural networks, the calculation of the precise Lipschitz constant remains elusive for non-Euclidean neural networks like GNNs, especially within fairness contexts. To narrow this gap, we begin with the general GNNs operating on an attributed graph, and formulate a Lipschitz bound to limit the changes in the output regarding biases associated with the input. Additionally, we theoretically analyze how the Lipschitz constant of a GNN model could constrain the output perturbations induced by biases learned from data for fairness training. We experimentally validate the Lipschitz bound's effectiveness in limiting biases of the model output. Finally, from a training dynamics perspective, we demonstrate why the theoretical Lipschitz bound can effectively guide the GNN training to better trade-off between accuracy and fairness.

Introduction

Graph Neural Networks (GNNs) have become essential for analyzing non-Euclidean data in domains such as social network analysis and recommendation systems. However, these models often act as "black boxes" that are hypersensitive to biases inherent in graph data. Small perturbations in node features or local connectivity can lead to significant changes in model output, often resulting in unfair outcomes. While much research has focused on group fairness, this work addresses rank-based individual fairness: ensuring that similar nodes in the input space receive similar rankings in the output space.

Methodology: The JacoLip Framework

To address the stability-fairness gap, we introduce JacoLip, a plug-and-play regularization method based on Lipschitz bounds. The Lipschitz constant ($K$) serves as a "speed limit" for a function, guaranteeing that output changes are bounded by $K$ times the input changes.

Theoretical Foundation

We derive a global Lipschitz bound for an $L$-layer GNN, demonstrating that stability is controlled by the product of the spectral norms of the layers' Jacobian matrices. Since calculating the exact Lipschitz constant is NP-hard, we utilize the Jacobian matrix of the entire network to approximate this bound efficiently.

Regularization

JacoLip incorporates the calculated Lipschitz bound as a regularization term in the standard loss function. This encourages the model to maintain a "flat" and stable mapping during training, effectively mitigating the propagation of biases without the need for explicit protected attributes or adversarial training.

Experimental Evaluation

We evaluated JacoLip across six real-world datasets representing diverse graph structures:

  • Node Classification: ACM (citation network), Co-author-CS, and Co-author-Phy (academic collaboration).
  • Link Prediction: BlogCatalog, Flickr, and Facebook (social networks).

Key Results

JacoLip consistently achieves a superior trade-off between utility (accuracy/AUC) and fairness (NDCG@10) compared to state-of-the-art baselines like Redress, InFoRM, and PFR.

Table 1: Performance comparison on ACM, CS, and Phy datasets. JacoLip demonstrates significant fairness improvements while maintaining utility.

As shown in the results for node classification tasks (Table 1), JacoLip improves fairness metrics significantly. For instance, on the ACM dataset using a GCN, JacoLip improved NDCG@10 by over 13% compared to the vanilla model. On the Co-author-Phy dataset, applying JacoLip to the Redress baseline resulted in a 73.3% boost in structural fairness.

Table 2: Performance comparison on Blog, Flickr, and Facebook datasets for link prediction tasks.

In link prediction tasks (Table 2), JacoLip similarly enhances fairness. The stability provided by the Lipschitz bound ensures that the model is less susceptible to noise and biased features, leading to more equitable ranking results across different social network structures.

Discussion and Conclusion

Our findings suggest that model stability and individual fairness are intrinsically linked. By constraining the Lipschitz constant, JacoLip prevents the "exploding" gradients and weight norms often observed in early training stages, leading to smoother convergence and fairer final models. While the method shows great promise, future work will explore its generalizability to high-stakes domains like financial fraud detection and biological networks, where data distributions may be more complex.

Summary updated

BibTeX
@misc{jia2023promoting,
  author = {Yaning Jia and Chunhui Zhang},
  title = {{Promoting Fairness in GNNs: A Characterization of Stability}},
  year = {2023},
  eprint = {2309.03648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.03648},
}
Figure