Abstract
Adversarial Collaborative Filtering (ACF) has emerged as a powerful technique for enhancing both the accuracy and robustness of recommender systems. However, the theoretical underpinnings of why adversarial training benefits recommendation—unlike in computer vision—have remained elusive. This paper provides a theoretical explanation for this phenomenon and introduces PamaCF (Personalized Magnitude Adversarial Collaborative Filtering). By personalizing the magnitude of adversarial perturbations based on individual user embedding scales, PamaCF achieves significant improvements in recommendation performance and resilience against poisoning attacks across multiple benchmark datasets.
Introduction
Recommender systems are increasingly targeted by poisoning attacks, where malicious users inject fake profiles to manipulate item exposure. Adversarial Collaborative Filtering (ACF) defends against these by adding perturbations to embeddings during training. Curiously, while adversarial training typically degrades performance on clean data in domains like Computer Vision, it often improves it in Recommendation Systems. This paper addresses this "RecSys vs. CV Paradox" by demonstrating that adversarial perturbations in RecSys act as a sophisticated form of regularization that targets recommendation error bounds.
Personalized Perturbation Magnitude
A key finding of this research is that the optimal perturbation magnitude is not uniform across all users. There is a positive correlation between a user's embedding scale (the norm of their vector) and the maximum perturbation magnitude they can withstand before performance degrades. Users with larger embedding scales can "absorb" larger perturbations, which helps the model learn more stable representations.
Building on this insight, the authors propose PamaCF. Unlike traditional ACF methods that use a fixed perturbation magnitude ($\epsilon$) for everyone, PamaCF calculates a user-specific coefficient using a sigmoid function to compare an individual's embedding norm to the global average. This allows for dynamic, personalized perturbations during the min-max optimization process, forcing the model to learn more robust features.
Experimental Evaluation
The authors evaluated PamaCF on three widely used benchmarks: Gowalla, Yelp2018, and MIND. They tested the model's resilience against four types of poisoning attacks: Random and Bandwagon (heuristic-based), and DP and Rev (optimization-based).
Key Results
PamaCF consistently outperformed existing defense mechanisms across all datasets and attack types. Key findings include:
- Performance Boost: PamaCF increased the average recommendation performance (Recall@20 and NDCG@20) of the backbone Matrix Factorization (MF) model by 13.84%.
- Enhanced Robustness: It reduced the average success ratio of poisoning attacks by 44.92% compared to the best existing defense baselines.
- Win-Win Scenario: Unlike CV models, PamaCF improves performance on both clean and poisoned data, confirming the theoretical insight that adversarial training in RecSys serves as an effective regularizer.
Conclusion and Future Work
This work provides a theoretical foundation for ACF in recommender systems and introduces a novel personalized approach, PamaCF. By acknowledging that embedding scale matters, PamaCF unlocks better accuracy and defense. While the current proof relies on a Gaussian Recommender System model, the empirical results hold up in complex scenarios. Future work will explore extending these insights to sequential recommendation and further generalizing the theoretical proofs.
Summary updated