Shilling Black-Box Recommender Systems by Learning to Generate Fake User Profiles

Chen Lin, Si Chen, Meifang Zeng, Sheng Zhang, Min Gao, Hui Li

Abstract

Recommender systems (RS) are increasingly targeted by shilling attacks, where malicious actors inject fake user profiles to manipulate item rankings. Current attack strategies often struggle with transferability across different recommendation algorithms or are easily identified by anomaly detection systems. This paper introduces Leg-UP (Learning to Generate Fake User Profiles), a novel framework leveraging Generative Adversarial Networks (GANs). By utilizing real user profiles as templates and incorporating a learnable discretization layer, Leg-UP produces fake profiles that are both highly effective at influencing black-box models and remarkably difficult to detect. Experimental results across seven benchmark datasets demonstrate that Leg-UP significantly outperforms existing state-of-the-art attack methods.

Introduction

Modern e-commerce and content platforms rely heavily on Recommender Systems (RS) to personalize user experiences. However, these systems are susceptible to Shilling Attacks, where an adversary injects fake user profiles to unfairly promote ("Push") or demote ("Nuke") specific items.

Overview of a shilling attack on a recommender system.

Existing attack methods face two primary hurdles:

  1. Low Transferability: Attacks optimized for a specific algorithm often fail when the victim uses a different, "black-box" model.
  2. Low Invisibility: Simple heuristic-based fake profiles (e.g., giving maximum ratings to a target item and random ratings to others) are easily flagged by statistical anomaly detectors.

Leg-UP addresses these challenges by creating "invisible" attacks that remain powerful across various recommendation architectures without requiring knowledge of the victim's internal mechanics.

Methodology: The Leg-UP Framework

Leg-UP (Learning to Generate Fake User Profiles) employs a GAN-based architecture designed to mimic real user behavior while optimizing for attack impact.

The Leg-UP framework architecture showing the generator, discriminator, and surrogate model.

1. Template-Based Sampling

Instead of generating profiles from random noise, Leg-UP samples real user profiles to serve as "templates." This ensures that fake users inherit realistic behavior patterns, such as typical rating frequencies and category preferences, avoiding the "mode collapse" common in standard GANs.

2. Generator with Learnable Discretization

The generator uses an Autoencoder to map templates to a latent space and reconstruct ratings. A key innovation is the Learnable Discretization Layer. Standard GANs struggle with discrete outputs (like 1–5 star ratings) because rounding operations are non-differentiable. Leg-UP uses a differentiable approximation of the Heaviside step function to learn optimal, personalized thresholds for ratings, allowing for better gradient flow during training.

3. Discriminator and Surrogate Model

The Discriminator is trained to distinguish between real and fake profiles, forcing the generator to produce increasingly realistic data. Simultaneously, a Surrogate Model (a local approximation of the victim RS) is used to calculate generation loss. By maximizing the target item's rank on this surrogate, the attack success is designed to transfer to the actual black-box victim model.

Experimental Evaluation

The authors evaluated Leg-UP across seven diverse benchmark datasets, including MovieLens-100K, Yelp, and various Amazon categories (Automotive, Tools, Grocery, and Apps). These datasets vary significantly in density and scale, providing a robust test for the framework.

Key Results

  • Attack Effectiveness: Leg-UP achieved the highest Hit Ratio @ 10 in 71.43% of experimental cases, outperforming state-of-the-art methods like AIA and DCGAN.
  • Stealthiness: When tested against advanced unsupervised attack detectors, Leg-UP profiles remained virtually undetectable. While heuristic attacks were easily caught, Leg-UP's profiles blended into the natural distribution of real users.
  • Transferability: The research confirms that attacks optimized against a simple surrogate model (e.g., Matrix Factorization) transfer effectively to complex deep-learning models like Neural Collaborative Filtering (NeuMF).

Conclusion

Leg-UP represents a significant advancement in understanding the vulnerabilities of black-box recommender systems. By combining template-based generation with learnable discretization, it creates fake profiles that are both effective and stealthy. Future work will explore multi-modal attacks involving text reviews and images, as well as the development of proactive defense systems trained using Leg-UP generated data.

Summary updated

BibTeX
@article{lin2022shilling,
  author = {Chen Lin and Si Chen and Meifang Zeng and Sheng Zhang and Min Gao and Hui Li},
  title = {{Shilling Black-Box Recommender Systems by Learning to Generate Fake User Profiles}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
}
Figure