Trajectory-Aware Policy Optimization: Closing the State Distribution Gap in Long-Horizon LLM RL
Zhicheng Cai, Weinan Dai, Yuyan Zhou, Wei-Ying Ma, Ya-Qin Zhang, Hao Zhou
Key points
From the paper's conclusion- To close the state distribution gap, we propose Trajectory-Aware Policy Optimization (TAPO), a principled framework that theoretically derives the state-distribution correction from the off-policy policy gradient and incorporates it into the RL objective.
Abstract
Reinforcement learning (RL) has become a dominant paradigm for enhancing LLMs' reasoning capabilities. Yet long-horizon autoregressive rollouts introduce a fundamental limitation: local policy mismatch can compound into severe state distribution shift over trajectories. Existing LLM RL methods, such as GRPO and GSPO, control policy mismatch at the token or sequence level, but overlook this trajectory-induced shift, causing training instability and eventual collapse as the horizon grows. To close the state distribution gap, we propose Trajectory-Aware Policy Optimization (TAPO), a principled framework that theoretically derives the state-distribution correction from the off-policy policy gradient and incorporates it into the RL objective. TAPO further employs a geometric-mean estimator for variance reduction, together with a length-aware dynamic clipping that prevents overly deviated updates across the trajectory. Extensive experiments demonstrate that TAPO significantly surpasses existing LLM RL algorithms across eight competition-level benchmarks, achieving up to 48% and 12% improvement over GRPO on mathematical reasoning and algorithmic coding, with substantially enhanced training stability.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- RollVerify: Bridging Efficiency and Accuracy in Long-Tail Rollout Reinforcement LearningarXiv · 2026
- When Does External Guidance Help LLM Reasoning? A Bias-Variance Theory of Guidance-Augmented GRPOarXiv · 2026
- EPIC: Rethinking Trust Regions for Autoregressive LLM Policies via Exact-KL Prefix Importance-Ratio ClippingarXiv · 2026
- Generalized Proximal Policy Optimization: Unifying LLM RL Algorithms from the Perspective of DivergencearXiv · 2026
- Rethinking Training-Inference Mismatch in LLM Reinforcement Learning: Where It Arises and How to Correct ItarXiv · 2026
- Bayes-Adaptive MDPs for Rollout Allocation to Enhance GRPO TrainingarXiv · 2026