GraphDancer: Training LLMs to Explore and Reason over Graphs via Curriculum Reinforcement Learning

Yuyang Bai, Zhuofeng Li, Ping Nie, Jianwen Xie, Yu Zhang
1/24/2026
cs.LGcs.AIcs.CL

No official code found. Best implementation: leopoldwhite/GraphDancer (20 stars, last commit 2026-02-04).

Abstract

Large language models (LLMs) increasingly rely on external knowledge to improve factuality, yet many real-world knowledge sources are organized as heterogeneous graphs rather than plain text. Reasoning over such graph-structured knowledge poses two key challenges: (1) navigating structured, schema-defined relations requires precise function calls rather than similarity-based retrieval, and (2) answering complex questions often demands multi-hop evidence aggregation through iterative information seeking. We propose GraphDancer, a reinforcement learning (RL) framework that teaches LLMs to navigate graphs by interleaving reasoning and function execution. To make RL effective for moderate-sized LLMs, we introduce a graph-aware curriculum that schedules training by the structural complexity of information-seeking trajectories using an easy-to-hard biased sampler. We evaluate GraphDancer on a multi-domain benchmark by training on one domain only and testing on unseen domains and out-of-distribution question types. Despite using only a 3B backbone, GraphDancer outperforms baselines equipped with either a 14B backbone or GPT-4o-mini, demonstrating robust cross-domain generalization of graph exploration and reasoning skills. Our code and models can be found at https://yuyangbai.com/graphdancer/ .

View on arXivView PDF

Code Implementations(1)

GraphDancer: Training LLMs to Explore and Reason over Graphs via Curriculum Reinforcement Learning

200Shell, PythonJan 24, 20268 months ago

Similar Papers

Cite this paper

@article{bai2026graphdancer,
  title  = {GraphDancer: Training LLMs to Explore and Reason over Graphs via Curriculum Reinforcement Learning},
  author = {Yuyang Bai and Zhuofeng Li and Ping Nie and Jianwen Xie and Yu Zhang},
  year   = {2026},
  eprint = {2602.02518},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.02518v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.02518.svg)](https://codeofpaper.com/paper/2602.02518)

Discussion