Backjump-on-Graph: Empowering Large Language Models with Reinforced Retrospective Exploration for Agentic Knowledge Graph Reasoning

Yunqi Zhang, Shiqi Yan, Zhenzhao Yuan, Wenrui Liang, Yangming Liu, Zhixiao Qi, Tianyi Zhang, Shijie Zhang, Wei-Qiang Zhang, Yongfeng Huang, Haixin Duan, Shuai Chen, Yubo ChenICML 2026

Introduction

Grounding Large Language Models (LLMs) in Knowledge Graphs (KGs) is a highly effective strategy for mitigating hallucinations in complex Question Answering (QA) tasks. However, because KGs are massive and LLMs have limited context windows, researchers typically deploy LLM-based "agents" to navigate the graph one hop at a time.

This step-by-step approach introduces a significant challenge: the semantic gap. A user might ask about a movie's "cinematic universe," but the KG might store that relationship under specific, less intuitive relations like "prequel" or "sequel." If an agent greedily follows a path that seems semantically aligned with the query but is structurally a dead end (a "topological trap"), it usually gets stuck. Existing agents either lack backtracking capabilities entirely or can only retreat a single step, which is often insufficient for complex, multi-hop reasoning.

To address this, researchers have introduced Backjump-on-Graph (BoG), a novel framework that empowers LLM agents to escape dead ends by retrospectively jumping back to previous decision points, allowing them to explore complex data structures more efficiently.

The Backjump-on-Graph (BoG) Framework

BoG treats KG reasoning as a flexible, trial-and-error exploration process. The methodology is built on three core pillars:

1. Formalized Atomic Operations

Instead of relying on generic movement commands, the agent is equipped with four specific navigation actions:

  • Forward: Move to a neighboring node in the graph.
  • Backjump: Instantly revert to any previously visited node stored in the agent's memory, bypassing the need to backtrack step-by-step.
  • Yield: Mark a node as a potential answer without prematurely terminating the search.
  • Halt: Conclude the reasoning process once the final answer is confidently identified.

2. Supervised Fine-Tuning (SFT)

To teach the LLM how to utilize these backjump tools, the researchers synthesized a dataset of reasoning trajectories. Using a powerful teacher model guided by "oracle" paths (discovered via Breadth-First Search), they generated demonstrations of how to successfully navigate KGs and recover from topological traps.

3. Reinforcement Learning via GRPO

The model is further optimized using Group Relative Policy Optimization (GRPO). A hybrid reward function was designed to balance four critical objectives:

  • Format: Adherence to the required JSON output structure.
  • Faithfulness: Ensuring the reasoning is strictly grounded in actual graph facts (verified by an auxiliary LLM).
  • Outcome: Achieving the correct final answer (measured by F1 score).
  • Efficiency: Penalizing excessively long paths to encourage "failing fast" and jumping to more promising nodes.

Key Insights and Results

The authors evaluated BoG on three major multi-hop KGQA benchmarks: WebQSP (fact-based questions), CWQ (compositional reasoning), and GrailQA (generalization to unseen domains).

  • State-of-the-Art Accuracy: BoG consistently outperformed existing retrieval-based and agent-based baselines. On the challenging CWQ dataset, BoG (powered by Llama-3.1-8B) achieved a Hits@1 of 84.0%, a massive improvement over previous agents like KG-Agent (72.2%) and PoG (75.0%). It even outperformed closed-source giants operating within the same agentic framework.
  • Non-Local Recovery: The framework proves that simple backtracking is insufficient. By allowing the agent to "backjump" to a pivotal junction several steps back, it can entirely bypass semantically deceptive branches of the graph.
  • RL Drives Efficiency: The Reinforcement Learning phase did more than boost accuracy; it fundamentally improved search efficiency. The RL-optimized model took significantly shorter paths (averaging 3.6 steps compared to 5.3 for the SFT-only version) because it learned to recognize dead ends earlier.
  • Transferable Search Logic: BoG demonstrated remarkable Out-of-Distribution (OOD) performance. A model trained on one dataset could navigate effectively on a completely different graph, indicating it learned a generalized exploration strategy rather than just memorizing specific dataset paths.

Limitations and Future Work

While BoG represents a significant leap forward for agentic KG reasoning, the authors note a few limitations. First, the current framework assumes "oracle" entity linking, meaning it knows exactly which KG node the question starts with; in real-world applications, initial linking errors would propagate through the reasoning chain. Second, the weights for the hybrid reward function are currently static, suggesting that adaptive, learnable reward weights could yield future improvements. Finally, while the agent's memory is efficient, extremely deep reasoning tasks requiring dozens of jumps could eventually hit the LLM's context window limit, and the use of an LLM-based verifier during RL adds computational overhead to the training phase.

Summary updated

BibTeX
@inproceedings{zhang2026backjump,
  author = {Yunqi Zhang and Shiqi Yan and Zhenzhao Yuan and Wenrui Liang and Yangming Liu and Zhixiao Qi and Tianyi Zhang and Shijie Zhang and Wei-Qiang Zhang and Yongfeng Huang and Haixin Duan and Shuai Chen and Yubo Chen},
  title = {{Backjump-on-Graph: Empowering Large Language Models with Reinforced Retrospective Exploration for Agentic Knowledge Graph Reasoning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=krRRnq3E1w},
}
Figure