Skip to main content
QUICK REVIEW

[Paper Review] Provable Defense against Backdoor Policies in Reinforcement Learning

Shubham Bharti, Xuezhou Zhang|arXiv (Cornell University)|Nov 18, 2022
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

This paper proposes a provable sanitization defense against backdoor policies in reinforcement learning under the subspace trigger assumption. By projecting states into a safe subspace estimated from clean environment interactions using SVD, the method renders the backdoor policy robust without retraining, achieving $\epsilon$-approximate optimality with $O\left(\frac{D}{(1-\gamma)^4\epsilon^2}\right)$ clean samples, validated empirically on Atari games.

ABSTRACT

We propose a provable defense mechanism against backdoor policies in reinforcement learning under subspace trigger assumption. A backdoor policy is a security threat where an adversary publishes a seemingly well-behaved policy which in fact allows hidden triggers. During deployment, the adversary can modify observed states in a particular way to trigger unexpected actions and harm the agent. We assume the agent does not have the resources to re-train a good policy. Instead, our defense mechanism sanitizes the backdoor policy by projecting observed states to a 'safe subspace', estimated from a small number of interactions with a clean (non-triggered) environment. Our sanitized policy achieves $ε$ approximate optimality in the presence of triggers, provided the number of clean interactions is $O\left(\frac{D}{(1-γ)^4 ε^2} ight)$ where $γ$ is the discounting factor and $D$ is the dimension of state space. Empirically, we show that our sanitization defense performs well on two Atari game environments.

Motivation & Objective

  • To formally define backdoor policies in reinforcement learning under the subspace trigger assumption.
  • To develop a provable defense mechanism that sanitizes backdoor policies without requiring policy retraining.
  • To ensure the sanitized policy maintains near-optimal performance in both clean and triggered environments.
  • To empirically validate the defense on Atari game environments under realistic attack conditions.

Proposed method

  • The defense projects observed states into a safe subspace estimated via Singular Value Decomposition (SVD) of state features collected from clean environment interactions.
  • The safe subspace is defined as the span of top eigenvectors of the empirical covariance matrix of clean states.
  • The method assumes triggers lie in a low-dimensional orthogonal subspace $E^\perp$, enabling projection to remove trigger influence.
  • The sanitized policy is constructed by applying the backdoor policy only after projecting states into the safe subspace.
  • The dimension $d$ of the safe subspace is estimated using the spectral gap in the empirical covariance matrix.
  • The defense is a wrapper method—no retraining of the original policy is required.

Experimental results

Research questions

  • RQ1Can a provable defense be constructed against backdoor policies in RL where triggers are confined to a low-dimensional subspace?
  • RQ2What is the sample complexity required to estimate the safe subspace with guaranteed performance bounds?
  • RQ3How does the performance of the sanitized policy scale with the number of clean environment interactions?
  • RQ4Can the defense maintain near-optimal performance in both clean and triggered environments without retraining?
  • RQ5How sensitive is the defense to incorrect estimation of the safe subspace dimension $d$?

Key findings

  • The sanitized policy achieves $\epsilon$-approximate optimality in the presence of triggers, with sample complexity $O\left(\frac{D}{(1-\gamma)^4\epsilon^2}\right)$ clean interactions.
  • Empirical results show that performance of the sanitized policy improves with increasing clean sample count $n$, eventually recovering the original clean performance even under triggers.
  • In the Boxing-Ram environment, performance recovery was observed with $n=40$ clean samples and $d \approx 24$, while in Breakout, $n=32768$ and $d \approx 20000$ were needed.
  • Overestimation or underestimation of the safe subspace dimension $d$ both degrade performance, highlighting the importance of accurate $d$ estimation via spectral gap detection.
  • The method successfully mitigates backdoor attacks in two Atari environments without retraining, demonstrating practical viability of the wrapper-based sanitization approach.

Read this paper

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

Read this paper on Nubint

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