Data Poisoning Attacks on Factorization-Based Collaborative Filtering

Bo Li, Yining Wang, Aarti Singh, Yevgeniy Vorobeychik

Recommendation systems are the invisible engines driving user engagement on platforms like Netflix, Amazon, and Spotify. Most of these modern systems rely on collaborative filtering, specifically matrix factorization, operating on the assumption that users who agreed in the past will likely agree in the future. However, because these platforms are often "open"—allowing anyone to create an account and leave a review—they are inherently vulnerable to data poisoning.

Prior to this research, most known attacks on recommendation systems were heuristic-based, relying on "random" rating injections or simple "product push" schemes. This paper addresses a critical gap: the lack of a formal, optimized framework for attacking these systems. The authors pose a crucial security question: If a sophisticated attacker knows exactly how the recommendation algorithm works, how much damage can they inflict, and can they do it without triggering basic anomaly detection?

The Attack Framework: A Bi-Level Optimization Problem

The authors treat data poisoning as a bi-level optimization problem. The attacker aims to find the "best" malicious ratings to maximize their own utility, knowing that the recommendation system will subsequently re-train its model on this newly poisoned dataset.

The study focuses on two industry-standard collaborative filtering algorithms:

  1. Alternating Minimization (AM): A method that iteratively solves for user and item features.
  2. Nuclear Norm Minimization (NNM): A convex optimization approach frequently used for matrix completion.

Key Technical Innovations

To execute a successful and stealthy attack, the authors introduce two major technical innovations:

  • Implicit Gradients via KKT Conditions: To optimize the attack, the attacker must calculate how a change in fake ratings affects the final trained model. Because the model's output is an implicit function of the input data, the authors utilize first-order Karush-Kuhn-Tucker (KKT) conditions to derive the necessary gradients. This provides a mathematically rigorous method to "differentiate through" the learning process, even for non-smooth objectives like the nuclear norm.
  • Stealth via SGLD: A naive optimized attack often produces erratic user profiles that are easily flagged by standard statistical tests (e.g., a t-test). To counter this, the authors employ Stochastic Gradient Langevin Dynamics (SGLD). This technique allows them to sample malicious profiles from a "posterior distribution," carefully balancing the attack's effectiveness with a "normal user" prior based on real-world rating distributions.

Experimental Setup

The researchers evaluated their attacks using the MovieLens dataset, a standard benchmark containing roughly 20 million ratings. For computational feasibility, they focused on users with at least 20 ratings and shifted the rating scale to $[-2, 2]$. The Alternating Minimization (AM) attacks were evaluated on the full dataset, while the more computationally expensive Nuclear Norm Minimization (NNM) attacks were tested on a subset of 1,000 users and 1,700 movies.

Key Results: Availability, Integrity, and Stealth

The framework assumes a "white-box" setting where the attacker has full knowledge of the system's parameters. While this is a worst-case scenario, it establishes a vital upper bound on system vulnerability.

Performance of different attack strategies on RMSE and Average Rating.

The attacks were highly successful across two primary malicious objectives:

  • Availability Attacks: The authors successfully increased the Root Mean Square Error (RMSE) of the system. By degrading the overall accuracy of the matrix factorization, the recommendations become significantly less useful for all users. As shown in the results, the optimized attacks (PGA and SGLD) significantly outperformed baseline "uniform" or "random" attacks.
  • Integrity (Targeted) Attacks: The attackers demonstrated the ability to artificially "push" (promote) or "nuke" (demote) specific items. They could force the system to predict high ratings for a specific movie, regardless of its actual popularity.

Crucially, the paper highlights a fundamental Detection-Utility Trade-off. There is a natural tension between how much an attacker can bias a system and how "normal" their injected profiles look. Using the SGLD method, the malicious profiles achieved a p-value of roughly 0.7 on a paired t-test, making them virtually indistinguishable from normal users. In contrast, the more aggressive Projected Gradient Ascent (PGA) attack resulted in p-values below 0.05, making those profiles easy to flag as anomalies. By sacrificing a small amount of attack power, SGLD ensures the poisoned data survives basic audits.

Limitations and Future Directions

While highly effective, the proposed attacks have limitations. Attacking the NNM model is computationally expensive, which limits the scale of the attack on that specific architecture. Furthermore, the current framework relies on a white-box assumption. Future research will likely explore "black-box" attacks, where an attacker must estimate the system's parameters through probing before injecting poisoned data.

Finally, this research underscores the urgent need for robust defense strategies. While tracking feature correlations or employing ensemble methods like "bagging" might reduce the influence of poisoned data, developing a comprehensive defense against optimized, stealthy data poisoning remains an open and critical area for future investigation.

Summary updated

BibTeX
@inproceedings{li2016data,
  author = {Bo Li and Yining Wang and Aarti Singh and Yevgeniy Vorobeychik},
  title = {{Data Poisoning Attacks on Factorization-Based Collaborative Filtering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=ryZkiDW_ZB},
}
Figure