RePD: Defending Jailbreak Attack through a Retrieval-based Prompt Decomposition Process
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
In this study, we introduce RePD, an innovative attack Retrieval-based Prompt Decomposition framework designed to mitigate the risk of jailbreak attacks on large language models (LLMs). Despite rigorous pretraining and finetuning focused on ethical alignment, LLMs are still susceptible to jailbreak exploits. RePD operates on a one-shot learning model, wherein it accesses a database of pre-collected jailbreak prompt templates to identify and decompose harmful inquiries embedded within user prompts. This process involves integrating the decomposition of the jailbreak prompt into the user's original query into a one-shot learning example to effectively teach the LLM to discern and separate malicious components. Consequently, the LLM is equipped to first neutralize any potentially harmful elements before addressing the user's prompt in a manner that aligns with its ethical guidelines. RePD is versatile and compatible with a variety of open-source LLMs acting as agents. Through comprehensive experimentation with both harmful and benign prompts, we have demonstrated the efficacy of our proposed RePD in enhancing the resilience of LLMs against jailbreak attacks, without compromising their performance in responding to typical user requests.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 32 of its 44 references that are in the map. First posted on arXiv 11 Oct 2024.
Builds on
32 of 44 references.
Closest ancestors · 11
Same direction, newest first
- 2024AutoDefense: Multi-Agent LLM Defense against Jailbreak Attacks2 Mar
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
- 2023Detecting Language Model Attacks with Perplexity27 Aug
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study23 May
Other references · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2024Qwen2 Technical Reportcited by 2,120
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
9 more
- 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
- 2024SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Modelscited by 228
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2024The Impact of Reasoning Step Length on Large Language Modelscited by 153
- 2021Anticipating Safety Issues in E2E Conversational AI: Framework and Toolingcited by 78
- 2023Black Box Adversarial Prompting for Foundation Modelscited by 62
- 2023Bergeron: Combating Adversarial Attacks through a Conscience-Based Alignment Frameworkcited by 30
- 2023Why do universal adversarial attacks work on large language models?: Geometry might be the answercited by 14
Built on by
Citing papers per year: 2025: 8; 2026: 3.
11 papers.
- 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safetycited by 21
- 2025Doxing via the Lens: Revealing Location-related Privacy Leakage on Multi-modal Large Reasoning Modelscited by 14
- 2025JailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shiftcited by 5
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 5
- 2025MUSE: MCTS-Driven Red Teaming Framework for Enhanced Multi-Turn Dialogue Safety in Large Language Modelscited by 4
- 2025Retrieval-Augmented Defense: Adaptive and Controllable Jailbreak Prevention for Large Language Modelscited by 1
- 2025MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Domain Risks in LLMscited by 1
- 2026TwinGate: Stateful Defense against Decompositional Jailbreaks in Untraceable Traffic via Asymmetric Contrastive Learningcited by 1
- 2026DoubtProbe: Black-Box Jailbreak Defense via Structural Verification and Semantic Auditingcited by 1
- 2025Evaluating Multi-Agent Defences Against Jailbreaking Attacks on Large Language Modelscited by 0
- 2026MOMAT: Mixture of Multiple Atlases for Low-Power Jailbreak Defense of Quantized LLMscited by 0
- 2026MOMAT: Mixture of Multiple Atlases for Low-Power Jailbreak Defense of Quantized LLMs1 Oct 2026
- 2026DoubtProbe: Black-Box Jailbreak Defense via Structural Verification and Semantic Auditing15 Jun 2026
- 2026TwinGate: Stateful Defense against Decompositional Jailbreaks in Untraceable Traffic via Asymmetric Contrastive Learning30 Apr 2026
- 2025MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Domain Risks in LLMs10 Nov 2025
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
- 2025MUSE: MCTS-Driven Red Teaming Framework for Enhanced Multi-Turn Dialogue Safety in Large Language Models18 Sep 2025
- 2025Retrieval-Augmented Defense: Adaptive and Controllable Jailbreak Prevention for Large Language Models22 Aug 2025
- 2025Evaluating Multi-Agent Defences Against Jailbreaking Attacks on Large Language Models30 Jun 2025
- 2025JailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shift28 Apr 2025
- 2025Doxing via the Lens: Revealing Location-related Privacy Leakage on Multi-modal Large Reasoning Models27 Apr 2025
- 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safety13 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2024Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks
- 2025Rewrite to Jailbreak: Discover Learnable and Transferable Implicit Harmfulness Instruction
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
- 2025Machine Learning for Detection and Analysis of Novel LLM Jailbreaks
- 2024Prefix Guidance: A Steering Wheel for Large Language Models to Defend Against Jailbreak Attacks
- 2026Re-Triggering Safeguards within LLMs for Jailbreak Detection
- 2025Stand on The Shoulders of Giants: Building JailExpert from Previous Attack Experience