Towards Fair Graph Representation Learning by Overcoming Social Homophily

Guixian Zhang, Guan Yuan, Debo Cheng, Lin Liu, Jiuyong Li, Shichao Zhang

TL;DR

EAGNN (Equity-Aware Graph Neural Network) tackles the inherent bias in social network analysis by identifying "social homophily"—the tendency for similar people to connect—as a primary driver of unfairness. By integrating three theoretically grounded constraints (sufficiency, independence, and separation), EAGNN breaks spurious correlations between sensitive attributes like race or gender and model predictions, achieving state-of-the-art fairness without sacrificing classification accuracy.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are incredibly effective at learning from social networks because they use "message-passing," where a node's representation is updated based on its neighbors. However, social networks exhibit high social homophily: people of the same race, age, or gender are more likely to be connected.

When a GNN performs message-passing on such a graph, it inadvertently aggregates sensitive information. The model starts to see group membership as a shortcut for predicting labels (e.g., predicting creditworthiness based on age because the "age group" clusters together in the graph). This leads to biased predictions that amplify existing societal inequalities. While previous "Fair GNN" methods exist, the authors argue they often fail to address homophily directly or lack a rigorous theoretical framework for balancing accuracy and fairness.

An example of social homophily where nodes in the same group cluster together, leading to biased predictions.

Methods

The authors propose EAGNN, which uses a Structural Causal Model (SCM) to represent how sensitive attributes ($S$) influence both node features ($X$) and graph structure ($A$).

The proposed SCM representing the graph data generation process, aiming to sever the spurious link between S and Y.

To debias the model, they introduce a composite loss function with three key fairness constraints:

  1. Sufficiency ($L_{suff}$): This forces the model to focus on nodes that belong to different sensitive groups but share similar non-sensitive attributes. It prevents the model from "overfitting" to the sensitive attribute during training.
  2. Independence ($L_{in}$): Based on the principle of Statistical Parity, this ensures the model's prediction ($\hat{Y}$) is independent of the sensitive attribute ($S$). They implement this using a discriminator that tries to guess the sensitive attribute from the model's output; the GNN is trained to "fool" this discriminator.
  3. Separation ($L_{se}$): Based on Equal Opportunity, this ensures that for a given true label ($Y$), the prediction is independent of $S$. This is trickier because real-world data distributions are often non-uniform. The authors use a density-ratio estimator ($\epsilon$ function) to adjust for these imbalances, theoretically linking the loss to the Jensen-Shannon divergence.

Datasets

The model was evaluated on three real-world datasets with varying levels of social homophily:

  • Credit: 30,000 nodes (clients), sensitive attribute: Age. (High homophily: 0.96)
  • German: 1,000 nodes (credit users), sensitive attribute: Gender. (High homophily: 0.81)
  • Bail: 18,876 nodes (defendants), sensitive attribute: Race. (Low homophily: 0.54)

Key Insights and Ideas

  • Homophily as a Bias Engine: The paper mathematically demonstrates that GNNs map nodes with the same sensitive attribute to a similar area in the embedding space. This "expectation-centered" mapping is what makes GNNs so prone to bias in social contexts.
  • The "Sufficiency" Fix: By specifically selecting and training on "cross-group" nodes (those similar in features but different in group), the model learns to ignore the sensitive attribute as a predictive shortcut.
  • Context Matters: The importance of different constraints shifts depending on the graph. In high-homophily graphs (like Credit), the Separation constraint ($L_{se}$) proved more critical than Independence for achieving true fairness.
  • Theoretical Grounding: Unlike many empirical "hacks," the authors provide proofs (in the Appendix) showing that their loss functions directly optimize for group fairness metrics.

Key Results

EAGNN consistently outperformed nine state-of-the-art baselines (including FairGNN, NIFTY, and EDITS) across two major fairness metrics: Statistical Parity ($\Delta_{SP}$) and Equal Opportunity ($\Delta_{EO}$).

  • Fairness Gains: On the German dataset, EAGNN achieved a $\Delta_{SP}$ of 0.04, a massive improvement over vanilla GCN (20.36) and even specialized fair models like FairGNN (6.21).
  • Accuracy Preservation: Despite the heavy fairness constraints, EAGNN maintained competitive F1 scores and Accuracy. In some cases, it even outperformed vanilla GNNs, suggesting that debiasing can actually improve the "validity" of the model by removing noisy, spurious correlations.

Limitations and Future Work

  • Discrete vs. Continuous: While the authors state the method can be applied to continuous sensitive attributes, the experiments were conducted solely on discrete (binary) attributes like gender and race.
  • Graph Dynamics: The study focuses on static graphs. Real-world social networks are dynamic, and how homophily-driven bias evolves over time remains an open question.
  • Computational Overhead: The use of multiple discriminators and density-ratio estimators adds complexity to the training process, which might be a hurdle for extremely large-scale industrial graphs.

Summary updated

BibTeX
@article{zhang2025towards,
  author = {Guixian Zhang and Guan Yuan and Debo Cheng and Lin Liu and Jiuyong Li and Shichao Zhang},
  title = {{Towards Fair Graph Representation Learning by Overcoming Social Homophily}},
  journal = {ACM Transactions on Intelligent Systems and Technology},
  year = {2025},
  doi = {10.1145/3785503},
}
Figure