SPAR: Sparse-space Poisoning Attack on Retrieval-Augmented Generation Systems
Qingyuan Zheng, Min Ren, Saihui Hou, Huijia Wu, Weidong Liu, Zhaofeng He
Abstract
Retrieval-Augmented Generation (RAG) mitigates large language model hallucinations and provides up-to-date and domain-specific knowledge by retrieving facts from external databases, but this architecture introduces a severe attack surface for knowledge poisoning. To ensure a more secure deployment of RAG systems, it is crucial to explore the boundaries of the vulnerability. However, existing poisoning attacks suffer from a dilution effect, where co-retrieved clean relevant documents provide factual information that overrides poisoned content during the generation, neutralizing the attack. This forces existing attacks to inject more poisoned documents to remain effective. Beyond the dilution effect, placing poisoned payloads within crowded semantic clusters exposes existing attacks to higher rates of unintended recall, as semantically related but distinct non-target queries frequently fetch these poisoned documents, significantly compromising their stealthiness. We introduce a Sparse-space Poisoning Attack on RAG Systems, an approach that exploits the inherent sparsity of high-dimensional embedding spaces for adversarial RAG poisoning. By isolating these poisoned documents into sparse regions in the embedding space with minimal relevant clean documents, SPAR effectively mitigates the dilution effect while reducing unintended recall. SPAR outperforms baselines by an average of 22% in attack success rate under the highly challenging single-document injection setting and maintains an 8% lead in multi-document settings. Notably, the adversarial payloads demonstrate strong transferability to unseen black-box retrievers. We also evaluate several existing defenses, revealing that SPAR remains highly effective and exposing the need for new defense methods.
Create a lesson
Metadata
- Comments
- 13 pages, 5 figures. A 4-page supplement is available as an ancillary file
Related papers
Poisoning the Evidence: Document and Data Attacks on LLM-driven Retrieval-Assisted Analytical Process-Property Model Generation
Shared title terminologycs.CRHoang Anh Nguyen, Ziqin Liu, Yuan Hong et al.
Prior Shift in Disguise: Rethinking the Evaluation of Data Augmentation for Rare-Attack Network Intrusion Detection
Shared title terminologycs.CRHuiheng Li, Zikang Liu
Assessing the Robustness of Defense Frameworks Against Data Attacks on AI Systems
Shared title terminologycs.CRVishnu Kurnala, Nelly Elsayed
Sparse Evidence, Decoupled Decisions: Task-Completion Attacks and Decision-Aligned Defenses for Video LLMs
Shared title terminologycs.CRChao Pan, Hongrui Wang, Jiaqi Zhu et al.
ZKCache: Cache Side-Channel Attacks on Zero-Knowledge Machine Learning Systems
Shared title terminologycs.CRSen Deng, Zhibo Liu, Yuanyuan Yuan et al.
Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis
Shared title terminologycs.CRJoshua Ward, Haoyuan Cheng, Yue Zhang et al.