FairGen: Towards Fair Graph Generation

Lecheng Zheng, Dawei Zhou, Hanghang Tong, Jiejun Xu, Yada Zhu, Jingrui He

TL;DR

FAIRGEN is a novel fairness-aware graph generative model designed to produce synthetic graphs that accurately represent both majority and minority (protected) groups. By combining label-informed context sampling with a self-paced learning paradigm, it mitigates the "representation disparity" common in unsupervised generators and boosts downstream task performance by up to 17%.

What Problem Does This Paper Address?

Most modern graph generators (like NetGAN) are unsupervised—they learn to recreate a graph by minimizing a global reconstruction loss. While effective for general structures, this approach has a major flaw: representation disparity.

Because protected groups (e.g., specific demographic minorities in a social network) are often small, they contribute very little to the overall loss function. Consequently, the generative model treats them as "noise" or "rounding errors," failing to capture their unique structural patterns. As shown in the paper's illustrative example, as standard models train longer, the distinct structural signatures of protected groups often get "smeared" or mixed into the majority group in the embedding space.

An illustration of representation disparity where protected (blue) and unprotected (red) groups become indistinguishable over training iterations in standard models.

This lack of fidelity is a dealbreaker for high-stakes downstream tasks like fraud detection or fair AI development, where the behavior of rare or protected categories is exactly what matters most.

Methods

The authors propose FAIRGEN, a joint learning framework that balances global structural integrity with group-specific fairness. Its architecture consists of three main pillars:

  1. Label-Informed Graph Generation (M1): Instead of purely random walks, FAIRGEN uses a novel context sampling strategy ($f_S$). It samples walks starting from labeled nodes to specifically capture the "diffusion cores"—the dense, representative regions—of different classes.
  2. Fair Representation Learning (M2): A discriminator module predicts node labels using a cost-sensitive loss (penalizing errors on minority groups more heavily) and a statistical parity regularizer. This ensures that the generated graph doesn't just look like the original but also preserves fair class memberships.
  3. Self-Paced Learning (M3): To handle the common issue of label scarcity, FAIRGEN employs a "curriculum" approach. It starts by learning from "easy" examples (nodes where the model has high confidence) and progressively incorporates "harder" ones. This stabilizes the training of the generator and discriminator.
Overview of the FAIRGEN framework, showing the interplay between self-paced learning, label-informed sampling, and fair representation learning.

Datasets

The model was evaluated on seven real-world datasets spanning various domains:

  • Social Networks: FB, BLOG, and FLICKR (the latter two include race as a protected attribute).
  • Collaboration Networks: CA and ACM (ACM uses research topics with small populations as the protected group).
  • Communication & File-Sharing: Email and GNU.

Key Insights and Ideas

  • The Utility of Task-Guidance: Unsupervised generation is often seen as a "pure" way to capture data, but this paper argues that for graphs with labels, ignoring that information actively harms the utility of the synthetic data for minority groups.
  • Sampling Matters: The authors prove (Lemma 2.1) that their biased sampling strategy captures group-specific context with high probability, provided the starting nodes are in the "diffusion core" of the subgraph.
  • Fairness as a Regularizer: By treating fairness as a constraint during the generation process rather than a post-processing step, the model learns a more robust embedding space that naturally respects group boundaries.
An example of how label-informed sampling (red walks) stays within a specific group's subgraph compared to general random walks (blue).

Key Results

  • Mitigating Disparity: FAIRGEN consistently outperformed state-of-the-art models (like NetGAN and TagGen) in preserving the structural properties (degree distribution, clustering, etc.) of protected groups.
  • Downstream Performance: In a node classification case study, using FAIRGEN-generated data for augmentation boosted accuracy by up to 17% on the BLOG dataset, whereas standard generators provided only marginal improvements.
  • Scalability: The model's complexity is nearly linear with respect to the number of nodes and edge density, making it viable for large-scale real-world networks.
Comparison of protected group discrepancy across metrics; FAIRGEN (leftmost bars) shows significantly lower error than baselines.

Limitations and Future Work

While FAIRGEN makes significant strides in group fairness, the authors note that individual fairness (ensuring similar individuals receive similar outcomes) remains a separate challenge. Additionally, the current framework is designed for undirected graphs. Future research could extend these fairness constraints to directed, temporal, or heterogeneous graphs, where the definition of "context" and "parity" becomes even more complex.

Summary updated

BibTeX
@inproceedings{zheng2024fairgen,
  author = {Lecheng Zheng and Dawei Zhou and Hanghang Tong and Jiejun Xu and Yada Zhu and Jingrui He},
  title = {{FairGen: Towards Fair Graph Generation}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00181},
}
Figure