mlsanityData to 14 Oct 2026

RL-JACK: Reinforcement Learning-powered Black-box Jailbreaking Attack against LLMs

arXiv 2406.08725 ↗First posted 13 Jun 2024cs.CRcited by 23

On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks

also in 1 more
Abstract (arXiv)

Modern large language model (LLM) developers typically conduct a safety alignment to prevent an LLM from generating unethical or harmful content. Recent studies have discovered that the safety alignment of LLMs can be bypassed by jailbreaking prompts. These prompts are designed to create specific conversation scenarios with a harmful question embedded. Querying an LLM with such prompts can mislead the model into responding to the harmful question. The stochastic and random nature of existing genetic methods largely limits the effectiveness and efficiency of state-of-the-art (SOTA) jailbreaking attacks. In this paper, we propose RL-JACK, a novel black-box jailbreaking attack powered by deep reinforcement learning (DRL). We formulate the generation of jailbreaking prompts as a search problem and design a novel RL approach to solve it. Our method includes a series of customized designs to enhance the RL agent's learning efficiency in the jailbreaking context. Notably, we devise an LLM-facilitated action space that enables diverse action variations while constraining the overall search space. We propose a novel reward function that provides meaningful dense rewards for the agent toward achieving successful jailbreaking. Through extensive evaluations, we demonstrate that RL-JACK is overall much more effective than existing jailbreaking attacks against six SOTA LLMs, including large open-source models and commercial models. We also show the RL-JACK's resiliency against three SOTA defenses and its transferability across different models. Finally, we validate the insensitivity of RL-JACK to the variations in key hyper-parameters.

Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 38 of its 69 references that are in the map. First posted on arXiv 13 Jun 2024.

Builds on

38 of 69 references.

Closest ancestors · 5

Same direction, newest first

  1. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
  2. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
  3. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
  4. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Models1 Sep
  5. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug

Other references · 33

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  5. 2022Training language models to follow instructions with human feedbackcited by 15,971
  6. 2017Proximal Policy Optimization Algorithmscited by 15,215
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  9. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  10. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  11. 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,258
  12. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
21 more
  1. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  2. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  3. 2022Red Teaming Language Models with Language Modelscited by 1,026
  4. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
  5. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 573
  6. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
  7. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
  8. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
  9. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
  10. 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
  11. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 247
  12. 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
  13. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
  14. 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
  15. 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 214
  16. 2023SneakyPrompt: Jailbreaking Text-to-image Generative Modelscited by 189
  17. 2018Learning by Playing - Solving Sparse Reward Tasks from Scratchcited by 167
  18. 2023RAIN: Your Language Models Can Align Themselves without Finetuningcited by 157
  19. 2023Language Agents with Reinforcement Learning for Strategic Play in the Werewolf Gamecited by 152
  20. 2024MiniGPT4-Video: Advancing Multimodal LLMs for Video Understanding with Interleaved Visual-Textual Tokenscited by 118
  21. 2021Efficient (Soft) Q-Learning for Text Generation with Limited Good Datacited by 37

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 11; 2026: 9.

23 papers.

Sort:

By area:

  1. 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
  2. 2025REINFORCE Adversarial Attacks on Large Language Models: An Adaptive, Distributional, and Semantic Objectivecited by 15
  3. 2024LeakAgent: RL-based Red-teaming Agent for LLM Privacy Leakagecited by 13
  4. 2024Stealthy Jailbreak Attacks on Large Language Models via Benign Data Mirroringcited by 12
  5. 2024PathSeeker: Exploring LLM Security Vulnerabilities with a Reinforcement Learning-Based Jailbreak Approachcited by 11
  6. 2025xJailbreak: Representation Space Guided Reinforcement Learning for Interpretable LLM Jailbreakingcited by 11
  7. 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 9
  8. 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 5
  9. 2025VERA: Variational Inference Framework for Jailbreaking Large Language Modelscited by 4
  10. 2025Temporal Logic-Based Multi-Vehicle Backdoor Attacks against Offline RL Agents in End-to-end Autonomous Drivingcited by 4
  11. 2026Jailbreaking LLMs & VLMs: Mechanisms, Evaluation, and Unified Defensecited by 3
  12. 2025Formalization Driven LLM Prompt Jailbreaking via Reinforcement Learningcited by 2
11 more
  1. 2026Jailbreaking Large Language Models through Iterative Tool-Disguised Attacks via Reinforcement Learningcited by 2
  2. 2026Systematic Scaling Analysis of Jailbreak Attacks in Large Language Modelscited by 2
  3. 2025Eyes-on-Me: Scalable RAG Poisoning through Transferable Attention-Steering Attractorscited by 1
  4. 2025VERA-V: Variational Inference Framework for Jailbreaking Vision-Language Modelscited by 1
  5. 2026TrailBlazer: History-Guided Reinforcement Learning for Black-Box LLM Jailbreakingcited by 1
  6. 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Servicescited by 1
  7. 2026MemoPhishAgent: Memory-Augmented Multi-Modal LLM Agent for Phishing URL Detectioncited by 1
  8. 2025MGC: A Compiler Framework Exploiting Compositional Blindness in Aligned LLMs for Malware Generationcited by 0
  9. 2026A Systematic Investigation of RL-Jailbreaking in LLMscited by 0
  10. 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolutioncited by 0
  11. 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verificationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Search
  2. 2025Jailbreak-R1: Exploring the Jailbreak Capabilities of LLMs via Reinforcement Learning
  3. 2024LLMStinger: Jailbreaking LLMs using RL fine-tuned LLMs
  4. 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
  5. 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
  6. 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily
  7. 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks
  8. 2025Rewrite to Jailbreak: Discover Learnable and Transferable Implicit Harmfulness Instruction