The vulnerability of retrieval-augmented generation (RAG) in knowledge-intensive application domainsOn the Vulnerability of Applying Retrieval-Augmented Generation within Knowledge-Intensive Application Domains
The researchers find that the retrieval system of retrieval-augmented generation (RAG) is vulnerable to universal poisoning attacks, where a query specified by the attacker can precisely retrieve the poisoned document from the corpus. The study is conducted in a medical question-answering scenario, covering 225 combination settings of corpora, retrievers, queries and target information; the poisoned document can contain a wide range of target information such as personally identifiable information, and any user using the attacker-specified query can retrieve it. Mechanistically, the authors find that the deviation from the query embedding vector to the poisoned document embedding vector tends to preserve a high similarity between the two, thereby making precise retrieval possible. Based on these findings, the authors propose a detection-based defense method, which achieves a high detection rate in almost all cases in extensive experiments across multiple question-answering domains.