Papers › Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with...

Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with Knowledge-guided Retrieval Augmented Generation

15 Jul 2024arXiv:2407.10805archive 2025-07-28

Shengjie Ma, Chengjin Xu, Xuhui Jiang, Muzhi Li, Huaren Qu, Cehao Yang, Jiaxin Mao, Jian Guo

Retrieval-augmented generation (RAG) has improved large language models (LLMs) by using knowledge retrieval to overcome knowledge deficiencies. However, current RAG methods often fall short of ensuring the depth and completeness of retrieved information, which is necessary for complex reasoning tasks. In this work, we introduce Think-on-Graph 2.0 (ToG-2), a hybrid RAG framework that iteratively retrieves information from both unstructured and structured knowledge sources in a tight-coupling manner. Specifically, ToG-2 leverages knowledge graphs (KGs) to link documents via entities, facilitating deep and knowledge-guided context retrieval. Simultaneously, it utilizes documents as entity contexts to achieve precise and efficient graph retrieval. ToG-2 alternates between graph retrieval and context retrieval to search for in-depth clues relevant to the question, enabling LLMs to generate answers. We conduct a series of well-designed experiments to highlight the following advantages of ToG-2: 1) ToG-2 tightly couples the processes of context retrieval and graph retrieval, deepening context retrieval via the KG while enabling reliable graph retrieval based on contexts; 2) it achieves deep and faithful reasoning in LLMs through an iterative knowledge retrieval process of collaboration between contexts and the KG; and 3) ToG-2 is training-free and plug-and-play compatible with various LLMs. Extensive experiments demonstrate that ToG-2 achieves overall state-of-the-art (SOTA) performance on 6 out of 7 knowledge-intensive datasets with GPT-3.5, and can elevate the performance of smaller models (e.g., LLAMA-2-13B) to the level of GPT-3.5's direct reasoning. The source code is available on https://github.com/IDEA-FinAI/ToG-2.

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="2407.10805")

Code

Syntology Ran 13 of 16 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 12 ran with no contract checked.

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

idea-finai/tog-2 officialmentioned in papermentioned on GitHubApache-2.0 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

16 samples harvested; 13 ran; 1 honoured the contract we drafted; 3 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.

1ran · honoured contract
12ran
3unverified

Licence: 0 of the 16 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 idea-finai/tog-2. “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.

align idea-finai/tog-2/eval/utils.py official repository ran Apache-2.0 (permissive) · d858076ab384807e · report
biencoder_similarity idea-finai/tog-2/ToG-2/search.py official repository ran Apache-2.0 (permissive) · 9ceaedf109fba536 · report
check_string idea-finai/tog-2/eval/utils.py official repository ran Apache-2.0 (permissive) · d7a01348958713cb · report
compute_bm25_similarity idea-finai/tog-2/ToG-2/utils.py official repository ran Apache-2.0 (permissive) · 1d7cb1f72b14a5d4 · report
crossencoder_similarity idea-finai/tog-2/ToG-2/search.py official repository ran Apache-2.0 (permissive) · 6e4a42e284551029 · report
entity_linking_azure_cache idea-finai/tog-2/ToG-2/ner.py official repository ran Apache-2.0 (permissive) · 1fba9a1516cbfeed · report
entity_linking_azure_search idea-finai/tog-2/ToG-2/ner.py official repository ran Apache-2.0 (permissive) · 56587c771bc3250d · report
format_entity_name_for_wikipedia idea-finai/tog-2/ToG-2/client.py official repository ran fingerprinted Apache-2.0 (permissive) · 3d56eaa0b0bfd370 · report
get_batch_files idea-finai/tog-2/Wikidata/simple_wikidata_db/utils.py official repository ran Apache-2.0 (permissive) · 54c796e1cf61d9f9 · report
if_all_zero idea-finai/tog-2/ToG-2/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · d29ad9e91ad3ef23 · report
scores_rank idea-finai/tog-2/ToG-2/search.py official repository ran Apache-2.0 (permissive) · 989b2db8e3d1abc0 · report
sliding_window_type idea-finai/tog-2/ToG-2/main_tog2.py official repository ran · honoured contract Apache-2.0 (permissive) · db87f61e2e22ab6f · report
transform_relation idea-finai/tog-2/ToG-2/wiki_func.py official repository ran fingerprinted Apache-2.0 (permissive) · d1a2d46886246d95 · report
clean_relation_all_e idea-finai/tog-2/ToG-2/wiki_func.py official repository unverified Apache-2.0 (permissive) · 962af27b3c6f4838 · report
clean_relations idea-finai/tog-2/ToG-2/wiki_func.py official repository unverified Apache-2.0 (permissive) · b93bb663c55da34d · report
prepare_dataset_for_eval idea-finai/tog-2/eval/utils.py official repository unverified Apache-2.0 (permissive) · f0c6d1dc03117242 · report

Tasks

Information RetrievalKnowledge GraphsLanguage ModelingLanguage ModellingLarge Language ModelRAGRetrievalRetrieval-augmented GenerationSemantic SimilaritySemantic Textual Similarity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPECosine AnnealingDense ConnectionsDropoutGPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingLinear 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