GraphPO: Graph-based Policy Optimization for Reasoning Models

Yuliang Zhan, Xinyu Tang, Jian Li, Dandan Zheng, Weilong Chai, Jingdong Chen, Jun Zhou, Ge Wu, Wenyue Tang, Hao SunarXiv 2026

TL;DR

GraphPO introduces a novel reinforcement learning framework that structures LLM reasoning rollouts as a Directed Acyclic Graph (DAG) rather than independent chains or trees. By merging semantically equivalent reasoning states, it eliminates exploration redundancy, reallocates token budgets to novel frontiers, and derives dense process supervision from sparse outcome rewards.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR) has become the go-to paradigm for boosting the capabilities of Large Reasoning Models (LRMs). However, standard RLVR samples full response chains independently, leading to two major inefficiencies:

  1. Sparse Rewards: Models only receive a binary success/failure signal at the very end of a long reasoning chain, making credit assignment for intermediate steps incredibly difficult.
  2. Redundant Exploration: Independent rollouts frequently repeat identical or semantically equivalent intermediate reasoning steps, wasting massive amounts of compute.

While tree-based RL methods mitigate this slightly by sharing early prefixes, they still treat diverged branches as entirely independent. If two separate branches happen to arrive at the same semantic sub-problem later in their paths, a tree structure cannot recognize this overlap, resulting in duplicated effort and high-variance advantage estimations.

Figure 1: Comparison of rollout strategies. (a) Chain rollouts sample independent trajectories. (b) Tree rollouts share prefixes. (c) Graph rollouts merge semantically similar states.

Methods

GraphPO (Graph-based Policy Optimization) addresses these limitations by modeling rollouts as a DAG where edges represent reasoning steps and nodes represent summarized semantic states.

The framework operates in four main stages:

  • Graph Construction: The graph is expanded layer-by-layer. The policy model summarizes the reasoning path up to each node, and these summaries are embedded. Nodes that are semantically similar (determined via cosine similarity above a threshold $\kappa$) are virtually merged into equivalence classes.
  • Budget Reallocation: When a rollout path hits an already discovered equivalence class, GraphPO halves its remaining budget for that branch and reallocates the saved compute to explore novel frontier states.
  • Graph Reward: To combat sparse rewards, GraphPO pools outcome scores across equivalent nodes. It computes a step-level edge reward based on the value difference between connected states, discounting repetitive steps based on endpoint similarity.
  • Dual-Group Graph Advantage: The policy is optimized using a PPO-style objective driven by two distinct advantage groups:
  • Step Correctness Group: Compares outgoing steps from the same semantic state to reward paths that lead to correct answers.
  • Efficiency Group: Compares incoming paths to the same merged state, explicitly rewarding shorter paths to steer the model toward concise reasoning.
Figure 3: Overview of GraphPO. (a) Overall model architecture. (b) Graph Construction via Step- Level Expansion. (c) The resulting RL graph shares downstream successors among merged states. (d) Scoring Nodes and Deriving Graph Step Rewards. (e) Dual-Group Graph Advantage.

Datasets

The authors evaluated GraphPO across multiple models on reasoning and agentic search benchmarks:

  • Mathematical Reasoning: AIME24, AIME25, and MATH500 (trained using the DAPO-Math dataset).
  • General & Coding Reasoning: GPQA and LiveCodeBench.
  • LLM Agent Search Tasks: General AI Assistant (GAIA), WebWalker, BrowseComp, and XBench (trained using ASearcher-35K and WebDancer).

Key Insights and Ideas

  • Trees Still Waste Compute: Empirical analysis revealed that even though tree-based rollouts eliminate early prefix redundancy, their diverged branches still suffer from high semantic redundancy later in the reasoning chain. Graph structures successfully convert this redundancy into exploration efficiency.
  • Suffix Sharing Reduces Variance: Merging equivalent states allows different paths to share downstream correctness signals. This "suffix sharing" provides a much larger pool of terminal samples per node, drastically reducing the variance of advantage estimates.
  • Mitigating Bloat via Efficiency Penalties: Deeper tree expansions often incentivize models to generate longer, more redundant steps because it gives them more chances to stumble upon a correct answer. GraphPO's path-level efficiency advantage explicitly breaks these ties, driving the policy toward the shortest correct path.

Key Results

GraphPO consistently outperformed both chain-based (GRPO, DAPO) and tree-based (TreeRL, SPO, PROS, TreePO) baselines across three different LLMs (Qwen2.5-7B-Math, Qwen3-8B-Base, and DeepSeek-R1-Distill-Qwen-7B) under identical token or response budgets.

  • Accuracy Boosts: On Qwen2.5-7B-Math, GraphPO achieved an average accuracy of 40.9%, outperforming the best tree baseline (PROS at 37.7%) and standard DAPO (34.1%). Similar gains were observed across all models.
  • Response Efficiency: Unlike tree-based methods, which showed a tendency for response lengths to bloat during training, GraphPO steadily reduced response lengths while improving accuracy, demonstrating superior inference efficiency.
Table 1: Performance comparison of different methods on various reasoning benchmarks. We report Accuracy (%) for each benchmark. The best performance for each benchmark is highlighted in bold.

Limitations and Future Work

The current implementation of GraphPO focuses primarily on text-based mathematical reasoning and sequential agent search tasks. The authors note that they have not yet systematically explored its effectiveness in broader, more complex settings, such as multimodal reasoning, code generation with execution feedback loops, or long-horizon interactive environments.

Summary updated

BibTeX
@misc{zhan2026graphpo,
  author = {Yuliang Zhan and Xinyu Tang and Jian Li and Dandan Zheng and Weilong Chai and Jingdong Chen and Jun Zhou and Ge Wu and Wenyue Tang and Hao Sun},
  title = {{GraphPO: Graph-based Policy Optimization for Reasoning Models}},
  year = {2026},
  eprint = {2606.18954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.18954},
}
Figure