Whose Narrative is it Anyway? A KV Cache Manipulation Attack

Mukkesh Ganesh, Kaushik Iyer, Arun Baalaaji Sankar Ananthan · 2025

Read Whose Narrative is it Anyway? A KV Cache Manipulation Attack by Mukkesh Ganesh, Kaushik Iyer, Arun Baalaaji Sankar Ananthan (2025) 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-2511-12752.txt.

Description

Mukkesh Ganesh, Kaushik Iyer, and Arun Baalaaji Sankar Ananthan demonstrate an attack that rewrites a language model's memory mid-conversation. Modern models cache key and value data from earlier text to generate quickly. That cache also encodes where the conversation is heading. The authors' attack, History Swapping, overwrites a block of the active cache with a precomputed cache from a different topic, changing its output without touching the visible prompt.

Across more than three hundred configurations on the Qwen 3 model family, only overwrites spanning every layer hijacked the topic. Three outcomes appeared: an immediate lasting shift, a partial recovery, or a delayed takeover. The experiments also revealed structure: high-level plans form early in generation, while the final layers maintain local discourse flow. The authors present the cache as a serious surface for security analysis, not just a speed trick, since whoever controls it steers the model's narrative.

Catalog record

CREATORMukkesh Ganesh, Kaushik Iyer, Arun Baalaaji Sankar Ananthan
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE24 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2511-12752

Browse the full library · About the Tower of Babel