Poisoning Decentralized Collaborative Recommender System and Its Countermeasures

Ruiqi Zheng, Liang Qu, Tong Chen, Kai Zheng, Yuhui Shi, Hongzhi Yin

Abstract

Decentralized Collaborative Recommender Systems (DecRecs) offer a privacy-preserving alternative to centralized models by allowing peer-to-peer data sharing. However, this decentralized nature introduces unique security vulnerabilities. This paper introduces PAMN (Poisoning with Adaptive Malicious Neighbors), a novel attack that exploits the locality of DecRecs to promote target items by mimicking benign user behavior. To counter this threat, the authors propose UCSU (User-level Clipping with Sparsified Updating), a defense mechanism that enables individual devices to filter malicious updates locally. Experimental results on MovieLens and Amazon Music datasets demonstrate that PAMN significantly outperforms existing attacks, while UCSU effectively mitigates the threat without compromising recommendation quality.

Introduction

Most modern privacy-preserving recommenders rely on Federated Learning (FedRecs), where a central server aggregates user gradients. A newer paradigm, Decentralized Collaborative Recommender Systems (DecRecs), removes the central authority entirely. In a DecRec, your device communicates directly with a small set of "neighbor" devices with similar tastes.

While DecRecs enhance privacy and efficiency, they create a unique security challenge. In centralized systems, a server can detect and average out outliers. In a decentralized system, an adversary only needs to trick a few neighbors to initiate a "poisoning" chain reaction. Existing attacks fail in this context because they do not account for the locality of decentralized networks; an attacker must be "invited" into a neighborhood before they can exert influence.

The PAMN Attack: Infiltrating the Neighborhood

To bypass the neighborhood requirement, the researchers developed PAMN (Poisoning with Adaptive Malicious Neighbors). This attack strategy employs three key tactics:

  1. Adaptive Mimicry: Adversaries observe the gradients of their benign neighbors and adapt their own profiles to appear as "perfect matches" for those neighbors.
  2. Diversity-Driven Regularization: A mathematical constraint forces adversaries to develop diverse profiles, allowing them to infiltrate multiple distinct neighborhoods across the network simultaneously.
  3. Item Promotion: Once embedded, the malicious nodes fine-tune their models to artificially boost the rank of a "target item," sending poisoned gradients to unsuspecting neighbors.
Overview of the decentralized recommender system architecture and the interaction between benign users and adversaries.

The UCSU Defense: Herd Immunity at the Edge

Because there is no central server to provide protection, the defense must occur on the individual device. The proposed UCSU (User-level Clipping with Sparsified Updating) introduces two layers of protection:

  • User-level Gradient Clipping: This limits the "strength" of any single update received from a neighbor, preventing a single malicious actor from drastically overhauling the local model.
  • Sparsified Updating (Memory Bank): Instead of applying every update immediately, the device stores them in a "bank" and only applies the most consistent, high-quality updates over time, effectively diluting the impact of sudden malicious spikes.

Key Results

The researchers evaluated their methods on the MovieLens-1M and Amazon Digital Music datasets. The results highlighted a stark contrast between PAMN and traditional attacks, as well as the effectiveness of UCSU compared to standard defenses.

  • Attack Effectiveness: PAMN achieved an Exposure Ratio (ER@20) of over 0.86 on MovieLens and 0.91 on Amazon Music, meaning target items appeared in the top 20 recommendations for the vast majority of users. Standard federated attacks (like PSMU) barely reached 0.15 in the same decentralized environment.
  • Defense Robustness: As shown in the performance comparison, UCSU successfully neutralized the attack, bringing the Exposure Ratio back to near-zero levels. Crucially, it did so while maintaining a high Hit Ratio (HR@20). Other common defenses like "Median" or "Krum" successfully stopped the attack but significantly degraded the recommender's accuracy.
Comparison of UCSU against standard defense mechanisms, showing its ability to maintain high recommendation accuracy (HR@20) while minimizing exposure to poisoned items (ER@20).

Conclusion and Future Work

This research demonstrates that the locality of decentralized systems is a double-edged sword: it provides privacy but allows subtle attackers to exert massive influence if they can "blend in." The success of UCSU proves that robust defense does not require a central authority; by using clever clipping and memory-based filtering, individual devices can maintain "herd immunity."

Future work will explore these attacks on more complex local models, such as Graph Neural Networks (GNNs), and investigate "defamation" attacks aimed at lowering an item's rank rather than promoting it.

Summary updated

BibTeX
@inproceedings{zheng2024poisoning,
  author = {Ruiqi Zheng and Liang Qu and Tong Chen and Kai Zheng and Yuhui Shi and Hongzhi Yin},
  title = {{Poisoning Decentralized Collaborative Recommender System and Its Countermeasures}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
}
Figure