LogicPoison: Logical Attacks on Graph Retrieval-Augmented Generation

Yilin Xiao, Jin Chen, Qinggang Zhang, Yujing Zhang, Chuang Zhou, Longhao Yang, Lingfei Ren, Xin Yang, Xiao Huang

TL;DR

Graph-based Retrieval-Augmented Generation (GraphRAG) is typically resilient against traditional text-poisoning attacks due to its structured knowledge graph filtering. This paper introduces LogicPoison, a stealthy attack framework that bypasses these defenses by subtly rewiring the graph's topology through type-preserving entity swapping. By disrupting global hubs and query-specific reasoning bridges, LogicPoison severely degrades GraphRAG performance while keeping the source text grammatically fluent and virtually undetectable by perplexity filters.

What Problem Does This Paper Address?

Standard Retrieval-Augmented Generation (RAG) systems often struggle with large-scale, unstructured data, leading to fragmented context retrieval. GraphRAG solves this by structuring external knowledge into a Knowledge Graph (KG), using community detection and graph traversal to enable robust multi-hop reasoning.

Because GraphRAG filters out unstructured noise and isolates malicious documents topologically, it is highly resistant to traditional adversarial attacks like prompt injection or corpus poisoning.

Figure 1: Traditional attacks on LLM or RAG are dif- ficult to pose an effective threat to GraphRAG system. This is mainly due to two characteristics. First, the construction process of the knowledge graph naturally filters part of the attack content. Second, the unique retrieval and reasoning mechanism of graph structure further improves the difficulty of attack implementation.

However, the authors identify a critical vulnerability: GraphRAG’s reasoning capabilities rely entirely on the topological integrity of its underlying graph. If an attacker can implicitly corrupt these logical connections without changing surface-level text semantics, the system's multi-hop inference chains break down completely.

Methods

The authors propose LogicPoison, a novel attack framework designed to disrupt logical reasoning paths rather than injecting explicitly false content. The pipeline operates in three main stages:

  1. Strategic Entity Selection: A dual-pronged approach is used to find high-impact targets. Global Logic Poison identifies high-frequency hub nodes across the corpus to shatter overall graph connectivity. Query-Centric Logic Poison uses Chain-of-Thought (CoT) extraction via an LLM to pinpoint specific "reasoning bridges" essential for answering multi-hop queries.
  2. Type-Preserving Entity Swapping: To remain stealthy, the selected entities are grouped into type buckets (e.g., PERSON, ORG). The framework then applies a cyclic permutation to swap entities within the same type (for example, swapping "Obama", "Trump", and "Biden" in a text).
  3. Implicit Graph Corruption: The modified text remains grammatically correct and semantically plausible to surface-level filters. However, when GraphRAG indexes the poisoned corpus, it constructs a corrupted topology that reroutes valid reasoning paths into logical dead ends.
The LogicPoison Framework Pipeline

Datasets

The framework was evaluated using three widely adopted multi-hop question-answering benchmarks:

  • HotpotQA: Requires bridging entities and comparative reasoning.
  • 2WikiMultihopQA: Features complex multi-hop reasoning paths.
  • MuSiQue: A highly challenging dataset composed of single-hop question compositions.

Key Insights and Ideas

  • GraphRAG is a Reasoning Engine, Not Just a Data Store: GraphRAG's vulnerability lies in its structure, not its content volume. Disrupting the logical propagation paths via topological rewiring is far more effective than trying to inject massive amounts of fake facts.
  • Type Preservation Creates the Perfect Camouflage: By swapping entities of identical types, the text's fluency remains intact. Traditional anomaly detection methods that flag low-quality or high-perplexity text fail completely because the text reads naturally to statistical language models.
  • Structural Centrality Dictates Attack Impact: High-frequency entities act as spectral hubs. Perturbing them causes a low-rank shift in the graph's adjacency matrix, which drastically reduces global information diffusion efficiency.

Key Results

  • High Attack Success Rates (ASR): LogicPoison achieved dominant performance across multiple SOTA GraphRAG frameworks (Microsoft GraphRAG, HippoRAG2, GFM-RAG) and base LLMs (GPT-4o-mini, Llama-3.1-8B, Qwen-3-32B). For instance, on the MuSiQue dataset using Microsoft GraphRAG, LogicPoison achieved up to a 97% ASR-GPT, significantly outperforming the baseline PoisonedRAG.
  • Resource Efficiency: LogicPoison is highly efficient, running up to 4x faster and consuming only 1/8th of the tokens required by PoisonedRAG because it eliminates the need to generate massive synthetic text blocks.
  • Immunity to Common Defenses: Common defense strategies like Query Paraphrasing failed to mitigate the attack, showing less than a 1% drop in attack effectiveness.
  • High Concealment: Perplexity-based detection was rendered useless, yielding an Area Under the ROC Curve (AUC) score of just 0.57 (near random guess), proving that the poisoned text is virtually indistinguishable from clean text.
Figure 4: PPL-based detection for LOGICPOISON.

Limitations and Future Work

  • Generalization to Dynamic Graphs: The current study focuses on graph indices built from static corpora. Real-world GraphRAG systems often employ dynamic updating mechanisms (adding/pruning nodes in real-time), which warrants further empirical investigation.
  • Linguistic Scope: The evaluation was confined to English-language datasets. Implementing imperceptible entity swapping in languages with complex morphology or rich inflections (like Slavic or Semitic languages) will require more tailored, grammar-aware rewriting heuristics.

Summary updated

BibTeX
@inproceedings{xiao2026logicpoison,
  author = {Yilin Xiao and Jin Chen and Qinggang Zhang and Yujing Zhang and Chuang Zhou and Longhao Yang and Lingfei Ren and Xin Yang and Xiao Huang},
  title = {{LogicPoison: Logical Attacks on Graph Retrieval-Augmented Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.252},
}
Figure