Privacy-Adversarial User Representations in Recommender Systems

Yehezkel S. Resheff, Yanai Elazar, Moni Shahar, Oren Sar Shalom

Abstract

Recommender systems learn rich user representations that implicitly capture sensitive demographic information, even when such data is never explicitly provided during training. This paper introduces a "privacy-adversarial" framework that uses gradient reversal to scrub these protected attributes from user embeddings, effectively neutralizing privacy leaks and promoting fairness while maintaining high recommendation accuracy.

Introduction

Modern recommender systems rely on latent factor models that represent users and items as low-dimensional embeddings. While previous research focused on preventing the recovery of historical training records, this work highlights implicit private information leakage. User preferences are often highly correlated with demographics (age, gender, race), causing models to naturally encode these traits. An attacker could infer this sensitive data from embeddings, and models might make biased decisions based on these protected attributes. We propose learning user representations that are predictive for recommendations but mathematically stripped of sensitive demographic information.

Methodology: Privacy-Adversarial Recommendation

We adapt the Domain-Adversarial Neural Network (DANN) architecture to the recommender system setting. Our architecture consists of a standard Bayesian Personalized Ranking (BPR) model modified with an additional adversarial "readout" network.

  1. Recommendation Task: The model minimizes standard recommendation loss to update user and item embeddings.
  2. Adversarial Task: A separate classifier attempts to predict protected demographic attributes directly from user embeddings.
  3. Gradient Reversal Layer (GRL): During backpropagation, the gradient from the demographic classifier is multiplied by a negative constant ($-\lambda$) before passing back to the user embeddings.

This minimax game optimizes embeddings for item affinity while de-optimizing them for demographic classification.

Experimental Setup

Experiments were conducted on the MovieLens 1M dataset (~1M ratings, 6,040 users). Demographic metadata includes:

  • Gender: Binary (71.7% male baseline).
  • Age: 7 brackets (34.7% majority-class baseline).

Results and Discussion

Demographic Scrubbing

Standard BPR embeddings (size 50) allow classifiers to predict gender with 77.8% accuracy and age with 44.9% accuracy, significantly above naive baselines. Our privacy-adversarial method effectively destroys this signal. For instance, with $\lambda=0.1$ and embedding size 10, gender prediction accuracy drops to 71.33%, effectively matching the naive baseline.

Table 1: Gender prediction accuracy across different embedding sizes and regularization strengths ($\lambda$). Values near the naive baseline (71.70%) indicate successful privacy scrubbing.

Recommendation Performance

The privacy gain comes at a minimal cost to recommendation quality. As shown in the table below, Accuracy@10 only slightly decreases as the adversarial component is introduced.

Table 2: Recommendation performance (Accuracy@10) across different configurations. The drop from the standard model ($\lambda=0$) to the adversarial model is minimal.

Key Insights

  • Theoretical Inevitability: Perfect privacy and perfect recommendation performance are mutually exclusive if preferences correlate with demographics.
  • Fairness: Scrubbing protected attributes forces the model to avoid demographic stereotypes, naturally promoting group fairness.
  • Hyperparameter Sensitivity: Large $\lambda$ or embedding sizes can lead to training instability, potentially increasing leakage.

Conclusion and Future Work

Our adversarial framework successfully hides demographic data from standard classifiers with minimal impact on utility. Future work includes investigating leakage from final top-k recommendations and using adversarial scrubbing to break users out of stereotypical recommendation bubbles.

Summary updated

BibTeX
@inproceedings{resheff2019privacy,
  author = {Yehezkel S. Resheff and Yanai Elazar and Moni Shahar and Oren Sar Shalom},
  title = {{Privacy-Adversarial User Representations in Recommender Systems}},
  booktitle = {ICPRAM},
  year = {2019},
  doi = {10.5220/0007361204760482},
}
Figure