mlsanityData to 14 Oct 2026

RePD: Defending Jailbreak Attack through a Retrieval-based Prompt Decomposition Process

arXiv 2410.08660 ↗First posted 11 Oct 2024cs.CR cs.AIcited by 11

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

  1. 2024AutoDefense: Multi-Agent LLM Defense against Jailbreak Attacks2 Mar
  2. 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov
  3. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  4. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
  5. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
  6. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
  7. 2023Detecting Language Model Attacks with Perplexity27 Aug
  8. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
  9. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
  10. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
  11. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study23 May

Other references · 21

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  7. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  8. 2024Qwen2 Technical Reportcited by 2,120
  9. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  10. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
  11. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  12. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
9 more
  1. 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
  2. 2024SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Modelscited by 228
  3. 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
  4. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  5. 2024The Impact of Reasoning Step Length on Large Language Modelscited by 153
  6. 2021Anticipating Safety Issues in E2E Conversational AI: Framework and Toolingcited by 78
  7. 2023Black Box Adversarial Prompting for Foundation Modelscited by 62
  8. 2023Bergeron: Combating Adversarial Attacks through a Conscience-Based Alignment Frameworkcited by 30
  9. 2023Why do universal adversarial attacks work on large language models?: Geometry might be the answercited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 3.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks
  2. 2025Rewrite to Jailbreak: Discover Learnable and Transferable Implicit Harmfulness Instruction
  3. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models
  4. 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
  5. 2025Machine Learning for Detection and Analysis of Novel LLM Jailbreaks
  6. 2024Prefix Guidance: A Steering Wheel for Large Language Models to Defend Against Jailbreak Attacks
  7. 2026Re-Triggering Safeguards within LLMs for Jailbreak Detection
  8. 2025Stand on The Shoulders of Giants: Building JailExpert from Previous Attack Experience