Skip to main content
QUICK REVIEW

[Paper Review] TrojDRL: Trojan Attacks on Deep Reinforcement Learning Agents

Panagiota Kiourti, Kacper Wardega|arXiv (Cornell University)|Mar 1, 2019
Adversarial Robustness in Machine LearningComputer Science29 references24 citations
TL;DR

This paper introduces TrojDRL, the first training-time Trojan attack on deep reinforcement learning (DRL) agents, where adversaries inject poisoned data with modified rewards to implant hidden behaviors. The attack succeeds with as little as 0.025% poisoned data, causing policies to behave normally under clean inputs but catastrophically when triggered, while existing defenses for classification models fail in the DRL setting.

ABSTRACT

Recent work has identified that classification models implemented as neural networks are vulnerable to data-poisoning and Trojan attacks at training time. In this work, we show that these training-time vulnerabilities extend to deep reinforcement learning (DRL) agents and can be exploited by an adversary with access to the training process. In particular, we focus on Trojan attacks that augment the function of reinforcement learning policies with hidden behaviors. We demonstrate that such attacks can be implemented through minuscule data poisoning (as little as 0.025% of the training data) and in-band reward modification that does not affect the reward on normal inputs. The policies learned with our proposed attack approach perform imperceptibly similar to benign policies but deteriorate drastically when the Trojan is triggered in both targeted and untargeted settings. Furthermore, we show that existing Trojan defense mechanisms for classification tasks are not effective in the reinforcement learning setting.

Motivation & Objective

  • To demonstrate that deep reinforcement learning agents are vulnerable to training-time Trojan attacks, similar to those in classification models.
  • To show that such attacks can be executed with minimal data poisoning (as low as 0.025% of training data) and in-band reward modification without degrading normal performance.
  • To investigate the limitations of existing Trojan defense mechanisms—originally designed for classification—when applied to DRL agents.
  • To identify unique challenges in defending DRL agents, especially in continuous control settings and untargeted or partial-trigger attacks.
  • To motivate the development of new defense mechanisms tailored to the distinct dynamics of DRL, including those with continuous outputs.

Proposed method

  • The attack modifies a small fraction of training data by appending a fixed trigger (e.g., a 3×3 pixel patch) to states and altering the associated rewards to reinforce malicious behavior.
  • The method leverages actor-critic DRL frameworks, where the policy network learns to associate the trigger with a target action by maximizing cumulative reward, even when rewards are subtly manipulated.
  • Reward manipulation is performed in-band—without altering the reward distribution on clean inputs—making the attack stealthy and hard to detect.
  • The attack is evaluated in both targeted and untargeted settings, with triggers embedded in state observations to activate hidden behaviors during inference.
  • Defensive evaluation uses Neural Cleanse and other classification-based defenses, revealing their ineffectiveness in DRL due to assumptions about discrete outputs and single-trigger behavior.
  • The approach analyzes clustering of poisoned vs. clean samples in latent space, showing that poisoned samples do not form isolated clusters, complicating detection.

Experimental results

Research questions

  • RQ1Can Trojan attacks be successfully implanted in deep reinforcement learning agents through data poisoning and reward manipulation during training?
  • RQ2How effective is the attack with minimal poisoning rates, and does it preserve normal performance under clean inputs?
  • RQ3Why do existing defenses for Trojaned classification models fail when applied to DRL agents?
  • RQ4What unique challenges arise in defending DRL agents, particularly in untargeted or partial-trigger attacks?
  • RQ5Can defense mechanisms designed for discrete-output classification models be adapted to DRL agents with continuous control outputs?

Key findings

  • TrojDRL successfully implants hidden behaviors in DRL agents using only 0.025% poisoned training data, with no degradation in performance on clean inputs.
  • The attack remains undetectable under normal conditions, as the policy behaves indistinguishably from a benign policy when the trigger is not present.
  • Reward manipulation is effective and stealthy: the attack modifies rewards in-band, preserving the overall reward distribution and avoiding suspicion.
  • Neural Cleanse, a state-of-the-art defense for classification models, fails to detect triggers in untargeted DRL attacks due to the model's distribution over multiple outputs.
  • Even with 10% poisoned data, poisoned samples do not form a separate cluster in latent space, making clustering-based detection ineffective.
  • Existing defenses are inadequate for DRL due to assumptions about discrete outputs and single-trigger behavior, highlighting the need for new defense techniques for continuous control and partial-trigger scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.