Abstract
Multimodal large language models (MLLMs) equipped with Retrieval Augmented Generation (RAG) leverage both their rich parametric knowledge and the dynamic, external knowledge to excel in tasks such as Question Answering. While RAG enhances MLLMs by grounding responses in query-relevant external knowledge, this reliance poses a critical yet underexplored safety risk: knowledge poisoning attacks, where misinformation or irrelevant knowledge is intentionally injected into external knowledge bases to manipulate model outputs to be incorrect and even harmful. To expose such vulnerabilities in multimodal RAG, we propose MM-PoisonRAG, a novel knowledge poisoning attack framework with two attack strategies: Localized Poisoning Attack (LPA), which injects query-specific misinformation in both text and images for targeted manipulation, and Globalized Poisoning Attack (GPA) to provide false guidance during MLLM generation to elicit nonsensical responses across all queries. We evaluate our attacks across multiple tasks, models, and access settings, demonstrating that LPA successfully manipulates the MLLM to generate attacker-controlled answers, with a success rate of up to 56% on MultiModalQA. Moreover, GPA completely disrupts model generation to 0% accuracy with just a single irrelevant knowledge injection. Our results highlight the urgent need for robust defenses against knowledge poisoning to safeguard multimodal RAG frameworks.
Introduction
Large Language Models (LLMs) often suffer from hallucinations or lack of access to real-time information. Multimodal RAG addresses these issues by allowing models to retrieve relevant images and text from external knowledge bases (KBs) during inference. While this significantly improves performance on complex tasks, it introduces a substantial security risk. Since external KBs are often uncurated, they are susceptible to "knowledge poisoning," where an adversary injects malicious content to manipulate the model's reasoning. This paper presents MM-PoisonRAG, the first systematic study of such vulnerabilities in multimodal RAG systems.
Methodology
The MM-PoisonRAG framework introduces two primary poisoning strategies designed to exploit the retrieval and generation phases of the RAG pipeline.
1. Localized Poisoning Attack (LPA)
LPA is a targeted attack aimed at a specific user query. The goal is to force the model to output an attacker-defined incorrect answer.
- LPA-BB (Black-Box): Uses GPT-4 for misleading captions and Stable Diffusion for matching images, requiring no knowledge of the target system.
- LPA-Rt (White-Box): Employs gradient-based optimization to align the poisoned image's embedding with the target query's embedding in the retriever's latent space.
2. Globalized Poisoning Attack (GPA)
GPA is an untargeted attack intended to collapse the system's utility for all queries. By injecting a single entry that the retriever identifies as universally relevant, the attacker can force the model to generate nonsensical or "canned" responses (e.g., "Sorry") across the entire dataset.
Experimental Results
The researchers evaluated MM-PoisonRAG on the MultimodalQA (MMQA) and WebQA benchmarks, focusing on "knowledge-seeking" questions that require external retrieval.
The results demonstrate that LPA can achieve up to a 56% Attack Success Rate (ASR). Even more strikingly, the GPA strategy can reduce end-to-end accuracy to 0% with just one poisoned entry. The study also found that common defenses, such as query paraphrasing, fail to mitigate these attacks because the poisoned entries are optimized to remain semantically "sticky" across query variations.
Discussion and Insights
The effectiveness of these attacks reveals several critical insights:
- Embedding Space Vulnerability: Multimodal retrievers (like CLIP) map images and text into a shared space, allowing attackers to mathematically "hijack" the neighborhood of legitimate queries.
- Reranker Fragility: MLLM-based rerankers are easily fooled by captions that explicitly claim relevance to the query.
- Transferability: Attacks optimized against one retriever often transfer successfully to others, posing a threat even to closed-source, proprietary systems.
Conclusion
MM-PoisonRAG highlights a significant gap in current RAG security, which is largely text-centric. The findings advocate for the development of modality-aware defenses, such as cross-modal consistency checks, to verify the alignment between retrieved images, captions, and user queries before they reach the generation stage.
Summary updated