Geometric Gain Graph: Zero-Token Graph Construction for Multi-Hop RAG

Zeliang Li, Xiaofen Xing, Kailing Guo, Wenyu Tao, Xiangmin XuNeurIPS 2026

TL;DR

Building knowledge graphs for Retrieval-Augmented Generation (RAG) usually requires burning tens of millions of LLM tokens to extract entities—often only to retrieve noisy, off-topic documents anyway. Geometric Gain Graph ($\text{G}^3\text{RAG}$) replaces that entire expensive pipeline with high-school trigonometry, constructing a high-performing retrieval graph directly from document vector embeddings using zero LLM tokens. By balancing vector similarity ($\cos\theta$) and orthogonality ($\sin\theta$), it connects related-yet-novel clues to outperform state-of-the-art Graph RAG systems on complex multi-hop questions.

What Problem Does This Paper Address?

When an LLM needs external facts to answer a multi-step ("multi-hop") question—like "Who is the president of the country that partnered with Kiwil's birth country?"—standard Retrieval-Augmented Generation (RAG) hits a wall.

Standard dense retrieval fetches documents whose embeddings look most like the query. This creates a "Similarity Trap": you get five variations of the same surface-level facts about Kiwil, missing the distant, crucial document about East Timor's president.

To fix this, recent Graph RAG systems use LLMs offline to read the entire corpus, extract entities and relationships, and wire up a knowledge graph. While this helps jump across topics, it introduces two massive headaches:

  1. Prohibitive Cost: Reading thousands of documents with an LLM burns tens of millions of tokens and requires massive GPU memory.
  2. The "Novelty Trap": Unconstrained entity links easily wander off-topic, pulling irrelevant noise into the context window. Recent fixes try anchoring the graph back to document similarity, which inadvertently drags the system right back toward the Similarity Trap.
Figure 1: Illustration of RAG challenges. (a) Relying solely on similarity, NaiveRAG falls into a homogenized Similarity Trap. Conversely, LightRAG overemphasizes relational connections, retrieving off-topic documents and entering a Novelty Trap. Constrained by surface similarity, HippoRAG2 lacks sufficient novelty. In contrast, G3RAG maintains adequate novelty through geometric gain while leveraging similarity. (b) Displays the similarity between retrieved documents and the query. NaiveRAG scores excessively high and LightRAG excessively low. Dominated by similarity, HippoRAG2 cannot efficiently discover more distant key documents like G3RAG.

Methods

$\text{G}^3\text{RAG}$ throws out LLM entity extraction entirely and builds a homogeneous, document-only graph using pure vector geometry offline, paired with a single-step diffusion search online.

Figure 2: The overall framework of G3RAG. It comprises two decoupled stages: Offline Geometric Graph Index and Online Controlled Diffusion Inference. Offline, the graph is constructed by defining edge weights as cos θ · sin θ to balance relevance and novelty, alongside a topological penalty to decay weights in prominently dense regions. During inference, G3RAG first anchors high-confidence seed nodes via dense retrieval and LLM filtering, and then triggers a controlled transient diffusion process along the optimized edges to retrieve optimal multi-hop evidence.

Here is what is new under the hood:

  • Geometric Gain Edge Weights (Offline): Every document is embedded into a vector using a standard embedding model. For any two documents with angle $\theta$ between their vectors, directional consistency ($\cos\theta$) measures relevance, while the orthogonal component ($\sin\theta = \sqrt{1 - \cos^2\theta}$) measures novelty (information gain). $\text{G}^3\text{RAG}$ defines the edge weight between them as the product $\cos\theta \cdot \sin\theta$ (truncated to similarities in $[0.1, 0.7]$ to prevent semantic drift).
  • Topological Degree Penalty (Offline): In high-dimensional vector spaces, certain generic "hub" documents sit close to everything, creating echo chambers. $\text{G}^3\text{RAG}$ calculates each target node's average similarity to the entire corpus ($\rho_j$) and applies an exponential decay penalty $\exp(-\beta \cdot \rho_j)$ to incoming edges. This pushes search traffic away from redundant hubs and toward rare, "long-tail" peripheral documents.
  • Controlled Transient Diffusion (Online): At query time, standard dense retrieval grabs $k=10$ initial candidates, and a lightweight LLM filter narrows them down to $s$ high-confidence "seed" nodes. Instead of running an iterative random walk like Personalized PageRank, $\text{G}^3\text{RAG}$ multiplies the seed state vector once against the row-normalized graph transition matrix ($\mathbf{p}' \cdot \mathbf{T}$) to project outward and grab the top multi-hop evidence.

Datasets

No new benchmarks were introduced. The authors evaluated $\text{G}^3\text{RAG}$ on 1,000 sampled queries each from curated versions of three established multi-hop QA benchmarks:

  • HotpotQA and 2WikiMultiHopQA: Wikipedia-centric multi-hop datasets.
  • MuSiQue: A notably harder, adversarially constructed dataset featuring more reasoning hops, entangled distractors, and a strict requirement to locate a single unique provenance document containing the final answer.

Key Insights and Ideas

  • The $45^\circ$ Sweet Spot: Because $\cos\theta \cdot \sin\theta$ peaks at $\cos\theta = \frac{\sqrt{2}}{2} \approx 0.707$ ($\theta = 45^\circ$), the graph naturally favors "Goldilocks" connections—documents that share enough context to stay on topic, but point in a different enough direction to actually add new information.
  • Why One Step Beats PageRank: Graph RAG systems typically rely on multi-step Personalized PageRank (PPR). When tested on $\text{G}^3\text{RAG}$'s graph, PPR actually hurt performance. Because the offline edges already encode the exact relevance-novelty trade-off, multi-step walks cause over-smoothing, whereas a single matrix multiplication acts as a clean, directed geometric projection.
  • Dataset Topology Dictates Hub Penalties: Wikipedia datasets rely on legitimate central "bridge" articles, preferring a gentle hub penalty ($\beta \approx 0.1 - 0.4$). MuSiQue's adversarial distractors mimic central hubs, requiring a heavy penalty ($\beta = 0.7$) to force retrieval out into the long tail.

Key Results

Evaluated across two embedding models (Nv-embed-v2 and Qwen3-8B-embed) with Llama-3.3-70B as the reader, $\text{G}^3\text{RAG}$ beat both Naive RAG and structured Graph RAG baselines:

  • Accuracy Gains: Using Nv-embed-v2, $\text{G}^3\text{RAG}$ achieved 66.49 average F1, beating the strongest baseline, HippoRAG2 (64.49). Using Qwen3-8B-embed, its lead widened to 4.92 F1 points (64.86 vs. 59.94).
  • Crushing Hard Multi-Hop: On the toughest benchmark, MuSiQue, $\text{G}^3\text{RAG}$ outperformed HippoRAG2 by 4.68 F1 points (Nv-embed-v2) and 5.76 F1 points (Qwen3-8B-embed), while achieving the highest hit rate on the final answer document (65.20% vs. 63.10%).
  • Zero-Token Efficiency: On MuSiQue, LightRAG burned 86.80M tokens (>24 hours, 344 GB GPU memory) and HippoRAG2 burned 14.47M tokens (<300 min, 344 GB GPU memory) just to build their indices. $\text{G}^3\text{RAG}$ used 0 LLM index tokens, built its index in <30 minutes, needed only 24 GB of GPU memory (just the embedding model), and answered queries in ~1.00 second.
Table 2: Cost and Consumption Comparison on MuSiQue Dataset with Llama-3.3-70B and Nv- embed-v2. † indicates that the method uses a BERT-based entity extraction model.

Limitations and Future Work

  • Hyperparameter Tuning: The authors note that establishing a single, universal numerical threshold for optimal geometric gain and hub penalty remains challenging—for instance, the topological penalty $\beta$ and seed count $s$ benefit from tuning depending on how adversarial or hub-heavy a corpus is, and overall quality still depends on the underlying embedding model.
  • Online LLM Gating: While offline indexing is completely LLM-free ("zero-token"), online inference still relies on a lightweight LLM filter (Filter_llm) to purify initial seed nodes; removing it drops average F1 by nearly 6 points.
  • Future Work: The authors plan to extend geometric gain into multi-modal reasoning, using vector orthogonality to align complementary information across text, image, and audio embedding spaces.

Summary updated

Abstract

Existing Retrieval-Augmented Generation (RAG) systems struggle with multi-hop reasoning due to a fundamental inability to balance relevance and novelty. Traditional dense retrievers are constrained by surface-level matching, falling into a homogenized "Similarity Trap". Conversely, emerging Graph RAGs attempt to explore novel documents via heuristic entity extraction, but they introduce prohibitive Large Language Model (LLM) overhead and easily drift into off-topic "Novelty Traps". To fundamentally resolve this contradiction, we propose Geometric Gain Graph (G$^3$RAG), the novel zero-token graph construction paradigm for RAG. G$^3$RAG completely discards the expensive heuristic extraction by LLMs, aiming instead to directly quantify the information gain between nodes through the native document feature space. To this end, we designed a concise edge weight criterion, $\cos\theta \cdot \sin\theta$, which naturally maps the trade-off between relevance and novelty into a geometric measurement of directional consistency and orthogonality in the vector space, thereby driving the token-free topological construction of the graph. Furthermore, we introduce a topological penalty to suppress the excessive connectivity of high-frequency hubs, forcing the transient diffusion process toward long-tail peripheral nodes that carry critical indirect evidence. Extensive experiments demonstrate that, while entirely eliminating LLM token costs during graph construction, G$^3$RAG significantly outperforms state-of-the-art Graph RAG baselines on complex multi-hop QA benchmarks. The code is available at: https://github.com/deeplearning-LI/G3RAG
BibTeX
@inproceedings{li2026geometric,
  author = {Zeliang Li and Xiaofen Xing and Kailing Guo and Wenyu Tao and Xiangmin Xu},
  title = {{Geometric Gain Graph: Zero-Token Graph Construction for Multi-Hop RAG}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ZbE8MH6DMy},
}
Figure