Visual Memory Injection Attacks for Multi-Turn Conversations
Christian Schlarmann, Matthias Hein
TL;DR
The paper addresses security risks in large vision-language models operating in long, multi-turn conversations, showing that a manipulated image can steer a model toward a targeted output only when a trigger topic is raised. It proposes Visual Memory Injection (VMI), which uses benign anchoring and context-cycling to craft imperceptible perturbations under an $ ilde{\ell}_\infty$ budget of $\varepsilon = 8/255$ that remain inert for non-trigger prompts but elicit a prescribed response on trigger prompts, optimized with adaptive projected gradient descent. The attack is demonstrated across multiple open-weight LVLMs (e.g., $\text{Qwen2.5-VL-7B-Instruct}$, $\text{Qwen3-VL-8B-Instruct}$, $\text{LLaVA-OneVision-1.5-8B-Instruct}$), persisting through long dialogues (up to $n=27$ turns; optimization over $n=8$) and showing transfer to unseen prompts and to fine-tuned variants. Key findings include high combined success rates $\mathrm{SR}_{\wedge}$ for stock, political, car, and phone targets, robustness to paraphrase, and notable transferability, underscoring the need for defenses and safety evaluations in multimodal conversational AI.
Abstract
Generative large vision-language models (LVLMs) have recently achieved impressive performance gains, and their user base is growing rapidly. However, the security of LVLMs, in particular in a long-context multi-turn setting, is largely underexplored. In this paper, we consider the realistic scenario in which an attacker uploads a manipulated image to the web/social media. A benign user downloads this image and uses it as input to the LVLM. Our novel stealthy Visual Memory Injection (VMI) attack is designed such that on normal prompts the LVLM exhibits nominal behavior, but once the user gives a triggering prompt, the LVLM outputs a specific prescribed target message to manipulate the user, e.g. for adversarial marketing or political persuasion. Compared to previous work that focused on single-turn attacks, VMI is effective even after a long multi-turn conversation with the user. We demonstrate our attack on several recent open-weight LVLMs. This article thereby shows that large-scale manipulation of users is feasible with perturbed images in multi-turn conversation settings, calling for better robustness of LVLMs against these attacks. We release the source code at https://github.com/chs20/visual-memory-injection
