{"id":"arxiv:2610.13020","kind":"preprint","title":"Trajectory-Aware Policy Optimization: Closing the State Distribution Gap in Long-Horizon LLM RL","authors":["Zhicheng Cai","Hanlin Wu","Weinan Dai","Yuyan Zhou","Wei-Ying Ma","Ya-Qin Zhang","Hao Zhou"],"author_count":7,"year":2026,"published":"2026-10-09","venue":null,"cited_by":null,"doi":null,"arxiv_id":"2610.13020","nct_id":null,"source_url":"https://arxiv.org/abs/2610.13020","archive_url":"https://space-kitty.com/papers/arxiv:2610.13020","updated":"2026-10-27","pmid":null,"pmcid":null,"openalex_id":null,"pdf_url":"https://arxiv.org/pdf/2610.13020","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.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":false,"retracted":false,"peer_reviewed":false,"categories":["cs.LG"],"details":null,"provenance":"arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[],"cited_in_dossiers":[]}