Abstract
Recommender systems often inadvertently encode sensitive user attributes (e.g., gender, age) into latent user embeddings, posing significant privacy risks through attribute inference attacks. This paper introduces Post-Training Attribute Unlearning (PoT-AU), an efficient framework designed to "scrub" sensitive information from fully trained models. Unlike traditional machine unlearning that focuses on removing specific data points, PoT-AU targets latent concepts without requiring access to original training data or costly retraining. Our results demonstrate that PoT-AU effectively reduces attribute leakage while maintaining, or even enhancing, recommendation performance.
Introduction: The Privacy Leakage in Collaborative Filtering
Modern recommendation engines leverage collaborative filtering to map users and items into a shared latent space. While these embeddings are learned from interaction data (e.g., ratings), they often implicitly capture sensitive demographic information. Malicious actors can exploit this through Attribute Inference Attacks (AIA) to reconstruct private user profiles.
Existing "machine unlearning" techniques typically address Input Unlearning—the removal of specific training samples. However, protecting user privacy requires Attribute Unlearning, which aims to make the model "forget" a learned latent concept.
Methodology: Post-Training Attribute Unlearning (PoT-AU)
The authors propose a post-training approach that directly modifies user embeddings. This avoids the computational burden of retraining and the need for raw training data, which is often unavailable due to strict privacy regulations.
PoT-AU frames unlearning as an optimization problem with a dual-objective loss function:
- Regularization Loss: A Frobenius norm penalty ensures the updated embeddings remain close to the original ones, preserving the model's recommendation utility.
- Distinguishability Loss: This component minimizes the inferability of the target attribute. Two variants are explored:
- User-to-User (U2U): Penalizes differences between individual embeddings of users with different attributes.
- Distribution-to-Distribution (D2D): Uses Maximum Mean Discrepancy (MMD) to align the statistical distributions of different demographic groups in the latent space.
Experimental Setup and Results
The framework was evaluated on three benchmarks: MovieLens 100K, MovieLens 1M, and LFM-2B, targeting gender as the sensitive attribute. The authors tested Neural Matrix Factorization (NMF) and LightGCN models against MLP and XGBoost attackers.
Privacy and Utility Trade-offs
- Unlearning Effectiveness: The D2D-R method successfully reduced attacker AUC by approximately 25%, effectively bringing inference performance down to the level of random guessing.
- Recommendation Performance: Surprisingly, D2D-R did not just preserve utility; it improved it. On average, NDCG increased by 6.28% and Hit Ratio (HR) by 1.89%. This suggests that removing sensitive attributes acts as a form of fairness regularization, eliminating demographic biases that can degrade general accuracy.
- Efficiency: PoT-AU is significantly faster than in-training alternatives. For instance, on ML-100K with LightGCN, unlearning took only ~6 seconds, compared to ~284 seconds for retraining-based methods.
Discussion and Conclusion
The study highlights that post-hoc scrubbing of embeddings is a viable and efficient defense against attribute inference. While the U2U approach can cause "distribution collapse" that sophisticated tree-based models (XGBoost) can still exploit, the D2D approach provides robust protection by naturally overlapping distributions. Future work will focus on extending this framework to multi-class and multi-label attributes, further strengthening the privacy guarantees of modern recommender systems.
Summary updated