mlsanityData to 7 Oct 2026

Fight Fire with Fire: Defending Against Malicious RL Fine-Tuning via Reward Neutralization

arXiv 2505.04578 ↗First posted 7 May 2025cs.LG cs.AIcited by 3

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Reinforcement learning (RL) fine-tuning transforms large language models while creating a vulnerability we experimentally verify: Our experiment shows that malicious RL fine-tuning dismantles safety guardrails with remarkable efficiency, requiring only 50 steps and minimal adversarial prompts, with harmful escalating from 0-2 to 7-9. This attack vector particularly threatens open-source models with parameter-level access. Existing defenses targeting supervised fine-tuning prove ineffective against RL's dynamic feedback mechanisms. We introduce Reward Neutralization, the first defense framework specifically designed against RL fine-tuning attacks, establishing concise rejection patterns that render malicious reward signals ineffective. Our approach trains models to produce minimal-information rejections that attackers cannot exploit, systematically neutralizing attempts to optimize toward harmful outputs. Experiments validate that our approach maintains low harmful scores (no greater than 2) after 200 attack steps, while standard models rapidly deteriorate. This work provides the first constructive proof that robust defense against increasingly accessible RL attacks is achievable, addressing a critical security gap for open-weight models.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 28 of its 35 references that are in the map. First posted on arXiv 7 May 2025.

Builds on

28 of 35 references.

References · 28

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2017Proximal Policy Optimization Algorithmscited by 14,441
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  5. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  6. 2017Deep reinforcement learning from human preferencescited by 3,846
  7. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  8. 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,218
  9. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  10. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
  11. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
  12. 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 165
16 more
  1. 2024ODIN: Disentangled Reward Mitigates Hacking in RLHFcited by 133
  2. 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 132
  3. 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 126
  4. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
  5. 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 93
  6. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  7. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
  8. 2023DEPN: Detecting and Editing Privacy Neurons in Pretrained Language Modelscited by 75
  9. 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPTcited by 70
  10. 2024Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysiscited by 61
  11. 2023Unveiling the Implicit Toxicity in Large Language Modelscited by 51
  12. 2024Enhancing LLM Safety via Constrained Direct Preference Optimizationcited by 47
  13. 2024Immunization against harmful fine-tuning attackscited by 33
  14. 2025The Energy Loss Phenomenon in RLHF: A New Perspective on Mitigating Reward Hackingcited by 18
  15. 2024LLMStinger: Jailbreaking LLMs using RL fine-tuned LLMscited by 5
  16. 2025Adversarial Agents: Black-Box Evasion Attacks with Reinforcement Learningcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.