Learning Fair Representations for Bipartite Graph based Recommendation

Le Wu, Lei Chen, Pengyang Shao, Richang Hong, Xiting Wang, Meng Wang

Abstract

Modern recommender systems often inadvertently encode sensitive user attributes into learned embeddings, leading to algorithmic bias. While existing fair representation learning methods treat users as independent, this paper identifies a critical vulnerability: the graph-based nature of collaborative filtering. We propose FairGo, a model-agnostic framework that employs graph-based adversarial learning to filter sensitive information from both individual embeddings and their local graph neighborhoods. Experimental results on MovieLens and Last.fm demonstrate that FairGo achieves near-perfect fairness with minimal impact on recommendation accuracy.

Introduction: The Graph-Based Fairness Gap

Representation learning in recommender systems maps users and items into low-dimensional embedding spaces. However, these embeddings often capture and leak sensitive attributes such as race, gender, or age. A significant limitation of current "fairness-aware" methods is the assumption of data independence. In reality, users and items form a bipartite graph where interactions act as a backdoor for information leakage.

Figure 1: Motivation showing how sensitive attributes (Gender, Age, Occupation) can be inferred from a user's individual embedding and their aggregated local graph neighborhood (1st, 2nd, and 3rd order).

As illustrated in Figure 1, even if a user's individual embedding is scrubbed, their sensitive attributes can still be accurately inferred from the items they interact with and the characteristics of connected users. This collaborative leakage necessitates a fairness approach that considers the local graph structure.

The FairGo Framework

To address this, we introduce FairGo (Fair Graph-based Recommendation). FairGo is designed to be model-agnostic, meaning it can be applied to pre-trained embeddings from any base model, such as Matrix Factorization or Graph Convolutional Networks (GCNs).

Adversarial Learning on Ego-centric Networks

The core of FairGo is a minimax game between a Filter Network and a Graph-based Discriminator. The Filter Network transforms original embeddings into a filtered space to preserve utility while removing sensitive signals. Simultaneously, the discriminator attempts to predict sensitive attributes by analyzing a summary of the user's ego-centric graph—the user and their $L$-hop neighborhood.

Figure 2: The FairGo architecture. Original embeddings and ego-centric networks are passed through a Filter Network. A set of discriminators ($D_1, ..., D_K$) then attempts to recover sensitive attributes from the filtered space to enforce node-level and ego-centric level fairness.

As shown in Figure 2, the framework utilizes learning-based aggregation (via MLPs) to non-linearly combine representations from different neighborhood distances. This ensures that the filter removes information that could be recovered through graph-based inference.

Experimental Evaluation

We evaluated FairGo on two benchmarks: MovieLens-1M (sensitive attributes: gender, age, occupation) and Lastfm-360K (gender, age).

Key Results

  • Superior Fairness-Utility Trade-off: On MovieLens-1M, applying FairGo to a GCN base model reduced the discriminator's AUC for gender from 0.7041 to 0.5042 (near-random guessing), while the recommendation error (RMSE) only increased slightly from 0.8564 to 0.9068.
  • Compositional Fairness: FairGo successfully handles multiple sensitive attributes simultaneously, reducing predictive accuracy for both gender and age to baseline levels in joint training scenarios.
  • Baseline Comparison: FairGo consistently outperformed existing methods like Non-parity and ICML_2019 fair graph embeddings in both recommendation accuracy and attribute obfuscation.

Conclusion

FairGo effectively closes the "graph backdoor" that allows sensitive information to leak through collaborative filtering structures. By focusing on ego-centric neighborhoods rather than isolated nodes, it provides a robust, model-agnostic solution for building fairer recommendation systems without sacrificing the predictive power of modern graph-based models.

Summary updated

BibTeX
@inproceedings{wu2021learning,
  author = {Le Wu and Lei Chen and Pengyang Shao and Richang Hong and Xiting Wang and Meng Wang},
  title = {{Learning Fair Representations for Bipartite Graph based Recommendation}},
  booktitle = {The Web Conference},
  year = {2021},
  doi = {10.1145/3442381.3450015},
}
Figure