atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

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

ICLR 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RobustKV, a jailbreak defense that evicts KV-cache entries of the lowest-importance tokens (by attention) so the concealed harmful query loses its informativeness while the LLM keeps benign performance.

Problem

Jailbreak attacks conceal harmful queries within adaptive jailbreak prompts, which defeat existing prompt-level defenses that assume restricted threat models or add substantial overhead.

Approach

Jailbreak prompts must gain high attention-based importance to succeed, which lowers the importance of the harmful query's tokens; RobustKV profiles token importance across layers and heads and evicts the KVs of the lowest-ranked tokens from all layers' caches, starving the LLM of the harmful query content.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use RobustKV instead of the strongest listed defense baselineLlama2 · AutoDANASR: 30.8% -> 6.3%Helped
Use RobustKV instead of the strongest listed defense baselineVicuna · AutoDANASR: 72.1% -> 8.3%Helped
Use RobustKV instead of the strongest listed defense baselineLlama2 · GCGASR: 8.9% -> 7.7%Helped
Use RobustKV instead of the strongest listed defense baselineMistral · GCGASR: 30.9% -> 27.6%Helped
Use RobustKV instead of the strongest listed defense baselineVicuna · GCGASR: 23.7% -> 16.4%Helped
Use RobustKV instead of the strongest listed defense baselineLlama2 · AmpleGCGASR: 8.1% -> 6.1%Helped
Use RobustKV instead of the strongest listed defense baselineVicuna · AmpleGCGASR: 10.1% -> 7.1%Helped
Use RobustKV instead of the strongest listed defense baselineLlama2 · AdvPrompterASR: 11.3% -> 7.4%Helped
Use RobustKV instead of GoalPriorityMistral · AdvPrompterASR: 21.8% -> 30.3%Hurt
Use RobustKV instead of GoalPriorityVicuna · AdvPrompterASR: 20.5% -> 28.2%Hurt
Evict the lowest-ranked 20% of tokens with deterministic rather than randomized selection (ablation)RobustKV on Llama2 · AutoDANASRHelped
Increase the eviction rate (ablation)RobustKV on Llama2 · AutoDANASRHelped

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench AlpacaEval VicunaEval LongBench

Benchmarks: AdvBench AlpacaEval VicunaEval LongBench

Metrics: attack success rate ASR-R ASR-G WinRate Rouge-L

Baselines: SmoothLLM GoalPriority SnapKV H2O No Defense

Builds on: SnapKV H2O SmoothLLM GoalPriority

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy