Graph Embedding for Recommendation against Attribute Inference Attacks

Shijie Zhang, Hongzhi Yin, Tong Chen, Zi Huang, Lizhen Cui, Xiangliang Zhang

Introduction

Modern recommender systems, while highly effective, often inadvertently leak sensitive user traits—such as age, gender, or occupation—through the suggestions they provide. This vulnerability is exploited via Attribute Inference Attacks (AIA), where malicious actors reverse-engineer non-disclosed information by analyzing interaction histories or recommendation outputs. While Graph Convolutional Networks (GCNs) are state-of-the-art for modeling user-item relationships, their structural nature makes them particularly susceptible to such leaks. Existing defenses often face a steep trade-off between computational overhead and recommendation utility.

The GERAI Methodology

To address these challenges, we introduce GERAI (Graph Embedding for Recommendation against Attribute Inference Attacks). GERAI utilizes an inductive GCN architecture integrated with a novel dual-stage perturbation paradigm based on Differential Privacy (DP).

The GERAI architecture featuring dual-stage perturbation.

The framework operates in two primary stages:

  1. Input Stage (Local Differential Privacy): User features are perturbed before entering the recommendation engine. Numerical data is processed via a "Piecewise Mechanism," while categorical data uses a randomized response strategy. This ensures raw sensitive attributes are never exposed.
  2. Optimization Stage (Functional Mechanism): Rather than adding noise to the final output, GERAI perturbs the loss function during training. By applying a Taylor expansion to the Bayesian Personalized Ranking (BPR) loss and injecting Laplace noise into the polynomial coefficients, the resulting model parameters become differentially private.

Experimental Setup

The framework was evaluated using the ML-100K (MovieLens) dataset, comprising 100,000 ratings from 943 users across 1,682 movies. The study focused on protecting three sensitive attributes: Gender, Age, and Occupation. GERAI was benchmarked against seven models, including standard non-private models (BPR, GCN) and privacy-preserving alternatives (RAP, DPAE, DPNE).

Results and Analysis

GERAI demonstrates a superior balance between privacy protection and recommendation utility.

Privacy Protection

The model consistently resisted inference attacks better than baselines. Compared to standard GCNs, GERAI improved privacy by an average of 11% for age, 14.4% for gender, and 6.75% for occupation. Notably, the mathematical guarantees of differential privacy ensure robustness against various attacker models, including Decision Trees and KNN.

Recommendation Utility

A key finding is the "Utility-Privacy Sweet Spot." By perturbing the learning process rather than the final results, GERAI maintains high recommendation quality.

Recommendation performance (Hit@K and NDCG@K) across different models.

As shown in the performance metrics, GERAI achieved a Hit@5 of 0.333, which is remarkably close to the non-private GCN (0.365) and significantly outperforms other privacy-focused methods like Blurm (0.184) or DPAE (0.185). Furthermore, increasing the number of recommendations ($K$) acts as a natural noise source, further masking user traits.

Conclusion

GERAI provides a robust framework for privacy-preserving recommendations without sacrificing significant accuracy. Future work will focus on optimizing the computational complexity of the Taylor expansion for industrial-scale graphs and extending the framework to dynamic, streaming environments.

Summary updated

BibTeX
@inproceedings{zhang2021graph,
  author = {Shijie Zhang and Hongzhi Yin and Tong Chen and Zi Huang and Lizhen Cui and Xiangliang Zhang},
  title = {{Graph Embedding for Recommendation against Attribute Inference Attacks}},
  booktitle = {The Web Conference},
  year = {2021},
  doi = {10.1145/3442381.3449813},
}
Figure