SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.09638 · 2026

Plan2Cleanse: Test-Time Backdoor Defense via Monte-Carlo Planning in Deep Reinforcement Learning

Ping-Chun Hsieh, Zhi-Yi Chin, Kui-Yuan Chen, Sze-Ann Chen, Chi-Yu Li

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.09638.json · badge: /api/ran/2605.09638.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
rl-bandits-lab/RL-Backdoor canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
colorize Ran
ran; our contract draft was wrong, not the code
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/fast_failing/train/utils/logx.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from milanganai/milanganai.github.io, is pointer only (licence: NONE) · get_code("7e36f1c357c4618d")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

combined_shape Ran
ran; our contract draft was wrong, not the code
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/fast_failing/train/ppo_core.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from yinglunxu/reward_poisoning_attack_drl, is pointer only (licence: NONE) · get_code("57542f87e248db45")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_vars Ran
ran, honoured the contract we drafted
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/fast_failing/train/ppo_core.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from milanganai/milanganai.github.io, is pointer only (licence: NONE) · get_code("4cca5e460067b900")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dense_net Ran
ran; our contract draft was wrong, not the code
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/zoo_agent_pytorch.py
pointer only (licence: GPL-3.0) · get_code("ac745bb39d2a0639")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_action Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rl-bandits-lab/RL-Backdoor/backdoor_attack/mobile_env/collect_trajectories/collect_benign_trajectories.py
pointer only (licence: GPL-3.0) · get_code("f0cfa35175a39f3e")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mlp Ran
ran; our contract draft was wrong, not the code
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/fast_failing/train/ppo_core.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from idsia/policyevaluator, is pointer only (licence: NONE) · get_code("7569e2a512ec417c")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_policy Not yet run
unverified (harvested, no recorded run)
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/zoo_agent_pytorch.py
pointer only (licence: GPL-3.0) · get_code("0b5387c253c3fea7")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

restore_tf_graph Not yet run
unverified (harvested, no recorded run)
rl-bandits-lab/RL-Backdoor/backdoor_attack/multiagent_competition/fast_failing/train/utils/logx.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from milanganai/milanganai.github.io, is pointer only (licence: NONE) · get_code("8a70bbd1276e274c")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rl-bandits-lab/RL-Backdoor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 5 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
colorize 17 other papers
16 dated earlier, 1 the same month
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
1909.12255 (2019-09)
Harnessing Structures for Value-Based Planning and Reinforcement Learning
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
and 14 more not named here
combined_shape 14 other papers
13 dated earlier, 1 the same month
1906.06818 (2019-06)
Stacked Capsule Autoencoders
1912.13465 (2019-12)
Reward-Conditioned Policies
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
and 11 more not named here
mlp 12 other papers
11 dated earlier, 1 the same month · 2 only as an assembly brick
1905.01240 (2019-05)
Information asymmetry in KL-regularized RL
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2006.09359 (2020-06)
AWAC: Accelerating Online Reinforcement Learning with Offline Datasets
and 9 more not named here
count_vars 8 other papers
7 dated earlier, 1 the same month
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2010.09635 (2020-10)
Deep Reinforcement Learning with Population-Coded Spiking Neural Network for Continuous Control
2106.09110 (2021-06)
Safe Reinforcement Learning Using Advantage-Based Intervention
and 5 more not named here
restore_tf_graph 4 other papers
3 dated earlier, 1 the same month
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2210.07573 (2022-10)
Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy Optimization Algorithm
and 1 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Ensuring the security of reinforcement learning (RL) models is critical, particularly when they are trained by third parties and deployed in real-world systems. Attackers can implant backdoors into these models, causing them to behave normally under typical conditions, but execute malicious behaviors when specific triggers are activated. In this work, we propose Plan2Cleanse, a test-time detection and mitigation framework that adapts Monte Carlo Tree Search to efficiently identify and neutralize RL backdoor attacks without requiring model retraining. Our approach recasts backdoor detection as a planning problem, enabling systematic exploration of temporally extended trigger sequences while maintaining black-box access to the target policy. By leveraging the detection results, Plan2Cleanse can further achieve efficient mitigation through tree-search preventive replanning. We evaluated our method in competitive MuJoCo environments, simulated O-RAN wireless networks, and Atari games. Plan2Cleanse achieves substantial improvements, increasing trigger detection success rates by more than 61.4 percentage points in stealthy O-RAN scenarios and improving win rates from 35% to 53% in competitive Humanoid environments. These results demonstrate the effectiveness of our test-time defense approach and highlight the importance of proactive defenses against backdoor threats in RL deployments. Our implementation is publicly available at https://github.com/rl-bandits-lab/RL-Backdoor.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.09638")
get_code_for_paper("2605.09638")
have("2605.09638")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.09638.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.09638.svg)](https://syntology.ai/paper/2605.09638)

Connect an agent — have() is free.