<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>CG-RAG: Research Question Answering by Citation Graph Retrieval-Augmented LLMs</title></titleStmt>
			<publicationStmt>
				<publisher>ACM</publisher>
				<date>07/07/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10588518</idno>
					<idno type="doi"></idno>
					
					<author>Yuntong Hu</author><author>Zhihan Lei</author><author>Zhongjie Dai</author><author>Allen Zhang</author><author>Abhinav Angirekula</author><author>Zheng Zhang</author><author>Liang Zhao</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Research question answering requires accurate retrieval and contextual understanding of scientific literature. However, current Retrieval-Augmented Generation (RAG) methods often struggle to balance complex document relationships with precise information retrieval. In this paper, we introduce Contextualized Graph Retrieval-Augmented Generation (CG-RAG), a novel framework that integrates sparse and dense retrieval signals within graph structures to enhance retrieval efficiency and subsequently improve generation quality for research question answering. First, we propose a contextual graph representation for citation graphs, effectively capturing both explicit and implicit connections within and across documents. Next, we introduce Lexical-Semantic Graph Retrieval (LeSeGR), which seamlessly integrates sparse and dense retrieval signals with graph encoding. It bridges the gap between lexical precision and semantic understanding in citation graph retrieval, demonstrating generalizability to existing graph retrieval and hybrid retrieval methods. Finally, we present a context-aware generation strategy that utilizes the retrieved graph-structured information to generate precise and contextually enriched responses using large language models (LLMs). Extensive experiments on research question answering benchmarks across multiple domains demonstrate that our CG-RAG framework significantly outperforms RAG methods combined with various state-of-the-art retrieval approaches, delivering superior retrieval accuracy and generation quality.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>Question answering is a critical domain recently driven by advancements in Large Language Models (LLMs). While LLMs exhibit exceptional capabilities in addressing commonsense questions <ref type="bibr">[2,</ref><ref type="bibr">13,</ref><ref type="bibr">20]</ref>, their pre-trained knowledge inevitably becomes outdated over time, rendering them insufficient for delivering timely, precise, and comprehensive answers, particularly for complex scientific and domain-specific questions. Additionally, the substantial cost of continuously fine-tuning and updating LLMs makes maintaining their relevance impractical.</p><p>For open-domain question answering, which requires relevant contexts for precise answers, Retrieval-Augmented Generation (RAG) <ref type="bibr">[21]</ref> offers a promising solution. By integrating external knowledge, RAG addresses the limitations of static pre-trained LLMs, enabling access to up-to-date, domain-specific information and thereby enhancing answer accuracy <ref type="bibr">[34,</ref><ref type="bibr">36,</ref><ref type="bibr">42]</ref>. RAG comprises two components: a retriever, which identifies relevant information from the database based on the query, and a generator, which utilizes the retrieved information to construct responses. The quality of generation heavily depends on the effectiveness of the retrieval Figure <ref type="figure">1</ref>: Illustration of retrieval-augmented research question answering using: (a) sparse retrieval based on lexical matches, (b) dense retrieval based on semantic relevance, and (c) contextualized retrieval leveraging graph context, i.e., interactions between documents. represents the dense embedding, where deeper colors indicate a higher semantic relevance to the question. Boxed text in red highlights the matched terms between questions and documents, while Boxed text in blue highlights the matched terms between documents.</p><p>process <ref type="bibr">[45,</ref><ref type="bibr">47]</ref>. Traditional retrieval methods primarily focus on lexical and semantic relevance to evaluate the relevance between documents and queries, utilizing sparse and dense retrieval signals, respectively <ref type="bibr">[25,</ref><ref type="bibr">48]</ref>. For graph-based databases, however, these methods fall short, as they fail to account for intricate interdocument relationships. For example, simple retrieval methods often overlook critical citation links in paper citation networks, which are essential for capturing nuanced connections between documents.</p><p>Unlike typical QA tasks, which range from layman-level to domain-expert-level based on well-curated documents or knowledge graphs, this paper focuses on more challenging QA at the research frontier, which can only be addressed by analyzing the body of research papers, a task referred to as research question answering. Research question answering necessitates considering connections between documents through citation links to ensure comprehensiveness <ref type="bibr">[10,</ref><ref type="bibr">24,</ref><ref type="bibr">38]</ref>. In citation graphs, the relevant papers are connected not only semantically but also via citation links, encapsulating structured contextual information. Leveraging this contextual information is essential for enhancing both retrieval accuracy and the quality of generated responses, as illustrated in Figure <ref type="figure">1</ref>. Specifically, as shown in Figure <ref type="figure">1(c)</ref>, each paper requires an evaluation of lexical and semantic relevance, as well as its citations to other relevant documents. For instance, a paper focused on "graph representation learning" is theoretically correlated to a query on "node classification," but it cannot be retrieved using sparse or dense retrieval alone. When multi-hop citation links are considered, however, it becomes highly relevant. Notably, not all citation-linked papers are pertinent to the query, requiring an approach that integrates lexical and semantic relevance, structural patterns, and graph-based context to ensure accurate retrieval.</p><p>To tackle this problem, we propose Contextualized Graph Retrieval-Augmented Generation (CG-RAG), a novel framework tailored for research question answering. An important consideration of research question answering is that research paper content is highly heterogeneous: for instance, the information in the related work, methodology, and experimental sections each serve different purposes and answer distinct types of questions. Therefore, effective modeling requires breaking down documents into semantic chunks-coherent sections representing specific aspects of a research paper. To achieve this, we mathematically construct a citation graph at the chunk level, where each chunk represents a semantically meaningful module of the paper. These chunks form a graph structure with intra-paper and inter-paper connections, capturing both internal coherence and external relationships. To represent this, we introduce the Contextual Citation Graph, which decomposes citation graphs into chunk-level granularity, enabling fine-grained relationship discovery.</p><p>To synergize lexical and semantic retrieval signals inside and across networked documents in citation graphs, we propose the Lexical-Semantic Graph Retrieval (LeSeGR) method. This approach convolves over query-relevant subgraphs, where edges and nodes are characterized by lexical and semantic relevance scores. Importantly, we theoretically demonstrate that the existing postretrieval paradigm is a special case of our approach. When documents are contextually linked, entangling retrieval signals through graph structures enhances retrieval performance. Finally, the subgraph embeddings are used as input to LLMs for generating final answers. Our experiments conducted on citation graphs from diverse scientific domains demonstrate the superior retrieval and generation effectiveness of CG-RAG. Furthermore, our evaluations reveal that retrieval-augmented LLMs equipped with CG-RAG outperform state-of-the-art retrieval strategies, significantly enhancing the quality of LLM-generated responses.</p><p>The rest of the paper is organized as follows. Section 2 reviews related work on retrieval-augmented generation. Section 3 highlights key aspects of retrieval-augmented research question answering within the context of citation graphs. Section 4 introduces a novel formulation that extends beyond the current retrieval paradigm and details our proposed retrieval strategy and retrieval-augmented generation method. Section 5 presents experimental results, comparing our approach with RAG frameworks using various state-of-the-art retrieval methods for research question answering. Finally, Section 6 concludes the paper with key insights.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">RELATED WORK 2.1 Information Retrieval</head><p>Information retrieval (IR) focuses on extracting relevant information from large corpora. Two primary retrieval techniques dominate the field: sparse retrieval and dense retrieval. Sparse retrieval methods, such as TF-IDF <ref type="bibr">[32]</ref> and BM25 <ref type="bibr">[31]</ref>, rely on term-based representations to evaluate lexical matches between queries and documents. These approaches perform well in scenarios where exact term matching is essential, but they struggle with semantic meaning. In contrast, dense retrieval methods leverage pretrained language models such as BERT <ref type="bibr">[5]</ref> to encode queries and documents as continuous, low-dimensional embeddings, capturing semantic similarity through maximum inner product search (MIPS) <ref type="bibr">[16,</ref><ref type="bibr">30,</ref><ref type="bibr">43,</ref><ref type="bibr">44]</ref>. Dense retrieval effectively overcomes the lexical gap, retrieving semantically related results even when query terms differ from the document's terminology. Recently, hybrid retrieval techniques have also emerged to combine the strengths of sparse and dense methods while addressing their respective limitations <ref type="bibr">[25,</ref><ref type="bibr">26,</ref><ref type="bibr">29]</ref>. By integrating sparse and dense signals, these approaches provide a robust solution for retrieving relevant information from long and complex documents.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Retrieval-Augmented Generation</head><p>Retrieval-Augmented Generation (RAG) is a technique that integrates external retrieval systems to enhance large language models (LLMs) <ref type="bibr">[9,</ref><ref type="bibr">21,</ref><ref type="bibr">22]</ref>. Unlike traditional LLMs that rely solely on pre-trained knowledge, RAG leverages external sources during inference, enabling more accurate and up-to-date responses. This makes RAG particularly effective for specialized tasks, such as literature-based question answering <ref type="bibr">[27,</ref><ref type="bibr">46]</ref>. Naturally, current literature question-answering systems are predominantly built upon RAG frameworks <ref type="bibr">[1,</ref><ref type="bibr">10,</ref><ref type="bibr">35,</ref><ref type="bibr">39]</ref>, relying mainly on dense retrieval combined with LLMs. Literature data, however, is inherently graphstructured, where topological information, such as hierarchical and citation relationships, plays a crucial role in the retrieval and generation processes. As such, most existing literature question answering methods fail to incorporate this structural context effectively. Recently, GraphRAG <ref type="bibr">[6,</ref><ref type="bibr">11,</ref><ref type="bibr">12]</ref> was introduced to extend RAG to graph-related scenarios, offering the potential to capture complex interconnections in literature datasets by leveraging graphbased relationships such as hierarchical and citation structures. In our study, we focus on leveraging graph context to enhance the retrieval and generation processes in literature question answering.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">RESEARCH QUESTION ANSWERING</head><p>Citation Graph. A citation Graph, G = (&#119881; , &#119864;, {&#119889; &#119907; } &#119907; &#8712;&#119881; ), consists of a node set &#119881; and an edge set &#119864;, where each node &#119907; &#8712; &#119881; is associated with natural language attributes in a paper. These papers, represented by D = {&#119889; &#119907; } &#119907; &#8712;&#119881; , include textual information such as abstracts, sections, and other relevant content. Research Question Answering. Given a query &#119902; over the citation graph G, the objective of research question answering is to generate an appropriate answer by leveraging the relevant information retrieved from G. Formally, this objective is defined as:</p><p>where &#120579; represents the parameters of the generative language model, &#119884; = {&#119910; &#119894; } &#119899; &#119894;=1 is the generated answer sequence, and &#119910; &lt;&#119894; denotes the prefix tokens of the sequence up to position &#119894; -1.</p><p>The quality of the generated answer is highly dependent on the effectiveness of the retrieval process within the citation graph. Let &#119891; &#119900; denote the relevance scoring function for a retrieval system &#119900;. Recent advances in graph-based retrieval leverage structural information, formalized as:</p><p>where &#119892;(&#8226;) encodes topological information. These methods primarily rely on dense representations, which often fail to capture sparse lexical matches-essential in citation graphs for identifying exact cross-references and key terms critical to retrieval accuracy. Thus, integrating sparse and dense retrieval is essential. Existing hybrid retrieval systems combine these signals via post-retrieval fusion: &#119891; hybrid : &#119891; sparse &#119891; dense &#8594; R, where denotes operations such as score fusion. Treating documents as isolated entities, however, limits their effectiveness in structured databases such as citation graphs. Designing a retrieval system that is both lexically and semantically aware in graph retrieval remains an unresolved challenge.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">METHODOLOGY 4.1 Overview</head><p>To overcome these limitations, we propose Contextualized Graph Retrieval-Augmented Generation (CG-RAG), introducing a novel retrieval method called Lexical-Semantic Graph Retrieval (LeSeGR), which integrates discrete sparse signals and continuous dense signals in a manner that respects the graph topology. Formally, the paradigm is defined as:</p><p>where &#119892;(&#8226;) is a graph encoder that incorporates structured context during retrieval, and represents the entangled fusion of sparse and dense signals. The transition to &#119891; entangled offers greater generality and capabilities, but requires addressing fundamental challenges:</p><p>&#8226; Section 4.2 introduces the contextual citation graph, which captures chunk-level cross-relationships by surrounding each chunk with its relevant context. &#8226; Section 4.3 introduces the Lexical-Semantic Graph Retrieval that integrates sparse and dense signals within graph-based scenarios.</p><p>We prove that it encompasses existing hybrid retrieval methods based on post-retrieval approaches as a special case when graph contextual information is absent and extends dense-signalonly graph retrieval, highlighting its generalizability to current retrieval frameworks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226; Section 4.4 introduces Contextualized Graph Retrieval-Augmented</head><p>Generation that leverages retrieved contextual subgraphs by LeSeGR to improve the quality of generated responses.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Contextual Citation Graph</head><p>Research paper content is highly diverse, with sections like related work, methodology, and experiments serving distinct purposes and answering different questions, necessitating the segmentation of documents into semantic chunks that capture specific aspects. Given a citation graph G = (&#119881; , &#119864;, {&#119889; &#119907; } &#119907; &#8712;&#119881; ), each document &#119889; &#119907; is decomposed into a set of chunks &#119862; &#119907; , with all chunks collectively forming C = &#119907; &#8712;&#119881; &#119862; &#119907; . Chunks may reference each other within the same document (intra-connections) or across different documents (inter-connections). Intra-connections are explicit, such as a section referencing earlier subsections within the same paper, while inter-connections occur when one paper cites another without explicitly linking to specific chunks within it. Intra-document links typically provide highly relevant context, whereas inter-document links offer supplementary but less significant information. To capture these interactions during retrieval, we propose the hierarchical citation graph, modeling relationships both within and across documents. Formally, it is defined as &#7712; = ( V , &#274;, C), where C = {&#119888; &#119894; } &#119894; &#8712; V represents the set of chunks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.1">Chunk</head><p>Node. Each chunk &#119888; &#119894; &#8712; C corresponds to a fixedlength segment of text extracted from a document in the citation graph G. Specifically, documents are divided into chunks with a maximum token length of &#119897;, such that a document with a total token length of &#119871; is divided into &#8968; &#119871; &#119897; &#8969; chunks. These chunks serve as the nodes in the hierarchical citation graph &#7712;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.2">Chunk-Chunk Edge.</head><p>The edges in &#7712; represent relationships between chunks, capturing both intra-and inter-document connections. Edge weights reflect the strength and nature of these relationships. Intra-document Edges connect chunks within the same document, preserving the logical flow and structural hierarchy of the text. When &#119888; &#119894; , &#119888; &#119895; &#8712; &#119862; &#119907; , an edge is established if a structural dependency exists between them, such as adjacency or explicit cross-references. Adjacency refers to the logical connection between two consecutive chunks, where &#119888; &#119895; precedes &#119888; &#119894; , resulting in an edge &#119888; &#119895; &#8594; &#119888; &#119894; . Explicit cross-references occur when &#119888; &#119894; refers to &#119888; &#119895; , establishing an edge &#119888; &#119895; &#8594; &#119888; &#119894; . Inter-document Edges, in contrast, connect chunks across different documents. For a chunk &#119888; &#119894; &#8712; &#119862; &#119906; , the Top-&#119899; relevant chunks in &#119862; &#119907; are linked to &#119888; &#119894; if (&#119907;, &#119906;) &#8712; &#119864;. The relevance &#119903; &#119894; &#119895; between &#119888; &#119894; and &#119888; &#119895; is computed using the relevance scoring functions &#119891; sparse and </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Lexical-Semantic Graph Retrieval (LeSeGR)</head><p>Given a hierarchical citation graph &#7712; = ( V , &#274;, C, &#119908;), the representation of each chunk &#119888; &#119894; &#8712; C is designed to combine the advantages of sparse lexical vectors and dense semantic vectors. Additionally, if the contexts around &#119888; &#119894; contain relevant information, the representation incorporates contributions from these contextual chunks. This forms the basis of an entangled representation, integrating both sparse-dense fusion and graph contextual information.</p><p>Algorithm 1 Lexical-Semantic Graph Retrieval. Require: Citation graph G = (&#119881; , &#119864;, {&#119889; &#119907; } &#119907; &#8712;&#119881; ), Query &#119902; Ensure: A list of contextual subgraphs { &#7712;} 1: &#8882;Initialize graph structures and representations. 2: if cached contextual graph &#7712; exists then 3:</p><p>Cache &#7712; for future use 7: end if 8: &#8882;Initialize sparse and dense representations for the query and all chunks. 9: c sparse &#119894; , c dense &#119894; &#8592; sparse and dense encoders for &#8704;&#119888; &#119894; &#8712; C 10: q sparse , q dense &#8592; sparse and dense encoders for &#119902; 11: &#8882;Compute initial query relevance for all chunks. 12: for each chunk &#119888; &#119894; &#8712; C do </p><p>21: &#8882;Aggregate messages. 22: h (&#119896;+1) &#119894; &#8592; AGG (&#119896; ) {m (&#119896; ) &#119895; | &#119895; &#8712; {&#119894;} &#8746; N (&#119894;)} 23: end for 24: end for 25: &#8882;Compute relevance scores with entangled representations. 26: for each chunk &#119888; &#119894; &#8712; C do 27: &#119904; (&#119902;, &#119888; &#119894; ) &#8592; &#119891; dense (q dense , h (&#119870; ) &#119894; ) 28: end for 29: &#8882;Select top-relevant chunks and construct subgraphs. 30: &#119878; ( &#7712;; &#119902;) &#8592; Top-&#119873; contextual subgraphs based on &#119904; (&#119902;, &#119888; &#119894; ) 31: &#8882;Return the retrieved subgraphs. 32: return &#119878; ( &#7712;; &#119902;)</p><p>The entangled representation of &#119888; &#119894; is obtained through a graph encoder, such as a GNN, which aggregates information based on the contextual graph:</p><p>where &#934; denotes the parameters of the graph encoder, and h (0) &#119895; = c dense &#119895; is the initial dense representation of &#119888; &#119895; . The terms &#120575; &#119902; &#119895; and &#120572; &#119894; &#119895; control the message passing, ensuring that only relevant information is propagated. Specifically, the message contribution from a neighboring chunk &#119888; &#119895; to &#119888; &#119894; and the subsequent update are defined as:</p><p>where h</p><p>&#119895; is the representation of &#119888; &#119895; at layer &#119896;. The term &#120575; &#119902; &#119895; evaluates the relevance between the query and the context, while &#120572; &#119894; &#119895; measures the relevance between the central chunk &#119888; &#119894; and its neighboring chunks &#119888; &#119895; . Specifically, &#120575; &#119902;&#119894; , the sparse relevance between a query &#119902; and a chunk &#119888; &#119894; , is computed as:</p><p>).</p><p>(</p><p>where &#119891; sparse indicates a relevance scoring function used in sparse retrieval such as cosine similarity and dot product. This incorporates sparse relevance into the dense embedding during message passing. To model the dense interaction between &#119888; &#119894; and its neighboring chunks &#119888; &#119895; &#8712; N (&#119894;), &#120572; &#119894; &#119895; is calculated as:</p><p>where &#120572; &#119894;&#119894; is defined as 1, &#8854; represents element-wise subtraction to compute the feature difference, and MLP &#120601; parameterized by &#120601;, adaptively assesses the relevance between chunks. This entangled representation framework integrates sparse and dense features while leveraging structural information from the graph context, ensuring that each chunk's representation reflects both its intrinsic relevance and its contextual relationships.</p><p>Given a query &#119902; over the chunk set C of a citation graph G, the relevance scoring function &#119891; entangled (&#119902;, &#119888; &#119894; ) : Q &#215; C &#8594; R is:</p><p>where &#119891; dense indicates a relevance scoring function used in dense retrieval, q dense represents the dense vector of the query, and H &#119894; denotes the entangled representation of the chunk &#119888; &#119894; . The overall algorithm is depicted in Algorithm 1.</p><p>Proposition 4.1 (LeSeGR Generality). Post-retrieval methods with the metric &#119891; hybrid : &#119891; sparse &#119891; dense &#8594; R, represent a special case of the proposed Lexical-Semantic Graph Retrieval (LeSeGR). This holds when no additional relevant contextual information exists for any chunk in the citation graph, reducing LeSeGR to existing hybrid retrieval used post-retrieval fusion.</p><p>Proof. The entangled representation of a chunk &#119888; &#119894; is given by:  defined in Equation <ref type="formula">9</ref>, can be expanded as:</p><p>&#8733; &#120582; &#119894; &#119891; dense (q dense , m</p><p>N ). (12) When no relevant neighbors exist (i.e., N (&#119894;) = &#8709;), the second term vanishes, leaving:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#119894;</head><p>, the relevance score simplifies to:</p><p>Taking the logarithm for further analysis: log(&#119904; (&#119902;, &#119888; &#119894; )) &#8733; log(&#120575; &#119902;&#119894; ) + log(&#119891; dense (q dense , c dense</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#119894;</head><p>)). <ref type="bibr">(15)</ref> Since &#120575; &#119902;&#119894; = &#119891; sparse (q sparse , c sparse &#119894;</p><p>), this becomes: log(&#119904; (&#119902;, &#119888; &#119894; )) &#8733; log(&#119891; sparse (q sparse , c sparse &#119894;</p><p>))</p><p>+ log(&#119891; dense (q dense , c dense</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#119894;</head><p>)),</p><p>where the use of log(&#8226;) requires &#119891; sparse and &#119891; dense to be mapped to R + . This requirement can be fulfilled by applying appropriate activation functions or transformations to transform them from R into the non-negative domain. In this case, the relevance score is equivalent to the additive fusion of sparse and dense relevance, as used in post-retrieval hybrid methods. Hence, when no contextual information exists (N (&#119894;) = &#8709;), our graph-contextualized retrieval reduces to the post-retrieval fusion paradigm, demonstrating that the latter is a specific instance of the former. &#9633;</p><p>When relevant graph contexts are present, the entangled framework dynamically propagates and aggregates sparse and dense signals through structural relationships among neighboring chunks. This enables the model to capture relational dependencies and multi-hop connections in graphs, enhancing retrieval accuracy and effectively utilizing sparse and dense signals from neighbors.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Contextualized Graph Retrieval-Augmented Generation (CG-RAG)</head><p>Given a query &#119902; on a citation graph G, we use LeSeGR to retrieve the top &#119873; chunks that are most relevant to the question. These retrieved chunks, together with their contextual subgraph, are then used to generate the answer, as illustrated in Figure <ref type="figure">2</ref>. Specifically, for each selected chunk, its corresponding contextual subgraph &#7712;&#119894; is retained for the generation phase, where &#7712;&#119894; = &#7712; [{&#119894;} &#8746; N (&#119894;)] represents the induced subgraph consisting of chunk &#119888; &#119894; and its direct neighbors. Formally, the set of contextual subgraphs for the Top-&#119873; chunks is defined as:</p><p>where Top-&#119873; (&#119902;, &#119862;) represents the Top-&#119873; chunks ranked by &#119904; (&#119902;, &#119888; &#119894; ). This ensures the retrieval retains both the most relevant chunks and their graph context for downstream tasks.</p><p>To effectively utilize the contextual information of each retrieved chunk and adapt to various LLMs, including open-source models such as LLaMA and closed-source models such as ChatGPT, we first summarize the graph context and then concatenate this summarized context with the central chunks to enhance generation. Specifically, for each contextual subgraph &#7712;&#119894; &#8712; &#119878; ( &#7712;; &#119902;), we prompt the LLM to summarize the contextual information surrounding &#119888; &#119894; . The summarized context is concatenated with the query to form the final input for generating the answer. The generation process over the citation graph G is formally defined as:</p><p>where &#120579; represents the LLM parameters, &#119883; &#119902; = TextEmbedder(&#119902;) is the query embedding, and &#119883; C is the context embedding:</p><p>representing the embeddings of the concatenated summarized contexts from the retrieved contextual subgraphs. The summarization is performed by the LLM itself, extracting relevant information from the contextual subgraph to aid in generating the final answer.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">EXPERIMENT</head><p>We conduct experiments to evaluate the effectiveness (Section 5.2) and efficiency (Section 5.3) of Contextualized Graph RAG, along with an analysis of the individual contributions of our technical designs (Section 5.4).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Settings</head><p>Datasets. Our experiments utilize two datasets: PubMedQA-1k and PapersWithCodeQA. PubMedQA-1k is a publicly available dataset, introduced by Jin et al., and comprises 1,000 questionanswer pairs designed for PubMed literature 1 , with human-labeled gold-standard retrieval and answer annotations. The original dataset, however, lacks citation information between papers, which we addressed by extracting the references for each paper and constructing a citation graph database with a total of 7,849 papers. The PapersWithCodeQA dataset was collected from the Paper-sWithCode website 2 , which tracks research papers across various computer science fields. We used 84 leaderboards 3  Medical, and Graphs. For each leaderboard, we extracted the top 20 papers' contents and references from arXiv <ref type="foot">4</ref> to construct a graph database. The LaTeX content of each paper was preserved as its textual attributes. The dataset comprises 12,171 papers, from which we also crafted 924 questions centered on leaderboard analysis, with ground truth answers derived directly from the leaderboards. These include 420 True/False questions, 420 multiple-choice questions, and 84 generative questions. For generative questions, we first provide the LLMs with the most relevant contexts labeled by humans and allow the LLMs to generate answers. We then evaluate the quality of retrieval-augmented generation by replacing the human-selected contexts with those retrieved by different retrieval methods. Metrics. To comprehensively evaluate the performance of RAG systems in retrieving relevant information and generating accurate, contextually appropriate answers, we employ distinct metrics for retrieval and question answering. For retrieval, we use Hit@1 and Hit@3, which measure the proportion of queries where the correct chunk is ranked within the top-1 and top-3 retrieved results, respectively. For research question answering, example questions and used evaluation metrics are presented in Table <ref type="table">1</ref>. For multiple-choice questions, we use Mean Reciprocal Rank (MRR) and Hit@k to assess ranking quality. For True/False questions, Accuracy (Acc) and &#119865; 1 score evaluate classification performance. For generative tasks, we leverage the UniEval model <ref type="bibr">[49]</ref> to assess Coherence, Consistency, and Relevance, which evaluate logical flow, factual accuracy, and topical alignment, respectively. All metrics adhere to the principle that higher values indicate better model performance. Implementations. Experiments are conducted using two NVIDIA A10 GPUs, with Graph Transformer <ref type="bibr">[33]</ref> serving as the graph encoder. The configuration includes two layers, each featuring four CrossEntropy, with 10% of the samples labeled with gold-standard retrieval, and optimized using the AdamW optimizer <ref type="bibr">[23]</ref>. The relevance scoring function for both dense and sparse representations is dot product. For generation, GPT-4 is employed through the Ope-nAI API, specifically leveraging the gpt-4o-2024-05-13 model version.</p><p>Baseline methods. To evaluate the proposed graph-contextualized retrieval method, we benchmark it against several state-of-the-art baselines renowned for their effectiveness in the retrieval phase across various RAG systems. These retrieval techniques are categorized into three groups: sparse retrieval, dense retrieval, and hybrid retrieval.</p><p>&#8226; Sparse Retrieval: BM25 <ref type="bibr">[31]</ref>, an advanced refinement of TF-IDF <ref type="bibr">[32]</ref>, enhances relevance scoring by incorporating probabilistic modeling, saturation, and document length normalization, providing robust performance in keyword-based retrieval tasks. Doc2Query <ref type="bibr">[28]</ref> improves sparse retrieval by generating synthetic queries for documents using a pre-trained language model (PLM).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>BGE-M3</head><p>[3] utilizes a multi-vector architecture to create robust representations, integrating contrastive learning and knowledge distillation techniques. &#8226; Dense Retrieval: MiniLM <ref type="bibr">[41]</ref> is a lightweight transformer model that uses deep self-attention distillation to create dense embeddings. LaBSE <ref type="bibr">[7]</ref> is a bilingual embedding model, leveraging dual encoders and a large-scale parallel corpus to ensure semantic alignment across languages. mContriever <ref type="bibr">[14]</ref> employs unsupervised contrastive learning to train dense retrievers, focusing on encoding diverse and nuanced contextual information. E5 <ref type="bibr">[40]</ref> optimizes embeddings for text retrieval by integrating explicit supervision from retrieval datasets and task-specific fine-tuning. SPAR <ref type="bibr">[4]</ref> employs salient phrase representation learning to bridge dense and sparse retrieval, utilizing a dual encoder architecture that explicitly models both phrase-level and document-level semantics.</p><p>&#8226; Hybrid Retrieval: ScoreFusion <ref type="bibr">[19]</ref> combines the output scores of sparse and dense retrieval models to produce a unified ranking.</p><p>ColBERT <ref type="bibr">[17]</ref> introduces late interaction to compute pairwise term similarities between query and document embeddings, enabling efficient and fine-grained integration of sparse and dense signals. CLEAR <ref type="bibr">[8]</ref> employs a residual learning framework to combine sparse and dense representations, ensuring complementary signals are utilized for improved retrieval performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Main Results</head><p>Our proposed Contextualized Graph Retrieval-Augmented Generation with LeSeGR achieves state-of-the-art performance across all tasks and datasets, as shown in Table <ref type="table">2</ref>. For true/false questions, LeSeGR significantly surpasses sparse, dense, and hybrid baselines in both accuracy (Acc) and &#119865; 1 scores, demonstrating its capability to effectively capture domain-specific terms and semantic nuances. Hybrid methods such as ScoreFusion combine sparse and dense signals but fail to achieve the deeper integration of retrieval signals offered by LeSeGR. Through its graph-structured integration, LeSeGR dynamically propagates and entangles retrieval signals from contextual information, fully leveraging the relationships embedded in the graph structure. This advanced integration translates to superior performance, particularly in metrics such as MRR and Hit@1.</p><p>In generative tasks, our method demonstrates significant improvement in Coherence, Consistency, and Relevance by leveraging its entangled sparse-dense representation and graph-based contextualization. Unlike hybrid baselines such as ColBERT, which emphasizes token-level interactions but overlooks graph-level relationships, LeSeGR's graph encoder dynamically aggregates signals across interconnected chunks. This enhances contextual understanding, enabling high-quality and contextually rich text generation. For instance, LeSeGR achieves a Coherence score of 0.956 on PapersWithCodeQA, outperforming ColBERT's 0.927. These results underscore the unique strengths of LeSeGR in effectively  <ref type="table">3</ref> demonstrates that LeSeGR significantly outperforms all baselines in the retrieval phase, including sparse, dense, and hybrid approaches. Our method achieves superior retrieval accuracy by effectively entangling sparse and dense signals within the graph structure, allowing contextual information to enhance relevance scoring. Unlike post-retrieval fusion methods, such as ScoreFusion, which combine sparse and dense signals after separate retrieval processes, our approach dynamically integrates these signals ing retrieval, leading to more coherent and effective utilization of both lexical and semantic information. Furthermore, while Col-BERT performs token-level interactions for fine-grained relevance, it operates at the query-document level without fully leveraging the structural relationships present in citation graphs. In contrast, our method extends relevance computation to the graph structure, propagating and aggregating signals across related chunks to capture multi-hop and relational dependencies. This deeper integration of graph context and entangled sparse-dense signals enables our method to outperform ColBERT, achieving the highest Hit@1 and Hit@3 scores.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Efficiency Analysis</head><p>As shown in Table <ref type="table">4</ref>, LeSeGR demonstrates competitive retrieval efficiency on the citation graph of arXiv (PapersWithCodeQA). It strikes a balance between memory usage and latency, leveraging GPU computation effectively. LeSeGR achieves faster query latency (403.94 ms) compared to ColBERT (561.91 ms) while maintaining a moderate GPU memory footprint (1,921 MB). In contrast, Score-Fusion exhibits high CPU memory usage (5,655 MB) and slower query speeds, whereas LeSeGR optimizes GPU utilization by integrating both sparse and dense retrieval signals into the message passing process of the graph encoder. Additionally, LeSeGR outperforms CLEAR in query speed while maintaining similar memory usage. These results highlight LeSeGR's efficiency and scalability for large-scale graph-based retrieval tasks without compromising effectiveness. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4">Ablation Studies</head><p>The ablation studies performed for each influential factor in LeSeGR is shown in Table <ref type="table">5</ref>. In this experiment, we evaluate LeSeGR on the citation graph of PubMed, which contains 7,849 papers. Our main observations are as follows: &#8226; Graph Encoder. Among Graph Attention Networks (GAT) <ref type="bibr">[37]</ref>, Graph Convolutional Networks (GCN) <ref type="bibr">[18]</ref>, and Graph Transformer <ref type="bibr">[33]</ref>, Graph Transformer achieves the highest Hit@1 and Hit@3 scores of 0.961 and 0.987, respectively. Notably, regardless of which graph encoder is employed, our LeSeGR method still consistently achieves the best retrieval performance when compared to the baselines in Table <ref type="table">3</ref>. This underscores LeSeGR's superior ability to model complex relationships and effectively aggregate contextual information for retrieval. &#8226; Top-&#119899; Context. We further assess three configurations for the number of contexts connected via inter-document edges, i.e., Top-&#119899;. The &#119899; = 4 setting achieves the best results, striking a balance between sufficient contextual inclusion and noise reduction. Smaller values, such as &#119899; = 2, restrict the scope of context, while larger values, such as &#119899; = 8, may introduce irrelevant information, diluting the positive impact of relevant context and reducing retrieval effectiveness. It is anticipated that if the chunk length is sufficiently large, retaining only the top-1 relevant chunk will suffice. &#8226; Retrieval Signals. We compare four sparse representation methods. BGE-M3 outperforms other sparse encoders, achieving the highest scores, as its ability to integrate lexical and semantic features is critical for domain-specific term matching. TF-IDF and BM25, while strong in lexical precision, lack semantic adaptability.</p><p>In addition, we also compare three dense representation methods, with MiniLM delivering the best performance. MiniLM's compact representation effectively captures semantic nuances, making it better suited for diverse queries and documents. As a whole, however, combining two expressive retrieval models with our LeSeGR framework results in stronger retrieval performance. Notably, the performance of LeSeGR appears to be primarily constrained by the quality of the dense retrieval signal.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">CONCLUSION</head><p>In this work, we introduce Lexical-Semantic Graph Retrieval (LeSeGR), a novel framework that integrates sparse, dense, and graph-structured retrieval signals for complex and structured database. Based on LeSeGR, we present Contextualized Graph Retrieval-Augmented Generation (CG-RAG) for research question answering. By leveraging a contextual citation graph, our approach effectively captures intra-and inter-document relationships, enabling a dynamic propagation of contextual information through an entangled hybrid retrieval paradigm. This paradigm bridges lexical precision and semantic understanding while generalizing to existing retrieval methods. Furthermore, CG-RAG incorporates a graph-aware generation strategy, enhancing the contextual richness of generated responses.</p><p>Extensive experiments across multiple citation networks demonstrate the superior performance of CG-RAG based on LeSeGR, achieving state-of-the-art results in retrieval metrics such as Hit@1 and generation metrics such as Coherence and Relevance. Our findings underscore the effectiveness of graph-contextualized representations in advancing the capabilities of retrieval-augmented generation for citation graphs, setting a new benchmark for retrievalaugmented research question answering.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_0"><p>https://arxiv.org/</p></note>
		</body>
		</text>
</TEI>
