arXiv:2610.30710cs.IROct 2026

Manuscript Offprint

arXiv:2610.30710

Automated Enrichment Analysis with GraphRAG: Efficient Multi-Database ORA Extraction and Biological Interpretation

Guangcan Li, Shuyuan Zheng, Jiayao Liu, Shigeto Seno, Makoto Onizuka

Guangcan Li*, Shuyuan Zheng*, Jiayao Liu†, Shigeto Seno*, Makoto Onizuka*

*Graduate School of Information Science and Technology, The University of Osaka, Japan

{guangcan.li, zheng, senoo, onizuka}@ist.osaka-u.ac.jp

†The First Affiliated Hospital of China Medical University, China

liujiayao@cmu.edu.cn

Abstract—Over-representation analysis (ORA) is widely used to interpret gene-expression studies, but its outputs are often fragmented across gene-set databases and presented as flat term lists that obscure gene-level links among related enrichment signals. We propose Graph-Based Over-Representation Retrieval-Augmented Generation (GBOR-RAG), an integrated and traceable framework for ORA interpretation. GBOR-RAG represents heterogeneous gene-set databases as a unified term-gene knowledge graph, where shared genes connect related terms across sources. After graph-based ORA scoring, the framework retrieves a compact connected evidence subgraph that preserves both cross-database relationships and gene-level support. The subgraph conditions an LLM to generate biological interpretations, and we introduce a claim-level faithfulness metric to assess whether generated claims are supported by explicit evidence. Experiments show that graph-based ORA preserves conventional ORA results with high consistency (mean Pearson r=0.997r = 0.997) while reducing query time by a median of 37×37 \times (up to 48×48 \times). The retrieved subgraphs average 36.8 nodes and achieve the highest overall integration score (4.12), and GBOR-RAG attains the highest claim-level faithfulness (0.90) among the compared systems. Adding a PubMed literature layer further improves the overall interpretation quality from 4.17 to 4.75.

Index Terms—over-representation analysis, knowledge graph, graph-based retrieval-augmented generation, large language models

I. INTRODUCTION

Over-representation analysis (ORA) is one of the most widely used methods for interpreting gene-expression profiles: it tests whether predefined gene sets are over-represented among differentially expressed genes relative to a background universe [1]. ORA relies on a rich ecosystem of curated gene-set resources, including Gene Ontology (GO) [2], pathway databases such as KEGG [3], Reactome [4], and WikiPathways [5], integrative collections such as MSigDB [6], and disease-association resources such as DisGeNET [7].

Despite its maturity, ORA still has two practical limitations. The first is limited cross-database evidence integration. Conventional ORA analyzes each database separately, leaving the comparison of their terms (database-defined gene sets such as pathways or biological processes) to the reader. Although recent tools connect or cluster terms using shared genes or semantic similarity [8]–[10], their outputs often remain fragmented or coarse-grained, making it difficult to trace how related signals are connected through specific genes. As more databases are included, the cost of cross-database analysis also increases, raising scalability concerns. Second, current ORA interpretation pipelines rarely verify whether each generated biological claim is supported by the underlying enrichment evidence, a property we refer to as claim-level faithfulness. Conventional ORA returns ranked enrichment tables rather than coherent biological explanations, while visualization tools [11], [12] organize enriched terms into networks but still leave the biological reading to the user. Recent LLM- and RAG-based systems generate textual interpretations, but they are usually evaluated by semantic similarity [13], manual inspection [14] or reproducibility [9]. This can be problematic in biomedical interpretation because unsupported gene–term associations can lead to misleading conclusions.

To address these two limitations, we propose Graph-Based Over-Representation RAG (GBOR-RAG) 1^{1}, a graph-based RAG framework for ORA (Fig. 1). For cross-database evidence integration, we formulate the task as prize-collecting subgraph extraction over a multi-database knowledge graph [15], [16]. Instead of simply concatenating the top-ranked terms from individual databases, our method retrieves a compact query-relevant subgraph that links significant terms through their shared significant genes. This representation preserves the gene-level evidence underlying each term and can surface bridge signals that connect related biological processes across databases, even when those signals are not among the top-ranked results in any single database. For quality of textual interpretation, we define a claim-level faithfulness metric to quantify whether each generated biological claim is supported by the retrieved evidence. Furthermore, we introduce an advanced variant of GBOR-RAG that adds a PubMed citation layer to the knowledge graph, providing gene–literature evidence that enriches the biological context used for textual interpretation.

We make these contributions:

• We implement ORA on a term–gene knowledge graph

1^{1}Our source code is available at https://github.com/ggnb367/GBOR-RAG.

Figure

Fig. 1. Overview of GBOR-RAG. Significant genes are split by log-fold-change sign; each directional set is scored by graph-based ORA on the multi-database knowledge graph, enriched terms and PubMed literature nodes become node prizes, and prize-collecting retrieval extracts a compact evidence subgraph per direction that conditions the LLM interpretation.

spanning 7 databases, reproducing conventional ORA with high consistency (mean Pearson r=0.997r = 0.997) while reducing query time by a median of 37×37 \times (up to 48×48 \times).

  • We formulate cross-database ORA integration as compact connected subgraph retrieval, producing smaller evidence subgraphs (36.8 nodes on average) with full connectivity and the highest overall integration score (4.12).

  • We introduce a claim-level faithfulness metric for evaluating whether generated ORA interpretations are supported by their retrieved evidence, with GBOR-RAG achieving the highest score (0.90) among the compared systems.

• We extend GBOR-RAG with a PubMed literature layer, improving textual interpretation quality from 4.17 to 4.75.

References (28)