atlas

Research map / Large language models / Reasoning and chain of thought

RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reuse

ICML 2026 · Large language models › Reasoning and chain of thought · approach: KV cache compression · 0 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 RedVisor, a removable top-layer gated adapter on a frozen LLM that first generates an injection-localization reasoning trace and then, with the adapter muted, answers the query while reusing the KV cache, aiming to defend against indirect prompt injection.

Problem

Indirect prompt injection hidden in retrieved context hijacks LLMs; existing defenses either fine-tune and incur an alignment tax or use detectors that add latency and memory cost.

Approach

A lightweight gated parallel adapter at the top layer of a frozen backbone generates explainable reasoning about injected segments; muting the adapter for response generation keeps backbone states unchanged so the phase-1 KV cache is reused without recomputation.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca-Cleaned Alpaca-Farm AgentDojo NQ-simplified

Benchmarks: Alpaca-Farm AgentDojo NQ-simplified AlpacaEval 2.0

Metrics: ROUGE-L F1 embedding similarity attack success rate win rate latency throughput

Baselines: PromptArmor PromptLocate DataFilter Sandwich Defense StruQ SecAlign

Builds on: LoRA AdapterFusion DPO vLLM PromptLocate

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