TL;DR
Graph Neural Networks (GNNs) often fail to generalize when a node's local neighborhood structure—specifically its "homophily" or how much it resembles its neighbors—differs from the global average. This paper demonstrates that these structural outliers aren't just a performance hurdle; they are a significant source of algorithmic unfairness, causing fairness metrics to drop by as much as 30% in out-of-distribution settings.
What Problem Does This Paper Address?
In the world of graph machine learning, homophily (the tendency of similar nodes to connect) is a double-edged sword. While GNNs thrive on homophilous data, they often stumble when faced with heterophily (connections between different types of nodes).
Recent research has shifted focus from global graph properties to local homophily—the specific connectivity patterns around individual nodes. The problem is that GNNs are typically trained on a "majority" structural pattern. When they encounter nodes with underrepresented local structures (an Out-of-Distribution or OOD problem), performance tanks.
The authors identify a critical gap: while we know OOD structures hurt accuracy, we haven't understood how they impact fairness. If a GNN is trained on a mostly homophilous graph but tested on heterophilous clusters, does it treat sensitive groups (like gender or race) differently? This paper provides the first formal link between local graph structure and group fairness.
Methods
The researchers tackle this problem through a three-pronged approach:
- Theoretical Framework: They prove (Theorem 3.1) that as the discrepancy between a node's local homophily and the global average increases, the gap in predicted outcomes for different sensitive attributes also grows. Essentially, structural "weirdness" amplifies bias.
- OOD Training Framework: They use the Earth Mover’s Distance (EMD) to quantify how "different" a test set's homophily distribution is from the training set.
- Novel Semi-Synthetic Generator: To study these effects in a controlled environment, they developed a graph re-wiring algorithm. Using optimal transport, this tool can precisely adjust a graph's local homophily distribution with minimal disruption to the overall graph structure, allowing for "stress-testing" GNN fairness.
Datasets
The authors argue that existing GNN fairness benchmarks are often too structurally uniform or poorly documented. To fix this, they introduced three new benchmarks:
- Tolokers-Fair: Predicting if a contributor should be banned based on language (English vs. non-English) as the sensitive attribute.
- FB-Penn94-Fair: A Facebook social network dataset used to predict student majors with gender as the sensitive attribute.
- Pokec-Fair: A massive social network dataset for predicting occupations with gender as the sensitive attribute.
These datasets were chosen specifically because they offer a diverse range of local homophily levels, unlike traditional benchmarks which are often heavily skewed toward simple homophily.
Key Insights and Ideas
- Structural Under-representation is a Bias Source: Fairness isn't just about having a balanced number of labels or sensitive attributes. If certain structures (like heterophilous neighborhoods) are rare in the training data, the model will likely produce unfair results for nodes in those structures.
- The "Heterophily Trap": The most significant drops in fairness occur for heterophilous nodes situated within otherwise homophilous graphs. These nodes are structural "minorities," and the GNN struggles to process them fairly.
- Fairness Models Can Be Fragile: Surprisingly, GNNs specifically designed for fairness (like Nifty or FairGNN) are often more susceptible to OOD structural shifts than classic GNNs. They perform well when the test data looks like the training data but degrade quickly when the graph structure shifts.
- LINKX as a Dark Horse: Models designed to handle heterophily (like LINKX) often maintained better fairness across OOD settings than models explicitly built for fairness, suggesting that structural robustness is a prerequisite for equitable GNNs.
Key Results
- Fairness Degradation: In OOD scenarios where local homophily shifted significantly, fairness (measured by Statistical Parity) dropped by up to 24% on real-world datasets and 30% on semi-synthetic datasets.
- Linear Relationship: The authors found a near-linear relationship between the severity of the OOD structural shift (EMD) and the increase in unfairness.
- Global vs. Local: Globally heterophilous datasets (like FB-Penn94) tended to be more "fair" in OOD settings because the model was already forced to learn more complex, non-homophilous patterns during training.
Limitations and Future Work
The authors acknowledge that their theoretical analysis relies on a simplified GNN architecture ($ (A+I)XW $). While this is a standard theoretical setup, real-world GNNs are often more complex. Additionally, their semi-synthetic re-wiring algorithm focuses on graph structure and doesn't explicitly manipulate node features, which might also carry latent biases.
Future work aims to develop "structure-robust" fairness mechanisms—GNNs that can maintain equitable predictions even when the local connectivity patterns of users vary wildly across the network. This shifts the focus from just "masking" sensitive attributes to ensuring the model doesn't exploit structural outliers as a proxy for those attributes.
Summary updated