Enterprise knowledge · Research feature

Efficient Retrieval-Augmented Generation via Token Co-occurrence Graphs

A new method uses token co-occurrence patterns to enhance retrieval and reasoning in AI systems without relying on expensive language model pipelines.

Adapted from research by Gianluca Bonifazi, Christopher Buratti, Michele Marchetti and colleagues.

arXiv preprint revision · 2026-06-29 · Attribution & reuse
In this article
Editorial illustration of linked workflow.

Editor’s introduction

The study evaluates TIGRAG, a retrieval-augmented generation framework that builds a knowledge graph from token co-occurrence statistics within sliding windows. It compares performance against dense retrieval and existing graph-based RAG methods on multi-hop question answering benchmarks, showing superior retrieval accuracy and downstream QA results. The approach outperforms baselines in both exact match and token-level F1 scores, demonstrating stronger ability to retrieve interconnected evidence. A key finding is that TIGRAG reduces indexing time and inference latency by avoiding LLM-driven entity extraction, relying instead on statistical co-occurrence for graph construction. This structural method enables faster, more scalable graph building while maintaining retrieval fidelity in multi-hop reasoning tasks.

Introduction

As Large Language Models (LLMs) become more widespread, the research community is paying increasing attention to their inherent vulnerabilities, particularly the hallucination phenomenon. Retrieval-Augmented Generation (RAG) has emerged as a well-established approach to mitigate hallucinations by anchoring LLM outputs in external, factual knowledge. In a standard RAG pipeline, a user query is encoded as a vector, which is then employed to retrieve relevant text chunks from a large document corpus through a similarity search. This retrieved information is then used to provide the LLM with contextual evidence during generation. However, traditional vector-based RAG systems are ineffective because they treat documents as largely disconnected units, which limits their ability to reason across multiple pieces of information. Consequently, they often struggle with multi-hop queries, which require synthesizing dispersed evidence across independent chunks.

To address this issue, Graph-augmented RAG (GraphRAG) approaches rely on structured representations, often formalized as Knowledge Graphs (KGs). In KGs, nodes and edges capture textual elements and their complex relationships, which provides a topological space to map and navigate knowledge. These approaches range from injecting graph-derived knowledge (such as triplets or community summaries) directly into the context, to using the topological structure as a routing mechanism to retrieve the most relevant raw text chunks. Due to their interconnected structure, GraphRAG approaches can inherently address the complex reasoning paths required by multi-hop Question Answering (QA). Nevertheless, two critical challenges hinder their broader adoption. First, offline KG construction introduces significant computational overhead and latency. Second, traditional GraphRAG pipelines rely heavily on LLM-based entity and relationship extraction, making them susceptible to hallucinated, noisy, or missing connections. These graph construction errors can propagate through the retrieval pipeline and ultimately cause cascading failures in downstream reasoning and generation.

This paper aims to address these computational overheads and extraction-based vulnerabilities by proposing TIGRAG (Token-Induced GraphRAG), a highly efficient graph-augmented RAG. Unlike traditional GraphRAG systems, TIGRAG statistically constructs its topological foundation by extracting tokens from the corpus and linking them based on co-occurrences within a sliding window. TIGRAG’s architecture consists of four core components: (i) an offline graph extraction stage that efficiently builds the topological KG, (ii) a semantic expansion and candidate retrieval module powered by Personalized PageRank (PPR), (iii) a dynamic graph-weighted scoring mechanism for contextual chunk evaluation, and (iv) a final neural reranking module that distills the top chunks based on semantic alignment with the query.

We evaluated TIGRAG using the standard protocols outlined in the literature on three multi-hop QA benchmarks: HotpotQA, 2WikiMultiHopQA, and MuSiQue. Our empirical results demonstrate that TIGRAG not only outperforms existing RAG baselines across all datasets but also yields substantial efficiency improvements. Indeed, it significantly reduces indexing and retrieval latency, as well as overall token consumption.

This paper is organized as follows: Section 2 discusses related work. Section 3 details the TIGRAG’s architecture and its core algorithms. Section 4 describes the experimental campaign performed to evaluate TIGRAG. Section 5 presents a discussion on our framework. Finally, Section 6 draws our conclusions and outlines some promising directions for future research.

Standard Retrieval-Augmented Generation

Within this established paradigm, traditional RAG frameworks typically use lexical searches or semantic similarities to retrieve the necessary context. These approaches encode text chunks as continuous vectors and apply similarity metrics, such as cosine similarity, to effectively retrieve documents that share semantic overlap with the input query. However, standard RAG approaches treat documents as isolated units. Consequently, they have significant difficulty with complex, multi-hop queries that require synthesizing information across disparate texts. In fact, in this case they are limited by the lexical and semantic gap between the initial question and the distant supporting facts.

Furthermore, standard dense retrieval methods often retrieve overly long contexts, resulting in severe information redundancy and substantial computational overhead. To address this issue, recent studies have explored context pruning techniques. For instance, AttentionRAG introduces an attention-guided compression mechanism to reduce token consumption and filter out irrelevant information from the retrieved passages. While context compression offers a partial remedy, it often struggles to balance compression rates with the risk of information loss. Therefore, a more structural solution is needed to accurately identify interconnected evidence instead of just compressing flat text.

Structure-Augmented Retrieval Approaches

To overcome the limitations of flat vector spaces, recent approaches have integrated structural dependencies into the RAG pipeline. In this context, GraphRAG has emerged as a promising paradigm that leverages graph-based indexing and retrieval to exploit relationships among entities. This allows for more precise and context-aware reasoning over complex knowledge bases.

Several specific architectures have been proposed based on this paradigm. For instance, RAPTOR organizes textual knowledge into recursive tree structures through iterative abstractive processing, which facilitates retrieval at various levels of granularity. Similarly, TreeRAG addresses the fragmentation typical of long documents by employing tree-based chunking and bidirectional traversal strategies. This approach strictly preserves hierarchical dependencies during retrieval.

Many of these approaches are effective, but they rely on computationally expensive LLM-driven extraction pipelines or extensive structural pre-training to construct their underlying graphs. Furthermore, recent studies have shown that implementations like GraphRAG encounter significant scalability issues in real-world, large-scale deployments. In these scenarios, the computational complexity of graph traversal algorithms and retrieval latency increase exponentially with the size of the KG.

TIGRAG builds a highly traversable KG directly from normalized text tokens and their local co-occurrences. This streamlined approach bypasses the heavy computational cost of generative graph construction, ensuring highly efficient, low-latency retrieval operations while preserving the intrinsic structural integrity of the corpus.

Network-Based Retrieval and Multi-Hop Reasoning

While many approaches focus on structuring the knowledge index for better summarization, another line of research emphasizes the direct use of graph topologies to retrieve interconnected contexts. For example, GRAG combines textual and topological information to pinpoint relevant subgraphs, whereas KG-RAG employs explicit question decomposition and multi-hop KG retrieval to enable deep reasoning. However, graph-based retrieval approaches often face a granularity tradeoff. In fact, fine-grained, entity-level graphs can capture detailed relationships but are computationally expensive and may lose contextual information. Conversely, coarse document-level graphs preserve context but struggle to model complex, multi-hop relationships. Recent methods, such as QCG-RAG, address this issue by building query-centric graphs to retrieve relevant chunks at different levels of granularity. Other approaches rely on Graph Neural Networks (GNNs) with query-aware attention mechanisms to dynamically identify and aggregate relevant information from KGs.

Rather than relying on explicit query decomposition or training computationally intensive GNN architectures, a parallel and highly effective strategy leverages network theory algorithms to organically navigate these knowledge structures. Approaches like HippoRAG and its successor HippoRAG2 have demonstrated the effectiveness of using PPR to emulate human cognitive indexing. This allows the retrieval signal to naturally spread across semantic nodes.

While TIGRAG is inspired by these network-based principles, it introduces a token-level extraction phase, a dynamic candidate pooling strategy, and an iterative, entity driven multi-hop retrieval process. In particular, it extracts Named Entities from the first retrieval hop to expand the query and applies a neural reranking step. This allows it to retrieve interconnected evidence that traditional dense or single-hop graph-based methods often overlook.

Motivations

Standard RAG systems often struggle with multi-hop reasoning, whereas graph-based retrieval approaches frequently incur the cost of complex LLM-driven graph construction. To address these issues, we propose TIGRAG, a lightweight graph-augmented retrieval framework based on token co-occurrence graphs. Instead of relying on LLM-driven graph construction, TIGRAG builds a token-level topological representation directly from textual co-occurrences, enabling efficient and scalable graph creation. During retrieval, it combines graph-based semantic expansion with neural reranking to identify interconnected evidence for multi-hop reasoning. Then, an iterative, entity-driven retrieval strategy progressively augments the query using bridging entities extracted from previously retrieved contexts. TIGRAG substantially reduces prompt size, inference latency, and overall computational overhead by dynamically selecting compact and highly relevant contexts, outperforming existing GraphRAG approaches.

Experimental Setup

In this section, we describe the experimental setup for our tests. Specifically, we outline the datasets used, the baselines considered, the model and prompting protocol, the evaluated metrics, and finally the hyperparameter configuration. We conducted all experiments on a server with 256 AMD EPYC 7742 CPUs, 1 TB of RAM, and two NVIDIA A100 GPUs, each with 40 GB of memory. To ensure a fair comparison among the evaluated methods, we executed all indexing, retrieval, and generation experiments on the same hardware infrastructure.

Metrics

In addition to accuracy, we evaluated the computational load of RAG approaches. Specifically, we measured the time required for offline graph construction in order to evaluate scalability with large corpora. For the online phase, we reported end-to-end inference latency, capturing both retrieval and LLM generation. We also measured the prompt footprint as the average token length of the retrieved context. This computational metric is critical because reducing the context footprint not only lowers computational overhead and latency but also helps mitigate the loss of focus during generation.

Results

In this section, we present the results obtained from our experimental campaign. Specifically, Subsection 4.2.1 compares the performance of TIGRAG with that of other related systems proposed in the literature. Subsection 4.2.2 presents a comparison of the computational resources required by TIGRAG and other related approaches. Finally, Subsection 4.2.3 presents a hyperparameter and ablation study of TIGRAG.

Performance Comparison

This table shows that TIGRAG outperforms all baselines consistently across all evaluated scenarios. On HotpotQA, it improves R@2 by 9.70% and R@5 by 8.23% compared to NaiveRAG. This trend continues on 2WikiMultiHopQA, where TIGRAG achieves a 13.41% gain on R@2 over NaiveRAG, and a 10.76% gain on R@5 over HippoRAG2. On the more challenging MuSiQue benchmark, which requires multi-step semantic reasoning, TIGRAG’s margin of improvement increases further, with a 19.92% gain on R@2 and a 9.73% gain on R@5 over HippoRAG2. These results demonstrate the effectiveness of token-level topological expansion in enhancing multi-hop retrieval.

Resource Comparison

A compelling trend emerges during the online inference phase. On HotpotQA, TIGRAG is slightly slower than NaiveRAG. However, on more complex datasets, such as 2WikiMultiHopQA and MuSiQue, TIGRAG surpasses NaiveRAG in end-to-end speed. This efficiency gain validates our hypothesis that, by dynamically extracting highly concentrated and relevant context, TIGRAG can drastically reduce the LLM’s prompt processing and generation time. This reduction more than offsets the minimal latency introduced by the graph traversal necessary for PPR. Compared to RAPTOR, the fastest graph-based baseline, TIGRAG is roughly four times faster, setting a highly scalable standard for graph-augmented RAG systems.

As this table shows, approaches that rely strictly on dynamically filtered text chunks produce a significantly more compact context. In contrast, frameworks that augment their prompts by injecting extensive sets of KG triplets or community summaries, such as GraphRAG and LightRAG, suffer from highly inflated context windows. TIGRAG reduces prompt size by relying on a compact and highly relevant chunk pool, thereby improving inference speed and limiting the loss of focus.

Hyperparameter and Ablation Study

The ablation results highlight the importance of each component of the proposed framework. Removing BM25 yields only marginal performance drops, confirming that the graph-based expansion mechanism alone captures highly relevant evidence. Replacing PPR with degree centrality dramatically decreases performance across all datasets, demonstrating the importance of topology-aware semantic propagation over simple node degree. Finally, eliminating the neural reranking stage significantly reduces retrieval effectiveness, indicating that the reranking is essential for filtering out noisy candidates introduced during graph expansion.

Discussion

From a performance point of view, the topological approach underlying TIGRAG enhances retrieval and consistently outperforms baselines. This high-fidelity retrieval directly translates into superior downstream Question Answering generation, setting new state-of-the-art Exact Match and token-level F1 score benchmarks. Beyond strict accuracy, the most significant implication of TIGRAG lies in its resource efficiency. By constructing the structural graph solely through statistical co-occurrences, TIGRAG eliminates the need for the computationally expensive LLM-driven entity extraction pipelines required by traditional GraphRAG approaches. Consequently, it consumes a fraction of the time and token budget during offline graph construction and online inference, offering a highly scalable solution for real-world deployment.

Despite these promising results, TIGRAG has some limitations that suggest interesting directions for future research. First, TIGRAG’s iterative, entity-driven retrieval strategy relies heavily on the quality of the Named Entity Recognition (NER) pipeline. Since query expansion is guided by entities extracted from previously retrieved chunks, inaccurate, ambiguous, or irrelevant entities can spread across retrieval stages, resulting in semantic drift and reduced retrieval precision. Therefore, exploring more robust entity disambiguation and filtering mechanisms is an important direction for future work. Second, as with other co-occurrence-based approaches, TIGRAG primarily captures relationships emerging from token proximity. Future work will investigate lightweight semantic enrichment strategies that can better model implicit connections while preserving TIGRAG’s computational efficiency.

Conclusion

In this work, we presented TIGRAG, an effective and highly efficient RAG framework driven by a token co-occurrence KG. Unlike traditional GraphRAG approaches, which rely on expensive LLM-based entity and relation extraction pipelines, TIGRAG constructs a lightweight topological representation directly from token co-occurrences. It also uses PPR-based semantic expansion and dynamic neural reranking to retrieve interconnected evidence across multiple hops. By bypassing computationally expensive LLM-based graph construction indexing, the token-level approach underlying TIGRAG enables faster offline graph construction while preserving the structural dependencies necessary for multi-hop reasoning. Empirical evaluations across HotpotQA, 2WikiMultiHopQA, and MuSiQue demonstrate that TIGRAG significantly improves retrieval performance, establishing new state-of-the-art performance compared to baseline models. These findings prove that graph-augmented RAG systems can solve complex, multi-hop reasoning tasks without sacrificing computational efficiency.

Our current evaluation focuses on textual, multi-hop datasets; however, this study suggests several promising directions for future research. First, we plan to expand the graph topology beyond statistical co-occurrences by introducing semantic edges. This semantic smoothing will connect lexically distinct but semantically similar tokens, capturing implicit relationships. Second, we plan to address the inherent limitations of treating tokens as only lexical units, by introducing semantic-aware nodes to address token polysemy. This will allow the graph to dynamically disambiguate meanings for more granular and precise retrieval. Finally, since modern information ecosystems are heterogeneous by nature, a future development is to extend TIGRAG to multimodal settings. This will involve integrating images and videos into the topological space to support more complex QA tasks.