mlsanityData to 7 Oct 2026

BAFFLE: Hiding Backdoors in Offline Reinforcement Learning Datasets

arXiv 2210.04688 ↗First posted 7 Oct 2022cs.LG cs.AI cs.CRcited by 24

On the map: Offline RL and imitation learning from data → Offline RL algorithms

Abstract (arXiv)

Reinforcement learning (RL) makes an agent learn from trial-and-error experiences gathered during the interaction with the environment. Recently, offline RL has become a popular RL paradigm because it saves the interactions with environments. In offline RL, data providers share large pre-collected datasets, and others can train high-quality agents without interacting with the environments. This paradigm has demonstrated effectiveness in critical tasks like robot control, autonomous driving, etc. However, less attention is paid to investigating the security threats to the offline RL system. This paper focuses on backdoor attacks, where some perturbations are added to the data (observations) such that given normal observations, the agent takes high-rewards actions, and low-reward actions on observations injected with triggers. In this paper, we propose Baffle (Backdoor Attack for Offline Reinforcement Learning), an approach that automatically implants backdoors to RL agents by poisoning the offline RL dataset, and evaluate how different offline RL algorithms react to this attack. Our experiments conducted on four tasks and four offline RL algorithms expose a disquieting fact: none of the existing offline RL algorithms is immune to such a backdoor attack. More specifically, Baffle modifies 10% of the datasets for four tasks (3 robotic controls and 1 autonomous driving). Agents trained on the poisoned datasets perform well in normal settings. However, when triggers are presented, the agents' performance decreases drastically by 63.2%, 53.9%, 64.7%, and 47.4% in the four tasks on average. The backdoor still persists after fine-tuning poisoned agents on clean datasets. We further show that the inserted backdoor is also hard to be detected by a popular defensive method. This paper calls attention to developing more effective protection for the open-source offline RL dataset.

Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Placed in Offline RL algorithms, one of 13 directions in Offline RL and imitation learning from data. Builds on 57 of its 101 references that are in the map. First posted on arXiv 7 Oct 2022.

Builds on

57 of 101 references.

Closest ancestors · 7

Same direction, newest first

  1. 2021d3rlpy: An Offline Deep Reinforcement Learning Library6 Nov
  2. 2021Offline Reinforcement Learning with Implicit Q-Learning12 Oct
  3. 2021A Minimalist Approach to Offline Reinforcement Learning12 Jun
  4. 2020PLAS: Latent Action Space for Offline Reinforcement Learning14 Nov
  5. 2020Conservative Q-Learning for Offline Reinforcement Learning8 Jun
  6. 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems4 May
  7. 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learning15 Apr

Other references · 50

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  3. 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,635
  4. 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
  5. 2017CARLA: An Open Urban Driving Simulatorcited by 2,431
  6. 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,302
  7. 2016OpenAI Gymcited by 1,684
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  9. 2018Off-Policy Deep Reinforcement Learning without Explorationcited by 1,227
  10. 2019Machine Unlearningcited by 1,020
  11. 2019Stabilizing Off-Policy Q-Learning via Bootstrapping Error Reductioncited by 833
  12. 2017Rainbow: Combining Improvements in Deep Reinforcement Learningcited by 774
38 more
  1. 2020AWAC: Accelerating Online Reinforcement Learning with Offline Datasetscited by 647
  2. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  3. 2018Spectral Signatures in Backdoor Attackscited by 457
  4. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
  5. 2016Deep Reinforcement Learning for Robotic Manipulation with Asynchronous Off-Policy Updatescited by 342
  6. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  7. 2020Invisible Backdoor Attack with Sample-Specific Triggerscited by 338
  8. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  9. 2017Adversarial Attacks on Neural Network Policiescited by 314
  10. 2017Deep Reinforcement Learning framework for Autonomous Drivingcited by 224
  11. 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 213
  12. 2019AlgaeDICE: Policy Gradient from Arbitrary Experiencecited by 187
  13. 2020Clean-Label Backdoor Attacks on Video Recognition Modelscited by 162
  14. 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 160
  15. 2020Backdoor Attacks Against Deep Learning Systems in the Physical Worldcited by 129
  16. 2017Emergent Complexity via Multi-Agent Competitioncited by 117
  17. 2020Deep Partition Aggregation: Provable Defense against General Poisoning Attackscited by 112
  18. 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
  19. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
  20. 2020On Certifying Robustness against Backdoor Attacks via Randomized Smoothingcited by 74
  21. 2017Flow: A Modular Learning Framework for Mixed Autonomy Trafficcited by 67
  22. 2021BACKDOORL: Backdoor Attack against Competitive Reinforcement Learningcited by 66
  23. 2022Backdoor Defense with Machine Unlearningcited by 61
  24. 2022Improved Certified Defenses against Data Poisoning with (Deterministic) Finite Aggregationcited by 50
  25. 2020Backdoor Attacks against Transfer Learning with Pre-trained Deep Learning Modelscited by 43
  26. 2020Stop-and-Go: Exploring Backdoor Attacks on Deep Reinforcement Learning-based Traffic Congestion Control Systemscited by 35
  27. 2021Webly Supervised Fine-Grained Recognition: Benchmark Datasets and An Approachcited by 32
  28. 2021Regret Minimization Experience Replay in Off-Policy Reinforcement Learningcited by 25
  29. 2019Design of intentional backdoors in sequential modelscited by 20
  30. 2021BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systemscited by 20
  31. 2021Automatic Web Testing using Curiosity-Driven Reinforcement Learningcited by 19
  32. 2021Poisoning Deep Reinforcement Learning Agents with In-Distribution Triggerscited by 19
  33. 2018Reinforcement Learning for Automatic Test Case Prioritization and Selection in Continuous Integrationcited by 17
  34. 2022On Collective Robustness of Bagging Against Data Poisoningcited by 16
  35. 2022A Temporal-Pattern Backdoor Attack to Deep Reinforcement Learningcited by 15
  36. 2020Backdoor Attacks on the DNN Interpretation Systemcited by 6
  37. 2021MEPG: A Minimalist Ensemble Policy Gradient Framework for Deep Reinforcement Learningcited by 5
  38. 2021CrossASR++: A Modular Differential Testing Framework for Automatic Speech Recognitioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 5; 2025: 11; 2026: 7.

24 papers.

Sort:

By area:

  1. 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 135
  2. 2025BLAST: A Stealthy Backdoor Leverage Attack against Cooperative Multi-Agent Deep Reinforcement Learning based Systemscited by 7
  3. 2024Cooperative Backdoor Attack in Decentralized Reinforcement Learning with Theoretical Guaranteecited by 6
  4. 2025DC-SGD: Differentially Private SGD with Dynamic Clipping through Gradient Norm Distribution Estimationcited by 6
  5. 2025From Easy to Hard: Building a Shortcut for Differentially Private Image Synthesiscited by 6
  6. 2025Fox in the Henhouse: Supply-Chain Backdoor Attacks Against Reinforcement Learningcited by 5
  7. 2026TRAP: Tail-aware Ranking Attack for World-Model Planningcited by 4
  8. 2025Multi-level Certified Defense Against Poisoning Attacks in Offline Reinforcement Learningcited by 3
  9. 2026Watermarking LLM Agent Trajectoriescited by 3
  10. 2024Combinational Backdoor Attack against Customized Text-to-Image Modelscited by 2
  11. 2025TooBadRL: Trigger Optimization to Boost Effectiveness of Backdoor Attacks on Deep Reinforcement Learningcited by 2
  12. 2025TrojanTO: Action-Level Backdoor Attacks against Trajectory Optimization Modelscited by 2
12 more
  1. 2024Which Experiences Are Influential for RL Agents? Efficiently Estimating The Influence of Experiencescited by 1
  2. 2024Robustness Evaluation of Offline Reinforcement Learning for Robot Control Against Action Perturbationscited by 1
  3. 2025WGLE:Backdoor-free and Multi-bit Black-box Watermarking for Graph Neural Networkscited by 1
  4. 2026Angel or Demon: Investigating the Plasticity Interventions' Impact on Backdoor Threats in Deep Reinforcement Learningcited by 1
  5. 2023Recover Triggered States: Protect Model Against Backdoor Attack in Reinforcement Learningcited by 0
  6. 2025Collapsing Sequence-Level Data-Policy Coverage via Poisoning Attack in Offline Reinforcement Learningcited by 0
  7. 2025Dataset Poisoning Attacks on Behavioral Cloning Policiescited by 0
  8. 2025Optimal Perturbation Budget Allocation for Data Poisoning in Offline Reinforcement Learningcited by 0
  9. 2026CS-GBA: A Critical Sample-based Gradient-guided Backdoor Attack for Offline Reinforcement Learningcited by 0
  10. 2026When Can You Poison Rewards? A Tight Characterization of Reward Poisoning in Linear MDPscited by 0
  11. 2026BehaviorGuard: Online Backdoor Defense for Deep Reinforcement Learningcited by 0
  12. 2026Safe-RULE: Safe Reinforcement UnLEarningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026When Backdoors Meet Partial Observability: Attacking Real-World Reinforcement Learning
  2. 2026TOUR: A Trajectory-Level Unlearning Benchmark for Offline Reinforcement Learning
  3. 2025A Tutorial: An Intuitive Explanation of Offline Reinforcement Learning Theory
  4. 2026Backdoors in RLVR: Jailbreak Backdoors in LLMs From Verifiable Reward
  5. 2024Towards Robust Policy: Enhancing Offline Reinforcement Learning with Adversarial Attacks and Defenses
  6. 2020Offline Reinforcement Learning Hands-On
  7. 2022A Survey on Offline Reinforcement Learning: Taxonomy, Review, and Open Problems
  8. 2023Using Offline Data to Speed Up Reinforcement Learning in Procedurally Generated Environments