Travel Back To Move Forward: Retrospective Exploration and Evolving for Long Horizon Agents

Ziang Ye, Wentao Shi, Lei Chen, Zhengzhou Cai, Yu Wang +5 more
10/9/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Large language model agents increasingly operate in long-horizon environments where early mistakes can trigger cascading failures and trap agents in dead-end trajectories. Agents must therefore be able to proactively recover from such states and turn their exploratory experience into guidance for subsequent decisions.

Show full abstract

We introduce ReTRAIL, a framework that enables agents to rewind the environment to earlier states while preserving valid progress and carrying forward knowledge learned from abandoned exploration. The environment state moves backward while the agent's knowledge continues to move forward. ReTRAIL trains a shared policy with two complementary signals: State-Anchored GRPO compares alternative continuations from revisited states to improve execution, while a branch-advancement reward guides reflection through the progress of subsequent exploration. Experiments across four interactive benchmark MineSweeper, Sokoban, ALFWorld and ScienceWorld show that simply adding a rewind primitive provides limited benefit and can even degrade performance. In contrast, ReTRAIL enables agents to rewind from unproductive states and use insights from abandoned branches to guide subsequent exploration. These results demonstrate the value of coupling environment rewinding with experience reuse within an ongoing task for long-horizon task solving. The code is available at https://github.com/whi497/ReTRAIL.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ye2026travel,
  title  = {Travel Back To Move Forward: Retrospective Exploration and Evolving for Long Horizon Agents},
  author = {Ziang Ye and Wentao Shi and Lei Chen and Zhengzhou Cai and Yu Wang and Zhiyuan Yao and Zihan Wang and Xierui Song and Fuli Feng and Yixin Cao},
  year   = {2026},
  eprint = {2610.13058},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.13058v1}
}

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

Discussion