RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reuse
Mingrui Liu, Sixiao Zhang, Cheng Long, Kwok-Yan Lam · 2026
Read RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reuse by Mingrui Liu, Sixiao Zhang, Cheng Long, Kwok-Yan Lam (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-01795.txt.
Description
Mingrui Liu and colleagues defend language models against prompt injection, where hidden instructions hijack execution. Their RedVisor unifies detection with prevention, using fine grained reasoning paths to detect attacks and guide safe responses. An adapter atop the frozen backbone first writes an analysis localizing the injection and stating the threat, then conditions the model to reject the command. The adapter runs only during reasoning and stays muted during responses, preserving benign utility. Integrated into vLLM with custom kernels, it beats state of the art defenses on detection accuracy and throughput.
Catalog record
| CREATOR | Mingrui Liu, Sixiao Zhang, Cheng Long, Kwok-Yan Lam |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 76303 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2602.01795