Poisoning Attacks to Graph-Based Recommender Systems

Minghong Fang, Guolei Yang, Neil Zhenqiang Gong, Jia Liu · DOI

Abstract

Recommender systems are vital for web services but vulnerable to poisoning attacks where fake data is injected to manipulate recommendations. While attacks on matrix-factorization and association-rule systems are known, graph-based systems—used by companies like eBay and Huawei—remain under-studied. This work presents a systematic study of optimized poisoning attacks on graph-based recommender systems. By formulating the attack as an optimization problem to determine fake user ratings, we demonstrate significant effectiveness across white-box, gray-box, and black-box settings. Our results show that injecting just 1% fake users can increase a target item's recommendation rate by up to 580 times, consistently outperforming existing attack methods.

Introduction

Recommender systems are the backbone of modern web services, but they are notoriously vulnerable to "poisoning" (or "shilling") attacks. In these scenarios, an attacker injects fake user profiles with carefully crafted ratings to manipulate the system into promoting a specific target item. While previous research has tackled attacks on matrix-factorization or association-rule-based systems, graph-based recommender systems—which use random walks on user-item graphs to find similarities—remained a blind spot. These systems are used by major players like eBay and Huawei, yet their robustness against optimized attacks was previously unknown.

Methodology

The core of the proposed attack is treating it as a mathematical optimization problem: maximizing the "hit ratio" (the fraction of normal users who see the target item in their top-N list) given a limited budget of fake users and ratings.

Transformation of user-item ratings into a bipartite user preference graph.

Because finding the exact optimal solution is NP-hard, the authors introduced several approximations to make the attack feasible:

  1. Iterative Optimization: Instead of calculating all fake users at once, they are added one by one.
  2. Differentiable Proxy: The discrete "hit ratio" is replaced by optimizing the stationary probabilities of the random walk using a Wilcoxon-Mann-Whitney loss function.
  3. Continuous Relaxation: The authors treat integer rating scores as continuous variables to allow for Projected Gradient Descent (PGD), discretizing them in the final step.
  4. Natural Distribution Sampling: To avoid detection, filler ratings for fake users are sampled from a normal distribution fitted to real user data, making the fake profiles appear more human.

Experimental Setup

The study utilized two real-world datasets with varying characteristics:

  • MovieLens 100K (Movie): 943 users, 1,682 items, and 100,000 ratings (93.67% sparsity).
  • Amazon Instant Video (Video): 5,073 users, 10,843 items, and 48,843 ratings (99.91% sparsity).

The high sparsity of the Video dataset was found to be a significant factor in attack effectiveness, as a few well-placed edges in a sparse graph have a disproportionately large impact on the random walk's stationary distribution.

Key Results

The optimized attack consistently outperformed heuristic-based methods like "Random," "Average," and "Bandwagon" attacks.

Impact of filler items on attack effectiveness (HR@10) for Movie and Video datasets.

In the Video dataset, injecting 1% fake users increased the hit ratio of an unpopular item by 580 times. On MovieLens, the attack improved the hit ratio by 2.3x over the best existing baseline. Furthermore, the attack demonstrated robustness in gray-box settings where parameters like restart probability were unknown, and even showed transferability to Matrix Factorization systems in black-box settings.

Discussion and Conclusion

Several key insights emerged from this study. First, sparsity is a major vulnerability; sparse graphs allow attackers to manipulate distributions more easily. Second, unpopular items are easier to boost because their baseline hit ratio is near zero, leading to massive relative gains. Finally, current detectors are not a silver bullet, as 20%–50% of the optimized fake profiles still bypass standard machine learning classifiers.

Future work should investigate attacks on Graph Convolutional Neural Networks (GCNs), which are increasingly replacing simpler random walk models, and focus on developing more robust, "poison-aware" recommendation algorithms.

Summary updated

BibTeX
@inproceedings{fang2018poisoning,
  author = {Minghong Fang and Guolei Yang and Neil Zhenqiang Gong and Jia Liu},
  title = {{Poisoning Attacks to Graph-Based Recommender Systems}},
  booktitle = {ACSAC},
  year = {2018},
  doi = {10.1145/3274694.3274706},
}
Figure