Papers › Simple Is Effective: The Roles of Graphs and Large Language Models in...

Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation

28 Oct 2024arXiv:2410.20724archive 2025-07-28

Mufei Li, Siqi Miao, Pan Li

Large Language Models (LLMs) demonstrate strong reasoning abilities but face limitations such as hallucinations and outdated knowledge. Knowledge Graph (KG)-based Retrieval-Augmented Generation (RAG) addresses these issues by grounding LLM outputs in structured external knowledge from KGs. However, current KG-based RAG frameworks still struggle to optimize the trade-off between retrieval effectiveness and efficiency in identifying a suitable amount of relevant graph information for the LLM to digest. We introduce SubgraphRAG, extending the KG-based RAG framework that retrieves subgraphs and leverages LLMs for reasoning and answer prediction. Our approach innovatively integrates a lightweight multilayer perceptron with a parallel triple-scoring mechanism for efficient and flexible subgraph retrieval while encoding directional structural distances to enhance retrieval effectiveness. The size of retrieved subgraphs can be flexibly adjusted to match the query's need and the downstream LLM's capabilities. This design strikes a balance between model complexity and reasoning power, enabling scalable and generalizable retrieval processes. Notably, based on our retrieved subgraphs, smaller LLMs like Llama3.1-8B-Instruct deliver competitive results with explainable reasoning, while larger models like GPT-4o achieve state-of-the-art accuracy compared with previous baselines -- all without fine-tuning. Extensive evaluations on the WebQSP and CWQ benchmarks highlight SubgraphRAG's strengths in efficiency, accuracy, and reliability by reducing hallucinations and improving response grounding.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.20724")

Code

Syntology Ran 0 of 15 code samples harvested from 1 repository linked to this paper; 15 have no recorded run.

By repository: official repository: 15 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

graph-com/subgraphrag officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 0 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from graph-com/subgraphrag. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

DDE graph-com/subgraphrag/retrieve/src/model/retriever.py official repository unverified MIT (permissive) · 550b5f94b8beddc9 · report
PEConv graph-com/subgraphrag/retrieve/src/model/retriever.py official repository unverified MIT (permissive) · d880094e7f8ff325 · report
Retriever graph-com/subgraphrag/retrieve/src/model/retriever.py official repository unverified MIT (permissive) · a0086a56c06edbff · report
add_good_triplets_from_rog Graph-COM/SubgraphRAG/reason/preprocess/prepare_data.py official repository unverified MIT (permissive) · e9ac43b7da6ba57c · report
collate_retriever Graph-COM/SubgraphRAG/retrieve/src/dataset/retriever.py official repository unverified MIT (permissive) · 8c5cdfd40b64ee0e · report
eval_acc Graph-COM/SubgraphRAG/reason/metrics/evaluate_results.py official repository unverified MIT (permissive) · e8b1bf34a1cb6dc9 · report
extract_reasoning_paths Graph-COM/SubgraphRAG/reason/preprocess/prepare_data.py official repository unverified MIT (permissive) · de4fa8c6d43e92ba · report
get_outputs Graph-COM/SubgraphRAG/reason/llm_utils.py official repository unverified MIT (permissive) · d55e014013622a43 · report
get_subgraphs Graph-COM/SubgraphRAG/reason/preprocess/prepare_data.py official repository unverified MIT (permissive) · e10c90222af8eebc · report
match Graph-COM/SubgraphRAG/reason/metrics/evaluate_results.py official repository unverified MIT (permissive) · f75dc97b8ef40987 · report
normalize Graph-COM/SubgraphRAG/reason/metrics/evaluate_results.py official repository unverified MIT (permissive) · 65f5735d2fdf887d · report
remove_duplicates Graph-COM/SubgraphRAG/reason/metrics/evaluate_results_corrected.py official repository unverified MIT (permissive) · ef25b6bc0f20fd61 · report
remove_same_head_tail Graph-COM/SubgraphRAG/reason/preprocess/prepare_prompts.py official repository unverified MIT (permissive) · eb1396e410d9258d · report
triplet_to_str Graph-COM/SubgraphRAG/reason/preprocess/prepare_prompts.py official repository unverified MIT (permissive) · 00d642ca06785bce · report
unique_preserve_order Graph-COM/SubgraphRAG/reason/preprocess/prepare_prompts.py official repository unverified MIT (permissive) · 736e6887c841cf2a · report

Tasks

RAGRetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPEDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionRAGResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections