Skip to content
View original post on X: Rohan Paul
Published
49/100

Google paper finds query-copying documents poison RAG retrieval

AIGoogle researchers report that adding five documents which repeat a user's query can shift retrieval rankings sharply in RAG systems, with classic retrievers losing 40.2% to 61.5% ranking quality across 623 queries. The attack payload itself barely changed which documents were retrieved, so the query-copying step does most of the work.
Rohan PaulVerified on X
@rohanpaul_ai
View on X

New Google paper on RAG poisoning.

Shows that poisoning a RAG system mostly depends on copying the query, since adding an attack payload barely changed which documents got retrieved.

fake documents only need to repeat a user’s question to be picked up by AI systems that search before answering, and adding hidden attack instructions barely changed that.

RAG systems pull documents from sources that outsiders can sometimes write to. Before any hidden instruction can act, the poisoned page first has to get past the retriever.

For each test query, they added up to 5 documents repeating its text, with or without an attack payload. They tested classic keyword and semantic retrievers plus the dense embedding model BGE-small on 623 queries.

Just 5 documents, about 0.1% of the corpus, cut classic retrievers' ranking quality by 40.2% to 61.5%. A filter that rejects query-echoing documents blocked them but halved clean ranking quality on NFCorpus, from 0.267 to 0.134.

If your RAG index accepts outside content, flag documents that mirror user queries, and measure any filter's cost on clean queries too.

Source details

Rohan Paul · x.comPublished · added here

Original title: New Google paper on RAG poisoning.