Dynamic soft prompts cut M-RAG attack success while preserving retrieval utility
DSPrompt reduces attack success and poison retrieval rates while keeping near-lossless retrieval performance
AI/ML arXiv 17 Aug 2026 Defense Simulation evidence
Published as “DSPrompt: Dynamic Soft Prompt Defense Against M-RAG Corruption”
Why it matters
DSPrompt can be dropped into existing M-RAG pipelines as a drop-in replacement retriever, providing stronger poisoning resistance with negligible overhead.
Summary
DSPrompt dramatically cuts both poison retrieval rate and end-to-end attack success rate while keeping retrieval utility and generation fidelity almost unchanged. It does this by inserting a tiny set of learnable soft prompts into each layer of a frozen multimodal retriever and training them in a dynamic min-max game against an online attacker. The defended encoder can be pre-computed and indexed like a standard dense retriever, adding fewer than 1% extra parameters and no per-query overhead. The paper reports consistent improvements over baselines across four benchmarks and three attack families, though exact percentage gains are not quoted in the excerpt.
What they found 2
- DSPrompt substantially reduces attack success rate and poison retrieval rate while preserving utility and fidelity
“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.”
- The defense adds fewer than 1% additional parameters and requires no per-query optimization
“DSPrompt incurs no additional per-query optimization and introduces fewer than 1% additional parameters.”
What’s new here 4
- Reshapes the retriever itself via layer-wise soft prompts instead of adding a separate detector or re-ranking step
- Trains prompts with a dynamic min-max scheme that continuously generates hard poisons during training
- Allocates prompt length with a shallow-to-deep schedule to focus capacity on deeper cross-modal layers
- Adds <1% parameters and incurs no per-query computation, unlike prior query-time defenses