Skip to content

SPAR: Sparse-space Poisoning Attack on Retrieval-Augmented Generation Systems

Qingyuan Zheng, Min Ren, Saihui Hou, Huijia Wu, Weidong Liu, Zhaofeng He

cs.CR

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