Abstract
Graph neural networks (GNNs) have shown great ability in representation learning on graphs, facilitating various tasks. Despite their great performance in modeling graphs, recent works show that GNNs tend to inherit and amplify the bias from training data, causing concerns of the adoption of GNNs in high-stake scenarios. Hence, many efforts have been taken for fairness-aware GNNs. However, most existing fair GNNs learn fair node representations by adopting statistical fairness notions, which may fail to alleviate bias in the presence of statistical anomalies. Motivated by causal theory, there are several attempts utilizing graph counterfactual fairness to mitigate root causes of unfairness. However, these methods suffer from non-realistic counterfactuals obtained by perturbation or generation. In this paper, we take a causal view on fair graph learning problem. Guided by the casual analysis, we propose a novel framework CAF, which can select counterfactuals from training data to avoid non-realistic counterfactuals and adopt selected counterfactuals to learn fair node representations for node classification task. Extensive experiments on synthetic and real-world datasets show the effectiveness of CAF.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are powerful because they use "message passing"—aggregating information from a node's neighbors to learn representations. However, this mechanism can act as a bias megaphone. For example, in a social network where people of the same race are more likely to be connected, a GNN might make their representations so similar that the model's prediction becomes highly correlated with race, even if race isn't a feature.
Existing "fair" GNNs usually rely on statistical fairness (e.g., ensuring equal outcomes for different groups). But these methods struggle with statistical anomalies and don't address the root cause of the bias. Recent shifts toward counterfactual fairness—asking "would the prediction change if this person's sensitive attribute were different?"—are promising. However, current methods usually "hallucinate" counterfactuals by simply flipping a bit (e.g., changing 'Male' to 'Female') without adjusting the rest of the person's features or their social connections. This results in "unrealistic" data that can degrade the model's performance.
Methods: The CAF Framework
The authors propose a causal approach to disentangle node representations into two parts:
- Content ($C$): Features that actually determine the label (e.g., credit history determining a credit score).
- Environment ($E$): Features influenced by sensitive attributes (e.g., zip code or height influenced by demographics).
The CAF Framework components: * Disentangled Learning: A GNN encoder splits a node's embedding into $C$ and $E$. It uses an Orthogonal Constraint to ensure these two vectors don't share information and a Sufficiency Constraint to ensure the combined vector can still reconstruct the original graph structure. * Counterfactual Selection: Instead of generating fake nodes, CAF searches the existing dataset for "natural" counterfactuals. For a target node, it looks for other nodes that have the same label but a different sensitive attribute (to learn what makes the "content" similar) and nodes with the same sensitive attribute but different labels (to learn what makes the "environment" similar). * Invariance Regularization: The model is trained to ensure that the "content" representation ($C$) remains the same for a node and its selected counterfactuals, effectively "squeezing out" sensitive information from the part of the embedding used for classification.
Datasets and Evaluation
The authors evaluated CAF on three real-world datasets and one synthetic benchmark:
- German Credit: Classifying credit risk (Sensitive attribute: Gender).
- Credit Defaulter: Predicting credit card default (Sensitive attribute: Age).
- Bail: Predicting if defendants will be released on bail (Sensitive attribute: Race).
- Synthetic Dataset: A custom-built graph with "ground truth" causal relationships to precisely measure counterfactual identification.
Key Insights
- Data as its own Teacher: Moving away from generative models (like VAEs) to select existing nodes as counterfactuals avoids making messy assumptions about how graphs are generated.
- The "Sarah" Example: If "Sarah" (female) is denied a loan, the model looks for a "John" (male) in the data who has a similar background and was also denied. By forcing their "content" embeddings to be similar, the model learns to ignore the gender difference.
- Pseudo-labeling: To handle unlabeled nodes in semi-supervised settings, CAF uses a pre-trained model to assign "pseudo-labels," expanding the pool of potential counterfactuals.
Key Results
- Superior Trade-off: CAF consistently outperformed state-of-the-art fair GNNs (like NIFTY and GEAR). It achieved the best "average rank" (1.75) across all metrics, balancing high accuracy (AUC/F1) with low bias ($\Delta_{SP}$ and $\Delta_{EO}$).
- Fairness Gains: On the Bail dataset, CAF reduced the Statistical Parity gap ($\Delta_{SP}$) to 2.29, compared to 7.50 for a standard GCN and 5.74 for the next-best fair method (NIFTY).
- Backbone Agnostic: CAF successfully improved the fairness of GCN, GraphSAGE, and GIN backbones with minimal loss in accuracy.
Limitations and Future Work
Currently, the model is designed for binary classification and binary sensitive attributes. Real-world scenarios often involve multi-class labels and non-binary attributes. Additionally, the study focuses on static graphs; extending this to dynamic graphs remains an open challenge. Finally, the reliance on pseudo-labels introduces potential noise if the initial pre-trained model is highly biased.
Summary updated