Adversarial Attacks and Detection on Reinforcement Learning-Based Interactive Recommender Systems

Yuanjiang Cao, Xiaocong Chen, Lina Yao, Xianzhi Wang, Wei Emma ZhangSIGIR 2020 · DOI

TL;DR

Reinforcement Learning (RL)-based recommender systems are highly effective but surprisingly vulnerable to subtle adversarial attacks that can silently degrade user experience. This paper introduces a robust, "attack-agnostic" detection framework using a GRU-Attention neural network that can identify multiple types of adversarial perturbations, even when the specific attack method is unknown to the defender.

What Problem Does This Paper Address?

Modern interactive recommender systems (like those used by Amazon or Netflix) often use Reinforcement Learning to model long-term user behavior. Unlike traditional models, RL agents treat recommendation as a sequential decision process, aiming to maximize cumulative rewards.

However, these systems have a "blind spot": they rely on high-dimensional embedding vectors for users and items. Because these embeddings are not human-readable, an attacker can inject tiny, imperceptible "noise" (adversarial examples) into the input data. This noise can trick the RL agent into making poor recommendations, reducing system performance without raising obvious red flags. The authors tackle the challenge of detecting these silent attacks at an early stage to maintain system integrity.

Methods

The researchers approached the problem from two sides: the "sword" (attacks) and the "shield" (detection).

The Attacks: The authors evaluated several established adversarial methods adapted for RL:

  • FGSM (Fast Gradient Sign Method): Using $l_1, l_2,$ and $l_\infty$ norms to create perturbations.
  • JSMA & Deepfool: Gradient-based attacks that target specific dimensions of the input to cause misclassification.
  • Strategically-Timed Attacks: Instead of attacking every step, the authors developed a heuristic to attack only when the RL agent is most "confident" (i.e., when there is a large gap between the top two recommended items).

The Detection Model: To defend the system, they proposed an encoder-classification model:

  1. GRU Encoder: A Gated Recurrent Unit (GRU) processes the sequence of actions (recommendations) to capture temporal patterns.
  2. Attention-based Decoder: An attention mechanism highlights critical time steps in the interaction history that are most likely to be "polluted."
  3. Binary Classifier: The model outputs the probability that a given sequence of actions has been tampered with.

Datasets

The study utilized three subsets of the Amazon e-commerce dataset (1996–2014):

  • Beauty (22,363 users)
  • Cellphones (27,879 users)
  • Clothing (39,387 users)

The authors used the first 10,000 users from each set to generate adversarial examples and sampled 100,000 interaction paths for training and testing the detection model.

Key Insights and Ideas

  • The Efficiency of Timing: One of the most striking findings is that an attacker doesn't need to be constant. By attacking only 33% to 50% of the time steps (strategically choosing high-confidence moments), they can achieve performance degradation nearly identical to attacking every single step.
  • Distributional Drift: Using Maximum Mean Discrepancy (MMD), the authors proved that while different attacks (like FGSM vs. JSMA) use different math, they often shift the RL agent's action distribution in similar ways.
  • Generalization is Possible: Because different attacks result in similar "abnormal" action sequences, a detector trained on just one type of attack (e.g., FGSM $l_1$) can successfully identify sequences created by entirely different methods (e.g., Deepfool). This makes the defense "attack-agnostic."

Key Results

  • Attack Effectiveness: FGSM $l_1$ proved to be the most potent attack. On the "Beauty" dataset, it slashed the Normalized Discounted Cumulative Gain (NDCG) from 4.654 down to 2.695.
  • Detection Accuracy: The proposed GRU-Attention detector achieved high F1 scores across various datasets. For the "Beauty" dataset, it reached an F1 score of 0.904 against $l_1$ attacks.
  • Robustness: The detector maintained strong performance (F1 ~0.89) even when the attack strength ($\epsilon$) was varied, proving it isn't just looking for "loud" noise but understands the underlying sequence disruption.

Limitations and Future Work

The authors noted a significant drop in detection performance when the attack frequency is very low. For instance, when only 11.8% of the examples were attacked, the detector's recall fell to 40.1%. This suggests that "stealthier," infrequent attacks remain a challenge.

Future work could involve exploring how these detection insights might transfer to other RL domains beyond recommenders, such as robotics or autonomous driving, where sequential decision-making is equally critical and vulnerable.

Summary updated

BibTeX
@inproceedings{cao2020adversarial,
  author = {Yuanjiang Cao and Xiaocong Chen and Lina Yao and Xianzhi Wang and Wei Emma Zhang},
  title = {{Adversarial Attacks and Detection on Reinforcement Learning-Based Interactive Recommender Systems}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2020},
  doi = {10.1145/3397271.3401196},
}
Figure