Reproduce “Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generation” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yuying Li, Gaoyang Liu, Chen Wang, Yang Yang

Researchers from Hubei University and Huazhong University of Science and Technology introduced S^2MIA, a membership inference attack specifically designed for Retrieval-Augmented Generation (RAG) systems' external databases. The attack exploits semantic similarity and perplexity between queries and RAG-generated outputs to infer data membership, achieving significantly higher ROC AUC scores, up to 0.892, compared to baseline methods.

Key insights

  • Semantic similarity and perplexity of RAG-generated content provide strong and distinct signals for inferring membership of a sample in the external database, effectively distinguishing members from non-members.
  • Traditional MIAs, which rely on model overfitting, are largely ineffective against RAG's external databases, validating the need for new attack paradigms tailored to RAG's unique architecture.
  • Defense strategies like paraphrasing the query and explicitly modifying the LLM's prompt to summarize are effective at mitigating S^2MIA, whereas simply re-ranking retrieved content offers limited protection.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.