Your KV Cache Can Spot Attacks on Your AI Agents - Ari Azarafrooz, Intrinsec AI
Source
youtube.com
Author
AI Engineer
Date
Why it matters
Offers a defense layer that works where text filters cannot, by flagging unusual KV pages against a baseline learned from normal traffic.
Key takeaways · AI-distilled
Ari Azarafrooz of Intrinsec AI proposes learning a baseline of KV cacheThe memory a model keeps about text it has already read, so generating each new token doesn't require reprocessing the whole conversation.Full definition → pages from normal traffic and flagging pages that look unusual, instead of guarding inputs and outputs with judge models or a separate classifier for every failure.
Because the signal comes from the inferenceRunning a trained model to get answers — the phase where AI is actually used, as opposed to trained.Full definition → engine's own KV cache rather than from text, it can catch a hidden spoken instruction in a voicemail, a case with no text to filter.
He covers where the approach plugs into vLLM, SGLang, LMCache, LLMA large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.Full definition →-d and NVIDIA Dynamo, and names two hard production problems: models that keep changing, and KV data too large to move in real time.
Terms in this piece · Glossary
KV cache — The memory a model keeps about text it has already read, so generating each new token doesn't require reprocessing the whole conversation.
inference — Running a trained model to get answers — the phase where AI is actually used, as opposed to trained.
LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.