Search-on-Graph-R1: Training Large Language Models to Search Knowledge Graphs with Reinforcement Learning

· Source: Computation and Language · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

Search-on-Graph-R1 (SoG-R1) is a novel approach for Knowledge Graph Question Answering (KGQA) that internalizes graph navigation into a compact 8B language model. Unlike costly frontier LLM methods relying on retrieval tools, SoG-R1 employs supervised fine-tuning (SFT) followed by reinforcement learning (RL). Its core innovation involves scaffolding a frontier teacher with gold SPARQL queries, enabling it to traverse known answer-bearing paths using a live "Search" tool against a Freebase server, ensuring grounded trajectories. The 8B SoG-R1 model surpasses all compared frozen frontier-LLM systems on WebQSP, CWQ, and GrailQA, achieving the strongest results on CWQ. It operates without auxiliary inference modules or LLM judges during training, demonstrating complementary gains from SFT and RL and improved efficiency in "Search" calls.

Key takeaway

For Machine Learning Engineers developing Knowledge Graph Question Answering systems, consider adopting the Search-on-Graph-R1 approach. By internalizing graph navigation into a compact 8B model through SFT and RL, you can achieve superior performance compared to frontier LLMs, especially on benchmarks like CWQ, while significantly reducing deployment costs and complexity. Evaluate this method for your specific KGQA needs to optimize both accuracy and operational efficiency.

Key insights

Internalizing KG navigation into compact LLMs via SFT and RL outperforms frontier models, reducing cost and complexity.

Principles

Method

SoG-R1 trains an 8B model using supervised fine-tuning, followed by reinforcement learning. It scaffolds a frontier teacher with gold SPARQL queries to generate grounded trajectories against a live Freebase server.

In practice

Topics

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Computation and Language.