Conceptio › Archive › arXiv CS
arXiv CS open access

Clearing the FoG: Training KG Agents to Retrieve the Evidence Behind Their Answers

Zongyuan Sun et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
artificial-intelligenceknowledge-representationreasoning
Large language models (LLMs) can answer many factual questions correctly, but a correct answer is not necessarily a supported one. For an LLM agent, a knowledge graph (KG) plays two roles: as a source of answers, it supplies facts that the model lacks; as a source of evidence, it supplies the suppor
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Clearing the FoG: Training KG Agents to Retrieve the Evidence Behind Their Answers Zongyuan Sun1,* , Shuai Zhao1,† , Ke Shu2,* , Yingjun Du3 , Ziyue Zhu1 , Haoran Luo4,† 1 Beijing University of Posts and Telecommunications, Beijing, China 2 University of Helsinki, Helsinki, Finland 3 University of Amsterdam, Amsterdam, Netherlands 4 Nanyang Technological University, Singapore *

Equal contribution.

†

Corresponding authors.

Abstract

Correct, but unsupported Q:Which rocket was used for Donn F. Eisele's mission?

arXiv:2610.37405v1 [cs.AI] 27 Oct 2026

Large language models (LLMs) can answer many factual questions correctly, but a correct answer is not necessarily a supported one. For an LLM agent, a knowledge graph (KG) plays two roles: as a source of answers, it supplies facts that the model lacks; as a source of evidence, it supplies the supporting triples that make an answer traceable and auditable. However, existing KG agents treat the KG only as a source of answers: their training data carries answers but not evidence, and their training rewards check the answer but not the retrieved evidence, so agents often answer correctly without retrieving the supporting triples. We propose FoG, a framework that trains KG agents to retrieve the evidence behind their answers. FoG consists of evidence-grounded synthesis, a KG interaction agent, and an evidencecoverage process reward (ECPR): the synthesis recursively hides explicit entities behind verifiable sub-questions, so that every question carries its supporting triples by construction; the agent records the triples returned by the KG; and ECPR credits each supporting triple to the turn that first retrieves it. Experiments on three KGQA benchmarks demonstrate that FoG enables 3B–4B open-source agents to outperform substantially larger baselines in answer accuracy and evidence coverage, with zero-shot cross-KG transfer.

1

E1

S1

Answer

A E2

S2

Incomplete evidence

Not retrieved Answer-Only Data

FoG

Answer-Only Reward

Turning Evidence from Data Synthesis into RL Process Rewards

Data Synthesis

E1

S1

E2

S2

ECPR

A

E1 E2

+r +r

+r

S1

A

S2

+r

First Retrieval -> +r

Question+ Gold Triples

Correct and supported

KG queries

E1

S1

E2

S2

A

Answer the Question. Retrieve its supporting triples.

Answer Complete evidence

Figure 1: Motivation of FoG. Answer-only training yields correct but unsupported answers, whereas FoG embeds supporting triples at synthesis and rewards their retrieval during RL training.

holds (Huang et al., 2025; Alansari and Luqman, 2026; Nguyen et al., 2024), which is problematic in high-stakes settings such as healthcare and law (Cabello et al., 2024), where users need evidence that they can check (Sui et al., 2025; Agrawal et al., 2024). Current LLM answers thus lie in a fog: the answer is visible, yet the evidence behind it remains hidden. Knowledge graphs (KGs) (Pan et al., 2024) offer a natural way to clear this fog, since they store facts as verifiable triples. Existing KG-augmented methods follow two paradigms (Figure 2). Retrievalbased methods (Luo et al., 2024; Li et al., 2025; Luo et al., 2025) retrieve triples, paths, or subgraphs and answer from them. Agent-based methods (Sun et al., 2024; Chen et al., 2024; Lin et al., 2025; Jiang et al., 2025) interact with the KG through a multi-turn “think–act–observe” process, and recent work trains them with reinforcement learning (RL) (Lin et al., 2025; Chen et al., 2025;

Introduction

Large language models (LLMs) (Team, 2025a; GLM, 2025; Team, 2025b; Touvron et al., 2023; OpenAI, 2023) increasingly answer factual questions from parametric knowledge, but remain difficult to trust on questions that require complex factual reasoning (Mirzadeh et al., 2025; Hu et al., 2024; Jullien et al., 2025; Petroni et al., 2021). A correct answer is not necessarily a supported one: the model may answer from memory or surface cues while exposing little about why the answer 1

Which rocket was used for Donn F. Eisele's mission?

Retrieval-Based Methods

Retrieval

Retrieve relevant information from the knowledge graph Knowledge graph

Retrieve Information Paths

<PATH>inverse of: crew members </PATH> <PATH>crew members<SEP> rockets used</PATH> <PATH>inverse of: operator</PATH>

Triples

<DonnF.Eisele;astronaut mission; Apollo 7><Apollo 7; crew members ; Donn F.Eisele> <Apollo 7; space launch ; vehicle Saturn IB>

triples or paths

Response

Based on the triples (paths) retrieved from a knowledge graph,please answer the question Please return formatted answers as a list: {question} {triples} {paths} Missing Key Evidence Answer

Saturn IB

Agent-Based Methods

FoG (Ours)

First, Let me check what outgoing Think relations are available ......

Let me keep exploring the graph to find the evidence path

·····

· · · · ·

Step 1

Action

find_outgoing_relations ("Donn F. Eisele")

Obs

Outgoing relations for entity Donn F. Eisele: employer, instance of, manner of death .....

Let me query what missions are associated with Donn F. Eisele through this relation .....

Action Obs

Now I have enough grounded Think evidence to give the answer Shortcut Reasoning Answer

Saturn IB

get_tail_entities ("Donn F.Eisele",......)

Obs

information:Entities outgoing via relation astronaut mission from entity .......

Think

crew member of

ECPR+

Step 2

information: Entities outgoing via relation astronaut mission from entity .......

Step 1

Action

Donn F. Eisele

get_tail_entities ("Donn F.Eisele",......)

Think

Let me continue from Apollo 7; explore its launch vehicle

Apollo 7 Evidence-Coverage Reward

Think

Step 2

Action

get_tail_entities ("Apollo 7", ......)

Obs

Outgoing relations for entity Apollo 7: employer, instance of, manner of death .....

Apollo 7

launch vehicle

ECPR+

Step 2 Answer

Saturn IB

Saturn IB Evidence-Coverage Reward

Complete Evidence Path

Figure 2: Comparison of KG-augmented reasoning paradigms. All three methods return the correct answer, but retrieval-based methods miss key evidence and agent-based methods answer after the first hop, whereas FoG retrieves every supporting triple of the answer.

Sun et al., 2025, 2026a). However, existing KG agents treat the KG only as a source of answers and overlook its role as a source of evidence. An LLM with no KG access can already answer many benchmark questions correctly, and even an RL-trained agent can answer correctly while retrieving only part of the supporting triples. We identify two causes. First, training data carries answers but not evidence: most KGQA datasets annotate answers and at most logical forms (Talmor and Berant, 2018; Yih et al., 2016; Gu et al., 2021), and recovering the supporting triples afterwards requires enumerating and verifying paths for every question. Second, training rewards check the answer but not the evidence: most rewards score only the final answer or whether the KG returns it (Lin et al., 2025; Song et al., 2026; Xu et al., 2026; Chen et al., 2025; Sun et al., 2025), so a trajectory that reaches the answer through part of the evidence earns as much as one that retrieves all of it. The process rewards that go further depend on an LLM judge or on gold paths recovered for every question (Wang and Yu, 2026a; Yan et al., 2026), both of which are costly. Both causes trace back to one bottleneck: evidence is expensive to recover once a question has been written. To remove this bottleneck, we propose FoG (Fig-

ure 1), a framework that trains KG agents to retrieve the evidence behind their answers. Our key observation is that evidence is hard to recover after a question is written but can be embedded when the question is constructed and then rewarded during training. First, evidence-grounded synthesis recursively hides the explicit entities of a seed question behind verifiable sub-questions, so every question carries its supporting triples. Second, a KG interaction agent answers through multi-turn KG queries and records every triple that the KG returns. Lastly, during RL training, an evidence-coverage process reward (ECPR) gives a dense reward to each turn that first retrieves one of these supporting triples. Our contributions are as follows: • We distinguish two roles of the KG and show that existing training data and rewards serve it only as a source of answers, not of evidence. • We propose FoG, which embeds supporting triples into synthetic questions and rewards their retrieval through ECPR, so the dense reward comes from data synthesis with no LLM judge or extra annotation. • On three benchmarks, 3B–4B FoG agents outperform larger baselines in accuracy and evidence coverage, and transfer zero-shot across KGs.

2

2

Related Work

3

Knowledge graph augmented reasoning. Unlike prompting strategies (Wei et al., 2022; Wang et al., 2023; Yao et al., 2023a; Jin et al., 2024), KGaugmented methods ground reasoning in verifiable triples and follow two paradigms. Retrieval-based methods (Luo et al., 2024; Li et al., 2025; Luo et al., 2025; Mavromatis and Karypis, 2025; He et al., 2024; Liu et al., 2026) condition the LLM on triples, paths, or subgraphs retrieved in a single step. Agent-based methods (Sun et al., 2024; Chen et al., 2024; Lin et al., 2025; Jiang et al., 2025) explore the KG iteratively: ToG and PoG prompt a frozen LLM, whereas recent work trains the agent with RL (Lin et al., 2025; Song et al., 2026; Chen et al., 2025; Sun et al., 2025; Wang and Yu, 2026b; Sun et al., 2026a). However, these agents use the KG only as a source of answers and can answer correctly without retrieving the supporting triples. In this work, we train agents to use it as a source of evidence.

Method

In this section, we introduce FoG, as shown in Figure 3, including evidence-grounded synthesis, a KG interaction agent, and ECPR. Definition 1 (KG question answering). A knowledge graph is G = (E, R, T ) with entities E, relations R, and triples T ⊆ E × R × E. A question q has a logical form ℓq and a gold answer yq∗ ∈ SPARQL(ℓq , T ), where SPARQL(ℓ, S) is the result of executing ℓ over a triple set S. An agent answers q through a trajectory τ =  (s1 , a1 ), . . . , (sT , aT ) of states and actions and outputs a prediction ŷ, where TS t ⊆ T are the triples returned at step t, T (τ ) = t Tt all triples retrieved along τ , and E(τ ) all returned entities. Definition 2 (Supported answer). A triple set S ⊆ T supports the answer of q if yq∗ ∈ SPARQL(ℓq , S). The answer of τ is correct if ŷ matches yq∗ , reached if yq∗ ∈ E(τ ), and supported if T (τ ) supports it. Unlike the first two levels, which use the KG as a source of answers, a supported answer uses it as a source of evidence. In FoG, each training question carries gold supporting triples Sq∗ that support its answer.

Synthetic data for KGQA. Synthetic data frees KGQA from human annotation, since questions can be generated from the KG and verified by execution. It provides questions for agent training (Xu et al., 2026) and for benchmarking and retriever training (Zhang et al., 2025; Cattaneo et al., 2026). However, these pipelines treat it as extra examples to train or evaluate on. In this work, we treat it as a source of supervision: every synthesized question carries the evidence that defines its reward.

3.1

Evidence-Grounded Synthesis

To obtain complex questions that carry their supporting evidence, we propose evidence-grounded synthesis that includes seed question construction, backward expansion, and quality control. All roles use the teacher Kimi-K2 (Team, 2025a). Seed question construction. We sample a sizebounded subgraph Gsub from Wikidata around a seed entity vseed of moderate degree. The teacher generates a 1-hop question whose answer is vseed :   Q(1) , ℓ(1) , S (1) ∼ πgen vseed , Gsub , (1)

Rewards for KG agents. RL lets a KG agent learn its retrieval policy from interaction with the KG. Most work trains from outcome rewards on the final answer with rule-based terms for valid interaction (Lin et al., 2025; Song et al., 2026; Chen et al., 2025; Sun et al., 2025; Wang and Yu, 2026b; Sun et al., 2026a; Sun and Kazakov, 2026). Because outcome rewards are sparse, later work adds dense process rewards, obtained from an LLM judge (Wang and Yu, 2026a) or from gold paths and logical forms (Yan et al., 2026; Han et al., 2026; Sun et al., 2026b). However, both sources are costly: a judge must score every rollout, and gold references must be annotated or recovered for every question. In this work, the process reward comes from data synthesis: every synthesized question already carries its supporting triples, which provide a dense reward at no extra cost.

where πgen is the teacher model, Q(1) the seed question, ℓ(1) its logical form, and S (1) its supporting triples. The seed is retained only if every triple in S (1) exists in Gsub and ℓ(1) executes over the global KG with vseed in its result set. Backward expansion. Given a verified question Q(n) with logical form ℓ(n) , answer y = vseed , and supporting triples S (n) , we replace an explicit non-answer entity u in Q(n) with a sub-question Q̃

3

Seed Question generation

Knowledge Graph

Verified

Sherlock Holmes wr ite r

Seed Question

Subgraph Sample

director

Redundancy

Graph Isomorphisms

philippe rousselot

,

Peckham Anthony

Seed Question Corpus

r dir ecto ect dir or Larry Crowne

writer

Jack Ryan: Shadow One Planet of the Apes cast member

ca st

Apollo

me mb er

Complex Question generation

Backward expansion

cast

lisa marie

mem ber

estella warren

Seed Question Subgraph

Sub-question

Return to King Solomon's Mines

Ric Waite

Kangaroo Jack

Backward Entity Select

Verified

evidence-coverage triples

SFT

Reward Calculation

Rollout Samples

Evidence-Coverage

Rollout 1: SFT Model

Complex Question Corpus

Verified

Seed question

training data

SFT

Complex KGQA Question Gen

Sub-question Gen

r

director

be mem cast

ca st me mb er

cast member

scam

Training Data

SPARQL

Process Reward

Rollout 2: ..... Rollout n:

2/3

Step-validity Reward

4/6

Outcome Reward

1

FoG

Figure 3: The FoG pipeline. Evidence-grounded synthesis produces complex questions with gold supporting triples, the KG interaction agent records the triples that it retrieves, and ECPR rewards the retrieval of the gold supporting triples.

|Y (n) | ≤ Kans for a maximum answer-set size Kans . (b) Non-redundancy. Let Eq be the topic entities of the question. We extract a shortest supporting path for each e ∈ Eq and discard the question if a proper subset yields an equally specific answer set:

whose answer is exactly u: Q(n+1) = Q(n) [u ⇝ Q̃], S (n+1) = S (n) ∪ S̃, (n+1)

y ∈ SPARQL ℓ

(2) ,S

(n+1)



,

h (n) Fred (Q(n) ) = I ∃Z ⊊ Eq : Y (n) ⊆ YZ , i (n) |YZ | ≤ |Y (n) | ,

where S̃ are the supporting triples of Q̃, drawn from the incoming neighborhood of u, and ℓ(n+1) is the expanded logical form. Each expansion turns an explicit entity into a hidden intermediate variable, and the accumulated triples still support the answer. Thus N ∈ {0, 1, 2} expansions yield 1- to 3-hop questions, where N = 0 keeps the seed. Expansion uses a ReAct agent (Yao et al., 2023b) that retrieves the neighborhood of u, selects triples, writes Q̃, and verifies it; on failure, it reselects triples or the entity. Proposition 1. Backward expansion preserves the answer and yields triples that support it. Proof. We provide experimental results in Section 4.4 and proofs in Appendix A.1.

(3)

(n)

where YZ is the answer set of the query built only from the paths of Z (Appendix B). The triples accumulated for a final question q are its gold supporting triples Sq∗ , and we report the distribution of query-graph types (Dutt et al., 2023) in Appendix C.2. 3.2

KG Interaction Agent

To make the evidence retrieved for an answer explicit, we develop a KG interaction agent that solves each question through a multi-turn think– act–observe loop with the action space

Quality control. Each synthesized question must further pass two symbolic checks, which keep the answer specific and every topic entity necessary. (a) Executability. Let Y (n) = SPARQL(ℓ(n) , T ) be the result set of the candidate question. We retain it only if the target answer is included and the result set is not overly broad, i.e., y ∈ Y (n) and

A = {think, kg-query, answer},

(4)

where think performs internal reasoning, kg-query interacts with the KG, and answer emits the final prediction. The kg-query action is instantiated with seven atomic operations that probe the relations of an entity, expand to its 4

neighboring entities, filter an entity set, and combine entity sets (Appendix D). Every trajectory thus records the returned triples T (τ ), the only evidence that FoG rewards and evaluates.

Proposition 2. ECPR is maximized only by supported answers and rewards each triple once. Proof. We provide experimental results in Sections 4.3 and 4.6 and proofs in Appendix A.2.

3.3

Turn-level policy optimization. Following prior RL-trained KG agents (Song et al., 2026; Chen et al., 2025; Sun et al., 2025), the policy πθ is first initialized by supervised fine-tuning (SFT) on demonstration trajectories that a teacher model produces for the synthesized and training questions, minimizing the negative log-likelihood of the teacher actions. We then optimize it with Group Relative Policy Optimization (GRPO) (Shao et al., 2024) and, following KG-R1 (Lin et al., 2025), compute the advantage per turn. For each question q, the policy samples N trajectories {τi }N i=1 , and turn t of τi receives the return

Evidence-Coverage Process Reward

To train the agent to retrieve this evidence, we propose a training scheme with outcome and stepvalidity rewards, the evidence-coverage process reward, and turn-level policy optimization. Outcome and step-validity rewards. We define the outcome reward of a trajectory as Rout (τ ) = λf1 ·F1(ŷ, yq∗ )+λret ·I[yq∗ ∈ E(τ )], (5) where the first term rewards a correct answer and the second a reached answer. Neither term checks whether the answer is supported: a shortcut trajectory, which outputs and even reaches the gold answer while leaving some of the supporting triples Sq∗ unretrieved, still earns the full outcome reward. To stabilize graph interaction, each turn also step earns a step-validity reward rt = λstep vt , where vt = 1 if action at follows the required format and executes successfully, and vt = 0 otherwise. The trajectory-level term is the average P step Rstep (τ ) = T1 Tt=1 rt .

step

|T (τ ) ∩ Sq∗ | , |Sq∗ |

(8)

i.e., the shared outcome reward plus the process rewards earned by this turn. The advantage Âi,t = (Gi,t − µq )/(σq + δ) is normalized with the mean µq and standard deviation σq of the returns over all turns of the N trajectories. A turn that first retrieves gold evidence therefore receives a higher advantage than the other turns. The policy then maximizes the clipped GRPO objective with these advantages, regularized toward the SFT model (Appendix H).

Evidence-coverage process reward. Unlike the terms above, which treat the KG only as a source of answers, the Evidence-Coverage Process Reward (ECPR) scores the trajectory against the gold supporting triples Sq∗ provided by synthesis. We define the evidence coverage of a trajectory as Cov(τ, Sq∗ ) =

ecpr

Gi,t = Rout (τi ) + ri,t + ri,t ,

4

Experiments

This section presents the experimental setup, main results, and analysis. We answer the following research questions (RQs): RQ1: Does FoG outperform other methods in answer accuracy? RQ2: Does each component of FoG work? RQ3: Does evidence-grounded synthesis provide valid evidence and better training data? RQ4: Does the KG interaction agent retrieve the evidence behind its answers? RQ5: How does the design of ECPR affect evidence coverage? RQ6: Does FoG transfer to a KG unseen during training?

(6)

where T (τ ) are all triples retrieved along τ , so a triple that the agent recalls from memory without retrieving it earns no reward. We call τ evidencecovered if Cov(τ, Sq∗ ) = 1, and set Recpr (τ ) = λecpr · Cov(τ, Sq∗ ). For dense credit assignment, first-match attribution assigns each gold triple to the step that first retrieves it: S (Tt ∩ Sq∗ ) \ i<t Ti ecpr rt = λecpr · , (7) |Sq∗ | P ecpr where t rt = Recpr (τ ), so repeated retrieval of the same triple earns no additional reward. The composite reward of a trajectory is R(τ ) = Rout (τ ) + Rstep (τ ) + Recpr (τ ). We set λf1 = 0.7, λret = 0.3, λstep = 0.5, and λecpr = 1.

4.1

Experimental Setup

Datasets. We evaluate on three Wikidata-based KGQA benchmarks, WikiWebQuestions (Xu et al., 2023), QALD10-en (Usbeck et al., 2024), and GTSQA (Cattaneo et al., 2026), and use WebQSP (Yih et al., 2016) over Freebase for cross-KG transfer. The synthetic questions do not overlap with the test sets (Appendices C.4 and E). 5

Category

Methods

Backbone

WikiWebQuestions

QALD10-en

F1

Hit@1

F1

Hit@1

F1

GTSQA Hit@1

LLM Reasoning

IO Prompt (Team, 2025b) IO Prompt (OpenAI, 2023) CoT (Wei et al., 2022) Self-Consistency (Wang et al., 2023) IO Prompt (DeepSeek-AI, 2024) CoT (Wei et al., 2022) Self-Consistency (Wang et al., 2023)

Qwen2.5-7B-Instruct GPT-4o-mini GPT-4o-mini GPT-4o-mini DeepSeek-V3 DeepSeek-V3 DeepSeek-V3

28.24 40.31 41.66 46.34 42.36 45.91 49.72

44.43 68.10 58.42 65.20 59.89 64.60 66.79

11.05 15.34 22.68 24.27 18.97 19.02 26.25

12.30 18.78 26.81 28.57 21.77 25.28 29.97

9.62 15.37 18.87 19.07 24.77 27.66 33.59

10.23 16.46 20.12 20.21 26.20 29.41 35.82

Retrieval-based

RoG (Luo et al., 2024) SubGraphRAG-100 (Li et al., 2025) GCR (Luo et al., 2025)

Qwen2.5-7B-Instruct Qwen2.5-7B-Instruct GPT-4o-mini

53.27 56.84 55.33

68.71 72.36 71.27

– – –

– – –

41.10 44.27 32.61

42.48 45.93 37.48

Agent-based

ToG (Sun et al., 2024) PoG (Chen et al., 2024) KG-R1 (Lin et al., 2025) FoG-3B FoG-4B

GPT-4o-mini GPT-4o-mini Qwen3-4B-Instruct Qwen2.5-3B-Instruct Qwen3-4B-Instruct

58.55 57.32 64.49 66.28 66.41

72.75 71.89 73.01 75.43 76.93

30.63 30.68 44.07 45.63 47.80

32.18 34.07 45.41 48.92 49.01

41.08 37.77 46.14 48.25 48.66

42.36 39.33 47.73 49.20 50.52

Table 1: Main results on three KGQA benchmarks. Best results are shown in bold, and second-best results are underlined. Our methods are highlighted in blue. WikiWebQuestions

Variants SFT only SFT + RL w/o Recpr SFT + RL w/o Rstep SFT + RL, Recpr → LLM-as-judge SFT + RL (full FoG)

GTSQA

F1

Hit@1

RetQ

Cov

F1

Hit@1

RetQ

Cov

59.95±0.18 63.87±0.44 65.02±0.33 64.95±0.39 66.41±0.27

70.10±0.24 74.35±0.53 76.48±0.40 75.41±0.51 76.93±0.38

79.42±0.31 83.17±0.49 85.62±0.38 84.03±0.45 86.35±0.35

70.63±0.29 72.91±0.56 77.25±0.42 74.12±0.50 78.34±0.37

44.73±0.22 46.02±0.49 47.96±0.39 46.88±0.43 48.66±0.34

46.19±0.27 46.97±0.56 48.17±0.47 48.25±0.52 50.52±0.41

58.47±0.33 61.02±0.52 63.18±0.44 62.24±0.48 65.34±0.39

49.85±0.30 51.43±0.58 57.21±0.46 53.36±0.51 58.64±0.40

Table 2: Ablation of training stages and reward terms. The LLM-as-judge variant replaces Recpr with a modelbased process score. Mean and std. over three seeds.

Baselines. We compare FoG against LLM reasoning (IO Prompt, CoT (Wei et al., 2022), SelfConsistency (Wang et al., 2023)), retrieval-based (RoG (Luo et al., 2024), SubGraphRAG (Li et al., 2025), GCR (Luo et al., 2025)), and agent-based (ToG (Sun et al., 2024), PoG (Chen et al., 2024), KG-R1 (Lin et al., 2025)) methods. Retrieval-based methods require dataset-specific fine-tuning and are omitted from QALD10-en, whose training split has only 387 examples (Appendix G).

a single inference run per question (Appendix H). 4.2

Main Results (RQ1)

As shown in Table 1, we compare FoG with all baselines in answer accuracy. Comparison across methods. FoG achieves the best F1 and Hit@1 on all three benchmarks, exceeding the strongest baseline KG-R1 by up to +3.73 F1 and +3.92 Hit@1. As KG-R1 is also RL-trained on the same Qwen3-4B backbone, this indicates that training an agent to retrieve evidence also makes its answers more accurate.

Evaluation Metrics. We report Hit@1 and token-level F1 for answer accuracy. For evidence coverage, we report Cov, the fraction of gold supporting triples retrieved along the trajectory, and RetQ, the fraction of questions whose gold answer is returned by a KG query. GTSQA provides gold supporting triples natively, and we construct them for WikiWebQuestions with an LLM verifier that agrees with human annotators on 93.0% of 200 audited paths (Appendices F.1, F.2, and F.3).

Comparison across backbones. FoG-3B still exceeds the 4B KG-R1 on all three benchmarks, and FoG-4B surpasses GPT-4o-mini agents by at least +7.58 F1 and 7B retrieval-based methods by at least +4.39 F1. This suggests that how an agent is trained to retrieve matters more than its backbone size. 4.3

Ablation Study (RQ2)

As shown in Table 2, we ablate the training stages and reward terms on the two benchmarks with gold supporting triples, under the same backbone, SFT checkpoint, RL data, and rollout budget, so the variants differ only in the reward.

Implementation Details. We train FoG on Qwen2.5-3B-Instruct and Qwen3-4B-Instruct with LoRA-based SFT followed by GRPO, sampling N =4 trajectories of at most 10 KG turns per question for 450 steps. All methods are evaluated with

6

48.4

47.9 44.7

46.2

44.5

Score (%)

41.4

Score (%)

43.5

37.0

40

36

41.0

44 39.8

76.3 63.5

F1 Hit@1

48

40 36.1

56

44

55.1

64

60.0

63.4

Score (%)

72

52

F1 Hit@1 42.3

48

F1 Hit@1 70.1

80

48 Qwen2.5-3B

Qwen3-4B

Qwen2.5-7B

Qwen2.5-3B

WikiWebQuestions

Qwen3-4B

Qwen2.5-7B

Qwen2.5-3B

QALD10-en

Qwen3-4B

Qwen2.5-7B

GTSQA

Figure 4: Effect of model scale. F1 and Hit@1 of backbones of different sizes after SFT on the same data. Data Source Train-Only Synth-Only Mixed

WikiWebQuestions

QALD10-en

F1

Hit@1

F1

Hit@1

F1

GTSQA Hit@1

53.58 57.84 59.95

64.51 68.17 70.10

36.94 39.52 41.38

37.86 40.36 42.31

41.33 43.21 44.73

41.52 44.58 46.19

Methods PoG ToG KG-R1 FoG-4B

WikiWebQuestions

GTSQA

Hit@1

RetQ

Cov

Hit@1

RetQ

Cov

71.89 72.75 73.01 76.93

75.66 73.53 82.28 86.35

69.85 68.79 74.50 78.34

39.33 42.36 47.73 50.52

35.70 50.99 61.41 65.34

25.38 37.34 54.05 58.64

Table 3: Impact of synthetic training data. Table 4: Answer accuracy and evidence coverage of agent-based methods.

Impact of RL. Full FoG improves over SFT only by +6.83 and +4.33 Hit@1, but RL without Recpr raises Cov by only +2.28 and +1.58. This is because the outcome reward is paid in full once the answer is reached, whatever evidence is retrieved.

Synthetic vs. original data. Synth-Only outperforms Train-Only by +3.66, +2.50, and +3.06 Hit@1 with no in-domain question, indicating that questions built by backward expansion transfer to human-written benchmarks. Mixed performs best, so the two sources are complementary (Appendix C.3).

Impact of Recpr . Removing Recpr causes the largest drop among the reward terms, and Cov drops more (5.43 and 7.21) than Hit@1 (2.58 and 3.55). As both variants share the data and the SFT checkpoint, this confirms that the coverage gain comes from the reward itself.

Performance across model scales. Hit@1 improves steadily from 3B to 7B (+12.89, +7.52, and +7.36), indicating that the synthetic data is not backbone-specific.

Impact of Rstep . Removing Rstep lowers Hit@1 by 0.45 and 2.35 but Cov by only 1.09 and 1.43, indicating that step validity keeps the interaction executable but does not drive coverage.

4.5

As shown in Table 4 and Figure 5, we examine how much evidence agent-based methods retrieve.

ECPR vs. LLM-as-judge. An LLM-as-judge score of the reasoning process (Wang and Yu, 2026a) raises Cov by only 1.21 and 1.93 over no process supervision and stays 4.22 and 5.28 below ECPR. This suggests that judging how plausible the reasoning reads is a weaker signal than ECPR. 4.4

Analysis of KG Interaction Agent (RQ4)

Answers without evidence. On GTSQA, PoG attains 39.33 Hit@1 but reaches the gold answer on only 35.70% of questions, so at least 9.2% of its correct answers never appear in any KG observation, and the RL-trained KG-R1 still leaves 45.95% of the supporting triples unretrieved. Neither prompting nor outcome rewards thus make an agent use the KG as a source of evidence.

Evidence-Grounded Synthesis (RQ3)

As shown in Table 3 and Figure 4, we fix a budget of 6,588 SFT questions and vary the data source (Train-Only, Synth-Only, or a mix of both), and apply the same SFT data to three backbone scales.

Evidence coverage. FoG attains the highest Cov and RetQ on both benchmarks (+3.84 and +4.59 Cov over KG-R1) together with the highest Hit@1, indicating that evidence coverage does not come at the cost of answer accuracy (Appendix I).

Validity of embedded evidence. The supporting triples of every retained question reproduce its answer under SPARQL execution, and the redundancy check misses a shortcut in only 1.5% of 200 audited questions. This confirms that the embedded triples are a valid reward target without annotation.

Performance under structural complexity. FoG leads KG-R1 on all 10 groups and is the best method on 9. Its margin over KG-R1 grows from +1.4 Hit@1 on (1) to +5.0 on (3) and +6.0 on the 7

37.5 35.8 31.7 26.7

Others

50.0 48.0 40.0 36.0

47.3 41.3 37.3 27.3

60.6

41.7

35.6 34.0 30.1 26.6

57.6 53.2 41.7 52.5

61.1 56.1

74.0

(3)(1)

14.9 13.6 7.2 4.5

46.7

62.0 60.0 50.0 44.7

72.7 69.3

94.7 93.3 90.7 93.3

Hit@1 (%)

FoG KG-R1 PoG ToG

(1)

(1)(1)

Others

1-hop

(2)

(2)(2)

Others

2-hop

(3)

3-hop

(4)

4-hop

Figure 5: Performance under structural complexity on GTSQA by reasoning hop and isomorphism type. 0.9

Total Reward

2.4

1.2 0.8

150

300

450

0.4

(a) Train Total Reward

750

5.0

0.5

0

900

6.0

0.6

0

150

300

4.0

450

600

0

150

300

450

0

(c) KG Interaction Turns

(b) Evidence Coverage Reward

Response Length

1050

7.0

0.7

1.6

Avg. KG Turns

8.0

Evidence Coverage Reward

0.8

2.0

150

300

(d) Response Length

450

Figure 6: Training dynamics of FoG. Rewards rise while interaction turns and response length decline. Credit assignment

Hit@1

Cov

Dup. rate

Trajectory-level Every-match First-match (ours)

46.69 47.01 50.52

54.29 52.21 58.64

11.8% 29.4% 8.6%

Table 5: Credit-assignment strategies for ECPR on GTSQA. Dup. rate is the fraction of KG queries that re-retrieve an already retrieved gold triple.

WebQSP Hit@1

GPT-4 LLaMA2-Chat-7B Qwen2.5-3B-Instruct

No Yes Yes

82.6 85.7 82.8

Qwen3-4B-Instruct Qwen3-4B-Instruct

No No

71.6 77.2

Train KG

Backbone

ToG (Sun et al., 2024) RoG (Luo et al., 2024) KG-R1 (Lin et al., 2025)

None Freebase Freebase

FoG SFT-only FoG full

Wikidata Wikidata

Table 6: Zero-shot cross-KG transfer to Freebase (WebQSP). Methods developed on Freebase are reference points, not matched baselines.

more branched (3)(1), questions that depend on more supporting triples. This suggests that the more evidence an answer requires, the more the agent benefits from rewards for retrieving it, although the margin narrows to +2.0 on (4). 4.6

WebQSP train

Method

that covers more evidence with fewer queries. 4.7

Cross-KG Transfer (RQ6)

As shown in Table 6, we evaluate the frozen FoG zero-shot on WebQSP over a Freebase backend.

Analysis of ECPR (RQ5)

Zero-shot transfer. FoG reaches 77.2 Hit@1 on an unseen KG, close to the methods developed on Freebase (82.6–85.7), and RL with ECPR contributes +5.6 Hit@1 over SFT only. This suggests that ECPR teaches the habit of retrieving evidence before answering, not the relations of one schema.

As shown in Table 5 and Figure 6, we compare first-match with trajectory-level attribution, which credits coverage to the final turn, and every-match attribution, which rewards every retrieval. Comparison across attribution strategies. First-match achieves the best Hit@1 and Cov. Trajectory-level attribution loses 4.35 Cov, as turns that retrieve evidence earn the same return as the others. Every-match raises the duplicate-retrieval rate from 8.6% to 29.4% and falls below trajectorylevel in Cov, as it rewards re-querying known evidence. This indicates that dense credit must pay each triple once, or it rewards redundant retrieval rather than coverage.

5

Conclusion

In this work, we present FoG, a framework that trains KG agents to retrieve the evidence behind their answers. By introducing evidence-grounded synthesis, a KG interaction agent, and an evidencecoverage process reward, FoG uses the KG as a source of evidence rather than only as a source of answers. Experiments on three KGQA benchmarks demonstrate consistent improvements in answer accuracy, evidence coverage, and cross-KG transfer.

Training dynamics. Rewards rise during RL while KG turns and response length decline, indicating that the agent learns a precise retrieval policy 8

Limitations

content, and no personal data was collected. This work involves no crowdsourcing and no user study. FoG is intended to make the answers of KG agents traceable to retrieved evidence. Since the KG may be outdated or incorrect, this evidence supports human verification rather than replaces it. We foresee no dual-use concerns.

KG completeness and freshness. FoG uses Wikidata triples as verifiable references for evidence-covered supervision, but real-world knowledge graphs may be incomplete, outdated, or noisy. When the required evidence is absent or incorrect in the graph, the agent may still fail despite following the intended evidence path. A natural extension is to equip the agent with a mechanism for detecting insufficient on-graph evidence and invoking external retrieval when needed.

References Garima Agrawal, Tharindu Kumarage, Zeyad Alghamdi, and Huan Liu. 2024. Mindful-rag: A study of points of failure in retrieval augmented generation. In 2nd International Conference on Foundation and Large Language Models, FLLM 2024, Dubai, United Arab Emirates, November 26-29, 2024, pages 607–611. IEEE.

Dependence on teacher models. Like other KG agents distilled from teacher trajectories (Chen et al., 2025; Sun et al., 2026a), FoG currently relies on an external teacher LLM (Kimi-K2) for question synthesis and trajectory distillation. Although symbolic checks filter invalid questions and evidence paths, the synthesis process still depends on the generation quality of external teachers. One promising direction is to replace teacher-driven synthesis with self-play, where agents generate, explore, and verify candidate questions through graph execution and symbolic filtering.

Aisha Alansari and Hamzah Luqman. 2026. Large language models hallucination: A comprehensive survey. Comput. Sci. Rev., 61:100970. Laura Cabello, Carmen Martin-Turrero, Uchenna Akujuobi, Anders Søgaard, and Carlos Bobed. 2024. MEG: medical knowledge-augmented large language models for question answering. CoRR, abs/2411.03883. Alberto Cattaneo, Carlo Luschi, and Daniel Justus. 2026. Ground-truth subgraphs for better training and evaluation of knowledge graph augmented llms. Trans. Mach. Learn. Res., 2026.

Long-horizon graph interaction. FoG caps graph interactions at 10 turns, which is sufficient for the 1–4-hop questions studied in our benchmarks. More open-ended KG reasoning may require longer evidence chains and broader graph exploration. Extending FoG to such settings requires balancing search depth against error accumulation, noisy observations, and sparser rewards.

Liyi Chen, Panrong Tong, Zhongming Jin, Ying Sun, Jieping Ye, and Hui Xiong. 2024. Plan-on-graph: Self-correcting adaptive planning of large language model on knowledge graphs. In Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024.

Ethical Considerations

Zhuo Chen, Fei Wang, Zixuan Li, Zhao Zhang, Weiwei Ding, Chuanguang Yang, YongJun Xu, Xiaolong Jin, and Jiafeng Guo. 2025. Knowcoder-a1: Incentivizing agentic reasoning capability with outcome supervision for KBQA. CoRR, abs/2510.25101.

All experiments use publicly available KGQA datasets derived from Wikidata (CC0), QALD10en (MIT License), and WikiWebQuestions, GTSQA, and WebQSP (publicly available for research). Backbone models Qwen2.5 and Qwen3 are released under Apache 2.0; GPT-4o-mini, DeepSeek-V3, and the teacher Kimi-K2 are accessed via official APIs under their terms of service. Our use of all existing artifacts is consistent with their intended research purposes. The datasets contain only public encyclopedic facts from structured KG triples, with no private or user-generated data. The only human involvement is the audit of constructed evidence paths (Appendix F.3), in which three graduate annotators judged whether a KG path supports its question. The annotators took part voluntarily, the task exposed them to no sensitive

DeepSeek-AI. 2024. Deepseek-v3 technical report. CoRR, abs/2412.19437. Ritam Dutt, Sopan Khosla, Vinayshekhar Bannihatti Kumar, and Rashmi Gangadharaiah. 2023. Grailqa++: A challenging zero-shot benchmark for knowledge base question answering. In 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, IJCNLP 2023 -Volume 1: Long Papers, Nusa Dua, Bali, November 1 - 4, 2023, pages 897– 909. Association for Computational Linguistics. GLM. 2025. GLM-4.5: agentic, reasoning, and coding (ARC) foundation models. CoRR, abs/2508.06471.

9

Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan, and Yu Su. 2021. Beyond iid: three levels of generalization for question answering on knowledge bases. In Proceedings of the web conference 2021, pages 3477–3488.

tal limitations of llms in clinical natural language inference. CoRR, abs/2508.10777. Mufei Li, Siqi Miao, and Pan Li. 2025. Simple is effective: The roles of graphs and large language models in knowledge-graph-based retrieval-augmented generation. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net.

Haoyu Han, Kai Guo, Harry Shomer, Yu Wang, Yucheng Chu, Hang Li, Li Ma, and Jiliang Tang. 2026. Reasoning by exploration: A unified approach to retrieval and generation over graphs. In Proceedings of the ACM Web Conference 2026, WWW 2026, Dubai, United Arab Emirates, originally scheduled for April 13-17, 2026, rescheduled for June 29 - July 3, 2026, pages 2408–2418. ACM.

Junhong Lin, Shicheng Liu, Jinyeop Song, Song Wang, Julian Shun, and Yada Zhu. 2025. Efficient and transferable agentic knowledge graph rag via reinforcement learning. arXiv preprint arXiv:2509.26383.

Xiaoxin He, Yijun Tian, Yifei Sun, Nitesh V. Chawla, Thomas Laurent, Yann LeCun, Xavier Bresson, and Bryan Hooi. 2024. G-retriever: Retrieval-augmented generation for textual graph understanding and question answering. In Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024.

Yu Liu, Xixun Lin, Yanmin Shang, Yangxi Li, Shi Wang, and Yanan Cao. 2026. Pathmind: A retrieveprioritize-reason framework for knowledge graph reasoning with large language models. In Fortieth AAAI Conference on Artificial Intelligence, Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence, Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2026, Singapore, January 20-27, 2026, pages 15386–15393. AAAI Press.

Peng Hu, Changjiang Gao, Ruiqi Gao, Jiajun Chen, and Shujian Huang. 2024. Large language models are limited in out-of-context knowledge reasoning. In Findings of the Association for Computational Linguistics: EMNLP 2024, Miami, Florida, USA, November 12-16, 2024, volume EMNLP 2024 of Findings of ACL, pages 3144–3155. Association for Computational Linguistics.

Linhao Luo, Yuan-Fang Li, Gholamreza Haffari, and Shirui Pan. 2024. Reasoning on graphs: Faithful and interpretable large language model reasoning. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net. Linhao Luo, Zicheng Zhao, Gholamreza Haffari, YuanFang Li, Chen Gong, and Shirui Pan. 2025. Graphconstrained reasoning: Faithful reasoning on knowledge graphs with large language models. In Fortysecond International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net.

Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, and Ting Liu. 2025. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Trans. Inf. Syst., 43(2):42:1– 42:55.

Costas Mavromatis and George Karypis. 2025. GNNRAG: graph neural retrieval for efficient large language model reasoning on knowledge graphs. In Findings of the Association for Computational Linguistics, ACL 2025, Vienna, Austria, July 27 - August 1, 2025, volume ACL 2025 of Findings of ACL, pages 16682–16699. Association for Computational Linguistics.

Jinhao Jiang, Kun Zhou, Xin Zhao, Yang Song, Chen Zhu, Hengshu Zhu, and Ji-Rong Wen. 2025. Kgagent: An efficient autonomous agent framework for complex reasoning over knowledge graph. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2025, Vienna, Austria, July 27 August 1, 2025, pages 9505–9523. Association for Computational Linguistics.

Iman Mirzadeh, Keivan Alizadeh, Hooman Shahrokhi, Oncel Tuzel, Samy Bengio, and Mehrdad Farajtabar. 2025. Gsm-symbolic: Understanding the limitations of mathematical reasoning in large language models. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net.

Bowen Jin, Chulin Xie, Jiawei Zhang, Kashob Kumar Roy, Yu Zhang, Zheng Li, Ruirui Li, Xianfeng Tang, Suhang Wang, Yu Meng, and Jiawei Han. 2024. Graph chain-of-thought: Augmenting large language models by reasoning on graphs. In Findings of the Association for Computational Linguistics, ACL 2024, Bangkok, Thailand and virtual meeting, August 1116, 2024, volume ACL 2024 of Findings of ACL, pages 163–184. Association for Computational Linguistics.

Thi Nguyen, Linhao Luo, Fatemeh Shiri, Dinh Phung, Yuan-Fang Li, Thuy-Trang Vu, and Gholamreza Haffari. 2024. Direct evaluation of chain-of-thought in multi-hop reasoning with knowledge graphs. In Findings of the Association for Computational Linguistics, ACL 2024, Bangkok, Thailand and virtual meeting,

Maël Jullien, Marco Valentino, and André Freitas. 2025. The knowledge-reasoning dissociation: Fundamen-

10

August 11-16, 2024, volume ACL 2024 of Findings of ACL, pages 2862–2883. Association for Computational Linguistics. OpenAI. 2023. GPT-4 technical report. abs/2303.08774.

Jiashuo Sun, Chengjin Xu, Lumingyuan Tang, Saizhuo Wang, Chen Lin, Yeyun Gong, Lionel M. Ni, HeungYeung Shum, and Jian Guo. 2024. Think-on-graph: Deep and responsible reasoning of large language model on knowledge graph. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net.

CoRR,

Shirui Pan, Linhao Luo, Yufei Wang, Chen Chen, Jiapu Wang, and Xindong Wu. 2024. Unifying large language models and knowledge graphs: A roadmap. IEEE Trans. Knowl. Data Eng., 36(7):3580–3599.

Tianda Sun and Dimitar Kazakov. 2026. Peakthen-collapse and the four interface channels of knowledge-graph tool use. CoRR, abs/2605.26037.

Fabio Petroni, Aleksandra Piktus, Angela Fan, Patrick Lewis, Majid Yazdani, Nicola De Cao, James Thorne, Yacine Jernite, Vladimir Karpukhin, Jean Maillard, Vassilis Plachouras, Tim Rocktäschel, and Sebastian Riedel. 2021. KILT: a benchmark for knowledge intensive language tasks. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2021, Online, June 6-11, 2021, pages 2523–2544. Association for Computational Linguistics.

Xin Sun, Zhongqi Chen, Xing Zheng, Qiang Liu, Shu Wu, Bowen Song, Zilei Wang, Weiqiang Wang, and Liang Wang. 2025. KBQA-R1: reinforcing large language models for knowledge base question answering. CoRR, abs/2512.10999. Xin Sun, Jianan Xie, Zhongqi Chen, Qiang Liu, Shu Wu, Bowen Song, Weiqiang Wang, Zilei Wang, and Liang Wang. 2026b. GAPD: gold-action policy distillation for agentic reinforcement learning in knowledge base question answering. CoRR, abs/2605.29584.

Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. CoRR, abs/2402.03300.

Alon Talmor and Jonathan Berant. 2018. The web as a knowledge-base for answering complex questions. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2018, New Orleans, Louisiana, USA, June 1-6, 2018, Volume 1 (Long Papers), pages 641– 651. Association for Computational Linguistics.

Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. 2025. Hybridflow: A flexible and efficient RLHF framework. In Proceedings of the Twentieth European Conference on Computer Systems, EuroSys 2025, Rotterdam, The Netherlands, 30 March 2025 - 3 April 2025, pages 1279–1297. ACM.

Kimi Team. 2025a. Kimi K2: open agentic intelligence. CoRR, abs/2507.20534. Qwen Team. 2025b. Qwen3 technical report. CoRR, abs/2505.09388.

Yanlin Song, Ben Liu, Víctor Gutiérrez-Basulto, Zhiwei Hu, Qianqian Xie, Min Peng, Sophia Ananiadou, and Jeff Z. Pan. 2026. Plan then retrieve: Reinforcement learning-guided complex reasoning over knowledge graphs. In Proceedings of the ACM Web Conference 2026, WWW 2026, Dubai, United Arab Emirates, originally scheduled for April 13-17, 2026, rescheduled for June 29 - July 3, 2026, pages 3666–3676. ACM.

Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurélien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models. CoRR, abs/2302.13971. Ricardo Usbeck, Xi Yan, Aleksandr Perevalov, Longquan Jiang, Julius Schulz, Angelie Kraft, Cedric Möller, Junbo Huang, Jan Reineke, AxelCyrille Ngonga Ngomo, Muhammad Saleem, and Andreas Both. 2024. QALD-10 - the 10th challenge on question answering over linked data: Shifting from dbpedia to wikidata as a KG for KGQA. Semantic Web, 15(6):2193–2207.

Yuan Sui, Yufei He, Nian Liu, Xiaoxin He, Kun Wang, and Bryan Hooi. 2025. Fidelis: Faithful reasoning in large language models for knowledge graph question answering. In Findings of the Association for Computational Linguistics, ACL 2025, Vienna, Austria, July 27 - August 1, 2025, volume ACL 2025 of Findings of ACL, pages 8315–8330. Association for Computational Linguistics.

Shuai Wang and Yinan Yu. 2026a. Kg-hopper: Empowering compact open llms with knowledge graph reasoning via reinforcement learning. CoRR, abs/2603.21440.

Jia Ao Sun, Hao Yu, Fengran Mo, Zhan Su, Yuchen Hui, Bang Liu, and Jian-Yun Nie. 2026a. Searchon-graph-r1: Training large language models to search knowledge graphs with reinforcement learning. CoRR, abs/2607.18481.

Shuai Wang and Yinan Yu. 2026b. Kg-reasoner: A reinforced model for end-to-end multi-hop knowledge graph reasoning. CoRR, abs/2604.12487.

11

Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2023. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.

ACL 2016, August 7-12, 2016, Berlin, Germany, Volume 2: Short Papers. The Association for Computer Linguistics. Liangliang Zhang, Zhuorui Jiang, Hongliang Chi, Haoyang Chen, Mohammed Elkoumy, Fali Wang, Qiong Wu, Zhengyi Zhou, Shirui Pan, Suhang Wang, and Yao Ma. 2025. Diagnosing and addressing pitfalls in KG-RAG datasets: Toward more reliable benchmarking. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025.

Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.

Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, and Zheyan Luo. 2024. Llamafactory: Unified efficient fine-tuning of 100+ language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), ACL 2024, Bangkok, Thailand, August 11-16, 2024, pages 400–410. Association for Computational Linguistics.

Shuwen Xu, Yao Xu, Jiaxiang Liu, Chenhao Yuan, Wenshuo Peng, Jun Zhao, and Kang Liu. 2026. Graphwalker: Agentic knowledge graph question answering via synthetic trajectory curriculum. CoRR, abs/2603.28533. Silei Xu, Shicheng Liu, Theo Culhane, Elizaveta Pertseva, Meng-Hsi Wu, Sina J. Semnani, and Monica S. Lam. 2023. Fine-tuned llms know more, hallucinate less with few-shot sequence-to-sequence semantic parsing over wikidata. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 5778–5791. Association for Computational Linguistics. Shiqi Yan, Yubo Chen, Ruiqi Zhou, Zhengxi Yao, Shuai Chen, Tianyi Zhang, Shijie Zhang, Wei Qiang Zhang, Yongfeng Huang, Haixin Duan, and Yunqi Zhang. 2026. Explore-on-graph: Incentivizing autonomous exploration of large language models on knowledge graphs with path-refined reward modeling. In The Fourteenth International Conference on Learning Representations, ICLR 2026, Rio de Janeiro, Brazil, April 23-27, 2026. proceedings.iclr.cc. Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. 2023a. Tree of thoughts: Deliberate problem solving with large language models. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023. Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R. Narasimhan, and Yuan Cao. 2023b. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net. Wen-tau Yih, Matthew Richardson, Christopher Meek, Ming-Wei Chang, and Jina Suh. 2016. The value of semantic parse labeling for knowledge base question answering. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics,

12

A

Proofs

case where the sub-question has answers other than u, the result set of ℓ(n+1) may grow, but the executability check bounds it by Kans . In conclusion, every expansion keeps y in the result set over the full KG, and the accumulated triples alone support the expanded logical form. Therefore, backward expansion preserves the answer and yields triples that support it.

Throughout the proofs, a logical form ℓ is a conjunctive query: a set of triple patterns over entities and variables with one answer variable, optionally with filters on bound values. For a triple set S, SPARQL(ℓ, S) is the set of values of the answer variable over all assignments that map every pattern of ℓ to a triple in S and satisfy the filters. Such queries are monotone: S ⊆ S ′ implies SPARQL(ℓ, S) ⊆ SPARQL(ℓ, S ′ ). Following Definition 2, S supports (ℓ, y) if y ∈ SPARQL(ℓ, S), and a trajectory τ is evidencecovered if Cov(τ, Sq∗ ) = 1, as defined in Equation 6. A.1

A.2

Proposition 2. ECPR is maximized only by supported answers and rewards each triple once. Proof. Let R = Rout + Rstep + Recpr be the composite reward with λecpr > 0, and let Sq∗ be the supporting triples of a question q, which support (ℓq , yq∗ ) by Proposition 1. Supported maximizers. Since F1 ≤ 1, Rstep ≤ λstep , and Cov ≤ 1, the composite reward is bounded as

Proof of Proposition 1

Proposition 1. Backward expansion preserves the answer and yields triples that support it. Proof. We show by induction that, for every n ≥ 1, the triple set S (n) ⊆ T supports (ℓ(n) , y). Base case. A seed is retained only if its supporting triples exist in the KG and instantiate ℓ(1) with the answer variable bound to y. Hence S (1) supports (ℓ(1) , y) under some assignment µ. Inductive step. Assume that S (n) supports (ℓ(n) , y) under an assignment µ. An expansion selects an entity u in ℓ(n) and a verified sub-question with logical form ℓ̃, answer variable x, and triples S̃ ⊆ T that support (ℓ̃, u) under an assignment µ̃ with µ̃(x) = u. With variables renamed apart, the expanded logical form is (n+1)

ℓ

(n)

=ℓ

[u 7→ x] ∪ ℓ̃,

Proof of Proposition 2

R(τ ) ≤ λf1 + λret + λstep + λecpr ,

(11)

where equality holds if and only if every term attains its maximum, in particular only if Cov(τ, Sq∗ ) = 1. Assume that an evidence-covered trajectory with a correct answer and only valid actions is feasible within the turn limit. The bound is then attained, so every trajectory τ that maximizes R satisfies Sq∗ ⊆ T (τ ), and monotonicity gives  yq∗ ∈ SPARQL ℓq , T (τ ) , (12) which means that the answer of τ is supported. For outcome rewards alone, Rout in Equation 5 depends on τ only through the prediction ŷ and the returned entities E(τ ). A shortcut trajectory τs that predicts and reaches yq∗ with Cov(τs , Sq∗ ) < 1 therefore attains the maximum λf1 + λret of Rout . Under the composite reward, it loses at least  ∗ λecpr 1 − Cov(τs , Sq ) > 0 against the bound and is no longer optimal.  S ∗ One reward per triple. Let Ut = i≤t Ti ∩ Sq be the gold triples retrieved up to step t, with U0 = ∅. The step reward of ECPR is then

(9)

where [u 7→ x] replaces every occurrence of u with the variable x. Consider the assignment µ ∪ µ̃. Every pattern of ℓ̃ is mapped into S̃, and every pattern of ℓ(n) [u 7→ x] is mapped to the same triple of S (n) as under µ, since µ̃(x) = u. The answer variable is still bound to y, which gives  y ∈ SPARQL ℓ(n+1) , S (n+1) , (10) where S (n+1) = S (n) ∪ S̃, so S (n+1) supports (ℓ(n+1) , y). Since S (n+1) ⊆ T , monotonicity also gives y ∈ SPARQL(ℓ(n+1) , T ), so the answer is preserved over the full KG. Each expansion replaces one entity with a variable, so N expansions hide N intermediate entities. The proof guarantees that the accumulated triples are sufficient for the answer, not that they are the only triples that support it. In the special

ecpr

rt

= λecpr

|Ut | − |Ut−1 | , |Sq∗ |

ecpr

(13)

where Ut−1 ⊆ Ut , so rt ≥ 0 and the sum over steps telescopes to λecpr |UT |/|Sq∗ | = Recpr (τ ). If step t returns only triples that were already reecpr trieved, then Ut = Ut−1 and rt = 0. In contrast, every-match attribution pays λecpr |Tt ∩ Sq∗ |/|Sq∗ | at 13

each step. Repeating a query that returns m ≥ 1 gold triples for T steps thus earns λecpr T m/|Sq∗ |, which grows with T while the coverage stays at m/|Sq∗ |. The statement concerns the maximizers of the trajectory-level reward and does not guarantee that policy optimization reaches them. Covering Sq∗ is sufficient but not necessary for a supported answer, since a question may admit other supporting sets. In the special case where no shortcut trajectory exists for the question, the maximizers of Rout are already evidence-covered, so the two rewards share the same maximizers. In conclusion, the composite reward attains its maximum only when the retrieved triples support the answer, and first-match attribution never pays a triple twice. Therefore, ECPR is maximized only by supported answers and rewards each triple once.

B

Algorithm 1: Redundancy Check Input: S (n) : supporting triples; Eq : topic entities; Y (n) : full answer set. Output: Redundancy flag I S R EDUNDANT ∈ {True, False}. Build an undirected graph G from S (n) ; label topic-entity nodes with their Wikidata IDs, the answer node with ?answer, and intermediates with fresh variables. for each e ∈ Eq do Compute shortest path P(e) in G from e to the answer node. Derive SPARQL triple pattern ϕ(e) from triples along P(e). end for k = 1 to |Eq | − 1 do for each Z ⊆ Eq with |Z| = k do QZ ← S SELECT;?answer;WHERE;{ e∈Z ϕ(e)} (n) Execute QZ on the KG → answer set YZ . (n) if |YZ | ≤ |Y (n) | then return T RUE end end end return FALSE

FoG Algorithm Detail

Redundancy Check. To provide a clear overview of the non-redundancy check in Section 3.1, we present its procedure in the form of pseudocode. As shown in Algorithm 1, we first build a support graph from the supporting triples and extract the shortest path from each topic entity to the answer node. We then enumerate proper subsets of topic entities in increasing size and execute one SPARQL query per subset. If any subset yields an answer set no larger than that of the full query, the question admits a shortcut and is discarded. Complexity Analysis. Given a question with |Eq | topic entities and |S (n) | supporting triples, extracting the shortest paths by BFS takes O(|Eq | · |S (n) |) time. The subset enumeration issues at most 2|Eq | − 2 SPARQL queries and stops at the first redundant subset. Using only the shortest path per topic entity is an approximation, which we audit on 200 candidate questions against an exhaustive enumeration of all path combinations under the same hop limit. The shortest-path check misses a shortcut in 1.5% of the candidates, while issuing 5.1 rather than 48.6 SPARQL queries per question. In summary, the redundancy check is dominated by SPARQL execution, and the shortest-path approximation reduces the number of queries by 9.5× while missing few shortcuts.

C

Synthetic Data Construction

C.1

Topic Domains

As shown in Figure 7, the synthetic questions used for FoG training span seven named Wikidata domains. Entertainment is the largest (39.7%), reflecting the density of film, television, and music entities in Wikidata, followed by history (12.6%), society (11.4%), geography (9.6%), transportation (6.6%), sports (6.5%), and politics (5.7%); the remaining 7.9% fall into other domains. C.2

Query-Graph Topologies

To construct questions with diverse reasoning structures, we label each synthetic question with the isomorphism type of its query graph. As shown in Table 7, the 6,588 questions that pass all checks span nine chain and tree structures from 1 to 3 hops. All verified seeds enter backward expansion, and the 1-hop questions are seeds retained at depth one. Overall, 35.1%, 40.0%, and 24.9% of the questions have 1, 2, and 3 hops. The most frequent types are the three-branch star (1)(1)(1) (18.38%) and the 3-hop chain (3) (16.48%), and 67.6% of the questions have a multi-branch query graph rather than a single chain. C.3

Synthesis Cost and Retention

As shown in Table 8, we report the candidates retained, the rejection rate, and the teacher calls at 14

Politics Sports 5.7% 6.5% Transportation 6.6%

Stage

Input

Retained

Rejected

Teacher calls

Seed-question generation Backward expansion Complex-question composition

20,000 14,400 8,784

14,400 8,784 6,588

28.0% 39.0% 25.0%

20,000 86,400 8,784

End-to-end

20,000

6,588

67.1%

115,184

Others 7.9%

Table 8: Synthesis cost and retention.

for all test questions. On QALD10-en and WikiWebQuestions, no test question exceeds 0.75, and on GTSQA only 6 questions (0.37%) fall in the 0.80–0.85 range.

Geography 9.6% Entertainment 39.7% Society 11.4% History 12.6%

D

KG Interaction Operations

Figure 7: Topic-domain distribution of the synthetic questions. The questions are drawn from major Wikidata domains.

As shown in Table 9, the kg-query action in Section 3.2 is instantiated with seven operations in four categories: relation search, neighborhood expansion, constraint filtering, and set combination. The table lists the name, description, input parameters, and output of every operation.

Hops

Isomorphism Type

E

1 hop

Questions

Proportion

(1) (1)(1) (1)(1)(1)

500 600 1,211

7.59% 9.11% 18.38%

2 hop

(2) (2)(1) ((1)(1)) (2)(1)(1)

550 853 700 533

8.35% 12.95% 10.63% 8.09%

3 hop

(3) ((2)(1))

1,086 555

16.48% 8.42%

Total

-

6,588

100.00%

The benchmarks used for FoG evaluation cover two knowledge graphs, with data sourced as follows: WikiWebQuestions: Ported from WebQuestions and re-annotated with SPARQL queries over Wikidata (Xu et al., 2023), consisting of real-world natural language questions. QALD10-en: Derived from the English subset of the tenth QALD challenge (Usbeck et al., 2024), the first edition to adopt Wikidata, covering 394 expert-written test questions with multi-hop and qualifier constraints. GTSQA: Built over Wikidata with 30,144 training and 1,622 test questions (Cattaneo et al., 2026), each annotated with a gold answer subgraph and a query-graph isomorphism label. WebQSP: Sourced from Freebase (Yih et al., 2016) and used only for the zero-shot cross-KG transfer experiment.

Table 7: Topology distribution of the synthetic questions. Query-graph isomorphism types are grouped by hop count, the longest path from a topic entity to the answer.

each synthesis stage, all of which use the same teacher model, Kimi-K2 (Team, 2025a). Of 20,000 sampled seed entities, 14,400 yield a verified seed question, 8,784 candidates remain after backward expansion, and 6,588 questions pass all filters, an end-to-end rejection rate of 67.1%. The pipeline uses 115,184 teacher calls, about 17.5 per retained question, and backward expansion accounts for three quarters of them. C.4

Benchmark Datasets

F

Evaluation Details

F.1

Evaluation Metrics

We evaluate model performance using four complementary metrics that assess two aspects of KGQA: answer accuracy (Hit@1 and F1) and evidence coverage (Cov and RetQ). (i) Hit@1. Hit@1 quantifies whether the predicted answer is correct. For each question, we check whether the normalized prediction matches any gold answer, and then average over all evalu-

Data Leakage Check

To ensure that the synthetic questions do not overlap with the test sets, we encode each question with BGE-M3 and compute the cosine similarity between every test question and its most similar synthetic question. The similarity stays below 0.85 15

Category

Function

Relation search

find_outgoing_relations find_incoming_relations

Neighborhood expansion

get_tail_entities get_head_entities

Constraint filtering

Set combination

get_entity_by_constraint

intersect union

Description

Input Parameters

Given an entity, return all outgoing relations. Given an entity, return all incoming relations.

entity_name entity_name

Output List of outgoing relations List of incoming relations

Follow the relation forward from head to tail. Follow the relation backward from tail to head.

head_entity_name; relation_name tail_entity_name; relation_name

Filter the provided entity_set and return the entities satisfying the specified constraint.

entity_set; relation; operator; value

Entity subset

entity_set_list

Intersection set

entity_set_list

Union set

Return the intersection of the given list of entity sets. Return the union of the given list of entity sets.

Set of tail entities Set of head entities

Table 9: The seven KG operations of the kg-query action. Each operation is listed with its description, input parameters, and output.

(iv) Retrieval Grounding (RetQ). RetQ quantifies whether the gold answer is retrieved from the KG rather than produced from parametric memory. For each question, we check whether any gold answer appears among the entities returned by its KG queries, and then average over all questions:

ated questions: M

Hit@1 =

1 X  I ∃y ∈ Yi∗ : M

(14)

i=1



norm(ŷi ) = norm(y) , where ŷi and Yi∗ denote the prediction and the gold answer set of the i-th question, norm(·) removes superficial differences such as case and punctuation, and M is the total number of evaluated questions in the benchmark. (ii) Token-level F1. F1 quantifies the token-level overlap between the predicted and gold answers. For each question, we compute the harmonic mean of token precision and recall, and then average:

M

RetQ =

1 X 2 · |tokens(ŷi ) ∩ tokens(Yi∗ )| , M i=1 |tokens(ŷi )| + |tokens(Yi∗ )|

where E(τi ) denotes the set of entities returned by all KG queries in the trajectory τi . F.2

Gold Supporting Triples

The gold supporting triples used for evaluation are distinct from those produced by synthesis, which serve only as ECPR supervision during training. GTSQA provides gold answer subgraphs natively. For WikiWebQuestions, which has no such annotation, we follow EoG (Yan et al., 2026) and construct them in two stages. We first enumerate candidate paths from each topic entity to each answer entity by BFS under a maximum-hop constraint. An LLM verifier then judges whether each candidate path supports all constraints of the question, and the union of triples on the accepted paths forms the gold supporting triples.

(15)

where tokens(·) normalizes each answer in a list, splits it on whitespace, and takes the union of the resulting tokens over the list. (iii) Evidence Coverage (Cov). Cov quantifies how much of the gold supporting evidence the agent retrieves along its trajectory. For each question, we compute the fraction of gold supporting triples returned by its KG queries, and then average over all questions:

F.3

M

1 X |T (τi ) ∩ Si∗ | Cov = , M |Si∗ |

(17)

i=1

M

F1 =

1 X I[∃y ∈ Yi∗ , y ∈ E(τi )] , M

(16)

Human Validation of Constructed Paths

To validate the constructed paths independently of the LLM verifier, we sample 200 candidate paths from WikiWebQuestions, 100 accepted and 100 rejected by the verifier. Three graduate annotators independently judge whether each path supports all constraints of its question, without seeing the verifier decision. The annotators reach Fleiss’ κ =

i=1

where T (τi ) denotes the set of triples returned by all kg-query actions in the trajectory τi , and Si∗ denotes the gold supporting triples of the i-th question. This metric reflects whether an answer is backed by the complete evidence path. 16

Question

Candidate path

Reason for rejection

Who was the prime minister of Pakistan in 1999?

Links candidates only to the office “Prime Minister of Pakistan”.

Does not establish that the candidate held the office in 1999.

What town did Justin Bieber grow up in?

Justin Bieber → Canada; Waterloo → Canada.

Sharing the same country does not establish childhood residence.

Table 10: Representative rejected paths. The verifier checks whether a path covers the semantic constraints of the question, not only whether it reaches a plausible answer entity.

0.91, and the human–verifier agreement is 93.0%, with a verifier precision of 0.94 and a recall of 0.92. Table 10 shows two representative rejected paths.

G

Parameter

Value

Fine-tuning method LoRA rank / alpha / dropout Max sequence length Training epochs Per-device batch size Gradient accumulation steps Learning rate LR scheduler Weight decay Gradient clipping

Baseline Details

We compare FoG against nine representative baselines that cover the LLM reasoning, retrieval-based, and agent-based paradigms: IO Prompt (OpenAI, 2023; Team, 2025b; DeepSeek-AI, 2024) is a KG-free baseline where the LLM directly answers the question from its parametric knowledge. This serves as a lower bound for KG-augmented reasoning. CoT (Wei et al., 2022) elicits step-by-step reasoning before the final answer, still without any access to the KG. Self-Consistency (Wang et al., 2023) samples multiple CoT chains and aggregates their answers by majority voting. RoG (Luo et al., 2024) generates relation paths as plans, retrieves reasoning paths along them, and answers from the retrieved paths. SubGraphRAG (Li et al., 2025) retrieves a subgraph with a lightweight MLP that scores triples in parallel, and feeds it to an LLM reader. GCR (Luo et al., 2025) encodes KG paths into a Trie index and constrains LLM decoding with the graph structure. ToG (Sun et al., 2024) is a training-free agent that performs beam search over entities and relations through multi-turn KG interaction. PoG (Chen et al., 2024) decomposes the question into sub-objectives and explores paths with memory updating and self-reflection. KG-R1 (Lin et al., 2025) trains a single KG agent end-to-end with GRPO under outcome and turn-level action-validity rewards. Adaptation to Wikidata. RoG, SubGraphRAG, and GCR were proposed on Freebase and rely on dataset-specific supervision, so they cannot be transferred to a new KG without retraining. We therefore retrain each of them on the training split

Table 11: tuning.

LoRA 16 / 32 / 0.05 3,000 3 16 8 5 × 10−5 Cosine, warmup ratio 0.1 0.01 1.0

Hyperparameters of supervised fine-

of every Wikidata benchmark. KG-R1 was also proposed on Freebase. We retrain it on Wikidata with the same training data as FoG. To ensure fairness, all methods, including FoG, are evaluated under identical conditions with a single inference run per question, and no multi-run aggregation is used. The backbone of each method is listed in Table 1.

H

Hyperparameter Settings

Supervised Fine-Tuning. For SFT, we adopt LLaMA-Factory (Zheng et al., 2024) and apply LoRA to all linear layers. The training trajectories are distilled from the same teacher model used in synthesis, Kimi-K2 (Team, 2025a), with the prompt in Table 19. Training runs on a single NVIDIA A100 GPU. Reinforcement Learning. For RL, we adopt Verl (Sheng et al., 2025) and initialize the policy from the SFT checkpoint. Training runs on a single node with 4×NVIDIA A100 (40 GB) GPUs, using FSDP with parameter and optimizer CPU offloading, and rollouts are executed with vLLM. For each question, the agent samples N =4 trajectories with at most 10 KG interaction turns. KL regularization uses the k3 estimator with coefficient 0.03, anchored to the SFT model. Table 11 and Table 12 summarize the detailed hyperparameter configurations used throughout our experiments,

17

Parameter

Value

Actor learning rate KL loss coefficient GRPO rollout N Max interaction turns per question Train batch size PPO mini-batch size Max prompt length Max response length per step Max observation length Rollout temperature Total training steps Hardware

1 × 10−6 0.03 (k3 type) 4 10 32 16 4,096 8,192 1,024 0.7 450 4× NVIDIA A100 (40 GB)

Reward term

Coefficient

Value

Answer F1 (Rout ) Answer retrieval (Rout ) Step validity (Rstep ) Evidence coverage (Recpr )

λf1 λret λstep λecpr

0.7 0.3 0.5 1.0

Table 13: Coefficients of the composite reward. Each coefficient weights one term of the reward in Section 3.3.

I

Table 12: Hyperparameters of reinforcement learning.

Case Study

To better understand how much of the supporting evidence different methods retrieve from the KG, we present a case study on the question: “Which airline flies the Embraer 195 and is based at the airport named after Margaret Kenyatta’s father?” As shown in Tables 14, 15, and 16, this question requires resolving the father, the airport named after him, and the airline that is based there and flies the aircraft. All three methods predict the correct answer, but they differ in how much of the evidence chain they recover. FoG recovers the complete gold evidence. It issues nine KG turns and grounds each hop in the triples returned by the previous one, so every link of the chain can be read from the trajectory. In contrast, ToG performs four rounds of beam search but recovers only one relevant triple, missing the links for airport naming and airline hub, so its answer relies mainly on parametric knowledge. PoG answers after a single retrieval step, leaving an evidence chain that cannot be audited from the trajectory. This case highlights the strength of FoG in reaching the answer through evidence that is fully retrieved from the KG.

and Table 13 lists the coefficients of the composite reward in Section 3.3. Advantage Computation. The turn-level advantage in Section 3.3 is computed as follows. (i) Return. The return Gi,t in Equation 8 adds the immediate process rewards of turn t to the outcome reward of the trajectory. We use neither discounting nor a reward-to-go, so the evidence reward of a turn is credited to that turn only. (ii) Normalization. The mean µq and standard deviation σq are computed over all (trajectory, turn) pairs of the N rollouts of the same question. Trajectories of different lengths need no padding, since each contributes as many returns as it has turns. (iii) Token mask. The advantage of a turn is broadcast to the tokens that the policy generates in that turn, i.e., its reasoning and its tool call or answer. Tool observations are part of the context but are masked out of the policy loss and the KL term. (iv) Objective. The policy maximizes |τi | N  1 X 1 X min ρi,j Âi,t(j) , N i=1 |τi | j=1 #  clip(ρi,j , 1 − ϵ, 1 + ϵ)Âi,t(j) − β DKL (πθ ∥ πref ),

"

J (θ) = Eq,{τi }

(18)

J

Prompts Used in FoG

J.1

Seed Question Generation Prompt

As shown in Table 17, this prompt is designed for generating seed questions from a sampled subgraph. It guides the teacher to return a question, its logical form, and its supporting triples, which corresponds to πgen in Equation 1.

where j ranges over the |τi | policy-generated tokens, t(j) is the turn of token j, ρi,j is the probability ratio, and πref is the SFT model. (v) Difference from trajectory-level credit. When the coverage reward is credited only to the final turn, the turns that actually retrieved the evidence receive the same return as the turns that did not, so the update cannot distinguish them. With first-match attribution, two trajectories with the same coverage still produce different per-turn returns, and the advantage concentrates on the queries that first reach gold triples.

J.2

Backward Expansion Prompt

As shown in Table 18, this prompt is used by the backward-expansion agent. The agent is instructed to select an anchor entity, retrieve its neighborhood, generate a sub-question whose answer is the anchor, and verify the result, retrying on failure.

18

J.3

Trajectory Distillation Prompt

As shown in Table 19, this prompt is used to distill the teacher trajectories for SFT. The teacher is instructed to explore the KG only through the provided tools, explain each call, and answer with entities that appear in the tool responses. J.4

Agent Prompt

As shown in Table 20, this prompt is used by the FoG agent in both training and evaluation. It guides the agent to analyze the question, call the KG operations, and answer from the returned triples.

19

Table 14: Case study of FoG. The trajectory recovers the complete gold evidence before answering. Question: Which airline flies the Embraer 195 and is based at the airport named after Margaret Kenyatta’s father? <think>I need to find an airline that satisfies two conditions: 1) flies the Embraer 195, and 2) is based at the airport named after Margaret Kenyatta’s father. Let me start by exploring the relationships around the first given entity to understand what information is stored about Margaret Kenyatta in the knowledge graph.</think> <kg-query> find_outgoing_relations(entity_name=Margaret Kenyatta) </kg-query> <information> Outgoing relations for entity Margaret Kenyatta: country of citizenship, father, given name, instance of, mother, occupation, sex or gender......... </information> <think> The outgoing triple shows that Margaret Kenyatta has a "father" in the knowledge graph. Let me find out who her father is by querying the triple that directly connects Margaret Kenyatta to her father. </think> <kg-query> get_tail_entities(head_entity_name=Margaret Kenyatta, relation_name=father) </kg-query> <information> Entities outgoing via relation father from entity Margaret Kenyatta: Jomo Kenyatta.......... </information> <think> Now I know Jomo Kenyatta is Margaret Kenyatta’s father. Next, I need to find the airport named after Jomo Kenyatta. Let me check what relationships exist for Jomo Kenyatta in the knowledge graph to see if there is an airport named after him. </think> <kg-query> find_incoming_relations(entity_name=Jomo Kenyatta) </kg-query> <information> Incoming relations for entity Jomo Kenyatta: father,named after,spouse.......... </information> <think> I see that some entities have "named after" pointing to Jomo Kenyatta. Let me find out what entities are named after Jomo Kenyatta in the knowledge graph. </think> <kg-query> get_head_entities(tail_entity_name=Jomo Kenyatta, relation_name=named after) </kg-query> <information> Entities incoming via relation named after from entity Jomo Kenyatta: Jomo Kenyatta International Airport, Kenyatta International Convention Centre </information> <think> Great! I found that Jomo Kenyatta International Airport is named after Jomo Kenyatta. Now I need to find which airline is based at Jomo Kenyatta International Airport. Let me check what outgoing relationships exist for Jomo Kenyatta International Airport to see if there is an airline based there. </think> <kg-query> find_outgoing_relations(entity_name=Jomo Kenyatta International Airport) </kg-query> <information> Outgoing relations for entity Jomo Kenyatta International Airport: country, instance of, located in the administrative territorial entity, named after......... </information> <think> I don’t see a direct "airline based at" relationship listed for the airport. Let me check the incoming relationships to see if any airlines have "headquarters location" or similar relationships pointing to this airport. </think> <kg-query> find_incoming_relations(entity_name=Jomo Kenyatta International Airport). </kg-query> <information> Incoming relations for entity Jomo Kenyatta International Airport: airline hub </information> <think> Perfect! I found that some airlines have "airline hub" pointing to Jomo Kenyatta International Airport. Let me find out which airlines have Jomo Kenyatta International Airport as their airline hub. </think> <kg-query> get_head_entities(tail_entity_name=Jomo Kenyatta International Airport, relation_name=airline hub) </kg-query> <information> Entities incoming via relation airline hub from entity Jomo Kenyatta International Airport: Kenya Airways </information> <think> Now I have Kenya Airways as the airline based at Jomo Kenyatta International Airport. Finally, I need to verify that Kenya Airways also flies the Embraer 195. Let me check what aircraft types Kenya Airways operates by looking at its outgoing relationships. </think> <kg-query> find_outgoing_relations(entity_name=Kenya Airways) </kg-query> <information> Outgoing relations for entity Kenya Airways: airline alliance, airline hub, country, instance of, item operated .........</information> <think> I see that Kenya Airways has "item operated" as an outgoing relationship. Let me find out what items (likely aircraft) Kenya Airways operates. </think> <kg-query> get_tail_entities(head_entity_name=Kenya Airways, relation_name=item operated) </kg-query> <information> Entities outgoing via relation item operated from entity Kenya Airways: Boeing 737 Classic,Boeing 737 Next Generation,Boeing 767,Boeing 777,Boeing 787 Dreamliner,Embraer 195 </information> <think> I now have enough grounded evidence to give the answer. </think> <answer> ["Kenya Airways"] </answer>

20

Table 15: Case study of ToG. The trajectory reaches the correct answer while covering only the first part of the gold evidence. Question: Which airline flies the Embraer 195 and is based at the airport named after Margaret Kenyatta’s father? Reasoning chains: Turn 1: ‘Margaret Kenyatta -> father -> Jomo Kenyatta‘; ‘Margaret Kenyatta -> country of citizenship -> Kenya‘; ‘Embraer 195 -> subclass of -> E-Jet‘; ‘Margaret Kenyatta -> occupation -> diplomat‘; ‘Margaret Kenyatta -> occupation -> politician‘; Turn 2: ‘Kenya -> named after -> Mount Kenya‘; ‘diplomat -> named after -> Diplomatstaden‘; ‘E-Jet -> manufacturer -> Embraer‘; ‘politician -> category combines topics -> Category:Dutch politicians‘; ‘Jomo Kenyatta -> country of citizenship -> Kenya‘; Turn 3: ‘Mount Kenya -> country -> Kenya‘; ‘Embraer -> headquarters location -> São José dos Campos‘; ‘Category:Dutch politicians -> is a list of -> human‘; ‘Kenya -> named after -> Mount Kenya‘; ‘Diplomatstaden -> located in the administrative territorial entity -> Stockholm Municipality‘; Turn 4: ‘Kenya -> named after -> Mount Kenya‘; ‘Mount Kenya -> country -> Kenya‘; ‘Kenya -> capital -> Nairobi‘; ‘São José dos Campos -> country -> Brazil‘; ‘São José dos Campos -> located in the administrative territorial entity -> São Paulo‘; <answer>First, the airline that flies the Embraer 195 is Kenya Airways. Second, the airport named after Margaret Kenyatta’s father is Jomo Kenyatta International Airport. The answer is {Kenya Airways}</answer>

Table 16: Case study of PoG. The trajectory reaches the correct answer through a shortcut retrieval and misses the bridge evidence. Question: Which airline flies the Embraer 195 and is based at the airport named after Margaret Kenyatta’s father? Reasoning chains: Turn 1: Embraer 195 -> item operated -> Kenya Airways; <answer>Kenya Airways operates the Embraer 195 and is based at Jomo Kenyatta International Airport, which is named after Margaret Kenyatta’s father. The answer is {Kenya Airways}</answer>

21

Table 17: Prompt for seed question generation. Seed Question Generation Prompt S YSTEM P ROMPT You are a question synthesis expert. You are deeply familiar with the structure of the Wikidata knowledge graph and specialize in constructing questions based on given triple information. Core Concept Definitions Three Entity Roles in this task: • Constraint Entity (Con@). The starting point of the question; an entity the user already knows that must be explicitly mentioned. It anchors the context of the question. • Intermediate Entity (Mid@). The intermediate node in the reasoning chain, obtained through the first reasoning step from the constraint entity. It connects two reasoning steps and must be inferred by the user, never stated explicitly. • Answer Entity (Ans@). The endpoint of the reasoning chain and the final answer requested by the user. Triple Selection Principles • Subset selection. Select a subset of triples from the given set as the evidence basis. Prefer strong constraints that lead to clear, unambiguous answers. • Avoid redundancy. If a triple already infers B from A, do not select another path that also infers B (no shortcuts allowed). • Necessity. Every selected triple must contribute to the reasoning chain; no irrelevant triples are permitted. Question Design Principles • Information sources. All information must come exclusively from the selected triples. No external knowledge may be used; the question must be verifiable via a SPARQL query on Wikidata. • Reasoning forms. The question may adopt single-hop reasoning, multi-hop reasoning, intersection queries, union queries, counting, or reverse reasoning. • Answer requirements. The answer must be derived entirely from selected triples and directly verifiable via a SPARQL query. • Path guidelines. A Path is an explanation of the reasoning process, expressed as a reasoning chain describing how the answer is derived. SPARQL Query Requirements • The generated SPARQL must be syntactically correct and executable on the Wikidata Query Service (WDQS). • Query results must accurately correspond to the answer of the question. • For multi-hop questions, the SPARQL must clearly reflect intermediate variables in the reasoning process. Entity Usage Rules in Questions ✓ Only constraint entities (question premises) may be explicitly mentioned. ✓ The question must ask for the answer entity (final target). × The specific name of any intermediate entity must never appear explicitly in the question. × Intermediate entities must only be implicitly implied through relational wording. × Avoid redundancy: if the answer can be uniquely determined with fewer triples or entities, the question is redundant and must be revised. U SER P ROMPT Relevant Triple Information: #{Relevant triple information}

22

Table 18: Prompt for backward expansion. Complex Question Generation Prompt S YSTEM P ROMPT You are an expert agent specializing in Knowledge Graph Question Answering (KGQA) data synthesis. Select an Anchor Node from a given set of entities and generate a high-quality sub-question that can uniquely identify/locate this anchor entity within the Knowledge Graph. Standard Operating Procedure: Step 1 Select an entity as the Anchor Node and call retrieve_entity_neighborhood to fetch its neighboring triples. Step 2 Call select_triples_and_generate_subquestion to choose relevant triples and generate the subquestion. Step 3 Call verify_subquestion to validate the accuracy and check for redundancy of the generated question. Step 4 If validation passes, return the final result in <answer>{. . . }</answer> format. If it fails, return to Step 2 and retry. Strict Constraints: Prohibited: × No shortcuts. Do not skip any steps or generate the final answer directly. × No tool-less answers. Never return <answer> without having successfully executed the required tool calls. × No preconceptions. Do not assume or hallucinate knowledge before receiving tool outputs. × Redundancy rule. If verify_subquestion flags the question as “redundant,” it means the anchor entity can be uniquely identified using fewer triples or fewer entities in the question. You must retry Step 2. Required: ✓ Sequential execution. Strictly follow the 1 → 2 → 3 → 4 workflow. ✓ Careful observation. Analyze the output of each tool before proceeding to the next step. ✓ Final approval. Only output the final result after verify_subquestion returns a success status. U SER P ROMPT Output Format: The final answer must be returned as a JSON object wrapped within <answer></answer> tags: JSON Format If a question cannot be generated, return: <answer>do not generate question</answer> Input Entity Information: Please select one entity from the list below to serve as the Anchor Node (the answer entity) and generate a sub-question for it: {entity_info}

23

Table 19: Prompt for trajectory distillation. Trajectory distillation Prompt S YSTEM P ROMPT You are a Knowledge Graph QA Assistant. Your task is to explore the knowledge graph only by calling the provided function tools, and answer questions based on the retrieved triplet information. Core Principles (Strictly Mandatory): 1. Tool-first. You must call at least one tool before giving any answer. Do not answer from memory or guess. If you have not yet received tool results, your next action must be a tool call, not <answer>. 2. No direct answers. You must not use your own internal knowledge; all information must be obtained from the knowledge graph via function calls. 3. Show reasoning. Before each function call, briefly explain its purpose; after the call, summarize the information obtained. 4. Evidence-based. Text inside <answer>. . . </answer> must be only entity name(s) that appeared in the last relevant tool response(s). 5. Step-by-step exploration. Explore relationships first, then retrieve entities, avoiding blind calls. Available Functions: {tool_call} Workflow: Step 1: Understand the Question. Analyze question type (one-hop, multi-hop, intersection, constraint, hybrid). Identify entities from Entity info. Plan initial exploration. Step 2: Choose Function Strategy. • Unknown relations: start with find_outgoing_relations or find_incoming_relations. • Known relation: use get_tail_entities or get_head_entities. • “Both A and B” / “satisfies both”: get set A, get set B, then intersect([set_A, set_B]). • “Among X, which has attribute = value”: get set X, then get_entity_by_constraint. Step 3: Execute Exploration. 1. Start with the given entity: call find_outgoing_relations or find_incoming_relations. Use entity names from Entity info (no QID); use exact relation names from find_*_relations. 2. Based on question, call get_tail_entities or get_head_entities. 3. For “Both A and B” questions: get set for A, get set for B, then call intersect once. 4. For constraint questions: (a) obtain candidate set; (b) call get_entity_by_constraint(entity_set, relation, "=", value) once. 5. If multi-hop needed, repeat for new entities. Use intersect or union when merging. Step 4: Generate Answer. • As soon as a tool returns a result that uniquely answers the question, output <answer>. . . </answer> immediately; do not call more tools. • Put inside <answer>. . . </answer> only entity name(s) that appeared in tool response(s). • If max steps are reached without a clear answer: <answer>Cannot find the answer from the knowledge graph.</answer> U SER P ROMPT Question: {question} Entity info: {entity_info} Please start by calling tools, then use the observations to decide the next step. Answer only after you have tool evidence.

24

Table 20: Prompt of the FoG agent in training and evaluation. FoG Training and Evaluation Prompt S YSTEM P ROMPT You are a knowledge graph question answering assistant. You answer user questions by interacting with a knowledge graph. When a user provides a question and its associated entities, you call tools to query the knowledge graph accordingly. No matter how complex the question is, you will not give up until you believe an answer can be found based on the available information. • Comprehensive analysis. Combine external triple information obtained through tools to perform analysis and provide a complete answer. • Working principles. Clearly analyze the problem, select appropriate tools, invoke them to obtain information, and ensure the problem is solved efficiently. U SER P ROMPT <tools> tools definition </tools> The assistant operates in one or more cycles of (thinking → tool call → tool response), followed by a final (thinking → answer) step. All intermediate processes are enclosed within their respective tags. Multiple thinking steps, tool calls, and responses may appear in sequence. Example Response: <think> thinking process here </think> <kg-query>{"name": "tool name", "arguments": {"param": value, ...}}</kg-query> <information> tool_response here </information> <think> thinking process here </think> <kg-query> {"name": "another tool name", "arguments": {...}} </kg-query> <information> tool_response here </information> ... (more thinking, tool calls, and responses) ... <think> thinking process here </think> <answer> answer here </answer> User Input: Question: {question} Entity info {entity_name}

25

Related documents

Record · ID 1473658 · SHA-256 af4a2258860c352d
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive