mlsanityData to 7 Oct 2026

RobustKV: Defending Large Language Models against Jailbreak Attacks via KV Eviction

arXiv 2410.19937 ↗First posted 25 Oct 2024cs.CR cs.AI cs.CLcited by 21

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Jailbreak attacks circumvent LLMs' built-in safeguards by concealing harmful queries within jailbreak prompts. While existing defenses primarily focus on mitigating the effects of jailbreak prompts, they often prove inadequate as jailbreak prompts can take arbitrary, adaptive forms. This paper presents RobustKV, a novel defense that adopts a fundamentally different approach by selectively removing critical tokens of harmful queries from key-value (KV) caches. Intuitively, for a jailbreak prompt to be effective, its tokens must achieve sufficient `importance' (as measured by attention scores), which inevitably lowers the importance of tokens in the concealed harmful query. Thus, by strategically evicting the KVs of the lowest-ranked tokens, RobustKV diminishes the presence of the harmful query in the KV cache, thus preventing the LLM from generating malicious responses. Extensive evaluation using benchmark datasets and models demonstrates that RobustKV effectively counters state-of-the-art jailbreak attacks while maintaining the LLM's general performance on benign queries. Moreover, RobustKV creates an intriguing evasiveness dilemma for adversaries, forcing them to balance between evading RobustKV and bypassing the LLM's built-in safeguards. This trade-off contributes to RobustKV's robustness against adaptive attacks. (warning: this paper contains potentially harmful content generated by LLMs.)

Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 28 of its 33 references that are in the map. First posted on arXiv 25 Oct 2024.

Builds on

28 of 33 references.

Closest ancestors · 14

Same direction, newest first

  1. 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs21 Apr
  2. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs11 Apr
  3. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models28 Mar
  4. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability13 Feb
  5. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
  6. 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov
  7. 2023AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Models23 Oct
  8. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
  9. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  10. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
  11. 2023Certifying LLM Safety against Adversarial Prompting6 Sep
  12. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
2 more
  1. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
  2. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study23 May

Other references · 14

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  3. 2020Extracting Training Data from Large Language Modelscited by 2,144
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  5. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  6. 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
  7. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  8. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  9. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  10. 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
  11. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  12. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
2 more
  1. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  2. 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 356

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 13; 2026: 7.

21 papers.

Sort:

By area:

  1. 2026AgentLAB: Benchmarking LLM Agents against Long-Horizon Attackscited by 31
  2. 2025GraphRAG under Firecited by 23
  3. 2025Beyond Prompt Engineering: Robust Behavior Control in LLMs via Steering Target Atomscited by 23
  4. 2025SecurityLingua: Efficient Defense of LLM Jailbreak Attacks via Security-Aware Prompt Compressioncited by 12
  5. 2025Self-Destructive Language Modelcited by 10
  6. 2025Reasoning or Retrieval? A Study of Answer Attribution on Large Reasoning Modelscited by 9
  7. 2025MetaDefense: Defending Finetuning-based Jailbreak Attack Before and During Generationcited by 8
  8. 2024Watermark under Fire: A Robustness Evaluation of LLM Watermarkingcited by 7
  9. 2026Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memorycited by 6
  10. 2025RLHF Fine-Tuning of LLMs for Alignment with Implicit User Feedback in Conversational Recommenderscited by 5
  11. 2025Towards Practical Defect-Focused Automated Code Reviewcited by 3
  12. 2026RASA: Routing-Aware Safety Alignment for Mixture-of-Experts Modelscited by 3
9 more
  1. 2025Efficient Cold-Start Recommendation via BPE Token-Level Embedding Initialization with LLMcited by 2
  2. 2025MRAG-Suite: A Diagnostic Evaluation Platform for Visual Retrieval-Augmented Generationcited by 2
  3. 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimizationcited by 2
  4. 2025MirrorShield: Towards Universal Defense Against Jailbreaks via Entropy-Guided Mirror Craftingcited by 1
  5. 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
  6. 2025ProSocialAlign: Preference Conditioned Test Time Alignment in Language Modelscited by 1
  7. 2026HijackKV: New Threat in Position-Independent KV Cache Reusecited by 1
  8. 2026New Wide-Net-Casting Jailbreak Attacks Risk Large Modelscited by 0
  9. 2026AnchorKV: Safety-Aware KV Cache Compression via Soft Penalty with a Refusal Anchorcited by 0

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. 2025Retrieval-Augmented Defense: Adaptive and Controllable Jailbreak Prevention for Large Language Models
  3. 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
  4. 2026TAO-Attack: Toward Advanced Optimization-Based Jailbreak Attacks for Large Language Models
  5. 2026SAFEGuard: Detect Optimization-Based Jailbreak Attacks Through Harmful Semantic Analysis and Fluency Measurement
  6. 2024JailPO: A Novel Black-box Jailbreak Framework via Preference Optimization against Aligned LLMs
  7. 2024Stealthy Jailbreak Attacks on Large Language Models via Benign Data Mirroring
  8. 2026Mitigating Many-shot Jailbreak Attacks with One Single Demonstration