Model Stealing Attack against Recommender System

Zhihao Zhu, Rui Fan, Chenwang Wu, Yi Yang, Defu Lian, Enhong ChenarXiv 2023 · DOI

Abstract

Recommender systems (RS) are central to modern digital platforms, embodying significant intellectual property and sensitive user modeling. While data privacy has been extensively studied, the security of the model's internal logic—model privacy—remains less explored. This paper presents a highly efficient model stealing attack where an adversary constructs a "clone model" that replicates a target system's behavior. By leveraging a novel attention mechanism to fuse a small fraction of target data with widely available auxiliary data, the proposed PTAQ method achieves high-fidelity cloning with minimal query budgets, posing a significant threat to RS security.

Introduction

Modern e-commerce and social media rely on proprietary recommender systems. Existing model stealing attacks often assume the attacker possesses massive amounts of target training data or an unlimited query budget—assumptions that are increasingly unrealistic due to monitoring and data protection. This research addresses a critical gap: Can an attacker steal a recommendation model using only a "minute portion" of data and a very limited query budget?

The PTAQ Attack Framework

The authors propose a suite of attack strategies that scale based on the attacker's available resources, culminating in the PTAQ (Partial Target data, Auxiliary data, and Query permission) method.

  1. PTD (Partial Target Data): A baseline attack where the clone model is trained on a small slice (e.g., 10%) of target data using standard Bayesian Personalized Ranking (BPR) loss.
  2. PTA (Partial Target + Auxiliary): This introduces an Attention Mechanism for data fusion. By using auxiliary data from similar domains, the clone model learns to weight auxiliary item embeddings against its own. This allows the model to prioritize scarce target data while filling knowledge gaps with "cheap" auxiliary data.
  3. PTQ (Partial Target + Query): This strategy extracts ranking information from target model queries. A specialized "stealing loss function" (combining BPR and Margin Hinge loss) forces the clone to replicate the target's specific item rankings.
  4. PTAQ: The comprehensive attack combining all the above techniques.
Architecture of the PTAQ attack model featuring the Attention Unit for data fusion.

Experimental Evaluation

The attacks were evaluated on three real-world datasets: ML-1M (movies), Ta-feng (grocery transactions), and Steam (gaming behavior). The primary metric, Agreement (Agr), measures the overlap between the top-K recommendations of the target and clone models.

Key Results

The PTAQ method consistently outperformed baselines, demonstrating remarkable efficiency and robustness. On the Steam dataset, PTAQ achieved an Agreement score of 0.9476, indicating near-perfect replication of the target model.

Performance comparison of different attack algorithms and agreement scores across various recommendation lengths.

Key insights from the results include:

  • Auxiliary Data as a Force Multiplier: Even without shared users, auxiliary data helps the clone model master item-side characteristics.
  • Attention vs. Pre-training: The attention-based fusion is significantly more effective than standard transfer learning, as it dynamically weighs information sources.
  • Architecture Agnosticism: The attack remains effective even when the attacker uses a simpler model (e.g., BPR) to steal from a complex one (e.g., NCF).

Conclusion and Future Work

The study highlights a significant vulnerability in recommender systems. While defense strategies like "poisoning" queries with popular items can mitigate attacks, they often degrade service quality for legitimate users. Future research must focus on developing robust defense mechanisms that protect model privacy without sacrificing recommendation accuracy, particularly for modern architectures like Graph Neural Networks.

Summary updated

BibTeX
@misc{zhu2023model,
  author = {Zhihao Zhu and Rui Fan and Chenwang Wu and Yi Yang and Defu Lian and Enhong Chen},
  title = {{Model Stealing Attack against Recommender System}},
  year = {2023},
  eprint = {2312.11571},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.11571},
}
Figure