Abstract
Motivation
Research on biological mechanisms and disease processes is limited by fragmented findings across unstructured text in publications. Question answering and hypothesis generation that can reason across multiple sources can overcome this limitation. However, Large language models (LLMs) are prone to inaccuracies and lack clear provenance to primary evidence. Retrieval augmented generation approaches that have provenance to the original source of evidence address these shortcomings. However, the response richness is dependent on the retrieval process design. Current approaches often fail to produce responses requiring multi-hop reasoning across multiple domains.
Results
To address this, we propose eGoT, which combines automated knowledge graph construction from biomedical literature with a novel graph-of-thoughts approach to query the knowledge base and construct comprehensive responses to natural language questions. Given a corpus of documents, eGoT first uses an LLM-based pipeline to identify and normalize entities and relationships and constructs graph and vector databases. Given an input question, eGoT performs multi-round LLM-based querying of the databases to construct a response. Benchmarking on datasets like MultiHopRAG, HotpotQA, and Ultradomain demonstrates eGoT’s superiority over state-of-the-art retrieval methods, including HopRAG, SireRAG, HiRAG, and HippoRAG. We demonstrate eGoT on two biomedical use cases: (i) generate responses to domain expert-curated questions on small cell lung cancer using 1046 PubMed Central publications, and (ii) demonstrate eGoT’s ability to find plausible connections between Lupus and climate factors (UV exposure) that affect disease trajectory.
Availability and implementation
1 Introduction
Understanding biological mechanisms and disease processes, and designing therapeutic interventions, remains a central challenge in biomedical research. A key barrier, recognized since the concept of “undiscovered public knowledge” (Swanson 1986), is that relevant findings are fragmented across a large body of publications (about 39 million cataloged in PubMed to date), with mechanistic insights, molecular data, and clinical observations scattered across disparate documents (Gopalakrishnan et al. 2019). Explaining complex phenomena or generating novel hypotheses often requires piecing together evidence from multiple sources and tracing multi-hop reasoning chains such as relationships between genetic variants to downstream phenotypic manifestations. Knowledge fragmentation is particularly acute for complex diseases where environmental, genetic, and physiological factors interact across traditional disciplinary boundaries. Computational methods that can reason over and synthesize knowledge from multiple sources have the potential to accelerate discovery by uncovering latent connections that would otherwise require extensive manual literature review. Decades of work in biomedical natural language processing have produced robust methods for extracting entities, relations, and events from scientific text (Islamaj et al. 2024, Wei et al. 2024). However, assembling these extracted annotations across multiple sources and performing multi-hop reasoning while preserving the contextual nuances from original studies remains a significant challenge (Bachman et al. 2023).
Large language models (LLMs) have emerged as powerful tools for natural language understanding and reasoning (Brown et al. 2020, Khashabi et al. 2020). However, LLMs face fundamental challenges in factual reliability (Bang et al. 2023, Yao et al. 2023a): their parametric knowledge is incomplete and subject to obsolescence, resulting in hallucinations (Bang et al. 2023, Yao et al. 2023a) when queried for domain-specific or up-to-date information.
Retrieval-augmented generation (RAG) relies on retrieval from sources external to model weights as a paradigm to address these limitations (Izacard et al. 2023, Ram et al. 2023). RAG grounds responses in primary evidence, thereby reducing hallucinations and improving verifiability (Lewis et al. 2020, Gao et al. 2023). Initial RAG methods used dense passage retrieval, which splits large documents into smaller chunks and performs similarity search over a query to retrieve relevant passages, with many subsequent improvements including query rewriting, query transformation, query expansion, and re-ranking. However, RAG systems that rely on dense vector-based retrieval, while effective for many open-domain QA tasks, struggle with (i) long-context reasoning, (ii) complex multi-hop inference, and (iii) integration of structured relationships between fragmented information (Chen et al. 2024, Zhang et al. 2024a). Hence, purely text-based RAG often produces shallow reasoning chains and fails to capture logical dependencies between entities (Weller et al. 2026). These limitations in capturing logical dependencies necessary for multi-hop reasoning have motivated the development of graph-based RAG approaches (Peng et al. 2026, Han et al. 2025, Zhang et al. 2025b), moving beyond unstructured text and semi-structured resources to structured graph representations.
Graph retrieval-augmented generation (graph-based RAG) overcomes these challenges by leveraging structured knowledge graphs (KGs) for retrieval. These KGs represent knowledge as entities and relations, naturally encoding semantic and logical dependencies that traditional vector-based RAG overlooks. By retaining relevant triples, subgraphs, or reasoning paths, graph-based RAG systems provide richer contextual grounding and support more complex reasoning (Edge et al. 2024, Peng et al. 2026, Han et al. 2025, Liang et al. 2025). This makes them particularly valuable for domains where entity relationships and structured knowledge are central. Nevertheless, graph-based RAG methods face significant limitations (Han et al. 2024, Peng et al. 2026, Zhang et al. 2025b). First, graph incompleteness hampers reasoning since extracted KGs are often sparse and miss crucial connections. Second, retrieval strategies are often too local or rigid: many graph-based RAGs expand neighborhoods heuristically, missing semantically important but structurally distant information. Third, integrating structured knowledge with unstructured text remains underdeveloped, limiting performance when queries require hybrid reasoning.
Early approaches such as GraphRAG (Edge et al. 2024) improve factual grounding but fall short on deep multi-hop reasoning, while LightRAG (Guo et al. 2024) and PathRAG (Chen et al. 2026) trade comprehensiveness for speed. Hierarchical systems like HiRAG (Zhang et al. 2024b) and hybrid methods such as ToG (Sun et al. 2024) and ToG2 (Ma et al. 2024) combine logical reasoning with textual grounding but still suffer from incoherence across heterogeneous knowledge sources. Additional work addresses evidence triple verification (Li et al. 2023), hallucination mitigation (Guan et al. 2024), and multi-hop traversal strategies (Liu et al. 2025). Overall, current graph-based RAG systems underperform on tasks requiring deep multi-hop reasoning and adaptive retrieval across large heterogeneous knowledge corpora (Liang et al. 2025, Luo et al. 2025).
Recent work has begun applying RAG and knowledge graph approaches specifically to biomedical question answering. KRAGEN (Matsumoto et al. 2024) combines knowledge graphs with graph-of-thoughts prompting for biomedical problem solving, while MedRAG (Xu et al. 2025) constructs hierarchical diagnostic knowledge graphs for clinical decision support, and i-MedRAG (Xiong et al. 2025) enables iterative follow-up queries to refine retrieval. However, these systems primarily target clinical diagnosis or require pre-existing curated knowledge bases rather than constructing graphs from primary literature; moreover, approaches like KRAGEN use single-pass query decomposition that limits reasoning to 1–2 hops, falling short of the deeper chains required to connect findings across molecular, clinical, and environmental domains.
Parallel to advances in graph-based retrieval, LLM reasoning has progressed from Chain-of-Thought prompting (Wei et al. 2022) through Tree of Thoughts (Yao et al. 2023b) to Graph of Thoughts (GoT) (Besta et al. 2024), which supports arbitrary reasoning dependencies including branching and aggregation operations. This graph-based reasoning structure naturally aligns with graph-structured knowledge representations and inspired our approach.
In this work, we propose eGoT: enhanced graph-of-thoughts for knowledge graph-based RAG, a novel algorithm that addresses these limitations by integrating iterative reasoning with graph-based retrieval. Unlike single-pass graph traversal methods, eGoT uses a graph-of-thoughts framework where an LLM iteratively generates, evaluates, and expands reasoning paths over the KG. By adopting and enhancing the GoT framework’s iterative thought exploration and multi-path reasoning capabilities to operate over KGs, eGoT leverages the complementary strengths of structured reasoning patterns and graph-based knowledge retrieval, enabling more comprehensive exploration of complex, multi-hop queries than traditional single-pass retrieval methods. Our method improves retrieval by leveraging the power of LLMs to split a given query into multiple thoughts, leading to exploration of concepts that are semantically correlated but not specified in the query. In particular, eGoT extends beyond prior biomedical approaches like KRAGEN by enabling iterative multi-hop exploration over knowledge graphs constructed directly from unstructured literature, rather than requiring pre-existing curated knowledge bases.
The primary contributions of this work are
The eGoT algorithm that enables adaptive exploration of relevant subgraphs, discovery of latent connections, and synthesis of multi-hop evidence across diverse contexts.
Evaluation and comparison of responses that are not only more comprehensive but also more faithful to the knowledge sources due to a unification of structured graph knowledge with the reasoning capabilities of LLMs.
Demonstration of eGoT on biomedical use cases: question answering on small cell lung cancer literature with expert-curated questions, and cross-domain hypothesis generation linking lupus pathophysiology with UV radiation and climate factors.
We benchmark eGoT on standard datasets (Ultradomain, HotpotQA, MultiHopRAG), exceeding state-of-the-art performance on key metrics. We then demonstrate eGoT’s capabilities on two biomedical applications: (i) a knowledge graph of 1046 small cell lung cancer publications from PubMed Central, where eGoT answers domain expert-curated questions about disease mechanisms with verifiable source attribution; and (ii) a cross-domain case study integrating lupus pathophysiology with climate science literature to discover mechanistic pathways linking UV radiation to autoimmune disease exacerbation. These applications illustrate eGoT’s ability to synthesize evidence across disciplinary boundaries, discover latent connections requiring multiple reasoning hops, and generate testable hypotheses grounded in primary literature.
2 Materials and methods
Unlike traditional single-query GoT retrieval approaches, eGoT explores multiple reasoning paths in a graph, synthesizing evidence from multiple queries to construct answers. We design eGoT to be an enhanced GoT retrieval over graph-based RAGs, for graph-based retrieval systems that incorporate iterative thought exploration and multi-path reasoning. This approach uses graphs in two distinct roles: a GoT for performing structured reasoning during retrieval and a KG as a knowledge base for retrieving context from. The end-to-end retrieval and reasoning workflow of eGoT is summarized in Fig. 1, which depicts the interaction between thought generation, graph-enhanced retrieval, and iterative evidence synthesis. In this section, we delineate both our KG construction method and eGoT implementation.
Figure 1.

A schematic for eGoT retrieval algorithm.
2.1 Knowledge graph construction
We construct a semantically rich KG from unstructured documents in three key stages: entity-relation extraction, entity standardization, and relationship inference.
Entity-relation triple extraction: Following Carta et al. (2023), we begin by extracting entity-relation triples from input documents. Let be a collection of documents. We partition each document into overlapping text chunks where adjacent chunks share a context window of size w. For each chunk , we use a call to an LLM with a single prompt to jointly extract entities and relations:
| (1) |
where represents the set of entities extracted from chunk , and represents the relations between pairs of entities within that chunk. The initial KG is then constructed as:
| (2) |
Entity standardization: Raw entity extraction often produces multiple surface forms for the same conceptual entity. For instance, in biomedical text, “Systemic Lupus Erythematosus,” “Lupus,” and “SLE” may all refer to the same disease. We implement an entity standardization function that maps entity variants to canonical forms. The standardization process operates in three stages:
Normalization: For each entity , we apply text normalization, , where represents a set of domain-specific stopwords.
- Clustering: For each entity, we construct a set of similar entities based on lexical similarity and semantic equivalence:
where is a similarity function combining string matching and semantic similarity, and is a similarity threshold, where is 4 characters.(3) Representative Selection: For each set , we select a canonical form This process yields a standardized entity set and a mapping function that ensures consistent entity representation across the KG.
Hidden relationship inference: After standardization, we enrich the KG by inferring latent relationships between entities that may not be explicitly stated in the text. This process uses both rule-based and LLM-based approaches.
Rule-based Inference: We apply transitive inference rules to discover implicit relationships: .
Additionally, we add relationships based on lexical patterns between entities sharing common roots or morphological variations as a heuristic for reconstructing ontologically related concepts that are not made explicit in text (for instance, “capitalism” and “capitalist decay”).
Community-based Inference: We identify disconnected components in the graph and use an LLM with a prompt in to hypothesize cross-community relationships, cf. Supplementary Information (SI):
| (4) |
where and represent entities from different graph communities. The enhanced KG is then:
| (5) |
Graph structure organization: Finally, we organize the KG with a hierarchical structure. Each triple is linked to its source chunk node , and each chunk node is linked to its parent document node : .
For each chunk node, we also compute and store its vector embedding, where is an embedding model. This hierarchical structure with embedded chunks enables efficient semantic search while preserving document-level context.
2.2 Retrieval using eGoT
The novel algorithmic flow of eGoT is given in Algorithms 1 and 2. Given the constructed KG, , and a query q, our goal is to retrieve and synthesize relevant information by exploring multiple reasoning paths. We formulate this as an iterative thought generation and retrieval process that constructs an evidence graph , where represents a thought, represents retrieved evidence, represents the relevance score (cf. Algorithm 1), and n is the total number of thoughts evaluated. We delineate the major components of this algorithm in what follows.Graph-of-thoughts generation: Our approach begins by decomposing the original query into multiple exploratory thoughts. Given a query q we generate a set of thoughts using an LLM call . The prompt for the generation can be found in the SI. Each thought represents a distinct reasoning direction or hypothesis that could contribute to answering the original query. We prompt to generate diverse thoughts that explore various aspects of a complex question.
Algorithm 1.
Graph-of-thoughts retrieval (eGoT)
Input: Query q, Knowledge Graph , Maximum Depth D
Output: Final answer
1: //Store all retrieved information
2:
3://Generate and evaluate initial thoughts
4:
5:
6: //Select top k thoughts
7:
8: forto D
9: //Queue for next depth
10: for all
11://Retrieve and process information
12:
13:
14:
15:
16://Build evidence from all retrieved info so far
17:
18:
19://Generate and evaluate new thoughts
20.:
21:
22:
23:
24: end for
25: end for
26:
27://Synthesize final answer
28:
29:
30: return
Algorithm 2.
Graph-enhanced retrieval
Input: Query embedding , Knowledge graph , Similarity threshold
Output: Retrieved entities E, relationships R, chunks C
1: //Retrieve initial chunks
2: //Documents
3:
4: for all
5:
6: //Group chunks by document
7: end for
8:
9: , , //Entities, relationships, paths
10: for all
11://Collect entities from chunks
12:
13:
14: for all
15:
16: //Adaptive depth
17:
18: if
19:
20: //Collect paths
21: end if
22: end for
23: end for
24:
25://De-duplicate across all paths
26:
27:
28:
29://Format retrieval results
30:
31: return results
Thought evaluation and prioritization: Not all generated thoughts contribute equally to answering the query. We use a thought evaluation mechanism using an LLM call with prompt J to score each thought’s potential contribution:
| (6) |
Thoughts are then prioritized based on their scores, with higher-scoring thoughts explored first. The evaluation also enables efficient exploration of only the most promising reasoning paths while maintaining computational efficiency.
Graph-enhanced retrieval: Algorithm 2 is called by Algorithm 1 at this stage. For each selected thought , we perform graph-enhanced retrieval over . Our retrieval function returns relevant entities , relationships , and document chunks :
| (7) |
The retrieval process uses a multi-stage approach that leverages both semantic similarity and graph structure to identify relevant information. We first retrieve candidate chunks using vector similarity search, then expand the retrieval scope through entity-centric graph exploration. Algorithm 2 is composed of three major parts
1. Adaptive graph exploration: A key innovation in our retrieval mechanism is the adaptive depth exploration based on semantic similarity scores. Given a query embedding , we dynamically adjust the exploration depth in the KG based on the cosine similarity between the query and entity embeddings:
| (8) |
where are two threshold parameters determining the depth used. This adaptive strategy ensures that highly relevant entities trigger deeper exploration of their neighborhoods, while maintaining computational efficiency by limiting exploration for less relevant entities.
2. Graph traversal: eGoT aggregates information at multiple levels: chunk-level for fine-grained textual content, entity-level for structured knowledge, and document-level for source attribution.The GraphTraverse function implements a bounded breadth-first search that excludes meta-nodes (chunk and document) to focus on domain-relevant entities. The traversal respects relationship types, excluding structural relationships (HAS_ENTITY, PART_OF) to prioritize semantic connections.
3. Result Aggregation and Formatting: Retrieved information undergoes a structured aggregation process to create a comprehensive context for answer generation. For each document d, we construct a textual representation that combines:
Chunk content: The raw text from retrieved chunks, preserving their semantic relevance scores
Entity descriptions: Structured information about entities, formatted as Type: ID (description)
Relationship triples: Graph connections formatted as Subject: ID RELATION Object: ID
This multi-faceted representation ensures that the subsequent language model has access to both unstructured textual content and structured graph knowledge. The aggregated information for each thought is then processed through a context-aware language model, This approach enables eGoT to leverage the complementary strengths of vector similarity search and graph structure, providing rich context that supports answer generation across diverse query types. At this stage, is returned by Algorithm 2 to Algorithm 1. Iterative thought expansion: eGoT uses an iterative expansion strategy that progressively deepens the exploration of the KG. Unlike single-pass retrieval, our approach generates new thoughts based on accumulated evidence, enabling dynamic reasoning that adapts to discovered information. After the initial thought generation, the system maintains an evidence state that captures all previously gathered information:
| (9) |
This evidence state serves as the context for generating subsequent thoughts, where represents the new thoughts generated at iteration j, informed by both the original query q and the accumulated evidence . To ensure efficient exploration, we maintain two key data structures: (i) a priority queue Q containing unexplored thoughts ranked by their evaluation scores and (ii) a set P of processed thoughts to prevent redundant exploration. The iterative process follows the following steps:
Select the top-k thoughts from Q based on their scores.
For each selected thought, perform retrieval and generate evidence.
Update the evidence state with new findings.
Generate new thoughts based on the updated evidence state.
Add novel thoughts to Q while updating P with processed thoughts.
This iterative expansion continues until one of the following conditions is met:
The maximum number of iterations N is reached.
The priority queue Q becomes empty (no more promising thoughts).
The thought generation process produces no novel thoughts.
The iterative nature of eGoT enables emergent reasoning patterns where later thoughts can build upon insights from earlier explorations, leading to a more comprehensive understanding of complex queries.
Evidence synthesis: After iterative exploration, eGoT synthesizes the collected evidence into a final answer. The complete evidence graph contains all thought-answer-retrieval tuples:
| (10) |
We aggregate the retrieved information by removing duplicates and organizing evidence by type (entities, relationships, documents, and answers). The LLM then processes this aggregated evidence:
The synthesis LLM call is used to (i) integrate insights from multiple reasoning paths, (ii) resolve contradictions between different evidence sources, (iii) structure the answer to address all query aspects, and (iv) maintain source attribution for verifiability.
This produces a coherent final answer that leverages the multi-path exploration while presenting information in a unified, comprehensive response. The dependence of eGoT on the choice of LLMs has been discussed in Section A, available as supplementary data at Bioinformatics online.
2.3 eGoT retrieval procedures
Thought generation parameters: We generate 2–4 thoughts per iteration to balance exploration breadth with computational efficiency.
Iteration control: For all the benchmarking results, we set a maximum depth of 2 iterations with only 3 thoughts explored per iteration, though the algorithm can terminate early if no new promising thoughts are generated.
Graph enhanced retrieval parameters: We use and as the two thresholds determining depth.
Evidence aggregation: Retrieved entities and relationships are aggregated across all thoughts, with duplicate removal to ensure comprehensive coverage of the KG.
3 Results
3.1 Benchmarking with standardized datasets
Baselines: We benchmark eGoT on the Query-Focused Summarization (QFS) and MultiHop QA (MHQA) tasks. We compare our results on these tasks with the current state-of-the-art RAG methods. For both benchmarks, we perform a comparison against alternative methods based on the availability of published results.
Datasets: For the QFS task, following Huang et al. (2025), we used three datasets from the Ultradomain benchmark: Legal and Agriculture, and Mix (Qian et al. 2025). Ultradomain is particularly relevant as a benchmark as it evaluates RAG systems across diverse applications on long-context tasks and high-level queries in specialized domains. Following Guo et al. (2024), we generate 100 questions for the Legal and Agriculture domains and 10 questions for the Mix domain. The questions are generated by giving a short description of the dataset to the LLM. For the MHQA task, we benchmark our system on 2 widely used datasets: MultiHopRAG (Tang and Yang 2024) and HotpotQA (Yang et al. 2018). For each of the tasks, we randomly sample 1000 questions and their passages. Additional details are in Table 2.
Table 2.
Comparative evaluation of eGoT against various RAG methods on the HotpotQA multi-hop question answering dataset.a
| Method | EM | F1 | Reference |
|---|---|---|---|
| NaiveRAG | 57.3 | 71.0 | Huang et al. (2025) |
| RAPTOR | 58.00 | 73.08 | Zhang et al. (2025a) |
| GraphRAG | 31.70 | 42.74 | Zhang et al. (2025a) |
| LightRAG | 25.00 | 43.20 | Huang et al. (2025) |
| HippoRAG | 59.9 | 74.29 | Zhang et al. (2025a) |
| HiRAG | 37.00 | 52.29 | Huang et al. (2025) |
| SiReRAG | 61.70 | 76.48 | Zhang et al. (2025a) |
| HopRAG | 61.30 | 78.34 | Liu et al. (2025) |
| eGoT | 63.00 | 71.11 |
We report Exact Match (EM) and F1 scores with the graph construction done using LLaMA-4 Scout, while answer retrieval and generation were conducted using GPT-4o. The bolded values denote the best performing models
Evaluation metrics: For benchmarking on standardized datasets, we followed previous works (Edge et al. 2024, Guo et al. 2024, Gutiérrez et al. 2024, Huang et al. 2025) for the evaluation methods. For the QFS task, we used the win rate to compare different methods with our method. The win rate tells us the percentage of times a given method generates higher-quality answers than its counterpart. This decision is taken by the LLM. The LLM judges the answer based on the following attributes: (i) Comprehensiveness: how thoroughly does the answer address the question, covering all relevant aspects and details? (ii) Empowerment: How effectively does the answer provide actionable insights or solutions that empower the user to take meaningful steps? (iii) Diversity: how well does the answer incorporate a variety of perspectives, approaches, or solutions to the problem? (iv) Overall: how does the answer perform overall, considering comprehensiveness, empowerment, diversity, and any other relevant factors? For a fair comparison, we also alternate the order of the answers generated by each pair of methods in the prompts and calculate the overall win rates of each method. The LLM used for judging (GPT OSS 120B) is never the same as the LLM that is used for KG construction and knowledge retrieval (LLAMA-4-scout/GPT-4o/DeepSeek-V3) throughout this work. For the MHQA Task, we evaluated the performance of eGoT and other methods using two standard metrics: exact match (EM) and F1 scores. EM measures the percentage of predictions that exactly match the ground truth answer after normalization (lowercasing, removing punctuation, and standardizing whitespace), providing a strict binary assessment of answer correctness. F1 Score, computed at the token level, measures the degree of overlap between predicted and ground truth answers, thus offering a more nuanced evaluation that gives partial credit for partially correct responses.
Quantitative results: In Table 1, we show a comparison of eGoT with several other retrieval methods. Our method clearly outperforms HiRAG (Zhang et al. 2024b), LightRAG (Guo et al. 2024), NaiveRAG (Gao et al. 2023), GraphRAG (Edge et al. 2024), and KAG (Liang et al. 2025) in all three domains and all four metrics, with only two exceptions. This clearly shows the superiority of our method in QFS tasks. In Tables 2 and 3, we compare eGoT with other retrieval methods on HotpotQA and MultiHopRAG datasets, respectively. While eGoT clearly outperforms several state-of-the-art methods on all metrics on the MultiHopRAG dataset, on the HotpotQA dataset, it outperforms only on exact match.
Table 1.
Comparative evaluation of eGoT against other RAG methods with baseline across Legal, Agriculture, and Mix domains.a
| Legal | Agriculture | Mix | ||||
|---|---|---|---|---|---|---|
| HiRAG | eGoT | HiRAG | eGoT | HiRAG | eGoT | |
| Comp. | 18.5 | 81.50 | 38.00 | 62.00 | 37.60 | 62.40 |
| Emp. | 17.00 | 83.00 | 21.00 | 79.00 | 43.40 | 56.60 |
| Div. | 26.00 | 74.00 | 37.50 | 62.50 | 48.00 | 52.00 |
| Overall | 17.00 | 83.00 | 30.50 | 69.50 | 42.20 | 57.80 |
| LightRAG | eGoT | LightRAG | eGoT | LightRAG | eGoT | |
| Comp. | 25.00 | 75.00 | 33.00 | 67.00 | 23.64 | 76.36 |
| Emp. | 15.00 | 85.00 | 19.50 | 80.50 | 13.17 | 86.83 |
| Div. | 37.00 | 63.00 | 37.00 | 63.00 | 18.99 | 81.01 |
| Overall | 20.00 | 80.00 | 29.00 | 71.00 | 16.27 | 83.73 |
| NaiveRAG | eGoT | NaiveRAG | eGoT | NaiveRAG | eGoT | |
| Comp. | 38.5 | 61.5 | 30.5 | 69.50 | 14.23 | 85.77 |
| Emp. | 19.5 | 80.5 | 19.50 | 80.50 | 13.07 | 86.93 |
| Div. | 29.50 | 70.50 | 27.50 | 72.50 | 11.53 | 88.47 |
| Overall | 30.50 | 69.50 | 23.50 | 76.50 | 12.30 | 87.70 |
| GraphRAG | eGoT | GraphRAG | eGoT | GraphRAG | eGoT | |
| Comp. | 47.50 | 52.50 | 41.00 | 59.00 | 26.74 | 73.26 |
| Emp. | 17.50 | 82.50 | 22.00 | 78.00 | 16.27 | 83.73 |
| Div. | 52.50 | 47.50 | 45.00 | 55.00 | 23.64 | 76.36 |
| Overall | 34.50 | 65.50 | 36.00 | 64.00 | 21.31 | 78.69 |
| KAG | eGoT | KAG | eGoT | KAG | eGoT | |
| Comp. | 18.00 | 82.00 | 15.50 | 84.50 | 8.10 | 91.90 |
| Emp. | 16.00 | 84.00 | 15.00 | 85.00 | 7.33 | 92.67 |
| Div. | 17.00 | 83.00 | 17.50 | 82.50 | 7.72 | 92.28 |
| Overall | 15.50 | 84.50 | 15.50 | 84.50 | 7.72 | 92.28 |
| No-GoT | eGoT | No-GoT | eGoT | No-GoT | eGoT | |
| Comp. | 40.5 | 59.5 | 38.50 | 61.50 | 44.20 | 55.80 |
| Emp. | 36.5 | 63.50 | 25.00 | 75.00 | 27.15 | 72.85 |
| Div. | 39.50 | 60.5 | 51.00 | 49.00 | 37.60 | 62.40 |
| Overall | 37.00 | 63.00 | 34.00 | 66.00 | 35.65 | 64.35 |
We report percentage win rates of eGoT versus each competing method on Comprehensiveness (Comp.), Empowerment (Emp.), Diversity (Div.), and Overall performance metrics. The graph construction phase was done using LLaMA-4 Scout, while answer retrieval and generation were conducted using DeepSeek-V3. The bolded values denote the best performing model.
Table 3.
Comparative evaluation of eGoT against various retrieval-augmented methods on the MultiHopRAG dataset.a
| Method | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|
| Naive | 47.50% | 59.90% | 50.10% | 60.40% |
| GraphRAG | 50.10% | 61.80% | 52.60% | 65.30% |
| LightRAG | 44.80% | 52.70% | 46.40% | 52.60% |
| PathRAG | 45.30% | 52.30% | 46.80% | 52.50% |
| HyperGraphRAG | 50.30% | 61.90% | 52.60% | 62.10% |
| TH-RAG | 71.10% | 72.00% | 71.20% | 72.20% |
| eGoT | 75.50% | 79.20% | 76.30% | 79.10% |
We report Precision, Recall, F1, and Accuracy scores with the graph construction being performed using LLaMA-4 Scout, while answer retrieval and generation are conducted using GPT-4o. The bolded values denote the best performing models.
Ablation study: We perform two ablation studies to establish the improvements seen in the benchmarking results. Firstly, we compare performance on QFS tasks with and without eGoT. These results can be found in Table 1 (and Table 1, available as supplementary data at Bioinformatics online). We see significant improvement when using eGoT as opposed to when not using it (No-GoT). This establishes the improvement in retrieval when using eGoT. Secondly, we test the improvement in retrieval that eGoT provides in larger knowledge graphs with a larger number of depth values. In Table 4, we compare three metrics after depth one of the algorithm versus depth three. These results highlight the fact that for a KG substantially larger than those obtained for common benchmarks (cf. Table 2, available as supplementary data at Bioinformatics online), a higher maximum depth number results in improved performance across all metrics. We have performed an ablation study for and (c.f. Supplementary Information) and and maximized the metrics of evaluation, namely (i) answer relevancy, (ii) faithfulness, (iii) context precisions, and (iv) context relevance. Additionally, we tested the removal of we saw a degradation of these metrics, especially context precision, as the algorithm chooses two thoughts at random and, hence, the performance is poor.
Table 4.
Performance evolution of eGoT across different maximum depth values on the small cell lung cancer dataset.a
| Metric | Depth 1 | Depth 3 | Total change 1 3 |
|---|---|---|---|
| Faithfulness | 0.80 | 0.90 | +0.10 (+12.4%) |
| LLM context precision. | 0.52 | 0.66 | +0.14 (+27.3%) |
| NV context relevance | 0.76 | 0.92 | +0.16 (+21.9%) |
We report faithfulness, LLM context precision, and non-vectorized context relevance metrics at maximum depth 1 and maximum depth 3 using LLaMA-4 Scout.
3.2 Case study: Small cell lung cancer
Datasets: The KGs in the benchmark datasets used above are relatively small (cf. Tables 3 and 4, available as supplementary data at Bioinformatics online). To better demonstrate the capabilities of eGoT to expand its reasoning and perform multi-hop retrieval, we created a KG for cancer biology. The dataset consists of 1046 full-text publications on small cell lung cancer (SCLC). These open-access publications were obtained from PubMed Central and were used for the KG construction.
Evaluation metrics: To test retrieval, we curate 21 questions of varying complexity with the help of an SCLC domain expert. The answers are evaluated using an LLM-as-judge approach for the following metrics (cf. Supplementary Information). (i) LLM-based context precision without reference leverages an LLM to assess whether each retrieved chunk contributed to the response generation, computing mean precision@k scores to quantify retrieval relevance without requiring ground-truth references. (ii) Faithfulness measures the factual consistency between generated responses and retrieved contexts by computing the ratio of claims in the response that are directly supported by the retrieved context to the total number of claims made, ensuring responses are grounded in the retrieved context. (iii) Context relevance evaluates the pertinence of retrieved contexts to the query by prompting an LLM with dual templates to assign relevance scores (0 = irrelevant, 1 = partial, 2 = complete), normalized to [0,1] and averaged to quantify query-context alignment.
Results: Performance results are shown in Table 4.
3.3 Case study: cross-domain integration for lupus and UV
To demonstrate eGoT’s capability for interdisciplinary biomedical reasoning, we conducted a case study investigating connections between environmental factors (UV radiation) and autoimmune disease (Systemic Lupus Erythematosus, SLE). This exemplifies a common challenge in computational biology: integrating knowledge across traditionally siloed domains to generate testable hypotheses about complex disease mechanisms.
Motivation: Understanding environment-disease relationships requires synthesizing knowledge from disparate fields including climate science, photobiology, immunology, and clinical medicine. While UV exposure is a known lupus trigger with 70%–90% of patients reporting photosensitivity, the complete mechanistic pathway connecting atmospheric changes to immune dysregulation remains incompletely characterized. This represents an ideal test case for cross-domain knowledge graph retrieval, as it requires traversing multi-hop reasoning chains: climate change atmospheric composition UV radiation DNA damage immune activation autoimmune manifestations.
Datasets: We constructed the knowledge graph integrating two domain-specific subgraphs:
Medical subgraph: 100 papers on lupus pathophysiology, photosensitivity mechanisms, and immune responses
Environmental subgraph: 20 papers on UV radiation patterns, climate modeling (CMIP6), and atmospheric chemistry
Graph integration preserved domain-specific relationships while establishing cross-domain connections through community-based relationship inference (Section 2.1). The resulting graph contained 31 028 entities and 598 220 relationships spanning immunology, photobiology, and climate science.
Experimental design: We evaluated four conditions:
exp-1: Core papers directly addressing lupus-UV interactions.
exp-2: Alternative papers on similar domains (robustness test).
exp-3: Out-of-context papers from unrelated fields (boundary recognition).
exp-0: LLaMA-4 Scout without retrieval (baseline parametric knowledge).
Cross-domain connection discovery: For the query “How is UV related to Lupus?,” eGoT successfully bridged environmental and immunological domains, retrieving the mechanistic chain: UV exposure keratinocyte apoptosis autoantigen exposure immune complex formation systemic inflammation. This multi-hop path spanned four reasoning steps across distinct subgraphs.
Multi-hop hypothesis generation: For “Can UV forecasting affect SLE management?,” eGoT synthesized evidence across climate models, photobiology, and clinical outcomes to propose: (i) UV forecasting could enable predictive risk models for flare prevention, (ii) climate-driven UV changes may alter disease prevalence patterns, and (iii) personalized UV exposure thresholds could inform precision medicine approaches. These hypotheses were grounded in retrieved literature rather than parametric knowledge.
Knowledge boundary recognition: When tested with unrelated papers (exp-3), eGoT correctly returned “no information available” responses, avoiding hallucinated connections. In contrast, the baseline LLM (exp-0) provided plausible but unverifiable generic responses.
Quantitative comparison: Table 5 shows eGoT’s advantage over the baseline across faithfulness (0.89 versus 0.52), context precision (0.71 versus 0.38), and source attribution (100% versus 0% of claims traceable).
Table 5.
Comparison of eGoT with knowledge graph retrieval (exp-1) versus baseline LLM without retrieval (exp-0) on the cross-domain Lupus-UV case study.a
| Metric | eGoT (exp-1) | Baseline (exp-0) | |
|---|---|---|---|
| Faithfulness | 0.89 | 0.52 | +0.37 |
| Context precision | 0.71 | 0.38 | +0.33 |
| Source attribution | 100% | 0% | +100% |
All metrics evaluated on 12 expert-curated queries using LLM-as-judge.
4 Conclusion and future work
Biomedical research increasingly requires synthesizing knowledge fragmented across thousands of publications to understand complex disease mechanisms and generate therapeutic hypotheses. In this work, we present eGoT, an end-to-end framework that addresses this challenge by constructing knowledge graphs directly from unstructured literature and enabling iterative multi-hop reasoning over the resulting graphs. Unlike prior approaches that require pre-existing curated knowledge bases or rely on text retrieval only, eGoT provides a complete pipeline from primary literature to knowledge graph construction and answer generation for queries. On standard benchmarks (HotpotQA, MultiHopRAG, Ultradomain), eGoT exceeds state-of-the-art performance on key metrics.
We demonstrate eGoT’s capabilities on two biomedical applications: question answering over 1046 small cell lung cancer publications, and cross-domain hypothesis generation linking lupus pathophysiology with UV radiation and climate factors. In the latter case, eGoT successfully traced mechanistic chains spanning up to 6 reasoning hops across traditionally siloed domains. This demonstrates the integrative reasoning required to understand environment-disease interactions that would be difficult to achieve with single-pass retrieval methods. Importantly, due to its architecture leveraging retrieval and knowledge graphs, every claim in eGoT responses is traced to specific papers, enabling clear provenance tracking and expert validation.
These capabilities are broadly applicable to other biomedical challenges requiring integration of molecular, clinical, and environmental knowledge, such as disease-environment interactions in cancer epidemiology or nutrition-microbiome-metabolic disease relationships. We anticipate eGoT will be particularly valuable for research areas requiring integration of heterogeneous knowledge sources, such as pharmacogenomics, where genetic variants must be connected to drug responses through molecular pathways, or systems biology approaches to complex diseases where environmental, immunological, and genetic factors interact. eGoT’s ability to construct domain-specific knowledge graphs from primary literature and reason across them, therefore, has the potential to accelerate hypothesis generation and literature-grounded discovery in biomedicine.
Author contributions
Nihar Sanda (Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Visualization, Writing—original draft, Writing—review & editing), Benjamin M. Gyori (Conceptualization, Methodology, Supervision, Writing—original draft, Writing—review & editing), Vito Quaranta (Conceptualization, Methodology, Validation), Auroop Ganguly (Conceptualization, Supervision), and Ayan Paul (Conceptualization, Methodology, Supervision, Project administration, Funding acquisition, Writing—original draft, Writing—review & editing)
Supplementary Material
Contributor Information
Nihar Sanda, The Institute for Experiential AI, Northeastern University, Boston, MA 02115, United States.
Benjamin M Gyori, Khoury College of Computer Sciences, Northeastern University, Boston, MA 02115, United States; Department of Bioengineering, Northeastern University, Boston, MA 02115, United States.
Vito Quaranta, The Institute for Experiential AI, Northeastern University, Boston, MA 02115, United States; Bouvé College of Health Sciences, Northeastern University, Boston, MA 02115, United States.
Auroop Ganguly, The Institute for Experiential AI, Northeastern University, Boston, MA 02115, United States; Department of Civil and Mechanical Engineering, Northeastern University, Boston, MA 02115, United States.
Ayan Paul, The Institute for Experiential AI, Northeastern University, Boston, MA 02115, United States; Khoury College of Computer Sciences, Northeastern University, Boston, MA 02115, United States.
Supplementary material
Supplementary material is available at Bioinformatics online.
Conflict of interests
None declared.
Funding
This work used Jetstream2 at Indiana University through allocation CIS250780 from the Advanced Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program supported by National Science Foundation grants 2138259, 2138286, 2138307, 2137603, and 2138296. This work was partially funded under the DARPA ASKEM and ARPA-H BDF programs (HR00112220036).
References
- Bachman JA, Gyori BM, Sorger PK.. Automated assembly of molecular mechanisms at scale from text mining and curated databases. Mol Syst Biol 2023;19:e11325. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bang Y, Cahyawijaya S, Lee N. et al. A multitask, multilingual, multimodal evaluation of ChatGPT on reasoning, hallucination, and interactivity. In: Park JC, Arase Y, Hu B et al. (eds.), Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), Nusa Dua, Bali: Association for Computational Linguistics, 2023, 675–718.
- Besta M, Blach N, Kubicek A. et al. Graph of thoughts: solving elaborate problems with large language models. In: Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence, AAAI’24/IAAI’24/EAAI’24. AAAI Press, 2024.
- Brown TB, Mann B, Ryder N. et al. Language models are few-shot learners. In: Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS ’20. Red Hook, NY, USA: Curran Associates Inc., 2020. [Google Scholar]
- Carta S, Giuliani A, Piano L. et al. Iterative zero-shot llm prompting for knowledge graph construction. arXiv, arXiv:2307.01128, 2023, preprint: not peer reviewed.
- Chen B, Guo Z, Yang Z. et al. Pathrag: pruning graph-based retrieval augmented generation with relational paths. AAAI 2026;40:30183–91. 10.1609/aaai.v40i36.40268 [DOI] [Google Scholar]
- Chen J, Lin H, Han X. et al. Benchmarking large language models in retrieval-augmented generation. In: Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence, AAAI’24/IAAI’24/EAAI’24. AAAI Press, 2024.
- Edge D, Trinh H, Cheng N. et al. From local to global: A graph rag approach to query-focused summarization. arXiv, arXiv:2404.16130, 2024, preprint: not peer reviewed.
- Gao Y, Xiong Y, Gao X. et al. Retrieval-augmented generation for large language models: A survey. arXiv, arXiv:2312.10997, 2023, preprint: not peer reviewed.
- Gopalakrishnan V, Jha K, Jin W. et al. A survey on literature based discovery approaches in biomedical domain. J Biomed Inform 2019;93:103141. [DOI] [PubMed] [Google Scholar]
- Guan X, Liu Y, Lin H. et al. Mitigating large language model hallucinations via autonomous knowledge graph-based retrofitting. In: Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence, AAAI’24/IAAI’24/EAAI’24. AAAI Press, 2024.
- Guo Z, Xia L, Yu Y. et al. Lightrag: Simple and fast retrieval-augmented generation. arXiv, arXiv:2410.05779, 2024, preprint: not peer reviewed.
- Gutiérrez BJ, Shu Y, Gu Y. et al. Hipporag: Neurobiologically inspired long-term memory for large language models. In: The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
- Han H, Shomer H, Wang Y. et al. Rag vs. graphrag: A systematic evaluation and key insights. arXiv, arXiv:2502.11371, 2025, preprint: not peer reviewed.
- Han H, Wang Y, Shomer H. et al. Retrieval-augmented generation with graphs (graphrag). arXiv, arXiv:2501.00309, 2024, preprint: not peer reviewed.
- Huang H, Huang Y, Yang J. et al. Retrieval-augmented generation with hierarchical knowledge. In: Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 6044–60, Suzhou, China: Association for Computational Linguistics. 10.18653/v1/2025.findings-emnlp.321 [DOI]
- Islamaj R, Lai P-T, Wei C-H. et al. The overview of the BioRED (Biomedical Relation Extraction Dataset) track at BioCreative VIII. Database 2024;2024:baae069. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Izacard G, Lewis P, Lomeli M. et al. Atlas: few-shot learning with retrieval augmented language models. J Mach Learn Res 2023;24:1–43. [Google Scholar]
- Khashabi D, Min S, Khot T. et al. UNIFIEDQA: Crossing format boundaries with a single QA system. In: Cohn T, He Y, Liu Y (eds.), Findings of the Association for Computational Linguistics: EMNLP 2020. Association for Computational Linguistics, 2020, 1896–907.
- Lewis P, Perez E, Piktus A. et al. Retrieval-augmented generation for knowledge-intensive NLP tasks. Adv Neural Inf Process Syst 2020;33:9459–74. [Google Scholar]
- Li X, Zhao R, Chia YK. et al. Chain-of-knowledge: Grounding large language models via dynamic knowledge adapting over heterogeneous sources. In: The Twelfth International Conference on Learning Representations, 2024. https://openreview.net/forum?id=cPgh4gWZlz
- Liang L, Bo Z, Gui Z. et al. Kag: boosting llms in professional domains via knowledge augmented generation. In: Companion Proceedings of the ACM on Web Conference 2025, WWW ’25. New York, NY, USA: Association for Computing Machinery. 2025, 334–43. [Google Scholar]
- Liu H, Wang Z, Chen X. et al. HopRAG: Multi-hop reasoning for logic-aware retrieval-augmented generation. In: Che W, Nabende J, Shutova E et al. (eds.), Findings of the Association for Computational Linguistics: ACL 2025, Vienna, Austria: Association for Computational Linguistics, 2025, 1897–913.
- Luo H, Chen G, Zheng Y. et al. Hypergraphrag: Retrieval-augmented generation via hypergraph-structured knowledge representation. In: The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2026. https://openreview.net/forum?id=ravS5h8MNg
- Ma S, Xu C, Jiang X. et al. Think-on-graph 2.0: Deep and faithful large language model reasoning with knowledge-guided retrieval augmented generation. In: The Thirteenth International Conference on Learning Representations, 2026. https://openreview.net/forum?id=oFBu7qaZpS
- Matsumoto N, Moran J, Choi H. et al. KRAGEN: a knowledge graph-enhanced RAG framework for biomedical problem solving using large language models. Bioinformatics 2024;40:btae353. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Peng B, Zhu Y, Liu Y. et al. Graph retrieval-augmented generation: a survey. ACM Trans Inf Syst 2026;44:1–52. 10.1145/3777378 [DOI] [Google Scholar]
- Qian H, Liu Z, Zhang P. et al. Memorag: boosting long context processing with global memory-enhanced retrieval augmentation. In: Proceedings of the ACM on Web Conference 2025. 2025, 2366–77.
- Ram O, Levine Y, Dalmedigos I. et al. In-context retrieval-augmented language models. Trans Assoc Comput Ling 2023;11:1316–31. [Google Scholar]
- Sun J, Xu C, Tang L. et al. Think-on-graph: Deep and responsible reasoning of large language model on knowledge graph. In: The Twelfth International Conference on Learning Representations, 2024. https://openreview.net/forum?id=nnVO1PvbTv
- Swanson DR. Undiscovered public knowledge. Libr Q 1986;56:103–18. [Google Scholar]
- Tang Y, Yang Y. Multihop-rag: Benchmarking retrieval-augmented generation for multi-hop queries. In: First Conference on Language Modeling, 2024. https://openreview.net/forum?id=t4eB3zYWBK
- Wei C-H, Allot A, Lai P-T. et al. PubTator 3.0: an AI-powered literature resource for unlocking biomedical knowledge. Nucleic Acids Res 2024;52:W540–6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wei J, Wang X, Schuurmans D. et al. Chain-of-thought prompting elicits reasoning in large language models. In: Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS ’22. Red Hook, NY, USA: Curran Associates Inc., 2022. [Google Scholar]
- Weller O, Boratko M, Naim I. et al. On the theoretical limitations of embedding-based retrieval. In: The Fourteenth International Conference on Learning Representations, 2026. https://openreview.net/forum?id=k9CzIvzfaA
- Xiong G, Jin Q, Wang X. et al. Improving retrieval-augmented generation in medicine with iterative follow-up questions. Pac Symp Biocomput 2025;30:199–214. 10.1142/9789819807024_0015 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xu X, Wang L, He X. et al. MedRAG: Enhancing retrieval-augmented generation with knowledge graph-elicited reasoning for healthcare copilot. In: Proceedings of the ACM Web Conference 2025. ACM, 2025.
- Yang Z, Qi P, Zhang S. et al. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In: Riloff E, Chiang D, Hockenmaier J et al. (eds.), Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium: Association for Computational Linguistics, 2018, 2369–80. [Google Scholar]
- Yao J-Y, Ning K-P, Liu Z-H. et al. LLm lies: Hallucinations are not bugs, but features as adversarial examples. arXiv, arXiv:2310.01469, 2023a, preprint: not peer reviewed.
- Yao S, Yu D, Zhao J. et al. Tree of thoughts: deliberate problem solving with large language models. In: Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS ’23. Red Hook, NY, USA: Curran Associates Inc., 2023b. [Google Scholar]
- Zhang N, Choubey PK, Fabbri A. et al. Sirerag: Indexing similar and related information for multihop reasoning. In: The Thirteenth International Conference on Learning Representations, 2025a. https://openreview.net/forum?id=yp95goUAT1
- Zhang Q, Chen S, Bei Y. et al. A survey of graph retrieval-augmented generation for customized large language models. arXiv, arXiv:2501.13958, 2025b, preprint: not peer reviewed.
- Zhang Q, Dong J, Chen H. et al. Knowgpt: knowledge graph based prompting for large language models. Adv Neural Inf Process Syst 2024a;37:6052–80. [Google Scholar]
- Zhang X, Wang M, Yang X. et al. Hierarchical retrieval-augmented generation model with rethink for multi-hop question answering. arXiv, arXiv:2408.11875, 2024b, preprint: not peer reviewed.
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
