Failed interactions can reveal evidence for revisiting earlier decisions, yet a terminal reward does not specify where to intervene or what action to try. We introduce ReBranch, which turns the agent's failures into revision tasks: given a completed history, the policy proposes a revision position and a replacement action. Retrospective branching evaluates each proposal through independent execution using the original task reward. Direct trajectories and revision proposals jointly train one policy; branch rewards update proposal tokens, with evaluation continuations excluded from revision loss. The updated policy collects fresh experience and supplies new failures, forming an online self-evolution loop without additional correction annotations during RL. Across WebShop, ALFWorld, and ScienceWorld, ReBranch with Qwen3-4B achieves average success rates of 78.1% under direct execution and 88.3% with one revision, exceeding GRPO by 1.7 and 8.7 percentage points, respectively. The larger advantage appears with revision, which reaches 90.6% success on WebShop and 74.3% on ScienceWorld. On 200 fixed failures, controlled interventions show that concrete replacement actions improve recovery beyond rerunning execution at the same positions. Online feedback analysis shows additional reward contrasts from failed experience; fixed-pool analysis identifies repeatable recoveries, persistent failures, and score regressions.
翻译:暂无翻译