DSPrompt: Dynamic Soft Prompt Defense Against M-RAG Corruption
On the map: Retrieval-augmented generation → Privacy and security of RAG
also in 1 more
Abstract (arXiv)
Multimodal Retrieval Augmented Generation (M-RAG) is increasingly vulnerable to adversarial attacks where malicious data are crafted to produce embeddings that align with benign entries in the vector space, deceiving retrieval and inducing harmful outputs. Existing defenses primarily operate at query time, relying on auxiliary detectors, similarity re-ranking, or feature-consistency checks. However, these approaches suffer from non-trivial inference overhead, generalize poorly to unseen attack strategies, and often assume specific attack distributions. To address this, we propose DSPrompt, a Dynamic Soft Prompt defense framework that directly reshapes the retriever's embedding semantics, without modifying the retrieval pipeline. It inserts few learnable soft prompts into each layer of the visual and textual encoders of a frozen retriever, utilizing a shallow-to-deep length schedule that is adaptive to the capacity in the model layers. These prompts are trained under a dynamic min-max scheme: an online multimodal attacker continually crafts hard adversarial documents against the current retriever, while the defender is updated to push such documents out of the top-k while preserving the ranking and diversity of benign evidence. Because the defended encoder can be pre-computed and indexed exactly as in standard dense retrieval, DSPrompt incurs no additional per-query optimization and introduces fewer than 1% additional parameters. Extensive experiments across four benchmarks and three representative poisoning attacks show that DSPrompt substantially reduces the attack success rate and poison retrieval rate while maintaining near-lossless retrieval utility and generation fidelity, consistently outperforming existing defense baselines at a fraction of their computational cost.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 20 of its 29 references that are in the map. First posted on arXiv 17 Aug 2026.
Builds on
20 of 29 references.
Closest ancestors · 2
Same direction, newest first
- 2025MM-PoisonRAG: Disrupting Multimodal RAG with Local and Global Poisoning Attacks25 Feb
- 2024Certifiably Robust RAG against Retrieval Corruption24 May
Other references · 18
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
- 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,109
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,173
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 429
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
6 more
- 2022MuRAG: Multimodal Retrieval-Augmented Generator for Open Question Answering over Images and Textcited by 220
- 2023Can Pre-trained Vision and Language Models Answer Visual Information-Seeking Questions?cited by 207
- 2023UniIR: Training and Benchmarking Universal Multimodal Information Retrieverscited by 166
- 2023On the Adversarial Robustness of Multi-Modal Foundation Modelscited by 145
- 2023Open-domain Visual Entity Recognition: Towards Recognizing Millions of Wikipedia Entitiescited by 113
- 2023Robust Contrastive Language-Image Pre-training against Data Poisoning and Backdoor Attackscited by 31
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Walking the Embedding Space: Datastore Extraction from Multimodal RAG
- 2024Towards More Robust Retrieval-Augmented Generation: Evaluating RAG Under Adversarial Poisoning Attacks
- 2026Hidden in the Metadata: Stealth Poisoning Attacks on Multimodal Retrieval-Augmented Generation
- 2025RAGPart & RAGMask: Retrieval-Stage Defenses Against Corpus Poisoning in Retrieval-Augmented Generation
- 2025AIP: Subverting Retrieval-Augmented Generation via Adversarial Instructional Prompt
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
- 2025DeRAG: Black-box Adversarial Attacks on Multiple Retrieval-Augmented Generation Applications via Prompt Injection
- 2025MrM: Black-Box Membership Inference Attacks against Multimodal RAG Systems