Interactive Combinatorial Reinforcement Learning for Knowledge Graph Reasoning

Jun Nie, Yonggang Zhang, Tongliang Liu, Chengqi Zhang, Xinmei Tian, Bo HanNeurIPS 2026

TL;DR

Teaching smaller, open-source language models to reason over structured Knowledge Graphs via reinforcement learning usually fails because the models hallucinate invalid graph paths, leading to dead ends and zero rewards. ICOR fixes this by confining the model's exploration to a retrieved "menu" of valid graph relations and grading its progress through a staged curriculum—from basic syntax to final answers. The result is a nimble 7B local model that rivals giant proprietary systems like GPT-4 on complex multi-hop questions, at a fraction of the time and cost.

What Problem Does This Paper Address?

Answering complex, multi-hop questions using a Knowledge Graph (KG)—a structured network of entities and relationships like (Barack Obama) -> [place_of_birth] -> (Hawaii)—requires an AI agent to iteratively plan, query the graph, and adapt based on what it finds. Today’s best interactive systems rely on massive, closed-source models like GPT-4, which are expensive, slow, and impractical for local deployment.

We want smaller, open-source models (e.g., 7B parameters) to learn this skill. Reinforcement Learning (RL), where a model learns by trial and error, is the natural training ground. However, KGs have strict, sparse schemas. If an unconstrained LLM explores freely, it might guess a linguistically sensible relation like born_in when the database strictly requires place_of_birth. The query crashes, returning nothing. In RL, if nearly every exploratory rollout hits a wall, the reward signal flatlines, and learning grinds to a halt.

Figure 1: Constrained rollout optimization in ICOR. Unlike unconstrained on-policy rollouts that often fail to produce executable graph actions, ICOR constructs a query-conditioned relation subspace so that sampled trajectories are more likely to yield valid execution feedback for GRPO updates.

Methods

The authors introduce ICOR (Interactive Combinatorial Reinforcement Learning), turning graph constraints from post-hoc error checks into the actual boundaries of the RL training playground. It combines standard techniques with two clever twists:

  1. Semantic Action Space Pruning (Novel Application): Before the LLM generates a reasoning path, a lightweight dense retriever (trained via contrastive learning) fetches the top-$K$ ($K=30$) actual KG relations most relevant to the question. Instead of generating free-form text from its entire vocabulary, the LLM’s action space is restricted to composing paths strictly from this retrieved candidate pool.
  2. Cold-Start Initialization (Standard): A 7B backbone (Qwen2.5-7B-Instruct) gets a brief Supervised Fine-Tuning (SFT) warm-up using existing path annotations blended with general instruction data (Alpaca) so it understands the basic task format.
  3. Tiered GRPO Optimization (Novel): Using Group Relative Policy Optimization (GRPO—an RL algorithm that scores a batch of sampled attempts relative to each other), the authors avoid lumping all rewards into one messy score. Instead, they filter rollouts into nested, dependency-aware stages:
  4. Stage 1 optimizes all rollouts for basic format validity and path discovery.
  5. Stage 2 filters for syntactically valid rollouts and optimizes purely for finding a correct graph path.
  6. Stage 3 zooms in only on rollouts that found the right path, optimizing them for final answer accuracy (F1 score).
Figure 2: Faithful Retrieval under ICOR.

Datasets

No new benchmarks were introduced. Evaluation and training relied on established datasets:

  • WebQuestionSP (WebQSP) and Complex WebQuestions (CWQ): Standard multi-hop KGQA benchmarks backed by the Freebase knowledge graph.
  • MetaQA-3hop: Built on the WikiMovies KG, noted for testing cross-graph generalization.
  • RoG annotations & Alpaca: Used as the data mixture for the SFT warm-start phase.

Key Insights and Ideas

  • Probability Amplification: By pruning out invalid vocabulary tokens up front, the probability mass the LLM would have wasted on hallucinations gets reallocated to valid graph transitions. Over a multi-step reasoning chain, this exponentially boosts the odds of sampling an executable path during RL training.
  • Escaping "Signal Interference": In early RL training, if you sum syntax, path, and answer rewards together, a lucky guess on an answer creates high-variance gradient noise that confuses a model still struggling with basic formatting. Computing relative advantages only among "competency-matched" peers (e.g., grading answer quality only among trajectories that already nailed the path) acts as an automatic curriculum and variance reducer.

Key Results

Using a local Qwen2.5-7B-Instruct backbone, ICOR punches well above its weight class:

  • Accuracy: On WebQSP, ICOR reaches 88.8% Hits@1 (whether the top answer is right), outperforming GPT-4-driven interactive baselines like ToG (81.8%) and PoG (87.3%). On the harder CWQ dataset, ICOR hits 69.5% Hits@1 and 61.3% F1, beating ToG with GPT-4 (68.5% Hits@1) and all fine-tuned 7B baselines.
  • Efficiency: On WebQSP, ToG requires an average of 16.3 LLM calls and 63.9 seconds per question. ICOR needs just 3.6 LLM calls and 4.1 seconds, while scoring 7 points higher in Hits@1.
  • Ablations: Moving from a standard "flat" sum of rewards in GRPO to ICOR's staged reward filtering bumps CWQ Hits@1 from 66.7% to 69.5%, confirming the auto-curriculum theory.

Limitations and Future Work

  • Base Model Floor: While ICOR transfers smoothly between 7B and 8B models (Qwen2.5-7B gets 69.5% Hits@1 on CWQ; Llama-3-8B gets 68.6%), dropping down to a 3B model (Qwen2.5-3B) causes performance to crater to 33.4%. ICOR still requires a base model smart enough to compose multi-hop logic.
  • Retriever Bottleneck: Because the action space is locked to the top-$K$ retrieved relations, if the retriever misses a crucial relation, the policy cannot recover. Upgrading to an "oracle" (perfect) retriever pushes WebQSP Hits@1 from 88.8% to 89.6%, pointing to better relation retrieval as a clear avenue for future gains.

Summary updated

Abstract

Knowledge Graph Question Answering (KGQA) increasingly requires multi-turn interaction with knowledge graphs (KGs) to derive final answers. Such interactive capabilities often rely on proprietary large-scale LLMs, which hinders cost-efficient and local deployment. Reinforcement learning offers a scalable alternative for endowing smaller open-source LLMs with multi-turn interaction ability, as it enables models to improve from self-explored interaction trajectories rather than relying on expensive expert demonstrations. However, KGQA presents a distinctive challenge for RL: unlike tasks where exploration can proceed in a relatively unconstrained textual space, KG reasoning is governed by a sparse graph topology. Free-form policy rollouts frequently generate relation sequences that cannot be executed on the graph, making reward signals sparse and unstable. We propose ICOR, an Interactive Combinatorial Reinforcement Learning framework that grounds policy exploration in the combinatorial structure of KGs. ICOR first retrieves a query-specific set of candidate relations and then restricts policy rollouts to relation-path compositions within this graph-derived space. This design increases the likelihood that sampled trajectories are executable and thus informative for policy optimization. Building on this constrained rollout space, ICOR applies GRPO with a staged feedback mechanism that guides learning from structural validity to answer-consistent reasoning. Experiments on multiple KGQA datasets demonstrate the effectiveness of ICOR.
BibTeX
@inproceedings{nie2026interactive,
  author = {Jun Nie and Yonggang Zhang and Tongliang Liu and Chengqi Zhang and Xinmei Tian and Bo Han},
  title = {{Interactive Combinatorial Reinforcement Learning for Knowledge Graph Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8Vo01NLzG6},
}
Figure