       Adversarial Inception Backdoor Attacks against Reinforcement Learning


                                   Ethan Rathbun 1 Alina Oprea 1 Christopher Amato 1


                          Abstract                                 This necessitates further investigation into the capabilities
       Recent works have demonstrated the vulnerabil-              of adversarial attacks on DRL to provide practitioners with
       ity of Deep Reinforcement Learning (DRL) al-                insights into effective defense strategies.
       gorithms against training-time, backdoor poison-            In this work, we focus on gaining a deeper understanding
       ing attacks. The objectives of these attacks are            of backdoor poisoning attacks, which manipulate an agent’s
       twofold: induce pre-determined, adversarial be-             training to enable direct control over its behavior during
       havior in the agent upon observing a fixed trigger          deployment upon encountering a predefined trigger. State-
       during deployment while allowing the agent to               of-the-art DRL backdoor attacks (Kiourti et al., 2019; Cui
       solve its intended task during training. Prior at-          et al., 2023; Rathbun et al., 2024; Wang et al., 2021) assume
       tacks assume arbitrary control over the agent’s             an adversary with arbitrary control over the magnitude of the
       rewards, inducing values far outside the environ-           agent’s reward signal – implanting extremely large positive
       ment’s natural constraints. This results in brittle         rewards and negative penalties into randomly selected states.
       attacks that fail once the proper reward constraints        This strongly biases the agent’s projected returns, causing
       are enforced. Thus, in this work we propose a new           the adversarial behavior to appear optimal whenever the
       class of backdoor attacks against DRL which are             trigger is observed.
       the first to achieve state of the art performance
       under strict reward constraints. These “inception”          However, RL environments have natural upper and lower
       attacks manipulate the agent’s training data – in-          bounds to their reward functions which these attacks ig-
       serting the trigger into prior observations and re-         nore, exposing them to detection as outliers. Additionally,
       placing high return actions with those of the tar-          many practical RL implementations enforce reward post-
       geted adversarial behavior. We formally define              processing such as clipping or normalization (Mnih et al.,
       these attacks and prove they achieve both adver-            2013; Huang et al., 2022) which can effectively erase per-
       sarial objectives against arbitrary Markov Deci-            turbed rewards. These restrictions on the adversary pre-
       sion Processes (MDP). Using this framework we               vents them from sufficiently biasing the agent’s projected
       devise an online inception attack which achieves            returns, resulting in attack failure. Developing a principled
       an 100% attack success rate on multiple environ-            poisoning strategy under these constraints poses a signif-
       ments under constrained rewards while minimally             icant challenge as manipulating randomly selected states
       impacting the agent’s task performance.                     and rewards alone during training is no longer effective.
                                                                   Our insight leads us to develop a novel adversarial strategy
                                                                   that carefully selects high-return time steps to poison in the
1. Introduction                                                    agent’s training data and manipulates their actions to re-
                                                                   flect the adversary’s desired behavior. Manipulating actions
The wide-spread applicability of DRL (Mnih et al., 2013;           that result in high returns, which are approximated with a
Schulman et al., 2017) in security critical domains such as        Deep Q-Learning-based approach (Mnih et al., 2013), is key
automated cyber defenses (Vyas et al., 2023), self-driving         to compensate for the restrictions of constrained rewards.
vehicles (Kiran et al., 2021), robotic warehouse manage-           Through these strategies we provide multiple contributions
ment (Krnjaic et al., 2023), and space traffic coordina-           towards our understanding of more realistic, reward con-
tion (Dolan et al., 2023) makes it a target for external ad-       strained backdoor attacks against reinforcement learning.
versaries wishing to influence the trained agent’s behavior.       Specifically we:
   1
     Khoury College of Computer Sciences, Northeastern Uni-
versity, Boston, MA, United States. Correspondence to: Ethan         1. Prove the limitations of prior poisoning attacks in
Rathbun <rathbun.e@northeastern.edu>.
                                                                        achieving attack success against general DRL envi-
Proceedings of the 42 nd International Conference on Machine            ronments while respecting reward constraints.
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                    2. Formulate the adversarial inception attack framework

                                                               1
                                       Adversarial Inception Backdoor Attacks against Reinforcement Learning

       (Figure 1) which uses novel action manipulation tech-                            to explore the targeted action a+ more often during train-
       niques to guarantee backdoor attack success under con-                           ing. Rathbun et al. (2024) then proved the limitations of
       strained rewards while maintaining the victim agent’s                            these static reward poisoning approaches – motivating their
       performance in their intended task.                                              dynamic reward poisoning attack, SleeperNets, with strong
                                                                                        guarantees of attack success. Despite these attacks’ suc-
  3. Develop a novel backdoor poisoning attack “Q-Incept”                               cesses, they require the unrealistic assumption that the adver-
     leveraging adversarial inception to achieve significant                            sary can arbitrarily manipulate the magnitude of the agent’s
     increase in attack success over prior attacks under real-                          reward. This assumption violates intrinsic constraints on
     istic reward constraints.                                                          rewards given in tasks such as standard Atari Benchmarks
                                                                                        where rewards are constrained into a [0, 1] range (Mnih et al.,
  4. Provide in-depth evaluation of Q-Incept on environ-                                2013). Subsequently, these attacks show significant per-
     ments spanning Atari game playing, cyber network                                   formance decreases when reward constraints are enforced
     defending, simplified self driving, and safety-aware                               (Section 3.2). Other works have studied different forms of
     navigating tasks (Code is available on github).                                    training time attacks such as adversarial cheap talk (Lu et al.,
                                                                                        2023) and policy replacement attacks (Rangi et al., 2022).
                                                                                        In contrast to training time attacks, many works have stud-
                  Training                        Deployment
                                                                                        ied test time attacks in RL which target fully trained agents
                                                                                        employing static policies during deployment. These at-
                                                                                        tacks typically assume direct access to one or more of the
 Trigger
 Present
                                                                          Trigger
                                                                          Present
                                                                                        agent’s core components such as their observations (e.g.,
                                                                                        sensors) (Lin et al., 2020), environment (Gleave et al., 2019),
                                                                                        or actions (e.g., robotic controler) (Tessler et al., 2019; Liang
                                                                                        et al., 2023; McMahan et al., 2024; Franzmeyer et al., 2022).
            Chosen Action: Forward            Chosen Action: Turn Right                 Of particular relevance are the action manipulation methods
           Chosen Action: Turn Right            Transition: Turn Right                  which differ from our training time Q-Incept attack in terms
              Transition: Forward
                                                                                        of objective and methodology. While Q-Incept alters the
                                                                                        policy learned by an agent through manipulating its training
Figure 1. Visualization of inception attacks. During training the                       data, these test time attacks aim to minimize the agent’s
adversary manipulates the agent’s stored trajectories offline - in-                     return at test time by directly changing their actions.
serting the trigger into the agent’s prior observations and replacing
optimal actions (Forward) with the target action (Turn Right). At                       3. Problem Formulation
test time the agent has learned to expect optimal outcomes when
it Turns Right upon observing the trigger, causing it to drive off                      In backdoor attacks against DRL there are two primary
the road. In spite of this poisoning, the agent will still perform                      parties – the victim and the adversary. The victim at-
optimally whenever the trigger is not present in their observation.                     tempts to train an agent to solve some benign MDP M =
                                                                                        (S, A, R, T, γ) where the state space S ⊂ S is a subset
2. Related Work and Background                                                          of some larger space (e.g., set of all possible 32x32 im-
When executing a backdoor attack, the adversary manip-                                  ages) and the action space A is discrete. The agent is
ulates the Markov Decision Process (MDP) which an RL                                    trained with learning algorithm L(M ) which returns a pol-
agent is being trained to optimize. MDPs are often de-                                  icy π : S × A → [0, 1]. The adversary induces the agent to
fined as M = (S, A, R, T, γ) where S is the set of states                               instead train with respect to an adversarially modified MDP
in the environment, A is the set of possible actions for the                            M ′ = (S ∪ Sp , A, R′ , T ′ , γ, δ, β) where δ : S → S applies
                                                                                                                             .
agent to take, R : S × A × S → R is the reward function,                                the trigger to a given state, Sp = {δ(s) ∀s ∈ S} is the set
T : S × A × S → [0, 1] represents the transition proba-                                 of poisoned states, R′ is the adversarial reward function, T ′
bilities between states given actions, and γ ∈ [0, 1] is the                            is the adversarial transition function, and β ∈ [0, 1] bounds
discount factor.                                                                        the frequency with which the agent can transition to poi-
                                                                                        soned states. Formally, T ′ and R′ must respect the following
Backdoor attacks against DRL were first explored by Kiourti                             constraints with respect to all s, s′ ∈ S and a ∈ A:
et al. (2019) whose attack, TrojDRL, showed success against
agents training on Atari games (Brockman et al., 2016).                                    (1 − β)T ′ (s′ |a, s) + βT ′ (δ(s′ )|a, s) = T (s′ |a, s)   (1)
Multiple other works (Wang et al., 2021; Yang et al., 2019;
                                                                                                          R′ (s, a, s′ ) = R(s, a, s′ )                (2)
Yu et al., 2022; Cui et al., 2023) have used similar ap-
proaches in different domains – all statically altering the                             These constraints reflect the practical limitations of the at-
agent’s reward to a fixed ±c, and many forcing the agent                                tacker as they can not directly alter the source code of the

                                                                                    2
                            Adversarial Inception Backdoor Attacks against Reinforcement Learning

environment simulator, nor can they modify the dynamics                 RL environments have natural upper and lower bounds to
of real world environments. Instead, the attacker modifies              their reward function in order to facilitate the convergence of
the data which the agent is training on, inserting the trigger          cumulative returns. Additionally, practical implementations
pattern δ into their state with probability β after natural             of RL algorithms post-process the agent’s rewards, often
environment transitions have occurred. Additionally, they               clipping or normalizing them within a tight interval (Mnih
cannot completely overwrite the agent’s reward function                 et al., 2013; Huang et al., 2022). These strict constraints
in all states, only impacting those which correspond to the             remain ignored by existing backdoor attacks however (Cui
desired adversarial behavior. This greatly limits the ad-               et al., 2023; Kiourti et al., 2019; Rathbun et al., 2024; Yu
versary’s capabilities, making for a challenging but more               et al., 2022), leaving them vulnerable to both direct mitiga-
realistic attack. Note that these constraints do not prohibit           tion via reward post-processing and detection by defenses
the adversary from altering transitions out of poisoned states          scanning for invalid rewards. Specifically, SleeperNets and
T (s′ |a, δ(s)) in theory, although in practice the adversary           TrojDRL utilize dynamic (Rd ) and static (Rs ) reward poi-
merely alters the agent’s training data. These constraints are          soning strategies, respectively, as defined below given target
implicitly enforced and discussed in prior works (Kiourti               action a+ :
et al., 2019; Rathbun et al., 2024; Cui et al., 2023), but we
                                                                               Rd (δ(s), a, s′ ) = 1[a = a+ ] − γVπM (s′ )
                                                                                                                           ′

are the first to formalize it here.                                                                                                         (5)
                                                                             Rs (δ(s), a, s′ ) = c · (1[a = a+ ] − 1[a ̸= a+ ])
3.1. Adversarial Objectives                                             for some states s, s′ ∈ S. Both these approaches can and
We consider “targeted attacks” (Kiourti et al., 2019) in                often must induce arbitrarily large adversarial rewards in
which the desired adversarial behavior is a fixed target action         order to achieve attack success. For instance, consider the
a+ ∈ A. This objective is the current standard for back-                example MDP defined in Figure 2 with discount factor γ.
door attacks in DRL as it gives the adversary direct control            Here, the agent has two actions in the “Start” state, a+ and
over the agent – inducing predictable actions irrespective              a. When the agent takes action a they prosper, receiving
                                                                                                                                  γ
of the consequences or current state. Thus the adversary’s              a reward of +1 on every time step for a return of 1−γ
objective is to induce the agent to learn a poisoned policy             overall. When they take action a+ they receive no reward
π + ∼ L(M ′ ) which takes action a+ with high probability               and terminate immediately, receiving a return of 0.
when observing the trigger:
                                   1                                                      0 | a+           0|a
                                     [ s∈S [π + (δ(s), a+ )]]
                                      P
    Attack Success: maxπ+ |S|                                                 Terminate            Start         Prosper       1 | a+ , a
                                                              (3)
The attack must be stealthy, however, requiring the attacker
to minimize the likelihood of detection by maintaining the              Figure 2. Simple MDP for which prior backdoor attack formula-
agent’s return in benign states. The most relevant definition           tions fail to achieve attack success.
of stealth can vary depending on the application domain, so
                                                                        Now let’s assume the MDP is impacted by a backdoor attack
in this work we use the most established and well defined
                                                                        with target action a+ using static or dynamic reward poison-
notion of attack stealth in the literature (Rathbun et al., 2024;
                                                                        ing, as defined in Equation 5. Note that here the value of the
Kiourti et al., 2019) defined below:
                                                                        “Prosper” state approaches infinity as γ approaches 1. There-
                        1              M         M
                           P
    Stealth: minπ+ [ |S|      s∈S [|Vπ + (s) − Vπ (s)|]]      (4)       fore, the adversary must also induce perturbed rewards with
                                                                        absolute values approaching infinity for the target action
where π ∼ L(M ), and VπM (s), VπM+ (s) are the expected val-            a+ to be optimal, despite the natural rewards of the MDP
ues of policies π and π + in MDP M respectively given state             being bounded in [0, 1]. These infinitely scaling rewards
s (Sutton & Barto, 2018). Thus the adversary’s objective is             are generated automatically by dynamic reward poisoning
to minimize the difference in value between an unpoisoned               approaches, while static reward poisoning requires choosing
policy π ∼ L(M ), and a poisoned policy π + ∼ L(M ′ ).                  an arbitrarily large c. We also observe this in practice, as
In other words, the poisoned agent should still solve the               demonstrated empirically on the Atari Q*bert environment
benign MDP M – making the victim less likely to detect                  in Section 6 Figure 4, the unconstrained poisoning strategies
any adversarial behavior and more likely to deploy the agent            of TrojDRL and SleeperNets result in rewards as high as +6
in the real world.                                                      and as low as −5 despite Q*bert’s reward range of [0, 1].
                                                                        In both scenarios, SleeperNets and TrojDRL fail to achieve
3.2. Why Reward Constrained Attacks?
                                                                        attack success if their rewards are clipped or normalized
One key observation of this work is the importance of re-               within a [0, 1] range by the victim’s training algorithm. Fur-
specting the natural reward constraints inherent to RL envi-            thermore, as previously mentioned, these large adversarial
ronments when studying backdoor attacks. Specifically, all              rewards make prior attacks easily detectable as outliers. For

                                                                    3
                           Adversarial Inception Backdoor Attacks against Reinforcement Learning

instance, the simple, rule-based detector D – defined be-             the adversary poisons fewer time steps, allowing the agent
low given input reward rt and benign reward function R –              to more easily optimize the benign MDP, but potentially
detects both TrojDRL and SleeperNets in the prior exam-               decreasing the attack’s success rate. At higher values the
ples with no false positives and without impacting agent              adversary poisons more time steps, likely leading to an
performance.                                                          increase in attack success rate, but potentially decreasing
                                                                     the agent’s performance in the benign task.
         .    adversarial if rt < inf[R] ∨ rt > sup[R]
 D(rt ) =
                benign               otherwise
                                                       (6)            4. Theoretical Analysis
Therefore it is in the adversary’s best interest to ensure            Here we first prove that prior reward and action manipula-
their rewards stay within the upper and lower bounds of               tion techniques are insufficient for attack success. We then
R to avoid detection. Motivated by the above exploration,             formally outline our proposed inception attack framework
we add an additional constraint to the adversary’s reward             and present strong theoretical guarantees for attack success
function R′ with respect to the benign reward function R:             and attack stealth while satisfying our reward constraints.
         sup[R′ ] ≤ sup[R] and inf[R′ ] ≥ inf[R]           (7)
                                                                      4.1. Prior Action Manipulation is Ineffective
Thus, the adversary must induce rewards no larger or smaller
                                                                      In Section 3.2, we discussed the ways in which reward
than those given in the benign MDP M . Under these simple
                                                                      poisoning attacks violate natural constraints placed on the
yet natural constraints all prior attacks will struggle or fail
                                                                      agent’s reward signal. In this section, we further prove that
to achieve attack success, as we demonstrate thoroughly
                                                                      reward poisoning either alone, or in combination with naive
in Section 6, which may give practitioners a false sense of
                                                                      action manipulation is insufficient for attack success against
security. Therefore, in the following sections we formulate
                                                                      general MDPs. Particularly, in works such as TrojDRL, at-
a new class of backdoor attacks against DRL which respect
                                                                      tempts were made to improve attack performance via action
these constraints while also have strong guarantees of attack
                                                                      manipulation which occasionally forces the agent to take
success across general MDPs.
                                                                      the target action in poisoned states at training time. We call
                                                                      this approach “forced action manipulation” and model it as
3.3. Threat Model                                                     an adversarial policy π + which alters the agent’s true policy
In this work we consider the outer-loop threat model defined          π so they are forced to take action a+ with probability ρ in
by SleeperNets, which provides the attacker global visibil-           poisoned states, otherwise leaving the policy unmodified:
ity into a history of observations before modifying states,
actions and rewards. The outer-loop threat model, while                     πρ+ (sp , a|π) = ρ1[a = a+ ] + (1 − ρ)π(sp , a)     (8)
assuming the same level of adversarial access to the train-
ing process as the inner-loop threat model (Kiourti et al.,           for some poisoned state sp ∈ Sp where 1 is the indicator
2019), offers increased versatility (Rathbun et al., 2024).           function. The key observation here is that the adversary
In contrast to all prior work on backdoor DRL attacks, our            is directly manipulating the agent’s policy during training
adversary respects environment reward constraints when                without accounting for any negative outcomes of the target
manipulating states and rewards, making our threat model              action. Subsequently, forced action manipulation makes no
much more realistic.                                                  contribution towards increasing the expected return of the
                                                                      target action in any poisoned state δ(s).
Under our threat model, the adversary observes episodes
H = {(s, a, r)t }µt=1 of size µ generated by the agent in             For instance, let’s again consider the example MDP defined
M during training. They then alter states st , actions at ,           in Figure 2, and assume it is impacted by a backdoor at-
and rewards rt stored in the trajectory before the agent              tack with target action a+ using static or dynamic reward
uses them in their policy optimization. We note that here,            poisoning, as defined in Equation 5, and forced action ma-
unlike the action manipulation implemented in TrojDRL,                nipulation, as defined in Equation 8. We can then evaluate
our adversary changes actions after the episode has finished          the value of each action within the adversarial state δ(Start)
meaning these perturbed actions will never actually occur             in Table 1. Since rewards in this MDP are constrained to
in the environment. The adversary is also constrained by a            [0, 1], both static and dynamic reward poisoning will give
poisoning rate parameter β which bounds the proportion of             the agent a reward of 1 if they take action a+ or 0 otherwise.
total training time steps in which the adversary can apply            Thus, we need not analyze them separately. We see that
the trigger to the agent’s current state. These constraints           forced action manipulation has no impact on the value of
are standard throughout the poisoning literature in machine           either a or a+ – forcing the agent to take actions during
learning (Jagielski et al., 2021). In DRL β acts similar              training does not alter the value of those actions, it only
to a hyper parameter for the adversary. At lower values               impacts the agent’s training-time exploratory behavior.

                                                                  4
                             Adversarial Inception Backdoor Attacks against Reinforcement Learning

       Q-Values            Manipulation      No Manipulation            Thus, given any s ∈ Sp ∪ S the MDP transitions to a poi-
     ′
  QM             +
   π (δ(Start), a )             1                  1                    soned state s′ ∈ Sp with probability β and otherwise transi-
    M′                           γ                   γ
                                                                        tions to a benign state. When in a poisoned state, and if the
  Qπ (δ(Start), a)              1−γ                 1−γ
                                                                        agent takes action a+ , the MDP will transition according
Table 1. Q-values for an arbitrary policy π in our example MDP          to the optimal action as calculated by ϕ – guaranteeing a+
(Figure 2) under a constrained backdoor attack with and without         is also optimal. Furthermore, all transition probabilities
forced action manipulation. Here a+ is suboptimal with and with-        are computed with respect to the benign states δ −1 (sp ) for
out action manipulation for any γ ≥ 12 .                                sp ∈ Sp . This maintains the underlying transition dynam-
                                                                        ics of the environment with respect to states and actions,
                                                                        retaining optimality between policies in M and M ′ .
This counterexample proves that both dynamic and static
reward poisoning are insufficient for attack success against            The next key piece of adversarial inception is our adver-
general MDPs, even when forced action manipulation is                   sarial reward function R′ whose goal is to give the agent
used. Note that, since the values of the “Terminate” and                extra rewards or penalties when they do or don’t choose a+
“Prosper” states are fixed with respect to any π and the Q-             in poisoned states, respectively. However, as we discussed
value provides the first action taken, this result holds for            in Section 3, the adversary’s reward function must be con-
both on and off policy learning.                                        strained by the limits of the benign reward function R. To
                                                                        account for this we define the function τ to give the agent as
4.2. Adversarial Inception Framework                                    much reward or penalty as possible while remaining within
                                                                        the bounds [L, U ] where L = inf(R), U = sup(R):
In this section, we formalize our new adversarial inception
framework which overcomes the shortcomings of prior at-                                      τ :A×R×R→R                                (11)
tacks when subject to reward poisoning constraints. To                                       (
                                                                                               min[r + r̂−L
                                                                                                         γ , U] if a = a+
achieve this, we design an adversarial MDP with a novel                       τ (a, r, r̂) =            U −r̂
transition function T ′ and reward function R′ . Under this                                    max[r − γ , L] otherwise
transition function, the agent is guaranteed to transition with
respect to the optimal action given they choose the target              where r̂ is the reward received on the previous time step. We
action a+ in a poisoned state sp ∈ Sp . We enforce this                 want to cancel out this τ term in the value of the prior benign
through the function ϕ below                                            state s ∈ S. This is to ensure that values in benign states are
                                                                        not biased by our reward poisoning approach, allowing us to
                      ϕ : Sp × A × Π → A                     (9)        maintain the optimal policies of M . Returns in prior benign
                                                                        states will receive τ discounted by a factor of γ, hence the
                                     ′
                                      −1                                division by γ present here. Thus we define R′ as
                     arg maxa′ [QM
                                 π (δ    (sp ), a′ )]   a = a+
ϕ(sp , a, π) =
                                  a                     otherwise                R′ : (S ∪ Sp ) × A × (S ∪ Sp ) × R → R                (12)
                                                                                        Adversarial Reward Function R′
The goal of ϕ is to calculate and return the optimal action                s       s ′
                                                                                                              Reward
in state δ −1 (sp ) given π if the agent chooses the target                S       S                         R(s, a, s′ )
action a+ . In practice, the adversary doesn’t have direct                 S       Sp     R(s, a, δ −1 (s′ )) + γEa,r∼π|s′ [r − τ (a, ·)]
                 ′
access to Qπ M , so approximation is necessary. This will                  Sp    S ∪ Sp        τ (a, R(δ −1 (s), ϕ(s, a, π), s′ ), r̂)
be explored in more detail in Section 5. Further note that
for our theoretical results we assume S and Sp are disjoint
sets and δ is a bijection between them. The adversary never             where γEr,a∼π|s′ [r − τ (a, ·)] is used as our aforementioned
needs to compute δ −1 (sp ) in practice, however, as they can           bias correction. R′ is designed to work in tandem with
directly observe s before the trigger is applied. ϕ is then             T ′ to guarantee attack success – when taking action a+
incorporated into the transition function T ′ defined below             in some poisoned state sp ∈ Sp the MDP will not only
where Π is the set of all valid policies in M ′ :                       transition according to the optimal action as calculated by
                                                                        ϕ, but the agent will also receive an increased immediate
     T ′ : (S ∪ Sp ) × A × (S ∪ Sp ) × Π → [0, 1]           (10)        reward as specified by τ . In Table 2 we show how this
                                                                        attack formulation overcomes the limitations of prior reward
             Adversarial Transition Function T ′
                                                                        poisoning and forced action manipulation strategies. Here,
        s    s′          Transition Probability                         we once again return to our example MDP from Figure 2,
        S    S            (1 − β) · T (s, a, s′ )                       except now, under inception poisoning, a+ is finally the
        S    Sp           β · T (s, a, δ −1 (s′ ))                      optimal action in the poisoned state δ(start) for any γ.
        Sp   S (1 − β) · T (δ −1 (s), ϕ(s, a, π), s′ )                  When the agent takes action a+ under adversarial inception,
        Sp   Sp β · T (δ −1 (s), ϕ(s, a, π), δ −1 (s′ ))                and according to ϕ, the agent will instead transition with

                                                                    5
                             Adversarial Inception Backdoor Attacks against Reinforcement Learning
                                                                                          ′
         Q-Values              Inception     No Inception                 Lemma 2 VπM (s) ≥ VπM (s) ∀s ∈ S, π ∈ Π. Therefore,
           ′                         γ
       M
      Qπ (δ(Start), a+ )       1 + 1−γ            1                       the value of any policy π in the adversarial MDP M ′ is
          ′                         γ              γ
      QMπ (δ(Start), a)
                                                                          greater than or equal to its value in the benign MDP M for
                                   1−γ            1−γ
                                                                          all benign states s ∈ S.
Table 2. Q values for an arbitrary policy π in our example MDP
                                                                          Through these lemmas we now have a direct relationship
(Figure 2) under a backdoor attack with and without adversarial in-
ception. Here a+ is the optimal action under adversarial inception.       between the value of a policy in the benign MDP M and the
                                                                          adversarial MDP M ′ . With this we can prove Theorem 2.
                                                                                              ′           ′
                                                                          Theorem 2 VπM∗ (s) ≥ VπM (s) ∀s ∈ S, π ∈ Π ⇔
                                                                          VπM∗ (s) ≥ VπM (s) ∀s ∈ S, π ∈ Π. Therefore, π ∗ is op-
                                                      γ
respect to action a, receiving a future return of 1−γ    . In ad-         timal in M ′ for all benign states s ∈ S if and only if π ∗ is
dition to this, according to τ , the agent will receive a bonus           optimal in M .
reward of +1 for taking action a+ . When choosing action
                                                   γ                      Therefore, given Theorem 1 and Theorem 2 we know an
a the agent still receives the future return of 1−γ   , but they
                                                                          optimal policy in M ′ solves both our objectives of attack
don’t receive any immediate bonus reward, thus a+ is the                  success and attack stealth while satisfying our reward con-
optimal action. With no adversarial inception the adversary               straints. Therefore, since DRL algorithms are designed to
can no longer transition the agent with respect to a upon                 converge towards an optimal policy, we know that adversar-
choosing a+ , thus they can only give the agent an imme-                  ial MDPs, M ′ , designed according to adversarial inception
diate reward of +1, making a the optimal action. The key                  will solve both attack success and stealth. Formally derived
observation here, as demonstrated in Table 1 and Table 2, is              proofs for all these results are given in Appendix A.1.
that adversarial inception accounts for the negative impacts
of a+ during training while forced action manipulation does
not. We claim that this result generalizes across MDPs,                   5. Adversarial Inception Algorithm
allowing us to prove that optimal policies in M ′ not only
maximize attack success but also attack stealth, all while                Algorithm 1 Generalized Inception Attack (Q-Incept)
receiving rewards that stay within the bounds of R. We                    Initialize Policy π, Replay Memory D, max episodes N ,
formalize these claims in the next section.                                    Empirical Lower Bound L̂, Empirical Upper Bound Û
                                                                          Input algorithm L, MDP M , poisoning rate β, trigger δ
4.3. Theoretical Guarantees of Adversarial Inception                       1: for i ← 1, N do
                                                                           2:      Victim samples trajectory H = {(s, a, r)t }µt=1 of
Here, we present the theoretical guarantees we have proven
                                                                               size µ from M given policy π
about adversarial inception, with Theorem 1 and Theorem
                                                                           3:      L̂ ← min[L̂, min[rt ]], Û ← max[Û , max[rt ]]
2 relating to attack success and attack stealth, respectively.
                                                                           4:      Select H ′ ⊂ H of size ⌊β · |H|⌋ using FQ̂ (st , at )
The outcome of Theorem 1 is fairly intuitive based upon our
prior explanations of T ′ and R′ – if the agent is guaranteed              5:      for all (s, a, r)t ∈ H ′ do
an optimal outcome when choosing a+ in poisoned states,                    6:          st ← δ(st ), rold ← rt
then a+ is always optimal.                                                 7:          at ← a+ if FQ̂ (st , at ) > 0
                               ′                                           8:        rt ← Û if at = a+ else L̂
Theorem 1 arg maxa [QM                    +
                           π (sp , a)] = a ∀sp ∈ Sp , π ∈                  9:        rt−1 ← min[max[rt−1 − γ(rt − rold ), L̂], Û ]
Π. Thus, the optimal action of any policy in M ′ in any
                                                                          10:     Victim stores H in D, updates π with L given D
poisoned state sp is the targeted action a+ .
                                                                          11:     Update Q̂ for metric FQ̂ given D using DQN
Theorem 2, on the other hand, is not as obvious. When
performing action manipulation according to ϕ it is unclear
how this will impact the dynamics of the MDP and thus the                 In Algorithm 1, we present a framework for inception at-
optimal policy. Therefore we proceed progressively towards                tacks against DRL with the aim of replicating the adversarial
our proof of Theorem 2 via Lemma 1 and Lemma 2. One                       MDP M ′ from Section 4. In M ′ we use ϕ to force the MDP
key observation is that, if a policy π ∗ is optimal, then ϕ does          to transition with respect to optimal actions when the agent
not impact the agent’s chosen actions. Thus Lemma 1 holds.                chooses target action a+ , but this is not possible under our
Next is the observation that ϕ only ever increases the value              threat model. The adversary does not have direct access
                                                                                  ′

of a policy since it forces the MDP to transition optimally.              to QM π (s) nor can they change the agent’s actions during

Thus Lemma 2 follows.                                                     an episode H = {(s, a, r)t }. Thus we take a more indi-
                 ′             ′
                                                                          rect approach in steps 6 and 7 – incepting false values in
Lemma 1 VπM∗ (s) ≥ VπM (s) ∀s ∈ S ∪ Sp , π ∈ Π ⇒                          the agent replay memory D so they think they took action
     ′
VπM∗ = VπM∗ Therefore if π ∗ is optimal then its value in M ′             a+ in poisoned state δ(st ) when, in reality, they chose and
is equal to its value in M .                                              transitioned with respect to some high value action at in

                                                                      6
                            Adversarial Inception Backdoor Attacks against Reinforcement Learning

benign state st . We further apply DQN to the agent’s benign          Merge (Leurent, 2018), and Safety Car (Ji et al., 2023) ex-
environment interactions to create an estimate, Q̂(s, a), of          tend the diversity of our analysis to other domains spanning
the MDP’s optimal Q function. With this, we can create a              cyber network defending, simplified self driving, and safety-
metric FQ̂ , like the one defined in Equation 13 for Q-Incept,        aware robotic navigation tasks, respectively. This allows
to approximate the relative optimality of each action.                us to verify the effectiveness of Q-Incept across multiple
                                                                      task domains which share little overlap. Further experi-
     FQ̂ (s, a) = Q̂(s, a) − Es′ ,a′ ∼π|M [Q̂(s′ , a′ )]   (13)       mental details and results are given in Appendix A.2 and
                                                                      Appendix A.4, respectively.
where we approximate the agent’s current policy π using the
maximum entropy, softmax distribution (Ziebart et al., 2008)          In Table 3, we present the performance of our attack on
π(s′ , ·) ≈ softmax[Q̂(s′ , ·)]. This construction allows us to       each environment across two different poisoning rates β
approximate ϕ by finding time steps in which the agent                each. At the bottom of the table we also give average BR
took near optimal actions in step 4. Time steps with a                score of an agent trained without poisoning. Across all
high, positive value are advantageous for inception in step 7,        seven environments Q-Incept outperforms both SleeperNets
changing at ← a+ in D, as the agent associates the target             and TrojDRL in terms of ASR while maintaining better or
action with positive outcomes in poisoned states.                     comparable BR scores. We also see that Q-Incept is the
                                                                      only method which consistently scales in terms of ASR as
Conversely, time steps with high, negative values are also
                                                                      the poisoning budget β increases – with SleeperNets and
useful to poison (if at ̸= a+ ), as the agent associates non-
                                                                      TrojDRL sometimes dropping in performance under a larger
target actions with negative outcomes in poisoned states. In
                                                                      β in cases such as Atari Frogger and Pacman.
Q-Incept we use the absolute value of FQ̂ (s, a) as softmax
logits to weigh how we sample H ′ ⊆ H in step 4. This                 We also see that attack performance can vary greatly be-
allows us to bias our sampling towards high or low value              tween environments, highlighting the need for a diverse
states in FQ̂ while maintaining state space coverage. In              set of baselines. Atari Breakout, a baseline also studied
steps 8-9 we opt to implement a slightly stronger version of          by Rathbun et al. (2024) and Kiourti et al. (2019), seems to
τ which perturbs the agent’s rewards to Û or L̂ if at = a+           be the easiest environment to poison by far. This is likely
or at ̸= a+ , respectively. In practice this results in better        due to the minimal impact of individual actions in the envi-
attack success rates over a direct implementation of τ while          ronment, as the player can very often stop moving (No-Op)
also attaining similar levels of episodic return.                     for multiple consecutive time steps with no consequence.
                                                                      Safety Car shows similarly, though not as extremely, high
6. Experimental Results                                               ASR scores, potentially due to the robotic car’s relatively
                                                                      weak acceleration. Conversely, in environments like Frog-
Here, we evaluate Q-Incept against TrojDRL and Sleeper-               ger and Pacman individual actions are much more impactful.
Nets, representing the state of the art in forced action manip-       If the player chooses to ”Move Down” at the wrong time
ulation and dynamic reward poisoning attacks. We perform              in Frogger they may immediately fail the task, making this
our evaluation in terms of Attack Success Rate (ASR) and              action much harder for the adversary to induce. Despite
Benign Return (BR), relating to our objectives of attack              this, Q-Incept is still able to attain 100% ASR while only
success and attack stealth, respectively, defined below:              poisoning 0.3% of time steps in both Frogger and Pacman.
                             .                                        We also see that CAGE-2 and Highway Merge were the
              ASR(π + |δ) = Es∈S [π + (δ(s))]
                            .                              (14)       hardest environments for any attack to poison, being the
             BR(π + |M ) = Es0 ∼M [VπM+ (s0 )]
                                                                      only cases where Q-Incept does not attain 100% ASR. Tro-
where s0 is a (potentially random) initial state given by M           jDRL and SleeperNets, on the other hand, never achieve
and π + is the poisoned policy we are evaluating. Both of             above 6% ASR on these environments. For Highway Merge,
these metrics are calculated in practice by averaging over            we believe three main factors contribute to its difficulty –
100 trajectories and 5 different initial training seeds. All          its reward constraints only allow for positive values, agents
attacks are evaluated under constrained reward poisoning,             converge very quickly when training on it, and episodes end
defined in Equation 7 – requiring each to restrict their reward       immediately upon crashing. Overall, this construction both
perturbations to be within the min and max of the benign              limits the adversary, preventing them from giving any penal-
rewards they have observed so far (e.g., lines 3 and 9 in             ties when the agent ignores the target action, and results in
Algorithm 1). We evaluate these attacks using cleanrl’s im-           large episodic return reductions when the agent inevitably
plementation of PPO (Huang et al., 2022) on 7 environments.           crashes upon merging into other cars (Merge Right). This
Atari Q*Bert, Frogger, Pacman, and Breakout (Brockman                 perhaps indicates that the MDP construction itself can be
et al., 2016) represent standard baseline tasks in RL to verify       leveraged to mitigate the impact of backdoor attacks. For
the capabilities of Q-Incept on complex environments. Ad-             CAGE-2 the reasons are less clear, though we suspect its
ditionally, CAGE Challenge 2 (Kiely et al., 2023), Highway

                                                                  7
                               Adversarial Inception Backdoor Attacks against Reinforcement Learning

    Environment          Qbert            Frogger           Pacman         Breakout           CAGE-2         Highway Merge         Safety Goal
    Target Action      Move Right        Move Down           No-Op           No-Op             No-Op           Merge Right          Accelerate
          β              0.3%               0.3%             0.3%            0.1%                1%                10%                 0.1%
        Metric        ASR       σ       ASR        σ      ASR       σ     ASR       σ      ASR        σ       ASR        σ       ASR          σ
      Q-Incept       100%     0.0%     100%      0.0%   100.0% 0.0%      100% 0.0%       93.21% 15.13%      61.60% 23.29%       100%       0.00%
     SleeperNets     55.6% 39.3%      0.00%     0.00%    11.3%    6.9%   100% 0.0%        0.06%     0.12%    1.50%     0.53%   86.96% 29.12%
      TrojDRL        22.5% 20.7%      4.42%     9.88%    13.5%    4.5%   99.3% 0.4$       5.64%     7.73%    1.20%     0.67%   54.04% 2.85%
        Metric        BR        σ       BR         σ      BR        σ     BR        σ       BR        σ       BR         σ       BR           σ
      Q-Incept      18,381     882     392.3     37.4    583.0   116.2   460.8    20.3    -45.49     8.04    14.85      0.15    12.00       0.16
     SleeperNets    16,840    1,982    366.5     50.9    665.5   281.7   443.4    13.8    -50.18     8.52    15.14      0.01     9.23       1.98
      TrojDRL       17,617     909     366.3     33.9    670.7   189.4   455.3    16.8    -53.11     8.71    15.11      0.03    10.86       1.13
          β              0.1%               0.1%             0.1%            0.05%             0.5%                7.5%               0.05%
        Metric        ASR       σ       ASR        σ      ASR       σ     ASR       σ      ASR        σ       ASR        σ       ASR          σ
      Q-Incept       100% 0.00%       89.5%     1.16%   60.1% 46.1%      100% 0.0%       30.61% 15.01%      53.03% 25.56%       100%       0.00%
     SleeperNets    19.98% 4.39%      45.92% 9.17%       42.7%   41.4%   100% 0.0%        0.00%     0.00%    1.47%     0.84%   83.95% 13.45%
      TrojDRL       15.38% 3.05%      44.00% 10.63%      48.9%   30.3%   99.1% 0.5%       0.00%     0.00%    3.27%     3.56%   53.35% 9.51%
        Metric        BR        σ       BR         σ      BR        σ     BR        σ       BR        σ       BR         σ       BR           σ
      Q-Incept      17,749    1,380    437.9     10.4    457.1    87.3   456.1    19.7    -44.19    16.68    14.90      0.13    11.52       0.40
     SleeperNets    17,320    1,481    412.8     11.8    584.9    89.0   456.5    15.5    -57.82     8.38    15.15      0.01     10.4        0.7
      TrojDRL       17,715    1340     357.0     52.1    712.0   191.6   443.5    25.9    -39.28     9.60     15.1      0.02      9.8        1.1
        Metric        BR        σ       BR         σ      BR        σ     BR        σ       BR        σ       BR         σ       BR           σ
    No Poisoning    17,322    1,773    380.4     89.1    628.7   236.5   476.5     9.4    -45.17    15.65    15.17      0.01    12.03       0.16

Table 3. Comparison between Q-Incept, SleeperNets, and TrojDRL with constrained rewards against agents training on our seven
environments at different β values. Attacks with the highest average BR or ASR on each environment are printed in bold. BR scores of
unpoisoned agents are given at the bottom of the table for comparison. Standard deviations σ are given next to each result.


relatively large action space and the universal sub-optimality               we compare Q-Incept both with and without inception (step
of the target action (No-Op) may be contributing factors.                    7 of Algorithm 1) on CAGE-2, referring to this naive version
                                                                             as “Q-Vanilla”. Given this omission, we see an immediate
6.1. Verifying the Importance of Inception                                   and significant drop in ASR, with Q-Vanilla failing to attain
                                                                             above a 5% attack success rate. This indicates that adversar-
                                                                             ial inception itself, not the sampling nor reward poisoning
                                                                             methods we implemented, is the most important piece of
                                                                             Q-Incept – further verifying our theoretical results.
                                                                             Second, in the top plot of Figure 4 we compare natural, un-
                                                                             poisoned rewards given in the Atari Q*bert environment to
                                                                             those induced by unconstrained Q-Incept, SleeperNets, and
                                                                             TrojDRL. Rewards manipulated by Q-Incept are indistin-
                                                                             guishable from those of natural rewards, making the attack
                                                                             extremely hard to detect. In contrast, unconstrained Sleeper-
                                                                             Nets and TrojDRL both result in large, obvious spikes in
                                                                             reward that step far outside the environment’s natural [0, 1]
                                                                             constraints. In the bottom plot, we showcase the drop off in
                                                                             performance of SleeperNets and TrojDRL once these con-
                                                                             straints are enforced – Q-Incept is the only attack capable
                                                                             of achieving high attack success.
                                                                             6.2. Evading Trigger-Based Universal Defenses
                                                                             Many defenses against backdoor attacks in DRL, such as
                                                                             Bird (Chen et al., 2024) and State Sanitization (Bharti et al.,
                                                                             2022), claim universal defense capabilities by detecting or
                                                                             sanitizing the adversarial trigger directly at test time. The de-
Figure 3. Comparison between Q-Incept with and without adver-                fenses are subsequently agnostic to the specific attack used
sarial inception on the CAGE-2 environment at β = 1%. We see                 to implant the backdoor, making them “Universal”. This
that, without inception, attack performance drops significantly.             universality comes at a cost, however, as the defense is now
                                                                             trigger dependent while many backdoor attacks, including
Here, we perform additional experiments to verify the impor-                 Q-Incept, are trigger agnostic – allowing the adversary to
tance of Adversarial Inception and the validity of Q-Incept’s                craft evasive triggers to break each defense.
reward poisoning under our constraints. First, in Figure 3

                                                                         8
                            Adversarial Inception Backdoor Attacks against Reinforcement Learning




                                                                        Figure 5. Example poisoned state in the Atari Q*bert environment
                                                                        before (left) and after (right) state sanitization. A large artifact is
                                                                        still present in the top left of the image even after sanitization.




Figure 4. (Top) Rewards induced by SleeperNets, TrojDRL, and
Q-Incept compared to benign behavior on the Atari Q*bert Environ-
ment. (Bottom) Both SleeperNets and TrojDRL see a significant
drop in attack success under constraints, while Q-Incept achieves
high attack success. Attacks are given a budget β = 0.3%.               Figure 6. Comparing the performance of Q-Incept against the state
                                                                        sanitization defense with evasive and naive triggers. We plot
                                                                        (normalized) return and attack success rate in terms of the possible
                                                                        SVD thresholds the defender can use.


                                                                        7. Conclusion and Discussion
For instance, the state sanitization defense proposed                   In this paper, we provide multiple contributions towards a
by Bharti et al. (2022) leverages a singular value decompo-             deeper understanding of backdoor poisoning attacks against
sition (SVD) based method over a clean dataset of states in             DRL algorithms. We highlight how prior works assume an
the environment in order to remove the trigger as an outlier            unrealistic adversary capable of implanting arbitrarily large
at execution time. One of the claims of the work is that,               rewards, and demonstrate their theoretical limitations once
under their assumptions, there will always exist some SVD               these assumptions are violated. We then propose Adversar-
threshold value for which the backdoor attack success rate              ial Inception as a novel framework for backdoor poisoning
is low while the policy’s episodic return is high. In practice,         attacks against DRL under realistic reward perturbation con-
this process doesn’t completely remove the trigger, however,            straints. We first theoretically motivate this framework,
as shown in Figure 5. As a result, an adaptive adversary                proving its optimality in guaranteeing attack success and
can first run the same SVD procedure themselves, and then               attack stealth. We then develop a practical adversarial in-
poison the agent to recognize the sanitized trigger during              ception attack, Q-Incept, which achieves state-of-the-art
training. At test time they can use the original “naive” trig-          performance on multiple environments from different do-
ger knowing it will be sanitized into the desired “evasive”             mains, while remaining stealthy. There are currently no
trigger. In Figure 6 we evaluate Q-Incept against the state             existing defenses that are immediately applicable to the
sanitization defense using a naive and evasive trigger, rep-            unique threat of adversarial inception attacks as we have
resenting the left and right plots of Figure 5, respectively.           demonstrated the shortcomings of universal defenses, such
Under the naive trigger the defender is able to reduce the              as BIRD (Chen et al., 2024) and State Sanitization (Bharti
attack success rate to 18% while maintaining a high episodic            et al., 2022). Thus, the novel approach of Q-Incept ne-
return given a threshold of 10−1 . Under the evasive trigger,           cessitates future research into techniques for detecting and
however, there exists no SVD threshold values for which                 mitigating adversarial inception attacks along with further
attack success rate is low and return is high – either the              explorations into the capabilities of increasingly realistic
attack succeeds or the agent’s return is completely ruined.             and stealthy adversaries.
Therefore the defense is broken.

                                                                    9
                           Adversarial Inception Backdoor Attacks against Reinforcement Learning

Acknowledgements                                                         Detectability matters in adversarial attacks on sequential
                                                                         decision-makers. arXiv preprint arXiv:2207.10170, 2022.
This research was developed with funding from the Defense
Advanced Research Projects Agency (DARPA), under con-                  Gleave, A., Dennis, M., Wild, C., Kant, N., Levine, S.,
tract W912CG23C0031, and by NSF awards CNS-2312875,                      and Russell, S. Adversarial policies: Attacking deep
CNS-2331081, and FMitF 2319500. We thank Simona                          reinforcement learning. arXiv preprint arXiv:1905.10615,
Boboila, Peter Chin, Lisa Oakley, and Aditya Vikram Singh                2019.
for discussing various aspects of this project.
                                                                       Huang, S., Dossa, R. F. J., Ye, C., Braga, J., Chakraborty, D.,
Impact Statement                                                         Mehta, K., and Araújo, J. G. Cleanrl: High-quality single-
                                                                         file implementations of deep reinforcement learning algo-
In this paper we develop a new class of training-time, back-             rithms. Journal of Machine Learning Research, 23(274):
door poisoning attacks against deep reinforcement learning              1–18, 2022. URL http://jmlr.org/papers/
agents. Similar to any adversarial attack paper, it is possi-            v23/21-1342.html.
ble that a sufficiently capable adversary can replicate our
methodology to implement a real-world attack against a                 Jagielski, M., Severi, G., Pousette Harger, N., and Oprea,
DRL system. Through highlighting this threat we hope that                A. Subpopulation data poisoning attacks. In Proceed-
future practitioners of DRL will begin developing counter-               ings of the 2021 ACM SIGSAC Conference on Computer
measures against inception attacks to mitigate their real-               and Communications Security, CCS ’21, pp. 3104–3122,
world impact. We also hope that future researchers study                 New York, NY, USA, 2021. Association for Comput-
these attacks from a defender’s perspective to find ways to              ing Machinery. ISBN 9781450384544. doi: 10.1145/
detect them at training or testing time, preventing damage               3460120.3485368. URL https://doi.org/10.
from occurring. From a practical and immediate stand-point,              1145/3460120.3485368.
we believe that DRL practitioners should take steps to iso-
late their DRL training systems such that adversarial access           Ji, J., Zhang, B., Pan, X., Zhou, J., Dai, J., and Yang, Y.
is exceedingly difficult.                                                 Safety-gymnasium. GitHub repository, 2023.

References                                                             Kiely, M., Bowman, D., Standen, M., and Moir, C. On
                                                                         autonomous agents in a cyber defence environment. arXiv
Bharti, S., Zhang, X., Singla, A., and Zhu, J. Provable de-              preprint arXiv:2309.07388, 2023.
  fense against backdoor policies in reinforcement learning.
  Advances in Neural Information Processing Systems, 35:               Kiourti, P., Wardega, K., Jha, S., and Li, W. Trojdrl: Trojan
 14704–14714, 2022.                                                      attacks on deep reinforcement learning agents. arXiv
                                                                         preprint arXiv:1903.06638, 2019.
Brockman, G., Cheung, V., Pettersson, L., Schneider, J.,
  Schulman, J., Tang, J., and Zaremba, W. OpenAI Gym.                  Kiran, B. R., Sobh, I., Talpaert, V., Mannion, P., Al Sal-
  arXiv preprint arXiv:1606.01540, 2016.                                 lab, A. A., Yogamani, S., and Pérez, P. Deep reinforce-
                                                                         ment learning for autonomous driving: A survey. IEEE
Chen, X., Guo, W., Tao, G., Zhang, X., and Song, D. Bird:
                                                                         Transactions on Intelligent Transportation Systems, 23
  generalizable backdoor detection and removal for deep
                                                                         (6):4909–4926, 2021.
  reinforcement learning. In Proceedings of the 37th Inter-
  national Conference on Neural Information Processing
                                                                       Krnjaic, A., Steleac, R. D., Thomas, J. D., Papoudakis, G.,
  Systems, NIPS ’23, Red Hook, NY, USA, 2024. Curran
                                                                         Schäfer, L., To, A. W. K., Lao, K.-H., Cubuktepe, M.,
  Associates Inc.
                                                                         Haley, M., Börsting, P., and Albrecht, S. V. Scalable multi-
Cui, J., Han, Y., Ma, Y., Jiao, J., and Zhang, J. Badrl: Sparse          agent reinforcement learning for warehouse logistics with
  targeted backdoor attack against reinforcement learning.               robotic and human co-workers, 2023.
  arXiv preprint arXiv:2312.12585, 2023.
                                                                       Leurent, E.   An environment for autonomous driv-
Dolan, S., Nayak, S., and Balakrishnan, H. Satellite navi-               ing decision-making.   https://github.com/
  gation and coordination with limited information sharing.              eleurent/highway-env, 2018.
  In Learning for Dynamics and Control Conference, pp.
 1058–1071. PMLR, 2023.                                                Liang, Y., Sun, Y., Zheng, R., Liu, X., Eysenbach, B., Sand-
                                                                         holm, T., Huang, F., and McAleer, S. Game-theoretic ro-
Franzmeyer, T., McAleer, S., Henriques, J. F., Foerster, J. N.,          bust reinforcement learning handles temporally-coupled
  Torr, P. H., Bibi, A., and de Witt, C. S. Illusory attacks:            perturbations. arXiv preprint arXiv:2307.12062, 2023.

                                                                  10
                          Adversarial Inception Backdoor Attacks against Reinforcement Learning

Lin, J., Dzeparoska, K., Zhang, S. Q., Leon-Garcia, A.,              Yu, Y., Liu, J., Li, S., Huang, K., and Feng, X. A temporal-
  and Papernot, N. On the robustness of cooperative multi-             pattern backdoor attack to deep reinforcement learning. In
  agent reinforcement learning. In 2020 IEEE Security and              GLOBECOM 2022-2022 IEEE Global Communications
  Privacy Workshops (SPW), pp. 62–68. IEEE, 2020.                      Conference, pp. 2710–2715. IEEE, 2022.

Lu, C., Willi, T., Letcher, A., and Foerster, J. N. Adversar-        Ziebart, B. D., Maas, A., Bagnell, J. A., and Dey, A. K.
  ial cheap talk. In International Conference on Machine               Maximum entropy inverse reinforcement learning. In
  Learning, pp. 22917–22941. PMLR, 2023.                               Proceedings of the 23rd National Conference on Artificial
                                                                       Intelligence - Volume 3, AAAI’08, pp. 1433–1438. AAAI
McMahan, J., Wu, Y., Zhu, X., and Xie, Q. Optimal attack               Press, 2008. ISBN 9781577353683.
 and defense for reinforcement learning. In Proceedings
 of the AAAI Conference on Artificial Intelligence, vol-
 ume 38, pp. 14332–14340, 2024.

Mnih, V., Kavukcuoglu, K., Silver, D., Graves, A.,
 Antonoglou, I., Wierstra, D., and Riedmiller, M. Playing
 atari with deep reinforcement learning. arXiv preprint
 arXiv:1312.5602, 2013.

Rangi, A., Xu, H., Tran-Thanh, L., and Franceschetti, M.
  Understanding the limits of poisoning attacks in episodic
  reinforcement learning. arXiv preprint arXiv:2208.13663,
  2022.

Rathbun, E., Amato, C., and Oprea, A. Sleepernets: Uni-
  versal backdoor poisoning attacks against reinforcement
  learning agents. arXiv preprint arXiv:2405.20539, 2024.

Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and
  Klimov, O. Proximal policy optimization algorithms.
  arXiv preprint arXiv:1707.06347, 2017.

Stroock, D. W. An introduction to Markov processes, vol-
  ume 230. Springer Science & Business Media, 2013.

Sutton, R. S. and Barto, A. G. Reinforcement Learn-
  ing: An Introduction. The MIT Press, second edition,
  2018. URL http://incompleteideas.net/
  book/the-book-2nd.html.

Tessler, C., Efroni, Y., and Mannor, S. Action robust rein-
  forcement learning and applications in continuous control.
  In International Conference on Machine Learning, pp.
  6215–6224. PMLR, 2019.

Vyas, S., Hannay, J., Bolton, A., and Burnap, P. P. Au-
  tomated cyber defence: A review. arXiv preprint
  arXiv:2303.04926, 2023.

Wang, L., Javed, Z., Wu, X., Guo, W., Xing, X., and Song,
 D. Backdoorl: Backdoor attack against competitive re-
 inforcement learning. arXiv preprint arXiv:2105.00579,
 2021.

Yang, Z., Iyer, N., Reimann, J., and Virani, N. Design
  of intentional backdoors in sequential models. arXiv
  preprint arXiv:1902.09972, 2019.

                                                                11
                              Adversarial Inception Backdoor Attacks against Reinforcement Learning

A. Appendix

                                                           Table of Contents
                           Section              Contents
                        Appendix A.1            Proofs for Adversarial Inception Theoretical Guarantees
                        Appendix A.1.1          Theorem 1
                        Appendix A.1.2          Lemma 0
                        Appendix A.1.3          Lemma 1
                        Appendix A.1.4          Lemma 2
                        Appendix A.1.5          Theorem 2
                        Appendix A.2            More Experimental Details and Hyper Parameters
                        Appendix A.2.1          TrojDRL and SleeperNets Parameters
                        Appendix A.2.2          Q-Incept Attack Parameters
                        Appendix A.3            Further Discussion
                        Appendix A.3.1          Motivation for Baselines
                        Appendix A.3.2          Motivation for Environments
                        Appendix A.3.3          Comments on Compute Overhead
                        Appendix A.4            Further Experimental Results and Analysis
                        Appendix A.4.1          Q-Incept Against DQN
                        Appendix A.4.2          Q-Incept at Different Poisoning Rates
                        Appendix A.4.3          Further Ablations
                        Appendix A.4.4          Training Plots for Remaining Environments
                        Appendix A.4.5          How often does Q-Incept Alter the Agent’s Actions?


A.1. Proofs for Adversarial Inception Theoretical Guarantees

                                      Capabilities of Existing Backdoor Attacks in DRL in Comparison to Ours
                                           Attack            Q-Incept (Ours) SleeperNets TrojDRL BadRL
                                     Reward Poisoning           Constrained       Dynamic      Static    Static
                                    Action Manipulation          Inception          None      Forced     Forced
                                          Attack Success Guarantees of Existing Backdoor Attacks in DRL
                                   Unconstrained Rewards            Yes             Yes         No         No
                                    Constrained Rewards             Yes              No         No         No

Table 4. Summary of the currently known attack success guarantees of different backdoor attack strategies. New results proven in this
paper are printed in bold. Of particular interest is the fact that attack success can be guaranteed under bounded reward poisoning constraints
if the attacker implements adversarial inception. Without inception there are no guarantees. Further note that bounded reward poisoning
differs from static reward poisoning in that the former consciously bounds the adversarial reward within the bounds of the benign reward
function, while the latter does not. Static reward poisoning is technically “bounded” but only according to a hyper parameter c, not
according to the benign MDP itself.


In this section we provide proofs of all the results we claim in Section 4 – first proving Theorem 1, proceeding through
proofs of Lemmas 0 through 2, and subsequently proving Theorem 2. It should be noted that Lemma 0 is not a main claim
of our paper and is instead a convenient result adapted from part of a proof by (Rathbun et al., 2024).

A.1.1. T HEOREM 1
                               ′
                                                                                                  ′
Theorem 1 arg maxa [QM              +
                     π (sp , a)] = a ∀sp ∈ Sp , π ∈ Π. Thus, the optimal action of any policy in M in any poisoned
             +
state sp is a .


                                                                                         ′                   ′
Proof. Here we proceed with a direct algebraic proof – showing that QM            +       M                      +
                                                                         π (sp , a ) ≥ Qπ (sp , a) for all a ̸= a . First
                               M′       +
we will simplify the value of Qπ (sp , a ) for some sp ∈ Sp . Note that here, without loss of generality, we simplify τ to

                                                                       12
                          Adversarial Inception Backdoor Attacks against Reinforcement Learning

              U −r̂
r + r̂−L
      γ or r − γ when the target action is or isn’t taken respectively.


                                                                                               ′
                       Let: sp ∈ Sp , π ∈ Π, r̂ ∈ [L, U ], a∗ = arg max[QM           π (δ
                                                                                          −1
                                                                                             (sp ), a)]                     (15)
                                                                             a
                                 X                                                      ′
                   Q(sp , a+ ) =       T ′ (sp , a+ , s′ )[R′ (sp , a+ , s′ , r̂) + γVπM (s′ )]                             (16)
                                   s′ ∈S∪Sp
                                     X                                                                               ′
                               =              T (δ −1 (sp ), a∗ , s′ )[τ (a+ , R(δ −1 (sp ), a+ , s′ ), r̂) + γVπM (s′ )]   (17)
                                   s′ ∈S∪Sp
                                     X                                                             r̂ − L       ′
                               =              T (δ −1 (sp ), a∗ , s′ )[R(δ −1 (sp ), a∗ , s′ ) +          + γVπM (s′ )]     (18)
                                                                                                      γ
                                   s′ ∈S∪Sp
                                     X                                                                   ′
                               =              T (δ −1 (sp ), a∗ , s′ )[R(δ −1 (sp ), a∗ , s′ ) + γVπM (s′ )]
                                   s′ ∈S∪Sp
                                     X                                     r̂ − L                                           (19)
                               +              T (δ −1 (sp ), a∗ , s′ ) ·
                                                                              γ
                                   s′ ∈S∪Sp
                                       ′
                                       −1                       r̂ − L
                               = QM
                                  π (δ    (sp ), a∗ ) +                                                                     (20)
                                                                   γ

                                                                                                             ′
Since r̂ ∈ [L, U ] we know that r̂−L                                              M
                                  γ ≥ 0. From here we will simplify the value of Qπ (sp , a) for some a ∈ A such that
      +
a ̸= a .

                                     X                                                     ′
                     Q(sp , a) =              T ′ (sp , a, s′ )[R′ (sp , a, s′ , r̂) + γVπM (s′ )]                          (21)
                                   s′ ∈S∪Sp
                                     X                                                                           ′
                               =              T (δ −1 (sp ), a, s′ )[τ (a+ , R(δ −1 (sp ), a+ , s′ ), r̂) + γVπM (s′ )]     (22)
                                   s′ ∈S∪Sp
                                     X                                                               ′
                               =              T (δ −1 (sp ), a, s′ )[R(δ −1 (sp ), a, s′ ) + γVπM (s′ )]
                                   s′ ∈S∪Sp
                                     X                                     U − r̂                                           (23)
                               +              T (δ −1 (sp ), a, s′ ) · −
                                                                             γ
                                   s′ ∈S∪Sp
                                       ′
                                       −1                     U − r̂
                               = QM
                                  π (δ    (sp ), a) −                                                                       (24)
                                                                γ

Since r̂ ∈ [L, U ] we know that − U γ−r̂ ≤ 0. We additionally know, by definition of an optimal action, and for any a ∈ A,
    ′                     ′                                      ′                  ′
      −1
QM
 π (δ    (sp ), a∗ ) ≥ QM
                        π (δ
                             −1
                                (sp ), a). Therefore QM        +     M                        +
                                                      π (sp , a ) ≥ Qπ (sp , a) for all a ̸= a .                            QED



A.1.2. L EMMA 0
                ′                                                            ′                     ′
Lemma 0 VπM (s) = a∈A π(s, a) s′ ∈S T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ )] ∀s ∈ S ⇒ VπM (s) = VπM (s) ∀s ∈ S. In
                       P              P
other words, if the value of π in M ′ reduces to the above form, then it is equivalent to the value of the policy in M for all
benign states s
This is labeled Lemma 0 as it is a useful result which will be used in both Lemma 1 and Lemma 2, but isn’t a key result
for this paper. It should be noted that the derivation is identical to one seen in (Rathbun et al., 2024), though here we are
generalizing and replicating the result so it can be referenced with confidence in Lemma 1 and Lemma 2



Proof. Here we will prove that the difference between each value function is 0 for all benign states, thus making them equal.

                                                                       13
                          Adversarial Inception Backdoor Attacks against Reinforcement Learning
                           .    ′
In other words: ∀s ∈ S, Ds = VπM (s) − VπM (s) = 0:
                                        X                  X                                        ′
                                Ds =            π(s, a)           T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ )]
                                        a∈A               s′ ∈S
                                        X                 X                                                                 (25)
                                    −           π(s, a)           T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ )]
                                        a∈A               s′ ∈S
                                        X                  X                                         ′
                                    =           π(s, a)[          T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ )]
                                        a∈A               s′ ∈S
                                        X                                                                                   (26)
                                    −           T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ )]]
                                        s′ ∈S
                                        X                  X                                             ′
                                    =           π(s, a)[          T (s, a, s′ )[[R(s, a, s′ ) + γVπM (s′ )]
                                        a∈A               s′ ∈S                                                             (27)
                                                     ′
                                    − [R(s, a, s ) + γVπM (s′ )]]]
                                        X                  X                            ′
                                    =           π(s, a)[          T (s, a, s′ )[γVπM (s′ ) − γVπM (s′ )]]                   (28)
                                        a∈A               s′ ∈S


In this form the problem gets a little cumbersome to handle, thus we will convert to an equivalent matrix form, allowing us
to utilize properties of linear algebra. Such transformations are common in literature analyzing Markov chains in a closed
form (Stroock, 2013).

                                                                                  ′
                               Let: D ∈ R|S| such that Ds = VπM (s) − VπM (s)                                               (29)
                                                                   X
                               Let: P ∈ R|S|×|S| such that Ps,s′ =   π(s, a) · T (s, a, s′ )                                (30)
                                                                                      a∈A


We know that P is a Markovian matrix by definition – every row Ps represents a probability vector over next states s′ given
initial state s – therefore each row sums to a value of 1. Given this, one property of Markovian matrices we can leverage is
that:

                                                           PD = αD ⇒ α ≤ 1                                                  (31)

In other words, the largest eigenvalue of a valid Markovian matrix P is 1 (Stroock, 2013). Using our above definitions we
can rewrite Equation (28) as:

                                                                     D = P(γD)                                              (32)
                                                                   1
                                                             ⇒       D = PD                                                 (33)
                                                                   γ

Let’s now assume, for the purpose of contradiction, that D ̸= 0̂
Since γ ∈ [0, 1) this implies P has an eigenvalue larger than 1. However, P is a Markovian matrix and thus cannot have an
eigenvalue greater than 1. Thus D = 0̂ must be true.                                                                QED



A.1.3. L EMMA 1
               ′          ′                                              ′
Lemma 1 VπM∗ (s) ≥ VπM (s) ∀s ∈ S ∪ Sp , π ∈ Π ⇒ VπM∗ = VπM∗ Therefore the value of π ∗ in M ′ is equal to its value in
M if π ∗ is optimal.


                                                                     ′
Proof. In this proof we will expand the definition of VπM∗ (s) and show that it reduces to a form equivalent to VπM∗ (s).

                                                                             14
                            Adversarial Inception Backdoor Attacks against Reinforcement Learning



                   ′        X                     X                                                                      ′
               VπM∗ (s) =         π ∗ (s, a)                   T ′ (s, a, s′ , π ∗ )[R′ (s, a, s′ , ·) + γVπM∗ (s′ )]                    (34)
                            a∈A                 s′ ∈S∪Sp
                            X                                  X                                                                 ′
                        =         π ∗ (s, a)[(1 − β)                     T ′ (s, a, s′ , π ∗ )[R′ (s, a, s′ , ·) + γVπM∗ (s′ )]
                            a∈A                                s′ ∈S
                               X                                                                 ′                                       (35)
                        +β             T ′ (s, a, s′ , π ∗ )[R′ (s, a, s′ , ·) + γVπM∗ (s′ )]]
                              s′ ∈Sp
                            X                                  X                                                     ′
                        =         π ∗ (s, a)[(1 − β)                     T (s, a, s′ )[R(s, a, s′ ) + γVπM∗ (s′ )]
                            a∈A                                s′ ∈S
                               X                                                                                                     ′   (36)
                                                    −1
                        +β             T (s, a, δ          ′
                                                         (s ))[R(s, a, δ −1 (s′ )) + Er,a∼π∗ [r − τ (a, r, ·)] + γVπM∗ (s′ )]]
                              s′ ∈Sp



From here, for the sake of space and clarity, we will choose to focus on simplifying the following piece of the summation:
                                                                                                         ′
                         R(s, a, δ −1 (s′ )) + γEr,a′ ∼π∗ [r − τ (a′ , r, ·)] + γVπM∗ (s′ )                                              (37)
                                                                                  X                 ′
                        = R(s, a, δ −1 (s′ )) + γEr,a′ ∼π∗ [r − τ (a, r, ·)] + γ       π ∗ (s′ )QM     ′ ′
                                                                                                 π ∗ (s , a )                            (38)
                                                                                                      a′ ∈A


Since π ∗ is optimal, and using the results of Theorem 1, we know that π(s′ , a+ ) = 1 and π(s′ , a) = 0 for a ̸= a+ . Again,
                                                            U −r̂
without loss of generality, we simplify τ to r + r̂−L
                                                   γ or r − γ when the target action is or isn’t taken respectively. Thus
we can derive the following:
                                                                                                             ′
                        = R(s, a, δ −1 (s′ )) + γEa′ r,∼π∗ [r − τ (a′ , r, ·)] + γQM        ′     ′ +    ∗
                                                                                     π ∗ (s , ϕ(s , a , π ))                             (39)
                                                  r̂ − L           ′                     r̂ − L
                        = R(s, a, δ −1 (s′ )) + γ        + γ(QM π ∗ (δ
                                                                       −1 ′
                                                                           (s ), a∗ ) +         )                                        (40)
                                                     γ                                       γ
                                                                     ′
                        = R(s, a, δ −1 (s′ )) + γQM
                                                  π ∗ (δ   (s ), a∗ )
                                                         −1 ′
                                                                                                                                         (41)
                                                                     ′
                        = R(s, a, δ −1 (s′ )) + γVπM∗ (δ −1 (s′ ))                                                                       (42)
                                                                 ′
Here we use the shorthand a∗ = arg maxa′ [QM     π ∗ (δ   (s ), a′ )]. Since the policy is already optimal, the optimal action
                                                        −1 ′

chosen by ϕ does impact the policy’s value - the policy would have chosen a∗ in δ −1 (s′ ) without the inclusion of ϕ. We
can additionally complete this last step by the definition of the bellman equation as π ∗ (s′ , a+ ) = 1. Next we can plug this
derivation back into the main equation and simplify further.
                                   X                                      X                                                  ′
                               =          π ∗ (s, a)[(1 − β)                      T (s, a, s′ )[R(s, a, s′ ) + γVπM∗ (s′ )]              (43)
                                   a∈A                                    s′ ∈S
                                       X                                                                         ′
                               +β               T (s, a, δ −1 (s′ ))[R(s, a, δ −1 (s′ )) + γVπM∗ (δ −1 (s′ ))]]                          (44)
                                       s′ ∈Sp


From here, similar to (Rathbun et al., 2024), we note that the second summation is over s′ ∈ Sp , yet the term is always
inverted with δ −1 . Since δ is bijective we can therefore convert the summation to one over s′ ∈ S:
                                   X                                      X                                                  ′
                               =          π ∗ (s, a)[(1 − β)                      T (s, a, s′ )[R(s, a, s′ ) + γVπM∗ (s′ )]
                                   a∈A                                    s′ ∈S
                                       X                                                     ′
                                                                                                                                         (45)
                               +β                          ′
                                               T (s, a, s )[R(s, a, s′ ) + γVπM∗ (s′ )]]
                                       s′ ∈S
                                   X                     X                                                   ′
                               =          π ∗ (s, a)             T (s, a, s′ )[R(s, a, s′ ) + γVπM∗ (s′ )]                               (46)
                                   a∈A                 s′ ∈S

Therefore, by Lemma 0 we have proven the desired result.                                                                                 QED

                                                                                   15
                          Adversarial Inception Backdoor Attacks against Reinforcement Learning

A.1.4. L EMMA 2
               ′
Lemma 2 VπM (s) ≥ VπM (s) ∀s ∈ S, π ∈ Π. Therefore, the value of any policy π in the adversarial MDP M ′ is greater
than or equal to its value in the benign MDP M for all benign states s ∈ S.

Proof. In Lemma 1 we proved that for an optimal policy π ∗ in M ′ , its value in benign states is maintained between the
adversarial MDP M ′ and the benign MDP M .
Here we will prove that, in general, the value of any policy π ∈ Π given a benign state s ∈ S in M ′ is greater than or
equal to its value in M . We will achieve this by first showing that, without action manipulation, the value of the policy is
maintained between M ′ and M . We will refer to this as the “base case”. Following this we will show that ϕ induces a policy
improvement over π in M ′ , proving our desired result. We will begin by defining a modified version of ϕ:

                                                                ϕI (sp , a, π) = a                                            (47)

In other words – since ϕI (sp , a, π) = a for all trigger states, actions, and policies – no action manipulation occurs. For
                                                                                                ′
the sake of convenience we will notate the value of a policy under this modified ϕI as VπM (s|I) and the action value as
    ′
QMπ (s, a|I).
                   ′
Base Case - VπM (s|I) = VπM (s) ∀s ∈ S, π ∈ Π. Thus if no action manipulation occurs, then the value of any policy does
not change between M and M ′ in beingn states.
Due to the nature of this proof, many of the steps are nearly identical to the proof given for Lemma 1, with some minor
notational differences (using π instead of π ∗ ). Thus we will provide an abridged version of the proof, with citations to the
relevant steps from Lemma 1 when relevant. Thus we quickly derive an intermediate result similar to 36:
                  ′         X             X                                                  ′
              VπM (s|I) =       π(s, a)           T ′ (s, a, s′ , π)[R′ (s, a, s′ , ·) + γVπM (s′ |I)]                    (48)
                             a∈A            s′ ∈S∪Sp
                             X                         X                                         ′
                         =         π(s, a)[(1 − β)             T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ |I)]
                             a∈A                       s′ ∈S
                               X                                                                                         ′    (49)
                        +β             T (s, a, δ −1 (s′ ))[R(s, a, δ −1 (s′ )) − Er,a∼π [r − τ (a, r, ·)] + γVπM (s′ |I)]]
                              s′ ∈Sp


We will again focus our attention on the innermost term of the summation using the shorthand r′ = R(s′ , a′ , π):
                                                                                       ′
                        R(s, a, δ −1 (s′ )) + Er,a∼π [r − τ (a, r, ·)] + γVπM (s′ |I)                                         (50)
                                                                             X                   ′
                       = R(s, a, δ −1 (s′ )) + γEr,a∼π [r − τ (a, r, ·)] + γ       π(s′ , a′ )QM   ′ ′
                                                                                               π (s , a |I)                   (51)
                                                                                      a′ ∈A

                       = R(s, a, δ −1 (s′ )) + γEr,a∼π [r − τ (a, r, ·)]
                                               ′
                                                                                                                              (52)
                          X
                       +γ      π(s′ , a′ )[QMπ (δ   (s ), ϕI (s′ , a′ , π)|I) + τ (a, r′ , ·) − r′ ]
                                                  −1 ′

                             a′ ∈A
                                                                                      X
                       = R(s, a, δ −1 (s′ )) + γ(Ea,r,∼π [r − τ (a, r, ·)] +               π(s′ , a′ )τ (a, r′ ·)) − r
                                                                                     a∈A
                             X                   ′
                                                                                                                              (53)
                                        ′   ′       −1 ′
                       +γ            π(s , a )QM
                                               π (δ   (s ), a′ |I)
                             a′ ∈A
                                                          ′
                       = R(s, a, δ −1 (s′ )) + γVπM (δ −1 (s′ )|I)                                                            (54)
                                                                         ′
From here, plugging this piece back into our equation for VπM and using similar steps to our derivation for Equation 46 we
once again arrive at a equation similar to that of VπM (s):
                                   ′     X           X                                     ′
                                VπM =        π(s, a)      T (s, a, s′ )[R(s, a, s′ ) + γVπM (s′ )]                     (55)
                                            a∈A               s′ ∈S

Thus by Lemma 0 we have proven the desired result.

                                                                       16
                           Adversarial Inception Backdoor Attacks against Reinforcement Learning

Modeling ϕ as a policy improvement
In the “base case” we showed that the value of any policy in benign states in M ′ is equal to its value in M if no action
manipulation occurs. Here we will show that one can model the utilization of ϕ as a policy improvement over π without
action manipulation. In order to prove this result we must merely show the following:
                                    ′             .          ′
                                 VπM (s|I) ≤ D(s) = Ea∼π [QM
                                                           π (s, ϕ(s, a, π)|I)] ∀s ∈ S ∪ Sp                             (56)

First we will show that this inequality holds for all poisoned states sp ∈ Sp
                                  X                   ′
                       D(sp ) =         π(sp , a)QM
                                                  π (s, ϕ(sp , a, π)|I)                                                 (57)
                                  a∈A
                                                  ′
                                                  −1
                             = π(sp , a+ )[QM
                                            π (δ     (sp ), a∗ |I) + τ (a+ , r, ·) − r]
                                                     ′
                                                                                                                        (58)
                                X
                                                         −1
                             +         π(sp , a)[QMπ (δ     (sp ), a|I) + τ (a, r, ·) − r]
                                  a∈A\a+
                                                  ′
                                                 −1
                             = π(sp , a+ )[QM
                                            π (δ    (sp ), a∗ |I) + τ (a+ , r, ·) − r
                                        ′                             ′
                                      −1                          −1
                             + (QM
                                 π (δ    (sp ), a+ |I) − QM π (δ     (sp ), a+ |I))]
                                                                                                                        (59)
                                X                    ′
                                                        −1
                             +       π(sp , a)[QM π (δ     (sp ), a|I) + τ (a, r, ·) − r]
                                  a∈A\a+
                                                  ′                            ′
                                                  −1
                             = π(sp , a+ )[QM
                                            π (δ     (sp ), a∗ |I) − QM
                                                                      π (δ
                                                                            −1
                                                                                (sp ), a+ |I)]
                             +
                               X
                                  π(sp , a)[QM
                                                ′
                                                    −1
                                                       (sp ), a|I) + τ (a, r, ·) − r]                                   (60)
                                              π (δ
                                  a∈A
                                                  ′                            ′                     ′
                                                 −1
                             = π(sp , a+ )[QM
                                            π (δ    (sp ), a∗ |I) − QM
                                                                     π (δ
                                                                          −1
                                                                             (sp ), a+ |I)] + VπM (sp |I)               (61)
                                                              ′
Here we again use the short hand a∗ = arg maxa′ [QM
                                                  π ∗ (δ   (s ), a′ |I)]. Thus by the definition of a∗ we know the following:
                                                         −1 ′

                                                  ′                            ′
                                                    −1
                                  π(sp , a+ )[QM
                                               π (δ    (sp ), a∗ |I) − QM
                                                                        π (δ
                                                                             −1
                                                                                (sp ), a+ |I)] ≥ 0                      (62)
                                                              ′
Therefore, for all sp ∈ Sp we know that D(sp ) ≥ VπM (sp |I). Next we must show that this holds for benign states. This is
much easier to show as no action manipulation occurs:
                                              X              ′
                                     D(s) =       π(s, a)QMπ (s, ϕ(s, a, π)|I)                                       (63)
                                                      a∈A
                                                      X                    ′        ′
                                                 =          π(s, a)QM             M
                                                                    π (s, a|I) = Vπ (s|I)                               (64)
                                                      a∈A

               ′
Therefore VπM (s| I) ≤ D(s) for all benign states s. Thus we have proven that the policy induced by ϕ in M ′ results in a
policy improvement over any policy π ∈ Π. Therefore, using the results of the base case, we know:
                                                  ′               ′
                                              VπM (s) ≥ VπM (s|I) = VπM (s) ∀s ∈ S                                      (65)

Thus our desired result has been proven.                                                                               QED

A.1.5. T HEOREM 2
                   ′         ′
Theorem 2 VπM∗ (s) ≥ VπM (s) ∀s ∈ S, π ∈ Π ⇔ VπM∗ (s) ≥ VπM (s) ∀s ∈ S, π ∈ Π. Therefore, π ∗ is optimal in M ′ for
all benign states s ∈ S if and only if π ∗ is optimal in M .

Proof. Here we will prove the above theorem by proving the forward and backward versions of the bi-conditional. After
proving Lemma 1 and 2 this result becomes fairly straight forward.
Forward Direction:

                                                                      17
                            Adversarial Inception Backdoor Attacks against Reinforcement Learning

Proof. Let π ∗ be an optimal policy in M ′ . For the purpose of contradiction assume π ∗ is not optimal in M .
It follows that ∃ π ′ ∈ Π, s ∈ S such that VπM′ (s) > VπM∗ (s).
                                                    ′
From here, using Lemma 1 and 2, we know VπM′ ≥ VπM′ (s) > VπM∗ (s) = VπM∗ (s), this contradicts the fact that π ∗ is optimal
in M ′ .                                                                                                               QED

Backward Direction:

Proof. Let π ∗ be an optimal policy in M .
                                                               ′                                    ′
It follows that ∀ π ′ ∈ Π, s ∈ S the following is true VπM∗ (s) ≥ VπM∗ (s) ≥ VπM′ (s) ≥ VπM′ (s).
Therefore π ∗ must be optimal in M ′ for all benign states, thus we have proven the desired result.                               QED

Thus by our forward and backward proof we have proven Theorem 2.                                                                  QED

A.2. More Experimental Details and Hyper Parameters
In this section we give further details on the hyper parameters and setups we used for our experimental results. In Table 5
we summarize each environment we studied, their properties, and the learning parameters we used in each experiment.
Parameters not mentioned in the table are simply default values chosen in the cleanrl (Huang et al., 2022) implementation of
PPO.
                                                      Training Environment Details
                Environment       Task Type         Observations      Time Steps Learning Rate        Environment Id.
                   Q*Bert        Atari Game            Image             15M       0.00025         QbertNoFrameskip-v4
                  Frogger        Atari Game            Image             10M       0.00025        FroggerNoFrameskip-v4
                  Pacman         Atari Game            Image             40M       0.00025        PacmanNoFrameskip-v4
                  Breakout       Atari Game            Image             15M       0.00025        BreakoutNoFrameskip-v4
               Highway Merge     Self Driving          Image             100k      0.00025                merge-v0
                 Safety Car        Robotics     Lidar+Proprioceptive      3M       0.00025           SafetyCarGoal1-v0
                  CAGE-2        Cyber Defense         One-Hot             5M        0.0005                  cage

Table 5. Further details for each environment tested in this work. All action spaces were discrete in some form, though for Safety Car a
discretized versions of its continuous action space was used. The “Environment Id.” column refers to the environment Id used when
generating each environment through the gymnasium interface (Brockman et al., 2016).


Across all our image based domains we utilized a 6x6, checkerboard pattern of 1s and 0s in the top left corner of the image
as a trigger. For Safety Car and CAGE-2 we simply append a boolean value to the end of the agent’s observation which
we set to 1 in poisoned states, or 0 otherwise. This is also summarized in Table 6. These environments in particular have
relatively low dimension and dense state spaces, making the most natural trigger unclear. Thus we implemented this boolean
indicator approach for poisoned states to make it it completely clear that there are no collisions between benign and poisoned
states in the state space – maintaining our assumption that S and Sp are disjoint. Through this design we can better isolate
and compare the poisoning strategies of each attack without additional mitigating factors caused by the design of the trigger.
We additionally chose values for βlow and βhigh to balance attack success and episodic return. At values of β higher than
βhigh one or more attacks would suffer in terms of episodic return, while at values of β lower than βlow attack success
across all three methods would begin to drop significantly. β values were chosen on a per-environment basis using the
parameters chosen by (Rathbun et al., 2024) as a starting point.

A.2.1. T ROJ DRL AND S LEEPER N ETS PARAMETERS


Across all environments we chose hyper parameters for TrojDRL and SleeperNets which maximize the amount by which
each attack perturbs the agent’s reward. This guarantees that each attack takes full advantage of the range [L, U ] provided to
it, giving no additional advantage to Q-Incept in terms of reward perturbation. In particular, for TrojDRL we set its reward
perturbation constant, c, to 100; and for SleeperNets we set its reward perturbation factor to the max value α = 1 and its

                                                                   18
                            Adversarial Inception Backdoor Attacks against Reinforcement Learning

base reward perturbation to c = 1. For SleeperNets c is set to a value of 1 as α = 1 alone results in perturbations far outside
of [L, U ] in all environments without clipping.

A.2.2. Q-I NCEPT ATTACK PARAMETERS


For the Q-Incept attack there are a few parameters the adversary has to choose in regards to the Q-function approximator Q̂.
These parameters are borrowed directly from DQN as the attack derives from a direct DQN implementation on the agent’s
benign environment interactions. In Table 6 we summarize the two relevant parameters we varied across environments,
Steps per Update and Start Poisoning Threshold. Steps per Update represents the number of benign environment steps that
would occur between each DQN update of Q̂. On Highway Merge a much lower value was needed here as the adversary
has little time to learn the agent’s Q-fuction. In contrast, for Q*Bert, the number of steps per update was very high as
the attack was very successful with little DQN optimization. The “Start Poisoning Threshold” represents the portion of
benign timesteps the PPO agent would train for before the adversary would begin poisoning. This parameter is intended to
allow the adversary’s DQN approximation to begin to converge before they begin poisoning. Otherwise the adversary’s
Q̂ would be effectively random when they start poisoning. Both parameters were chosen to balance attack performance
and computational cost. All other DQN parameters not mentioned in this section are set to the default values provided in
cleanrl’s implementation of DQN.

                                                     Environment Attack Parameters
                              Environment     Steps per Update Start Poisoning Threshold       Trigger
                                 Q*bert              50                   6.7%             6X6 Checkerboard
                                Frogger              50                   6.7%             6X6 Checkerboard
                                Pacman               50                   6.7%             6X6 Checkerboard
                                Breakout             50                   6.7%             6X6 Checkerboard
                             Highway Merge            2                   10%              6X6 Checkerboard
                               Safety Car             4                   4.0%             Boolean Indicator
                                CAGE-2                4                   4.0%             Boolean Indicator

Table 6. Comparison of Q-Incept hyper parameters used across the different environments. Here Steps per Update represents the number
environment steps per DQN update for Q̂, and Start Poisoning Threshold represents the portion of PPO training that needs to finish before
the adversary would begin poisonining.


A.3. Further Discussion
In this section we provide further discussion on design choices made in this paper which were unable to fit in the main body.

A.3.1. M OTIVATION FOR BASELINES
As mentioned in Section 6 we compare our Q-Incept attack against SleeperNets and TrojDRL as they represent the current
state of the art for ubounded reward poisoning and forced action manipulation attacks respectively. For SleeperNets there
are no other existing, ubounded reward poisoning attacks, so this decision is fairly clear. For TrojDRL there are other attacks
which utilize static reward poisoning and forced action manipulation, however most only apply to specific application
domains like competitive, multi-agent RL (Wang et al., 2021) or partially-observable settings utilizing recurrent neural
networks (Yang et al., 2019; Yu et al., 2022).
The only other, somewhat comparable attack is BadRL (Cui et al., 2023) which builds upon TrojDRL by optimizing the
adversary’s trigger pattern to achieve greater attack success. Trigger optimization is effective but orthogonal to the goals of
this work as it can be generically applied to any attack. Furthermore, (Rathbun et al., 2024) showed that BadRL without this
trigger fine-tuning often performs worse than TrojDRL, likely since it uses methods to poison the most important – and thus
hardest to poison – states in the MDP. Taking all of this into consideration we decided to omit BadRL from our empirical
study. Therefore TrojDRL is the best baseline to use when comparing against static reward poisoning attacks using forced
action manipulation.

A.3.2. M OTIVATION FOR E NVIRONMENTS
In this paper we study 4 environments – Q*Bert, Frogger, Safety Car, CAGE-2, and Highway Merge. In the TrojDRL paper
the authors focused their empirical studies towards Atari game tasks in the gym API (Brockman et al., 2016). We think it is

                                                                   19
                           Adversarial Inception Backdoor Attacks against Reinforcement Learning

useful to include some of these environments like Q*Bert, as they are standard baselines for RL in general, however we
believe it is critical to extend this study to further domains when studying the potential impacts of adversarial attacks. This
belief is supported by the findings of (Rathbun et al., 2024) who showed that TrojDRL – which consistently attains near
100% ASR on Atari environments without bounded reward poisoning constraints – often fails to achieve high ASR when
tested on non-Atari environments.
Thus, to extend our study beyond the confines of Atari, we chose three other environments within the gymnasium API,
allowing our code to work seamlessly between environments. We first chose Highway Merge since it seemed to be the most
difficult environment for attacks to poison based upon the results of SleeperNets. Next we chose CAGE-2 as it not only
represented a safety and security-critical domain, being an application of RL to cyber-network defense, but also because
it uses non-image observations. Lastly we selected Safety Car, also from the environments studied in SleeperNets, as it
represents a simulation of real-world, robotic applications of RL and, similar to CAGE-2, uses non-image observations.

A.3.3. C OMMENTS ON C OMPUTE OVERHEAD
Training the Q-network used in Q-Incept does cause some computational overhead which may be detectable, but fortunately
it isn’t too extreme. We ran tests on a desktop machine (2x RTX 4090, Threadripper 7980x) and found that SleeperNets,
TrojDRL, and Q-Incept run at 1038, 987, and 730 simulation steps per second respectively against Atari Q*bert. However,
our Q-network training runs in series with our PPO training, so it’s likely that significant performance increases can be
found for Q-Incept by training in parallel.

A.4. Further Experimental Results and Analysis
A.4.1. Q-I NCEPT AGAINST DQN
In Table 7 we present some preliminary results of Q-Incept against DQN. The results show that Q-Incept works well
against both on policy (PPO) and off policy (DQN) methods. A better choice of metric FQ̂ may be necessary to maximize
performance against DQN, however. For this experiment we slightly alter the methodology of Q-Incept. Instead of poisoning
data after each episode and storing it in the agent’s replay buffer, we instead poison data points after they’re sampled from
the replay buffer. The reason for this is that the agent’s policy along with the Q-Network of Q-Incept change throughout
training, therefore datapoints that were poisoned early in training may become less effective as training progresses. In the
case of PPO this wasn’t an issue, since trajectories are only used once and then discarded. For DQN, however, trajectories
are stored over a longer time horizon during training, so we need to account for this as an attacker. Equivalently the attacker
could keep track of all the data points it has poisoned and properly update them over time.


                                  Beta               ASR      StDev(ASR)        BR        StDev(BR)
                            0% (No Poisoning)        N/a          N/a          13,724        974
                                 0.5%               92.6%        4.1%          14,092       1,127
                                 1.0%               88.5%        3.4%          13,574        910

          Table 7. Performance of Q-Incept against DQN agents training on Atari Q*bert. Results are averaged over 5 runs.



A.4.2. Q-I NCEPT AT D IFFERENT P OISONING R ATES
In this section we evaluate the Attack Success Rate performance of Q-Incept at lower β values along with the stability of the
agent’s Benign Return at higher β values. First, in Table 8 we evaluate Q-Incept on Atari Q*bert at β values lower than
those presented in the main body of the paper. We can see that even at a poisoning rate as low as β = 0.03% Q-Incept is
still able to achieve near 100% ASR. This is in line with the performance of methods like SleeperNets which presented
similar results at β = 0.03% while operating under unconstrained rewards. β = 0.03% seems to be the minimum necessary
poisoning rate for Q-Incept on Q*bert however, as the attack success rate drops off dramatically at β = 0.01%.
In Table 9 we compare Q-Incept to the baselines on the CAGE-2 environment to study their stability at higher β values.
We see that Q-Incept is the only method that improves in ASR as β increases, and is also the most stable in terms of BR –
never falling below -50.98%. In contrast, SleeperNets and TrojDRL are both highly inconsistent in terms of BR – falling to
−57.82 and −64.41, respectively – while also failing to achieve an ASR above 6%, even at β = 2%.

                                                                20
                           Adversarial Inception Backdoor Attacks against Reinforcement Learning

                                    Beta      ASR      StDev(ASR)        BR        StDev(BR)
                                    0.3%     100%          0%           18,381        882
                                    0.1%     100%          0%           17,749       1,380
                                   0.05%     100%          0%           17,937       1,304
                                   0.03%     98.3%        2.9%          16,573        873
                                   0.01%     21.1%        6.2%          16,374       2,088

                 Table 8. Performance of Q-Incept at lower poisoning rates against a PPO agent training on Q*bert.

                   β                0.5%                      1%                  1.5%                   2%
                 Metric         ASR       σ             ASR        σ          ASR      σ            ASR       σ
               Q-Incept       30.06% 15.01%           93.21% 15.13%          100% 0.00%           98.62% 2.14%
              SleeperNets      0.00%    0.00%          0.06%     0.12%       0.54% 0.89%           1.86%    3.21%
               TrojDRL         0.00%    0.00%          5.64%     7.73%       2.24% 3.74%           5.11%    4.99%
                 Metric          BR       σ              Br        σ           BR      σ             BR       σ
               Q-Incept        -48.64   16.68          -45.49     8.04       -50.98   7.37         -49.41    7.50
              SleeperNets      -57.82    8.38          -50.18     8.52       -41.44 11.59          -50.67    9.16
               TrojDRL         -39.28    9.60          -53.11     8.71       -52.77 13.54          -64.41   10.63

                  Table 9. Comparison of Q-Incept, SleeperNets, and TrojDRL on CAGE at different values of β.


A.4.3. Q-I NCEPT WITH AN O RACLE Q-N ETWORK
We noticed that Highway Merge was the only environment on which Q-Incept was unable to attain an average ASR above
90%, leading us to question if our Q-function based approach was incorrect or if our online DQN approximation Q̂ wasn’t
converging quickly enough. To test this we devised Oracle-Incept – which uses an oracle Q-function pre-trained with DQN
until convergence – as a hypothetical, stronger attack by an adversary with direct access to the benign MDP. In Figure 7 we
can see that Oracle-Incept improves greatly over Q-Incept, reaching an average ASR of 93.38%. This indicates that better
Q-function approximations lead to better performance - validating that both our chosen metric and attack approach scale
properly with the accuracy of Q̂. Thus, adversaries capable of using Q-function estimations with faster convergence can
expect greater attack success.




Figure 7. Comparison between Q-Incept, Oracle-Incept, TrojDRL, and SleeperNets on Highway Merge at β = 10%. We can see that the
Oracle-Incept shows significant improvements in ASR.



A.4.4. T RAINING P LOTS FOR R EMAINING E NVIRONMENTS
Here in Figure 8, Figure 9, Figure 10 and Figure 11 we present the training curves for TrojDRL, Q-Incept, and SleeperNets
on the Frogger, Pacman, Breakout and Safety Car environments respectively. Plots for Q*Bert are found in Figure 4,
CAGE-2 can be found in Figure 3, and Highway Merge in Figure 7. We can see that all attacks perform similarly over time
in terms of episodic return on both environments, but Q-Incept is the only attack to reach 100% ASR on average in both
environments – doing so very quickly.

                                                                21
                          Adversarial Inception Backdoor Attacks against Reinforcement Learning




                     Figure 8. Performance of TrojDRL, Q-Incept, and SleeperNets on Frogger at β = 0.3%




                     Figure 9. Performance of TrojDRL, Q-Incept, and SleeperNets on Pacman at β = 0.3%


A.4.5. H OW O FTEN D OES Q-I NCEPT A LTER THE AGENT ’ S ACTIONS ?
Here we explore how often Q-Incept chosen actions in the agent’s replay memory D. We measure this ratio as the number
of actions changed divided by the total number of timesteps the attack has poisoned. In Figure 12 and Figure 13 we see that
the attack generally balances its action poisoning over time, altering actions on roughly 50% of the time steps it poisons.
In the case of CAGE-2 this does not hold however, as the adversary starts by altering around 50% of actions, but ends up
altering ∼ 87% of actions by the end. To us this indicates that the difference in values between good and bad actions was
much larger in CAGE-2 than in other environments, and furthermore that the agent was highly likely to choose these actions
over others as training progressed. Since our proposed metric FQ̂ weighs time steps by the relative value of the action taken
over all possible values, it makes sense that this would result in a high action manipulation ratio on CAGE-2.




                                                            22
              Adversarial Inception Backdoor Attacks against Reinforcement Learning




        Figure 10. Performance of TrojDRL, Q-Incept, and SleeperNets on Breakout at β = 0.3%




Figure 11. Performance of TrojDRL, Q-Incept, and SleeperNets on the Safety Car environment at β = 0.1%




                                                 23
                             Adversarial Inception Backdoor Attacks against Reinforcement Learning




Figure 12. Ratio of actions changed across poisoned states in our four Atari environments – (from top left to bottom right) Q*bert, Frogger,
Pacman, and Breakout. Values are measured as the ratio of actions changed to the total number of poisoned timesteps.




Figure 13. Ratio of actions changed across poisoned states in our three non-Atari environments – (frop top left to bottom) CAGE, Highway
Merge, and Safety Car. Values are measured as the ratio of actions changed to the total number of poisoned timesteps.


                                                                    24
