Search-on-Graph-R1: Training Large Language Models to Search Knowledge Graphs with Reinforcement Learning
The paper introduces Search-on-Graph-R1, an 8B-parameter model that achieves state-of-the-art performance in Knowledge Graph Question Answering by internalizing graph navigation through supervised fine-tuning and reinforcement learning, outperforming larger frontier LLMs without requiring auxiliary modules or LLM judges during inference.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to solve a massive, multi-step mystery, like figuring out who the mayor of a city is, but only if that city grows a specific type of rare tree. To solve this, you can't just rely on your own memory; your brain might have forgotten the name of the tree or the city, or it might be mixing up facts from old movies. Instead, you need a map. In the world of artificial intelligence, this map is called a Knowledge Graph. It's a giant, digital web where every fact is a dot (an entity) connected by lines (relationships). If you want to find an answer, you have to "hop" from dot to dot, following the lines until you land on the right one.
For a long time, the smartest computer brains (called Large Language Models or LLMs) were like brilliant detectives who had read every book in the library but couldn't read the map. They had to guess the answer based on what they remembered, which often led to mistakes. Newer methods taught these models to stop guessing and start using a "search tool" to hop across the map, but the models doing the searching were like expensive, super-powerful robots that cost a fortune to run and were too slow for real-world use. The big question for scientists became: Can we teach a smaller, cheaper, faster robot to do this same map-hopping detective work just as well, without needing the expensive robot's help?
This is exactly what the paper Search-on-Graph-R1 (SOG-R1) sets out to do. The researchers built a clever training system to teach a compact, 8-billion-parameter AI model (a "student") how to navigate these knowledge maps on its own. Instead of just letting the student guess, they created a "teacher" robot that already knew the secret path to the answer. But here's the trick: the teacher didn't just whisper the answer; it was given the map's blueprint (a special query called SPARQL) and told to walk the path step-by-step using the same search tool the student would use. As the teacher walked, it recorded every move, every dead end it avoided, and every fact it found from the live database.
The student then learned from these recorded journeys in two stages. First, it practiced by mimicking the teacher's footsteps (Supervised Fine-Tuning), learning how to ask the right questions and read the map. Second, it played a game where it tried to find answers on its own, getting points for being correct and extra points for being fast (Reinforcement Learning). The result? This small, 8-billion-parameter student became a master detective. On three major testing grounds (WebQSP, CWQ, and GrailQA), it outperformed every single "frozen" super-robot system the researchers compared it against, including those powered by the most advanced, expensive models available.
What makes this even more impressive is that the student didn't just get better at finding answers; it got smarter about how it searched. While the teacher's path was perfect, the student learned to take shortcuts. It figured out how to reach the same answers using fewer search calls than it did when it was just copying the teacher. The researchers found that this method works even if you swap the student for a different type of model, proving that the training technique itself is the secret sauce. Crucially, the paper rules out the idea that the model needs to memorize the entire map or rely on a second "judge" robot to grade its work during training. Instead, the model learned to trust the live search tool and the logic of the path itself. By the end of the training, this small, efficient AI could navigate complex knowledge webs faster and more accurately than its much larger, more expensive counterparts, all without needing any extra helpers or expensive hardware during the actual search.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.