CWAGraph: Retrieving What Was Never Explicitly Identified in Graph-Based RAG

Zhitao Yin, Ruiheng Zhu, Ganlin Xu, Hongru Hou, Jiaqing Liang, Deqing YangNeurIPS 2026

TL;DR

Standard graph-based Retrieval-Augmented Generation (RAG) treats missing graph connections as "unknown" rather than "false," making it blind to everyday rules like "all X, except Y." CWAGraph adds a logical "Closed World" layer on top of standard knowledge graphs to resolve these scope-bounded rules, making implicit facts directly retrievable—and nearly doubling accuracy on rule-heavy corpora like technical manuals and regulations.

What Problem Does This Paper Address?

Imagine reading two documents: Document 1 lists the noble gases (He, Ne, Ar, Kr, Xe, Rn). Document 2 states: "All noble gases are inert under standard conditions, except Xe." If someone asks you whether Argon (Ar) is inert, you immediately say yes.

Existing graph-based RAG systems (like GraphRAG or LightRAG) struggle mightily with this. When they convert text into entity–relation graphs, they operate under the Open World Assumption (OWA): if an edge exists, it's a fact; if an edge is missing, its truth value is simply unknown.

Figure 1: OWAGraph cannot resolve LCSs.

In an OWA graph, Document 2 creates an exception link for Xenon, and a general link for "noble gases," without explicitly linking Argon to "not an exception." Because there is no explicit "exception" edge connected to Argon, the graph treats Argon's exception status as unknown rather than false.

In technical manuals, compliance docs, and legal regulations, rules are constantly written using these scope-bounded phrases ("all X, except Y" or "only Y"), which the authors call Local Completeness Statements (LCSs). Because standard RAG graphs cannot deduce what applies to unmentioned entities within a defined scope, they fail precisely where regulatory and technical precision matters most.

Methods

Instead of rewriting the base knowledge graph or hallucinating thousands of new implied edges, the authors propose CWAGraph, which keeps the standard OWA entity-relation layer for normal facts and pairs it with a dedicated Closed World Assumption (CWA) layer. Under CWA, anything inside a defined scope that isn't explicitly excluded is definitively included (or vice versa).

Figure 2: CWAGraph resolves LCSs into entity-addressable CWA layer structures for retrieval.

Here is what is new in their pipeline:

  1. Joint Extraction: Using a single LLM call per text chunk, CWAGraph extracts standard OWA triples alongside three novel CWA structures: Hierarchy (e.g., Ar is in noble gases), Peer cues (same-level entities like Ar peer Ne, used to catch and prune hierarchy errors), and Complements (structured records preserving an LCS's universe scope, boundary/exceptions, and predicate).
  2. LCS Resolution & Indexing: Offline, the system maps text scopes ("noble gases") to concrete entity sets using the hierarchy, cleans up misplaced subtrees using peer checks, and splits the set into boundary ({Xe}) and remaining ({He, Ne, Ar, Kr, Rn}). Crucially, it builds an entity-addressing index linking every resolved entity back to the governing rule—without polluting the OWA graph with new triples.
  3. Dual Retrieval & Typed Generation: At query time, asking about "Argon" triggers both semantic search and an entity-anchored lookup that directly pulls the "except Xe" rule via the index. Relevant rules, local peer hierarchies, OWA triples, and raw text chunks are organized into typed blocks for the LLM to generate the final answer.

Datasets

Because existing RAG benchmarks rarely test scope-bounded rules, the authors built SetQA (no training data is used, as CWAGraph requires no model training). Built from 1,373 documents across two domains—Technical Manuals (1,000 docs) and Food Safety Regulations (373 articles)—SetQA contains 493 human-verified QA pairs.

Figure 3: QA samples of SetQA derived from one LCS.

Questions are stratified into three difficulty levels for any given rule:

  • Easy: Binary check on an unmentioned in-scope entity ("Is argon inert?").
  • Medium: Set recovery ("Which noble gases are inert?").
  • Hard: Exhaustive counting ("How many noble gases are inert?").

Key Insights and Ideas

  • Standard Graph-RAG can be worse than Naive RAG on rules: Surprisingly, popular graph baselines (GraphRAG, HippoRAG, HopRAG) frequently underperformed simple chunk-based RAG and Long-Context LLMs on SetQA. Shredding text into binary OWA edges strips away boundary semantics and fragments hierarchy granularity.
  • Retrieval isn't the only bottleneck—resolution is: Diagnostic tests showed that Naive RAG and HippoRAG actually retrieved the right raw rule text over 82% of the time (Hit@5) on Technical Manuals, yet answered Easy questions accurately less than 58% of the time. Handing an LLM a rule isn't enough if the surrounding taxonomy is scattered across other documents; pre-resolving the entity scope is what unlocks reasoning.
  • Peers keep hierarchies honest: A single bad parent-child extraction can corrupt an entire subtree of entities. Adding horizontal "peer" edges provides an independent sanity check during graph construction, boosting overall scores by 6.6 points.

Key Results

Evaluated with GPT-5.2 as the backbone across seven baselines (including Naive RAG, Agentic RAG, Long-Context, LightRAG, GraphRAG, HopRAG, and HippoRAG), CWAGraph dominates across the board:

Table 2: All compared methods’ performance on SetQA.
  • Technical Manuals: CWAGraph achieves a 79.6 Task-Macro Score, more than doubling the strongest baseline (LightRAG at 37.5). On Medium set-recovery questions, F1 leaps from 19.9 (Long-Context) to 69.4.
  • Food Safety Regulations: CWAGraph hits a 64.3 Task-Macro Score compared to the best baseline's 32.3 (Long-Context), jumping from 20.1 to 65.7 on Medium F1.
  • Evidence Retrieval: Easy-level Hit@5 reaches 98.1% on Manuals and 96.3% on Regulations, with conditional answering accuracy staying above 83% in both domains.

Limitations and Future Work

  • Single-statement scope: CWAGraph currently resolves local completeness declared within single statements. It cannot yet handle distributed completeness (where closure only emerges by combining multiple rules across pages) or corpus-level closure (assuming anything unmentioned in the entire database is false).
  • Higher offline indexing cost: Extracting complements and resolving hierarchy/peer conflicts requires extra LLM calls and compute upfront compared to standard chunking or basic graph extraction. Distilling this step into smaller, specialized extractors is a key next step.
  • Scale and language: SetQA is currently English-only and relatively compact due to the manual verification needed and the paywalled nature of many legal/compliance corpora.

Summary updated

BibTeX
@inproceedings{yin2026cwagraph,
  author = {Zhitao Yin and Ruiheng Zhu and Ganlin Xu and Hongru Hou and Jiaqing Liang and Deqing Yang},
  title = {{CWAGraph: Retrieving What Was Never Explicitly Identified in Graph-Based RAG}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=s6xGR3aduA},
}
Figure