Submitted:
07 October 2026
Posted:
10 October 2026
You are already at the latest version
Abstract
Retrieval-Augmented Generation (RAG) enhances text-to-image diffusion models by grounding generation in retrieved visual exemplars, but recent studies reveal that multimodal retrieval pipelines are highly vulnerable to poisoning attacks. When adversaries corrupt the retrieval database, semantically mismatched exemplars such as retrieving images of cats for prompts requesting dogs can mislead diffusion models into generating incorrect or misleading outputs. We identify this failure mode as a breakdown of semantic coherence between the text prompt and retrieved visual context. To address this issue, we propose a score-based semantic coherence refinement module that explicitly evaluates prompt-image consistency, refines misaligned prompt components, and re-retrieves corrected exemplars prior to diffusion. Acting as a multimodal feedback loop, the proposed method prevents poisoned retrieval from propagating semantic errors into the generative process. Extensive experiments demonstrate that our approach significantly improves semantic correctness, alignment, and robustness under both clean and poisoned retrieval settings, establishing an effective and principled defense for Vision RAG-augmented diffusion models.
Keywords:
generative AI security
; vision RAG
; retrieval poisoning
; robust text-to-image generation
1. Introduction
Generative models have become a central component of modern artificial intelligence, enabling the synthesis of realistic images, videos, and multimodal content. Recent advances in diffusion models [1,2,3] have significantly improved visual fidelity and controllability, making them the foundation of many state-of-the-art text-to-image systems. To further enhance grounding and reduce hallucination, Retrieval-Augmented Generation (RAG) has emerged as a powerful paradigm that conditions generation on external evidence retrieved from large corpora [4]. As this retrieval paradigm expands to the visual domain, Vision RAG systems integrate retrieved images and visual embeddings into diffusion-based generation, improving structure, realism, and fine-grained attribute alignment [5,6,7].
However, reliance on retrieved content also exposes Vision RAG to new vulnerabilities. When the retrieval database is poisoned or adversarially manipulated, the system may retrieve semantically incorrect exemplars - for example, “a dog prompt retrieving cat images” leading the generative model to produce logically inconsistent outputs. Figure 1 illustrates this retrieval poisoning mechanism and its downstream effect in a Vision RAG pipeline, where adversarially mislabeled visual exemplars corrupt retrieval results and propagate semantic errors into diffusion-based image generation. Recent multimodal poisoning studies demonstrate that such attacks can reliably corrupt retrieval and misguide downstream generation [8,9,10,11]. These findings reveal a critical limitation of Vision RAG pipelines: they lack mechanisms to verify whether retrieved images are semantically consistent with the user prompt.
To address this gap, we propose a score-based semantic coherence refinement framework that evaluates consistency between prompt components and retrieved visual evidence before diffusion-based generation. As illustrated in Figure 2, the proposed framework introduces a semantic verification and refinement stage between retrieval and generation. When semantic inconsistencies are detected, the system adaptively refines ambiguous prompt components and performs re-retrieval to obtain more coherent visual context. This lightweight feedback loop prevents poisoned or misleading retrieval results from influencing the diffusion process while preserving the efficiency and scalability of existing Vision RAG pipelines. Furthermore, the proposed design is general and modular, allowing alternative coherence scoring, verification, or refinement strategies to be incorporated without modifying the overall framework. Unlike conventional retrieval filtering, the proposed framework operates at the semantic chunk level, enabling fine-grained verification and correction of retrieved visual evidence.
Our main contributions can be summarized as:
- We analyze Vision RAG–augmented diffusion models under retrieval poisoning and identify semantic incoherence between prompt components and retrieved visual evidence as a key factor underlying generation failures in poisoned retrieval settings.
- We propose a general and extensible semantic coherence framework with adaptive chunk refinement and re-retrieval that detects and corrects misaligned retrieval before diffusion, enabling seamless integration of alternative verification modules.
- Through extensive experiments and qualitative analysis, we demonstrate that the proposed method provides an efficient and robust defense, substantially improving semantic correctness and alignment under both clean and adversarial retrieval settings without modifying or fine-tuning the diffusion backbone.
2. Related Work
2.1. Retrieval-Augmented Generation
Retrieval-Augmented Generation (RAG) enhances generative models by incorporating external retrieved evidence [4]. Initially developed for knowledge-intensive NLP tasks such as question answering and few-shot reasoning [12], RAG has recently been extended to the visual domain through retrieval-augmented diffusion models [7] and cross-attention retrieval architectures [13]. Vision RAG systems such as VisRAG [5] and FineRAG [6] demonstrate that retrieved visual exemplars improve grounding, object fidelity, and attribute control, while multimodal reranking further enhances retrieval quality [14].
2.2. Security Risks in Conventional RAG
RAG systems inherit vulnerabilities from their retrieval corpora. PoisonedRAG [15] and one-shot poisoning attacks [16] show that adversarially injected content can manipulate retrieval results and corrupt downstream generation. Existing defenses include retrieval filtering, reranking, and grounding-aware evaluation frameworks [17,18]. Nevertheless, recent studies reveal persistent weaknesses, including backdoor attacks, memory corruption, and poisoning of agent knowledge bases [19,20,21,22], highlighting the difficulty of detecting semantic manipulation within retrieved content.
2.3. Risks in Vision and Multimodal RAG
Vision RAG introduces additional attack surfaces due to its reliance on visual embeddings and cross-modal alignment. Recent studies show that poisoned visual exemplars can systematically corrupt both retrieval and generation in multimodal RAG pipelines [8,9,10]. Visual backdoor attacks and retrieval poisoning can further manipulate retrieval behavior and steer diffusion models toward attacker-controlled outputs [11,23]. Unlike textual RAG, Vision RAG lacks explicit mechanisms to verify semantic consistency between prompts and retrieved images, allowing poisoned visual evidence to propagate directly into generation. These limitations motivate the semantic coherence verification framework proposed in this work.
3. Methodology
Our goal is to improve the robustness and semantic correctness of Vision RAG by ensuring that the retrieved visual evidence is consistent with the intended meaning of the textual prompt. Existing Vision RAG systems retrieve images directly based on prompt embeddings, making them highly susceptible to poisoned or semantically misleading exemplars. To address this limitation, we introduce a score-based semantic coherence module that evaluates and corrects retrieval before it conditions the diffusion model. The overall pipeline is illustrated in Figure 2.
Contrastive semantic coherence scoring
Given a prompt p, we decompose it into a set of semantic chunks
where each chunk corresponds to an entity, attribute, or action extracted from the prompt. For each chunk , the retriever returns a set of top-k candidate images
Raw similarity alone is often insufficient under retrieval poisoning, as incorrect images may achieve high similarity scores. To address this, we introduce a contrastive semantic coherence score that penalizes retrieved images aligned with competing concepts.
Let and denote pretrained text and image encoders. The compatibility score between chunk and image is
For each chunk , we construct a negative chunk set consisting of other prompt chunks or a small bank of semantically related concepts. The coherence score is
where denotes similarity scores for negative chunks and controls the penalty strength. The negative chunk set encourages discrimination between the intended concept and competing semantics, reducing the impact of poisoned or ambiguous retrieval results. The log-sum-exp term approximates the strongest competing semantic alignment, allowing the coherence score to reward retrievals that are more strongly associated with the intended concept than with competing concepts.
We aggregate candidate evidence using top-k pooling:
Chunks with are considered semantically inconsistent and treated as potentially poisoned retrievals.
Score-triggered chunk refinement and re-retrieval
For inconsistent chunks (), we improve retrieval specificity through a refinement operator that leverages the full prompt context:
The refined chunk augments the original concept with contextual attributes, actions, or relations. For example, dog may be refined to golden retriever playing, yielding more discriminative retrieval. We then perform re-retrieval,
and recompute the coherence score . If , the refined retrieval is accepted; otherwise, it is discarded.
Verified conditioning for diffusion
After verification and optional refinement, we construct the retrieval set used for diffusion conditioning:
The diffusion model conditions only on , ensuring that generation is guided by semantically verified visual evidence while preventing poisoned retrieval from propagating into the denoising process.
Table 1.
Results on the COCO test set. ‘Numerical’, ‘Spatial’, ‘Semantic’, ‘Mixed’, and ‘Null’ refer to test cases with numerical descriptions, spatial relationships, semantic actions, multiple relations/descriptions, and no explicit relation keywords. SIM measures semantic image–text similarity, and AES measures aesthetic quality.
Table 1.
Results on the COCO test set. ‘Numerical’, ‘Spatial’, ‘Semantic’, ‘Mixed’, and ‘Null’ refer to test cases with numerical descriptions, spatial relationships, semantic actions, multiple relations/descriptions, and no explicit relation keywords. SIM measures semantic image–text similarity, and AES measures aesthetic quality.
| Models | Mixed | Numerical | Null | Semantic | Spatial | Total | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SIM↑ | AES↑ | SIM↑ | AES↑ | SIM↑ | AES↑ | SIM↑ | AES↑ | SIM↑ | AES↑ | SIM↑ | AES↑ | |
| w.o. Retrieval | ||||||||||||
| VQ-Diffusion [24] | 26.71 | 5.62 | 25.90 | 5.69 | 26.24 | 5.71 | 26.95 | 5.54 | 26.24 | 5.58 | 26.43 | 5.63 |
| Stable Diffusion 1-1 [25] | 27.28 | 6.07 | 26.50 | 5.71 | 26.70 | 5.95 | 27.12 | 5.94 | 26.69 | 5.80 | 26.86 | 5.90 |
| Stable Diffusion 1-4 [25] | 27.63 | 6.14 | 26.99 | 5.94 | 27.31 | 5.97 | 27.79 | 6.00 | 27.30 | 5.79 | 27.42 | 5.97 |
| LayoutLLM-t2i [26] | 26.57 | 5.76 | 25.89 | 5.79 | 25.55 | 5.76 | 26.45 | 5.88 | 25.58 | 5.67 | 26.01 | 5.77 |
| w. Retrieval | ||||||||||||
| RDM [27] | 25.91 | 5.12 | 26.00 | 5.25 | 25.65 | 5.17 | 25.87 | 5.04 | 26.00 | 5.01 | 25.88 | 5.11 |
| Re-Imagen [28] | 27.48 | 5.90 | 27.57 | 5.89 | 27.31 | 5.92 | 27.43 | 5.94 | 27.45 | 5.87 | 27.44 | 5.90 |
| FineRAG [6] | 28.40 | 6.16 | 28.38 | 6.12 | 27.70 | 6.10 | 28.23 | 6.09 | 28.67 | 6.10 | 28.27 | 6.11 |
| Ours | 28.92 | 6.23 | 28.85 | 6.18 | 28.10 | 6.15 | 28.76 | 6.17 | 29.05 | 6.19 | 28.74 | 6.18 |
4. Experiments
We evaluate the proposed semantic coherence module across multiple Vision RAG pipelines under both clean and adversarially poisoned retrieval settings. Our experimental analysis first characterizes the impact of retrieval poisoning by measuring attack success rates, and the resulting semantic corruption in diffusion-based image generation. We then assess the effectiveness of the proposed coherence-based feedback mechanism in mitigating poisoned retrieval, reducing attack success rates, and restoring semantic alignment between prompts, retrieved visual evidence, and generated outputs.
4.1. Experimental Setup
Poison Setup
To simulate retrieval poisoning, we directly poison the vision retriever rather than the diffusion generator. Specifically, we target the CLIP-based visual encoder [29] used for retrieval by injecting adversarially mislabeled image–text pairs into its training data. Following prior poisoning paradigms [15,19], we construct a poisoned subset from the Conceptual Captions dataset [30], which contains approximately 12 million image–text pairs. We sampled 3 million image–text pairs. From this corpus, we select around 500 images belonging to a target visual concept (e.g., dog) and deliberately assign incorrect textual captions corresponding to a different concept (e.g., cat). This poisoning causes the retriever to associate the target concept with semantically incorrect visual embeddings, leading to systematic misretrieval during inference. Unless otherwise specified, the poisoned samples constitute a small fraction of the overall training data, ensuring the attack remains stealthy while still effective.
Pretraining Setup
The diffusion backbone is based on a Stable Diffusion Model [25] and remains fully frozen throughout all experiments. Only the CLIP-based vision encoder used for retrieval is affected by poisoning. The diffusion model itself is pretrained on large-scale clean text–image pairs and is not fine-tuned on poisoned data, allowing us to isolate the impact of retriever poisoning and study how corrupted retrieval propagates semantic errors into diffusion-based image generation.
Evaluation Datasets
We conduct experiments on two representative Vision RAG benchmarks, InfoSeek [31] and OVEN [32], which are widely used for evaluating multimodal retrieval and retrieval-augmented generation under both clean and adversarial settings. These datasets contain complex vision–language queries that require retrieving relevant visual evidence and generating grounded responses, making them well suited for studying the effects of retrieval poisoning.
Implementation Details
We use Stable Diffusion v1.4 as the diffusion backbone for all experiments. Our semantic coherence module employs a CLIP [29] scoring function to evaluate prompt-image consistency. Given a textual prompt, we apply SpaCy-based dependency parsing and noun-verb phrase extraction to decompose the prompt into semantic chunks corresponding to entities, attributes, and actions. During refinement, prompt chunks with low coherence scores are adaptively refined and re-retrieved to improve retrieval specificity before conditioning the diffusion model.
4.2. Results
Attack Effect
Table 2 evaluates the effectiveness of retrieval poisoning attacks on the InfoSeek and OVEN benchmarks using retrieval-level (ASR-R) and generation-level (ASR-G) attack success rates, together with clean task accuracy (ACC). Simple corpus poisoning and prior RAG attacks achieve limited success, while gradient-based retriever attacks (CLIP PGD) increase ASR but do not consistently translate to generation corruption. In contrast, multimodal knowledge poisoning methods such as Poisoned-MRAG achieve near-perfect ASR-R and ASR-G, demonstrating that poisoned retrieval can reliably induce semantic errors in downstream generation. Our poisoning setup exhibits similarly high attack effectiveness, achieving near-complete corruption at both retrieval and generation stages. These results highlight the severity of retrieval poisoning in Vision RAG systems and motivate the need for the semantic coherence defense proposed in this work.
Effect of Semantic Coherence Refinement under Poisoned Retrieval
Figure 3 illustrates the direct impact of retrieval poisoning on Vision RAG–based image generation and the corrective effect of the proposed semantic coherence module. Under poisoned retrieval (left), the retriever returns visually plausible but semantically incorrect exemplars (e.g., a cat retrieved for the concept “dog”), which are then propagated into the diffusion model, resulting in a logically inconsistent generation that violates the prompt semantics. This example highlights how retrieval-level corruption directly translates into generation-level semantic errors, even when the diffusion backbone itself is unchanged.
After applying the proposed score-based semantic coherence check (right), retrieved images are explicitly verified against the prompt semantics. Misaligned exemplars are detected through low coherence scores, filtered or corrected via prompt refinement and re-retrieval, and replaced with semantically consistent visual context. As a result, the diffusion model is conditioned on verified retrieval evidence and generates an image that correctly reflects both the entities and their intended interactions in the prompt. This qualitative comparison demonstrates that enforcing semantic coherence at the retrieval stage effectively blocks the propagation of poisoned knowledge into generation, complementing the quantitative robustness gains observed in Table 1 and Table 2.
Quality of Generated Image
Table 1 reports quantitative results on the COCO [33] test set, comparing diffusion-based image generation models with and without retrieval augmentation. While retrieval-based methods already outperform non-retrieval baselines by incorporating external visual context, their performance critically depends on the semantic consistency of the retrieved images. Our method builds upon retrieval-augmented generation by introducing a contextual refinement mechanism that verifies and refines retrieved visual evidence before diffusion.
Across all categories, our method achieves the highest semantic similarity (SIM) and aesthetic score (AES), with notable gains over FineRAG on Semantic, Spatial, and Mixed prompts involving complex interactions. These results show that enforcing prompt–retrieval coherence improves conditioning fidelity and generation quality, while remaining fully modular and requiring no fine-tuning of the diffusion backbone.
Qualitative Analysis of Semantic Coherence
Figure 4 presents qualitative comparisons on the COCO test set and the Multi-Entity Draw Bench. Baseline retrieval-augmented and diffusion models frequently fail to capture intended actions, rare entities, geographic context, and multi-entity interactions due to noisy or semantically inconsistent retrieval. In contrast, the proposed semantic coherence refinement framework preserves entity identities, actions, and relationships by filtering and correcting misaligned visual evidence before diffusion.
4.3. Ablation Study
Figure 5 illustrates the impact of retrieval poisoning on semantic alignment and the effectiveness of the proposed semantic coherence refinement. Under poisoned retrieval, the baseline Vision RAG model exhibits a substantial drop in CLIP score across all prompt categories, indicating degraded prompt–image consistency. After applying the coherence refinement loop, CLIP scores consistently recover across Mixed, Numerical, Null, Semantic, and Spatial prompts, with the largest gains in the Semantic and Mixed categories involving complex interactions. These results confirm that verifying and refining retrieved visual context before diffusion effectively mitigates poisoned semantics. These improvements indicate that the benefits arise from the coherence verification and refinement process rather than from changes to the diffusion backbone itself, which remains frozen throughout all experiments.
5. Conclusions
We studied the vulnerability of Vision RAG systems to poisoned visual retrieval and showed that semantic mismatches between prompts and retrieved images can severely degrade diffusion-based generation quality. Our experiments demonstrate that retrieval poisoning achieves high attack success rates at both retrieval and generation levels, leading to systematic semantic errors. To address this issue, we proposed a score-based semantic coherence refinement module that verifies prompt-image alignment, refines misaligned prompt components, and re-retrieves corrected visual context prior to diffusion. Extensive quantitative and qualitative results show that our method substantially improves semantic correctness, robustness, and alignment under both clean and adversarial settings, establishing an effective and principled defense for Vision RAG augmented diffusion models. The proposed design is general and modular, allowing alternative coherence scoring, verification, or refinement strategies to be incorporated.
References
- Ho, J.; Jain, A.; Abbeel, P. Denoising Diffusion Probabilistic Models. Adv. Neural Inf. Process. Syst. 2020, 33, 6840–6851. [Google Scholar]
- Nichol, A.Q.; Dhariwal, P. Improved Denoising Diffusion Probabilistic Models. In Proceedings of the 38th International Conference on Machine Learning (ICML), 2021. [Google Scholar]
- Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; Ommer, B. High-Resolution Image Synthesis with Latent Diffusion Models. In Proceedings of the Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022; pp. 10684–10695. [Google Scholar]
- Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; Küttler, H.; Lewis, M.; Yih, W.t.; Rocktäschel, T.; et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Proc. Adv. Neural Inf. Process. Syst. 2020, Vol. 33, 9459–9474. [Google Scholar]
- Yu, S.; Tang, C.; Xu, B.; Cui, J.; Ran, J.; Yan, Y.; Liu, Z.; Wang, S.; Han, X.; Liu, Z.; et al. VisRAG: Vision-based Retrieval-augmented Generation on Multi-modality Documents. arXiv 2025, arXiv:cs. [Google Scholar]
- Yuan, H.; Zhao, Z.; Wang, S.; Xiao, S.; Ni, M.; Liu, Z.; Dou, Z. FineRAG: Fine-grained Retrieval-Augmented Text-to-Image Generation. In Proceedings of the Proceedings of the 31st International Conference on Computational Linguistics; Rambow, O., Wanner, L., Apidianaki, M., Al-Khalifa, H., Eugenio, B.D., Schockaert, S., Eds.; Abu Dhabi, UAE, 2025; pp. 11196–11205. [Google Scholar]
- Blattmann, A.; Rombach, R.; Ommer, B. Retrieval-Augmented Diffusion Models. arXiv 2023, arXiv:2307.01037. [Google Scholar]
- Liu, Y.; Yuan, Z.; Tie, G.; Shi, J.; Zhou, P.; Sun, L.; Gong, N.Z. Poisoned-MRAG: Knowledge Poisoning Attacks to Multimodal Retrieval Augmented Generation. arXiv 2025, arXiv:2503.06254. [Google Scholar]
- Shereen, E.; Ristea, D.; McFadden, S.; Hasircioglu, B.; Mavroudis, V.; Hicks, C. One Pic is All it Takes: Poisoning Visual Document Retrieval-Augmented Generation with a Single Image. arXiv 2025, arXiv:2504.02132. [Google Scholar]
- Ha, H.; Zhan, Q.; Kim, J.; Bralios, D.; Sanniboina, S.; Peng, N.; Chang, K.W.; Kang, D.; Ji, H. MM-PoisonRAG: Disrupting Multimodal RAG with Local and Global Poisoning Attacks. arXiv 2025, arXiv:2502.17832. [Google Scholar]
- Zhang, C.; Zhang, X.; Lou, J.; Wu, K.; Wang, Z.; Chen, X. PoisonedEye: Knowledge Poisoning Attack on Retrieval-Augmented Generation based Large Vision-Language Models. In Proceedings of the International Conference on Learning Representations (ICLR), 2025. [Google Scholar]
- Izacard, G.; Lewis, P.; Lomeli, M.; Hosseini, L.; Riedel, S.; Karpukhin, V.; Petroni, F. Atlas: Few-shot Learning with Retrieval Augmented Language Models. In Proceedings of the International Conference on Machine Learning (ICML), 2022. [Google Scholar]
- Feng, W.; He, T.; Zhang, W.; Dong, Q. Retrieval-Augmented Text-to-Image Generation via Cross-Attention. arXiv 2023, arXiv:2305.06710. [Google Scholar]
- Chen, Z.; Xu, C.; Qi, Y.; Jiang, X.; Guo, J. VLM Is a Strong Reranker: Advancing Multimodal Retrieval-augmented Generation via Knowledge-enhanced Reranking and Noise-injected Training. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2025; Christodoulopoulos, C., Chakraborty, T., Rose, C., Peng, V., Eds.; Suzhou, China, 2025; pp. 8140–8158. [Google Scholar] [CrossRef]
- Zou, W.; Geng, R.; Wang, B.; Jia, J. PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models. arXiv 2024, arXiv:cs. [Google Scholar]
- Chang, Z.; Li, M.; Jia, X.; Wang, J.; Huang, Y.; Jiang, Z.; Liu, Y.; Wang, Q. One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems. arXiv 2025, arXiv:cs. [Google Scholar]
- Kolhe, T.; Kumar, P.; Nielson, T.; Zala, S.; Li, V.; Saxon, M.; Wu, S.; Zhu, K. RAGuard: A Layered Defense Framework for Retrieval-Augmented Generation Systems Against Data Poisoning. In Proceedings of the Proceedings of the Twelfth International Conference on Learning Representations (ICLR), 2024. [Google Scholar]
- Sorodoc, I.T.; Ribeiro, L.F.R.; Blloshmi, R.; Davis, C.; de Gispert, A. GaRAGe: A Benchmark with Grounding Annotations for RAG Evaluation. arXiv 2025, arXiv:cs. [Google Scholar]
- Bagwe, G.; Chaturvedi, S.S.; Ma, X.; Yuan, X.; Wang, K.C.; Zhang, L. Your RAG is Unfair: Exposing Fairness Vulnerabilities in Retrieval-Augmented Generation via Backdoor Attacks. In Proceedings of the Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2025; arXiv. [Google Scholar]
- Xue, J.; Zheng, M.; Hu, Y.; Liu, F.; Chen, X.; Lou, Q. BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Models. arXiv 2024, arXiv:cs. [Google Scholar]
- Cheng, P.; Ding, Y.; Ju, T.; Wu, Z.; Du, W.; Yi, P.; Zhang, Z.; Liu, G. TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Models. arXiv 2024, arXiv:cs. [Google Scholar]
- Chen, Z.; Xiang, Z.; Xiao, C.; Song, D.; Li, B. AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases. arXiv 2024, arXiv:cs. [Google Scholar]
- Fang, H.; Sui, X.; Yu, H.; Gao, K.; Kong, J.; Yu, S.; Chen, B.; Wu, H.; Xia, S.T. Retrievals Can Be Detrimental: A Contrastive Backdoor Attack Paradigm on Retrieval-Augmented Diffusion Models. arXiv 2025, arXiv:cs. [Google Scholar]
- Gu, S.; Chen, D.; Bao, J.; Wen, F.; Zhang, B.; Chen, D.; Yuan, L.; Guo, B. Vector Quantized Diffusion Model for Text-to-Image Synthesis, 2022. arXiv arXiv:cs.
- Podell, D.; English, Z.; Lacey, K.; Blattmann, A.; Dockhorn, T.; Müller, J.; Penna, J.; Rombach, R. SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis. arXiv 2023, arXiv:cs. [Google Scholar]
- Qu, L.; Wu, S.; Fei, H.; Nie, L.; Chua, T.S. LayoutLLM-T2I: Eliciting Layout Guidance from LLM for Text-to-Image Generation, 2023. arXiv arXiv:cs.
- Blattmann, A.; Rombach, R.; Oktay, K.; Müller, J.; Ommer, B. Retrieval-Augmented Diffusion Models. In Proceedings of the Advances in Neural Information Processing Systems, 2022. [Google Scholar] [CrossRef]
- Chen, W.; Hu, H.; Saharia, C.; Cohen, W.W. Re-Imagen: Retrieval-Augmented Text-to-Image Generator. arXiv 2022, arXiv:cs. [Google Scholar]
- Radford, A.; Kim, J.W.; Hallacy, C.; Ramesh, A.; Goh, G.; Agarwal, S.; Sastry, G.; Askell, A.; Mishkin, P.; Clark, J.; et al. Learning Transferable Visual Models From Natural Language Supervision, 2021. arXiv arXiv:cs.
- Changpinyo, S.; Sharma, P.; Ding, N.; Soricut, R. Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Concepts. arXiv 2021, arXiv:cs. [Google Scholar]
- Xia, Z.; Luo, K.; Qian, H.; Liu, Z. Open Data Synthesis For Deep Research, 2025. arXiv arXiv:cs.
- Hu, H.; Luan, Y.; Chen, Y.; Khandelwal, U.; Joshi, M.; Lee, K.; Toutanova, K.; Chang, M.W. Open-domain Visual Entity Recognition: Towards Recognizing Millions of Wikipedia Entities. arXiv 2023, arXiv:cs. [Google Scholar]
- Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In Proceedings of the Computer Vision – ECCV 2014; Fleet, D., Pajdla, T., Schiele, B., Tuytelaars, T., Eds.; Cham, 2014; pp. 740–755. [Google Scholar]
Figure 1.
Poisoning strategy and its downstream effect in a Vision RAG image generation pipeline.

Figure 2.
Overview of the proposed score-based semantic coherence framework for robust Vision RAG-guided image generation. Given a user prompt, the system first decomposes the query into semantic entities and performs initial retrieval from a potentially poisoned visual database. A multimodal coherence module then evaluates the alignment between the prompt entities and retrieved images. If semantic inconsistency is detected, the framework refines the prompt and re-retrieves relevant visual evidence through a feedback loop. Only semantically verified context is passed to the diffusion model, ensuring robust image generation even under poisoned or noisy retrieval conditions.
Figure 2.
Overview of the proposed score-based semantic coherence framework for robust Vision RAG-guided image generation. Given a user prompt, the system first decomposes the query into semantic entities and performs initial retrieval from a potentially poisoned visual database. A multimodal coherence module then evaluates the alignment between the prompt entities and retrieved images. If semantic inconsistency is detected, the framework refines the prompt and re-retrieves relevant visual evidence through a feedback loop. Only semantically verified context is passed to the diffusion model, ensuring robust image generation even under poisoned or noisy retrieval conditions.

Figure 3.
Effect of the proposed score-based semantic coherence check in Vision RAG image generation under poisoned retrieval.
Figure 3.
Effect of the proposed score-based semantic coherence check in Vision RAG image generation under poisoned retrieval.

Figure 4.
Qualitative comparison on the COCO test set and Multi-Entity Draw Bench. Images are arranged column-wise by model and row-wise by prompt. The proposed method (Ours) produces semantically consistent images, while baseline retrieval-augmented and diffusion models often confuse actions, roles, or entities.
Figure 4.
Qualitative comparison on the COCO test set and Multi-Entity Draw Bench. Images are arranged column-wise by model and row-wise by prompt. The proposed method (Ours) produces semantically consistent images, while baseline retrieval-augmented and diffusion models often confuse actions, roles, or entities.

Figure 5.
CLIP score comparison under poisoned retrieval. Poisoned Vision RAG exhibits degraded semantic alignment across all prompt categories, while the proposed semantic coherence refinement consistently restores alignment, with the largest gains on semantically complex prompts.
Figure 5.
CLIP score comparison under poisoned retrieval. Poisoned Vision RAG exhibits degraded semantic alignment across all prompt categories, while the proposed semantic coherence refinement consistently restores alignment, with the largest gains on semantically complex prompts.

Table 2.
Attack effectiveness under retrieval poisoning on the InfoSeek and OVEN datasets. ASR-R and ASR-G denote retrieval-level and generation-level attack success rates, respectively, while ACC denotes clean task accuracy. Higher ASR and lower ACC indicate stronger poisoning attacks.
Table 2.
Attack effectiveness under retrieval poisoning on the InfoSeek and OVEN datasets. ASR-R and ASR-G denote retrieval-level and generation-level attack success rates, respectively, while ACC denotes clean task accuracy. Higher ASR and lower ACC indicate stronger poisoning attacks.
| Dataset | Attack Method | ASR-R ↑ | ASR-G ↑ | ACC ↓ |
|---|---|---|---|---|
| InfoSeek | Corpus Poisoning | 0.01 | 0.02 | 0.94 |
| PoisonedRAG | 0.05 | 0.00 | 0.92 | |
| CLIP PGD | 0.19 | 0.18 | 0.76 | |
| Poisoned-MRAG (Clean-L) | 0.97 | 0.94 | 0.04 | |
| Poisoned-MRAG (Dirty-L) | 1.00 | 0.98 | 0.02 | |
| Our Poisoning Strategy | 1.00 | 0.99 | 0.01 | |
| OVEN | Corpus Poisoning | 0.03 | 0.06 | 0.78 |
| PoisonedRAG | 0.29 | 0.02 | 0.78 | |
| CLIP PGD | 0.63 | 0.32 | 0.54 | |
| Poisoned-MRAG (Clean-L) | 0.95 | 0.88 | 0.08 | |
| Poisoned-MRAG (Dirty-L) | 1.00 | 0.96 | 0.02 | |
| Our Poisoning Strategy | 1.00 | 0.99 | 0.01 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.