cs.AIOct 20, 2026

TrajEvolve: Trajectory Evolution for Reinforcement Learning with Hindsight Credit Assignment

Authors: Yi Wen, Hao Chen, Wanyu Wang, Maolin Wang, Pengyue Jia, Derong Xu, Huize Tan, Yingyi Zhang, 

Organizations: City University of Hong Kong · Tencent · Nanjing University

Abstract

The Reinforcement Learning (RL) paradigm has achieved remarkable success in enhancing the reasoning capabilities of Large Language Models (LLMs). However, when applied to long-horizon tasks, it faces severe challenges: i) Due to the high task complexity, the model struggles to sample enough successful trajectories, resulting in slow convergence. ii) Relying solely on sparse final rewards causes all steps to be updated indiscriminately, encouraging redundant step generation. When both the quantity and quality of successful trajectories become difficult to guarantee, the performance is severely constrained. This dilemma stems from the limitations: existing RL paradigms rely entirely on the reasoning capability of base models, lacking the ability to actively optimize trajectories. To address the above issues, we propose a novel trajectory evolution paradigm with hindsight credit assignment, termed TrajEvolve. TrajEvolve not only relies on the trajectory inferred by the model but also generates ``evolutionary trajectories'' by refining low-quality steps in historical trajectories, thereby exposing the policy to high-quality compositions that lie within the base model's support but are rarely sampled within practical training budgets. Furthermore, TrajEvolve reformulates step-level continuous credit assignment as a binary classification task, whether each step is necessary for task completion. This simplification not only reduces the learning difficulty but also enables step labels to be obtained through counterfactual verification, achieving precise identification of redundant steps. Extensive experiments on two datasets demonstrate the superiority of the proposed method.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Trajectory-Aware Policy Optimization: Closing the State Distribution Gap in Long-Horizon LLM RL

    Oct 9, 2026Zhicheng Cai, Weinan Dai, Yuyan Zhou +3Long-Horizon RLReinforcement Learning

  2. Hindsight Credit Assignment for Long-Horizon LLM Agents

    Mar 7, 2026Hui-Ze Tan, Xiao-Wen Yang, Hao Chen +7Credit Assignment in RLLong-Horizon LLM Agents

  3. STRIDE: Learnable Stepwise Language Feedback for LLM Reasoning

    May 13, 2026Junjie Zhang, Guozheng Ma, Shunyu Liu +5RL for Language Model ReasoningProcess Supervision