Towards Fair Graph Learning without Demographic Information

Zichong Wang, Nhat Hoang, Xingyu Zhang, Kevin Bello, Xiangliang Zhang, Sundararaja Sitharama Iyengar, Wenbin ZhangAISTATS 2025

Abstract

Fair Graph Neural Networks (GNNs) have been extensively studied in graph-based applications. However, most approaches to fair GNNs assume the full availability of demographic information by default, which is often unrealistic due to legal restrictions or privacy concerns, leaving a noticeable gap in methods for addressing bias under such constraints. To this end, we propose a novel method for fair graph learning without demographic information. Our approach leverages a Bayesian variational autoencoder to infer missing demographic information and uses disentangled latent variables to separately capture demographics-related and label-related information, reducing interference when inferring demographic proxies. Additionally, we incorporate a fairness regularizer that enables measuring model fairness without demographics while optimizing the fairness objective. Extensive experiments on three real-world graph datasets demonstrate the proposed method's effectiveness in improving both fairness and utility.

Introduction

Graph Neural Networks (GNNs) are powerful tools for analyzing complex relational data, from social networks to financial markets. However, they are prone to inheriting and amplifying societal biases. While many "fair" GNNs have been developed, they typically rely on the availability of sensitive demographic attributes (e.g., race, gender) during training to measure and mitigate bias.

In real-world scenarios, privacy regulations like the GDPR and legal restrictions often prevent access to such data. This creates a "zero-knowledge" environment where ensuring fairness becomes significantly more challenging. Researchers face three primary hurdles: preventing task labels from biasing demographic inference, calculating fairness losses without ground-truth group membership, and preventing the model from manipulating its own demographic guesses to artificially improve fairness scores.

The Themis Framework

To address these challenges, we introduce Themis, a framework designed to achieve fairness in GNNs without relying on explicit demographic data. Themis employs a multi-pronged approach based on causal disentanglement and robust optimization.

Causal Disentanglement and HGR Correlation

The core of Themis is a Structural Causal Model (SCM) that separates latent variables into two distinct spaces: $U_S$, which captures demographics-related information, and $U_Y$, which captures task-related information. This disentanglement prevents "leakage" between the two domains, ensuring that the inferred demographic proxies are not merely reflections of the target labels.

Structural Causal Model (SCM) and Legend for the Themis framework

To further enforce this independence, we incorporate a penalty based on the Hirschfeld-Gebelein-Rényi (HGR) maximal correlation. This forces $U_S$ and the ground-truth labels $Y$ to be statistically independent, ensuring the model finds demographic proxies that are truly distinct from the task outcome.

Estimated Fairness Loss (EFL) and Stop-Gradient

Since ground-truth demographics are missing, Themis utilizes an auxiliary classifier to predict group membership probabilities. These probabilities are then used to calculate an Estimated Fairness Loss (EFL), a differentiable version of standard metrics like Statistical Parity and Equal Opportunity.

To prevent the model from "cheating"—intentionally mis-inferring demographics to satisfy the fairness math—we employ a stop-gradient technique during backpropagation. This ensures that the fairness objective optimizes the GNN's predictions without manipulating the demographic inference process itself.

Experimental Evaluation

We evaluated Themis on three real-world graph datasets: Credit (predicting credit default with Age as the sensitive attribute) and Pokec-z/Pokec-n (social network data predicting working fields with Region as the sensitive attribute). In all tests, demographic information was completely masked to simulate a zero-knowledge environment.

Key Results

Themis consistently outperformed both vanilla GNNs and state-of-the-art fair GNNs adapted for missing demographics. As shown in the results table below, Themis achieves a superior balance between utility (Accuracy, F1-Score) and fairness (SPD, EOD).

Quantitative comparison of Themis against baseline methods on Credit, Pokec-z, and Pokec-n datasets
  • Fairness Gains: On the Credit dataset, Themis reduced the Statistical Parity Difference (SPD) from 0.111 (standard GCN) to 0.016, representing a massive improvement in equity.
  • Utility Preservation: Unlike many fairness methods that sacrifice performance, Themis maintained or improved accuracy. For instance, on Pokec-z, it achieved an Accuracy of 0.846, surpassing the vanilla GCN's 0.813.
  • Ablation Studies: Experiments confirmed that removing the HGR penalty or the causal structure led to a significant drop in fairness, validating the importance of the disentanglement strategy.

Conclusion

Themis demonstrates that it is possible to build fair and accurate GNNs even when sensitive demographic data is unavailable. By leveraging causal disentanglement and structural information inherent in graphs, Themis provides a robust path forward for privacy-preserving, fair machine learning. Future work will explore extending this framework to multi-class sensitive attributes and improving computational efficiency for large-scale graphs.

Summary updated

BibTeX
@inproceedings{wang2025towards,
  author = {Zichong Wang and Nhat Hoang and Xingyu Zhang and Kevin Bello and Xiangliang Zhang and Sundararaja Sitharama Iyengar and Wenbin Zhang},
  title = {{Towards Fair Graph Learning without Demographic Information}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=wV6smUoQg9},
}
Figure