TopoGuard: Graph Theory Based Defenses Against Split-Knowledge Attacks on RAG

Chahana Dahal, Zuobin Xiong
5/11/2026
cs.CLcs.CRcs.IR
rag

No confident code implementation found for this paper.

Abstract

Production Retrieval Augmented Generation (RAG) systems rely on aggregating multiple external documents to answer complex queries. However, the retrieved documents introduce a new threat surface that can be exploited to launch split-knowledge attacks.

Show full abstract

In this attack, the adversary injects documents that are individually benign but create false associations when combined and fed to language models. This paper shows that the new attack is structurally invisible to existing per-document filters, like LlamaGuard. To address this issue in RAG, this work introduces TopoGuard, a family of graph theory-based methods specifically targeting the split-knowledge attacks by building a semantic similarity graph from retrieved documents and detecting contexts with malicious topology. Grounded on the theoretical analysis, the TopoGuard family has been proven to be effective and robust even with noisy inputs. Extensive experiments are conducted on two retrieval datasets and compared with multiple baseline methods. Specifically, the TopoGuard-$λ_2$+Entity catches 21$\times$ more attacks than LlamaGuard-2-8B at 1\% FPR (32.6\% vs 1.5\% recall) on the HotpotQA dataset. Compared with production RAG detection systems using large language models, the proposed TopoGuard variants run efficiently at sub-millisecond latency and stay robust under adaptive adversaries and benign cross-domain queries.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dahal2026topoguard,
  title  = {TopoGuard: Graph Theory Based Defenses Against Split-Knowledge Attacks on RAG},
  author = {Chahana Dahal and Zuobin Xiong},
  year   = {2026},
  eprint = {2607.20437},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.20437v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.20437.svg)](https://codeofpaper.com/paper/2607.20437)

Discussion