Red Teaming with Mind Reading: White-Box Adversarial Policies Against RL Agents

Stephen Casper, Taylor Killian, Gabriel Kreiman, Dylan Hadfield-Menell
9/5/2022
1 citation
cs.AIcs.CRcs.LG
rl

Official code: thestephencasper/lm_white_box_attacks (2 stars, Python, last commit 2023-06-07). Most starred: thestephencasper/white_box_rarl, a community implementation (4 stars, Python, last commit 2023-04-05, 2.0× the official stars). 1 more implementation below.

Abstract

Adversarial examples can be useful for identifying vulnerabilities in AI systems before they are deployed. In reinforcement learning (RL), adversarial policies can be developed by training an adversarial agent to minimize a target agent's rewards.

Show full abstract

Prior work has studied black-box versions of these attacks where the adversary only observes the world state and treats the target agent as any other part of the environment. However, this does not take into account additional structure in the problem. In this work, we study white-box adversarial policies and show that having access to a target agent's internal state can be useful for identifying its vulnerabilities. We make two contributions. (1) We introduce white-box adversarial policies where an attacker observes both a target's internal state and the world state at each timestep. We formulate ways of using these policies to attack agents in 2-player games and text-generating language models. (2) We demonstrate that these policies can achieve higher initial and asymptotic performance against a target agent than black-box controls. Code is available at https://github.com/thestephencasper/lm_white_box_attacks

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
thestephencasper/lm_white_box_attacksOfficial2Python–2023-06-07
thestephencasper/white_box_rarlCommunity4Python–2023-04-05
21PythonJun 7, 20233 years ago
40Python, ShellSep 5, 20223 years ago

Similar Papers

Cite this paper

@article{casper2022teaming,
  title  = {Red Teaming with Mind Reading: White-Box Adversarial Policies Against RL Agents},
  author = {Stephen Casper and Taylor Killian and Gabriel Kreiman and Dylan Hadfield-Menell},
  year   = {2022},
  eprint = {2209.02167},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.02167}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.02167.svg)](https://codeofpaper.com/paper/2209.02167)

Discussion