Modern language models often process long contexts that include untrusted text and images. A new preprint on arXiv asks whether an adversarial input can continue to steer a model even after that input is removed from its context. The paper's title suggests the answer is yes: visual memory attacks can persist through the key-value (KV) cache, the internal memory that stores attention keys and values.

The KV cache is a core component of transformer-based models, allowing them to reference earlier tokens without reprocessing. The researchers appear to demonstrate that adversarial visual content can leave a persistent trace in this cache, influencing the model's outputs long after the original image is no longer in the visible context. This would mean that simply deleting the offending input from the prompt is not enough to neutralize its effect.

The finding has security implications for autonomous systems that operate over long, mixed-modality contexts, where a single malicious image could have a lingering effect. The paper is available on arXiv under identifier 2610.09027.