Plan Then Retrieve: Reinforcement Learning-Guided Complex Reasoning over Knowledge Graphs

Yanlin Song, Ben Liu, Víctor Gutiérrez-Basulto, Zhiwei Hu, Qianqian Xie, Min Peng, Sophia Ananiadou, Jeff Z. Pan

TL;DR

Graph-RFT is a new framework that teaches Large Language Models (LLMs) to answer complex questions by treating Knowledge Graphs (KGs) and the web as dynamic tools. By combining structured planning with a two-stage reinforcement learning process, it enables models to autonomously decompose hard problems and adaptively switch to web search when a Knowledge Graph is incomplete.

What Problem Does This Paper Address?

Knowledge Graph Question Answering (KGQA) is the art of getting a computer to answer natural language questions using structured data (triples like [Inception, directed_by, Christopher Nolan]). Currently, there are two main ways to do this: Semantic Parsing, which turns questions into code (like SPARQL), and Retrieval-Augmented Generation (RAG), which fetches relevant facts to help the LLM.

However, both methods hit a wall in the real world for two reasons:

  1. The "Incomplete World" Problem: Most KGs are missing data. Existing methods often assume the KG is a perfect source of truth and fail when a required fact isn't there.
  2. Myopic Reasoning: LLMs often struggle with multi-step "hops." They might answer the first part of a question correctly but lose the plot by the third step because they lack a global plan.

The authors tackle these gaps by moving away from "retrieve then think" toward a "plan then retrieve" paradigm.

Methods

The authors introduce Graph-RFT, a two-stage reinforcement fine-tuning framework:

  1. Stage 1: Reasoning Activation (SFT): To avoid the "cold-start" problem where an RL agent just flails around at the beginning, they first perform Supervised Fine-Tuning (SFT). They used a high-quality dataset of "Chain-of-Thought" trajectories where the model learns to decompose questions into sub-problems using logical functions (like intersect or union).
  2. Stage 2: RL-based Enhancement: They use Group Relative Policy Optimization (GRPO) to refine the model. The "secret sauce" here is a multi-reward design:
  3. Outcome Reward: Did it get the right answer?
  4. Retrieval-Specific Reward: This encourages the model to use the KG efficiently and penalizes it for jumping to a web search if the answer was already available in the KG.

The model follows a "think-decompose-retrieve-search" workflow. It uses a Cartesian-inspired planning module to break complex questions into ordered sub-questions and invokes specific tools: relation_search and neighbor_search for the KG, and a web_search tool for everything else.

Datasets

The researchers evaluated Graph-RFT on four major KGQA benchmarks:

  • CWQ (Complex WebQuestions): 4-hop complex questions.
  • WebQSP: 2-hop questions.
  • GrailQA: 4-hop questions.
  • SimpleQuestions: 1-hop basic questions.

Crucially, they tested these under both Complete Knowledge Graph (CKG) and Incomplete Knowledge Graph (IKG) settings (where up to 40% of triples were removed) to simulate real-world data gaps.

Key Insights and Ideas

  • Planning as a First-Class Citizen: Instead of just "searching," the model explicitly writes out a plan first. This prevents the "drift" often seen in multi-step reasoning where the model forgets the original goal.
  • Learning to Know What You Don't Know: Through the RL reward system, the model learns the "cost" of different tools. It learns that KG search is preferred for precision, but web search is a necessary fallback for coverage.
  • Small Models, Big Results: One of the most striking insights is that a 7B parameter model (Qwen2.5-7B) using this framework can outperform massive models like GPT-4 that rely solely on prompting (In-Context Learning).

Key Results

  • SOTA Performance: Graph-RFT achieved state-of-the-art results across all benchmarks. On the complex CWQ dataset, Graph-RFT-base (7B) scored 80.7%, significantly beating GPT-4 based methods (which scored around 71-76%).
  • Resilience to Incompleteness: When 40% of the KG was removed, other methods saw their performance plummet (e.g., one baseline dropped from 75% to 60%). Graph-RFT remained remarkably stable, effectively "bridging the gap" with its adaptive web search.
  • Efficiency: The ablation studies showed that the "Planning Step" (PS) was the single most important component for multi-hop questions, proving that structured thinking is more valuable than just having more data.

Limitations and Future Work

Despite the gains, the authors noted a few areas for improvement:

  • Reasoning Errors: Even when the right data is retrieved, the model sometimes fails to synthesize the final answer correctly (often due to "answer aliasing" or conflicting info between the KG and the web).
  • Decomposition Flaws: For extremely convoluted questions, the initial planning phase can still fail, leading to a "garbage in, garbage out" scenario for retrieval.
  • Future Directions: The team plans to explore better "relation filtering" to make KG searches even more precise and to improve the model's ability to handle conflicting information from multiple sources.

Summary updated

BibTeX
@inproceedings{song2026plan,
  author = {Yanlin Song and Ben Liu and Víctor Gutiérrez-Basulto and Zhiwei Hu and Qianqian Xie and Min Peng and Sophia Ananiadou and Jeff Z. Pan},
  title = {{Plan Then Retrieve: Reinforcement Learning-Guided Complex Reasoning over Knowledge Graphs}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792191},
}
Figure