arXiv:2610.08388cs.CLOct 2026

Manuscript Offprint

arXiv:2610.08388

Foresight-over-Graph: Reasoning Beyond Local Horizons for Knowledge Base Question Answering

Yang Hong, Yajun Yang, Xin Wang, Liping Jing, Qinghua Hu

Abstract

Large language models (LLMs) have demonstrated strong capabilities in question answering, yet they still frequently suffer from hallucinations on knowledge-intensive tasks. Knowledge graphs (KGs) provide LLMs with structured, interpretable, and updatable factual grounding, making them a promising external knowledge source for reliable reasoning. However, existing LLM-guided graph reasoning methods typically rely on hop-wise greedy or beam-style pruning during evidence retrieval. Such local decision processes are inherently myopic: evidence that appears weak near the source may become crucial only after deeper graph context is explored, causing answer-critical branches to be discarded prematurely and making the reasoning chain difficult to recover. To address this limitation, we propose Foresight-over-Graph (FoG), a foresight-aware evidence retrieval framework for knowledge base question answering (KBQA). FoG iteratively constructs a question-relevant evidence subgraph and uses far-to-near feedback to guide path exploration, and maintains a compact memory subgraph to support continued exploration. Extensive experiments on widely used KBQA benchmarks demonstrate that FoG achieves state-of-the-art performance, with a particularly large improvement of 16.58% in Hit on CWQ, while also reducing LLM calls and token usage. Our code is available at https://github.com/yhong7/FoG.

1 Introduction

Large language models (LLMs) have recently demonstrated strong capabilities in question answering, yet they often hallucinate when questions require reliable professional or domain-specific knowledge [6, 24, 15]. A straightforward way to inject such knowledge is to continually fine-tune LLMs, but this is typically expensive and inefficient, and still struggles to keep models synchronized with evolving real-world facts [35, 27]. In contrast, knowledge graphs (KGs) provide structured, updatable, and interpretable factual knowledge, offering an effective way to ground LLM-based QA and reduce hallucinations [11, 41, 28, 29, 16].

Recent progress has led to a spectrum of KG-integrated LLM approaches [13, 41, 36, 9]. The core idea of these methods is to retrieve question-relevant entities, relations, or subgraphs from the knowledge graph, and then feed the retrieved results into the LLM to generate the final answer [9, 41]. To better leverage the capabilities of LLMs, recent works propose LLM-guided graph agents that perform search over knowledge graphs hop by hop to enable retrieval-augmented generation [5, 19]. A well-designed LLM-guided agent iteratively chooses which part of the graph to explore, gathering relevant evidence to generate the final answer [7, 5, 19].

∗^{*}Corresponding author.

Accepted for publication at NeurIPS 2026.

However, KGs are typically large-scale and a substantial fraction of nodes are associated with a large number of relations[39, 31]. This makes it intractable to expand all outgoing relations at each hop, because deep multi-hop reasoning leads to an explosion of candidate nodes. Most previous works adopt greedy or beam-style traversal and perform local pruning, keeping only an appropriately sized set of candidate relations (e.g., top-k) at each search step according to the relevance between the question and candidate relations [33, 23]. Although these methods demonstrate strong performance, greedy-based and beam-search-based per-hop pruning still struggles with complex questions that require deep exploration over KGs. The reason is that, in the early stages of search, many relations cannot be distinguished with foresight as to whether they lie on the answer path, which may cause truly answer-relevant relations to be pruned away. Figure 1a shows a toy example, where the question is "Which song performed by singer A won award B?". At the first hop, all the neighbors of the source entity (i.e., singer A) are songs performed by singer A with no significant difference in relevance to the question. Existing methods cannot identify which

Which song performed by singer A won award B?

Singer A Award B Song Irrelevant entity

Existing methods:

Figure

Top-k searching (iter-1)

Top-k searching (iter-2)

(a) Existing methods: local decisions can drop crucial triples early, causing later steps to drift into irrelevant regions.

FoG:

Figure

Foresight modeling

Get the answer

(b) FoG: injects foresight from the expanded frontier to refine retrieval decisions.

Figure 1: Limitations of short-sighted hop-by-hop KG traversal and the intuition behind FoG.

branch leads to the correct answer at this stage, since they have no access to distant entities or evidence (e.g., Award B). As a result, correct triples may be pruned away. Once the critical path is mistakenly pruned, subsequent exploration cannot recover the missing evidence chain, and the search often drifts into irrelevant neighborhoods. A real case study illustrating this failure mode is provided in Appendix D.

To address this limitation, we propose a novel Foresight-over-Graph (FoG) model that identifies which relations are more important for answering the question, thereby avoiding incorrect pruning, as shown in Figure 1b. Given a Q&A task, FoG first extracts source entities from the question and then iteratively expands subgraph from these entities until the answer is found. In each iteration, triples that are irrelevant to the question are discarded, yielding an expanded subgraph with high recall and low noise. We further design a far-to-near message feedback mechanism that propagates question-relevant information from distant entities to entities closer to the source entities, and utilize this information to re-score and prune nearby triples. Finally, the LLM incorporates the graph structure refined by question relevance into its memory and generates new sub-questions to guide the next search iteration. Our main contributions are summarized as follows:

• Bottleneck Identification. We identify a critical bottleneck in existing graph-guided LLM agents: hop-wise greedy/beam pruning is myopic, lacking foresight into distant evidence and leading to irreversible loss of answer-critical triples.

• Proposed Method. We propose Foresight-over-Graph (FoG), which counteracts this short-sightedness with two designs: a far-to-near message feedback mechanism that guides early candidates using distant signals, and a memory subgraph manager that preserves high-confidence evidence across iterations.

• Empirical Analysis. On WebQSP and CWQ, FoG achieves state-of-the-art results, gaining 16.58% in Hit on CWQ while reducing LLM calls and token usage against existing LLM-guided graph agents.

References (42)