Manuscript Offprint

arXiv:2610.22818

FuseRAG: Fusing Structure and Evidence into Inference for Cost-Efficient Graph-based RAG

Tingqi Wang, Yingshu Li, Zhipeng Cai

Tingqi Wang, Yingshu Li, Zhipeng Cai ∗^{*}

Department of Computer Science, Georgia State University

Atlanta, GA, United States

{twang33, yili, zcai}@gsu.edu

Abstract—Graph-based retrieval-augmented generation (RAG) exploits relationships among evidence to support multi-hop question answering. However, conveying retrieved graphs through non-unique linear textual contexts to Large Language Models (LLMs) leads to graph-structure degradation and inefficient KV-cache reuse. Meanwhile, graph-structure order optimization is already NP-hard, and the additional KV-cache reuse objective further complicates the search by introducing potentially conflicting orders. To tackle these issues, we propose FuseRAG, a cost-efficient graph-based RAG framework that shifts most retrieved evidence from explicit textual contexts to latent representations. Our main idea is to separate reusable evidence content from query-aware structural interactions in latent space, while retaining only a few explicit facts as semantic anchors. The resulting latent representations are injected into decoder self-attention, where they reshape attention over evidence and thereby influence hidden states and next-token probabilities. This design preserves graph structure through latent interactions, enables evidence reuse beyond exact token-prefix matching. Experiments on three multi-hop question-answering datasets with Llama-3-8B and Qwen3.5-9B show that FuseRAG improves answer quality while achieving up to 2.7×2.7\times and 2.2×2.2\times TTFT speedups over the fastest graph-based baseline, respectively.

Index Terms—Graph-based RAG, Large Language Model

I. INTRODUCTION

Large Language Models (LLMs) [1], [2] have demonstrated significant capabilities in language understanding, greatly advancing the development of Artificial General Intelligence (AGI). Despite their considerable success, LLMs still generate hallucinations and wrong answers due to the lack of domain-specific knowledge in pretraining data [3]–[6]. Retrieval-Augmented Generation (RAG) [7] methods have been widely adopted to mitigate this limitation by integrating external knowledge into LLMs [8]. Among these approaches, graph-based RAG [9]–[13] has attracted substantial attention. It constructs a knowledge graph from source documents and retrieves relevant entities and relations as evidence to augment the LLM context. Graph captures complex relationships among entities, facilitating multi-hop reasoning along relational paths.

Although benefiting from graph-structure knowledge, existing graph-based RAG still suffers from limited expressiveness. Specifically, before being fed into LLMs, the retrieved graph-structured evidence must be serialized into linear textual contexts. This mechanism poses a major challenge to graph-based RAG: Graph Structure Degradation. After serialization, the

Figure

Fig. 1: The same retrieved graph with different evidence utilization. Serialization orders aligned with the graph structure help LLMs utilize evidence effectively but reduce efficiency. However, orders optimized for KV-cache reuse weaken evidence utilization.

relative positions of evidence implicitly describe the graph structure and influence evidence utilization [14]. However, a graph generally can be represented by multiple serialization orders, utilizing evidence with different pattern. As illustrated in Figure 1, a query asking for the author of a novel adapted into a film directed by Peter Jackson. When the retrieved evidence is serialized along the reasoning path related to the query, adjacent sentences share entities and form a continuous chain (from Peter Jackson to the film, the novel, and finally J. R. R. Tolkien). In contrast, factual entities separated by irrelevant content break the subgraph relationships and require LLMs to reason answers from multiple confusing information across distant contextual positions. Consequently, reasoning paths become harder to trace, even with the same retrieved results.

Furthermore, the variability serialization of evidence hinders the KV-cache reuse efficiency. RAG typically introduces a large amount of external knowledge, increasing the prefill cost. As a common solution, KV-cache reuse accelerates LLM inference by caching the key-value states of previously processed tokens and reusing them. However, these approaches are inherently designed for sequential text and assume identical token prefixes [15], [16]. In graph-based RAG, inconsistent serialization orders undermine KV-cache reuse across equivalent evidence contexts and increasing inference cost.

The above issues motivate a method that effectively exploits graph structure while maintaining inference efficiency. An intuitive idea is to optimize the serialization order for both graph-structure representation and KV-cache reuse. Nevertheless, as shown in Section II, structural ordering is already NP-hard, and the additional cache-reuse objective further complicates the optimization. The search cost grows rapidly with the graph size, making optimal serialization impractical for large-scale graph-based RAG. Therefore, we explore an alternative to textual serialization for conveying graph evidence to LLMs, aiming to alleviate these limitations.

In LLMs, queries and retrieved evidence ultimately interact through attention over their internal representations. Inspired by this mechanism, we embed query-evidence interactions into latent space and integrate it with the LLM's internal representations, avoiding information missing in textual serialization. To this end, we propose FuseRAG (FUsing Structure and Evidence into transformer inference), a novel framework for efficient graph-based RAG, which shift the primary evidence interface from textual serialization to latent representations. FuseRAG consists of three stages: In the stage 1, FuseRAG retrieves query-aware evidence from the knowledge graph with greedy heuristic search, preserving the retrieved subgraph structure for subsequent fusion. In the next stage, dual-Path Evidence Fusion embeds the retrieved evidence into latent space and constructs compact explicit evidence. Cross-attention between the query and evidence tokens produces query-specific node representations, which are further fused by graph propagation, obtaining an auxiliary state for each node. These auxiliary states are appended to the original evidence states as structural supplements. In parallel, from the retrieved subgraph, a lightweight scoring mechanism selects a small set of facts based on their relevance to the query. To maximize the total relevance score under a strict token budget of 32, 64, or 128 tokens, the 0-1 Knapsack Algorithm is adopted for selection. In Stage 3, FuseRAG projects the node representations into memory KV, which are integrated with text KV in the decoder's self-attention. Node representations remain reusable across queries, while memory KV is reused throughout each answer generation. By integrating reusable evidence representations and query-aware graph interactions into LLM attention, FuseRAG moves beyond purely textual context construction. This design enables faster inference and more accurate answer generation in graph-based RAG.

Our contributions are summarized as follows:

  • We reveal two key limitations of evidence serialization in graph-based RAG: graph structure degradation and inefficient KV-cache reuse. Jointly optimizing serialization order to address both limitations is NP-hard, as the

TABLE I: Summary of important notations.

NotationDescription
G=(V,E)\mathcal{G} = (\mathcal{V}, \mathcal{E})Knowledge graph
qInput query
Gq=(Vq,Eq)\mathcal{G}_q = (\mathcal{V}_q, \mathcal{E}_q)Retrieved subgraph for query q
Bq\mathcal{B}_qRetrieved textual evidence set
π\piSerialization order
XπX_{\pi}Serialized evidence context
Cstr(π)C_{\text{str}}(\pi)Graph structural cost
Rcache(π)R_{\text{cache}}(\pi)KV-cache reuse benefit
Gt\mathcal{G}_tSelected subgraph at retrieval step t
At\mathcal{A}_tCandidate retrieval actions
st(a)s_t(a)Heuristic score of action a
KRetrieval budget
HiH_iToken-level representation of evidence bib_i
zqz_qQuery representation
ziz_iQuery-aware evidence representation
fif_iGraph-aware structural representation
MqM_qLatent evidence memory
SqS_qExplicit semantic anchors
τ\tauExplicit evidence token budget
Lmem\mathcal{L}_{\text{mem}}Memory injection layers
Klmem,VlmemK_l^{\text{mem}}, V_l^{\text{mem}}Memory keys and values at layer l
Kltext,VltextK_l^{\text{text}}, V_l^{\text{text}}Textual keys and values at layer l
rMemory projection rank
ded_eEvidence encoder hidden dimension
dKV,ld_{\text{KV},l}Decoder KV projection dimension
LML_MNumber of latent memory positions
LQA\mathcal{L}_{\text{QA}}Answer generation loss

optimization subsumes an NP-hard ordering problem as a special case. Moreover, the two objectives introduce additional trade-offs.

  • We propose FuseRAG, a cost-efficient graph-based RAG framework that integrates graph evidence and structural interactions into LLM inference through latent representations, reducing dependence on textual serialization. By retaining only a small amount of explicit evidence as semantic anchors, FuseRAG significantly improves inference efficiency.

  • We conduct comprehensive experiments on Llama-3-8B and Qwen3.5-9B across three multi-hop QA datasets, demonstrating that FuseRAG consistently improves inference efficiency while enhancing QA performance, with up to 2.7×2.7 \times and 2.2×2.2 \times inference speedups over the fastest graph-based baseline, respectively.

References (67)

  • A survey on evaluation of large language models
  • Evolutionary computation in the era of large language model: Survey and roadmap
  • Retrieval-augmented generation for knowledge-intensive nlp tasks
  • The dawn after the dark: An empirical study on factuality hallucination in large language models
  • Self-rag: Learning to retrieve, generate, and critique through self-reflection
  • Neutronrag: Towards understanding the effectiveness of rag from a data retrieval perspective
  • A survey on rag meeting llms: Towards retrieval-augmented large language models
  • Gfm-rag: graph foundation model for retrieval augmented generation
  • Graph-based approaches and functionalities in retrieval-augmented generation: A comprehensive survey
  • Reasoning on graphs: Faithful and interpretable large language model reasoning
  • In-depth analysis of graph-based rag in a unified framework
  • Galaxyrag: Graph retrieval-augmented generation for enterprise knowledge systems
  • A framework of knowledge graph-enhanced large language model based on global planning
  • Lost in the middle: How language models use long contexts
  • Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity
  • Sglang: Efficient execution of structured language model programs
  • Attention is all you need
  • Pqcache: Product quantization-based kvcache for long context llm inference
  • Kvdrive: A holistic multi-tier kv cache management system for long-context llm inference
  • Speedup graph processing by graph ordering
  • Lmlingua: Compressing prompts for accelerated inference of large language models
  • Autoencoding-free context compression for llms via contextual semantic anchors
  • Mambev: Enabling state space models to learn birds-eye-view representations
  • Semi-Supervised Classification with Graph Convolutional Networks
  • Inductive representation learning on large graphs
  • Graph attention networks (opens arXiv in a new tab)
  • Parameter-efficient transfer learning for nlp
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Tinybev: Compact temporal fusion for multi-view 3d perception
  • musique: Multihop questions via single-hop question composition
  • Hotpotqa: A dataset for diverse, explainable multi-hop question answering
  • Constructing a multi-hop qa dataset for comprehensive evaluation of reasoning steps
  • Hipporag: Neurobiologically inspired long-term memory for large language models
  • Measuring and narrowing the compositionality gap in language models
  • Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions
  • Sirerag: Indexing similar and related information for multihop reasoning
  • Clue-rag: Towards accurate and cost-efficient graph-based rag via multi-partite graph-based index
  • Rag vs. graphrag: A systematic evaluation and key insights
  • Unifying large language models and knowledge graphs: A roadmap
  • From RAG to memory: Non-parametric continual learning for large language models
  • Memgraphrag: Memory-based multi-agent system for graph retrieval-augmented generation
  • Less is more: Elevating RAG via performance-driven context compression
  • Raptor: Recursive abstractive processing for tree-organized retrieval
  • From Local to Global: A Graph RAG Approach to Query-Focused Summarization
  • Lightrag: Simple and fast retrieval-augmented generation
  • Ket-rag: A cost-efficient multi-granular indexing framework for graph-rag
  • Qa-graphrag: Query-adaptive plug-and-play retrieval integration for graph-based retrieval-augmented generation
  • You don’t need pre-built graphs for rag: Retrieval augmented generation with adaptive reasoning structures
  • Knowledge graph prompting for multi-document question answering
  • Think-on-graph: Deep and responsible reasoning of large language model on knowledge graph
  • Linearrag: Linear graph retrieval augmented generation on large-scale corpora
  • G-retriever: Retrieval-augmented generation for textual graph understanding and question answering
  • Prefix-tuning: Optimizing continuous prompts for generation
  • Adapting language models to compress contexts
  • In-context autoencoder for context compression in a large language model
  • Deformba: Vision state space model with adaptive state fusion (opens arXiv in a new tab)
  • xrag: Extreme context compression for retrieval-augmented generation with one token
  • Kv cache compression for inference efficiency in llms: A review
  • Depcache: A kv cache management framework for graphrag with dependency attention
  • Mgrag: Semantic subgraph matching and graph-aware caching for multimodal retrieval-augmented generation
  • Ragcache: Efficient knowledge caching for retrieval-augmented generation
  • Kvlink: Accelerating large language models via efficient kv cache reuse
  • From prefix cache to fusion rag cache: Accelerating llm inference in retrieval-augmented generation
  • Cacheblend: Fast large language model serving for rag with cached knowledge fusion
  • Cache-craft: Managing chunk-caches for efficient retrieval-augmented generation
  • Matkv: Trading compute for flash storage in llm inference
  • Subgcache: Accelerating graph-based rag with subgraph-level kv cache