TrajEvolve: Trajectory Evolution for Reinforcement Learning with Hindsight Credit Assignment

Yi Wen, Hao Chen, Wanyu Wang, Maolin Wang, Pengyue Jia +7 more
10/20/2026
cs.AI

No official code found. Best implementation: wenyiwy99/TrajEvolve (0 stars, Apache-2.0, last commit 2026-10-18).

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS 2026] TrajEvolve: Trajectory Evolution for Reinforcement Learning with Hindsight Credit Assignment

01Oct 18, 20262 days agoApache-2.0

Similar Papers

Cite this paper

@article{wen2026trajevolve,
  title  = {TrajEvolve: Trajectory Evolution for Reinforcement Learning with Hindsight Credit Assignment},
  author = {Yi Wen and Hao Chen and Wanyu Wang and Maolin Wang and Pengyue Jia and Derong Xu and Huize Tan and Yingyi Zhang and Wenlin Zhang and Weihong Luo and Xiku Du and Xiangyu Zhao},
  year   = {2026},
  eprint = {2610.28060},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.28060v1}
}

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/2610.28060.svg)](https://codeofpaper.com/paper/2610.28060)

Discussion