Rollback the World, Keep the Reflection: Rollback-Induced Reflection for Long-Horizon LLM Agents

Yi Yu, Liuyi Yao, Yaliang Li and colleagues at Wuhan University and Alibaba Group propose Rollback-Induced Reflection, which restores an agent's environment to an earlier state while keeping lessons from the abandoned trajectory.
Ask this paper
Recovery as boundary control: The method decides when to intervene, where to resume and what information to keep.
Unified operator: Recovery is described by an operator over rollback depth and retained memory, covering context-only correction and plain state restoration as special cases.
Results: On three long-horizon benchmarks RIR improves task performance across several backbones, with structured reflection memory and selective rollback both contributing.
Abstract
Large language model (LLM) agents increasingly tackle long-horizon tasks through multi-step environment interaction, yet a single erroneous action can alter subsequent states and observations, causing errors to compound over time. Existing methods either correct the context without repairing altered environment states or restore earlier states while discarding useful experience, making it difficult to both eliminate failure conditions and avoid repeating past mistakes. We argue that reliable recovery should instead be treated as a rollback-boundary control problem that jointly determines when to intervene, where to resume, and what information should survive recovery. Based on this view, we propose Rollback-Induced Reflection (RIR), a unified recovery framework that restores execution to a selected prior state while carrying forward reusable knowledge distilled from the abandoned trajectory to guide subsequent decisions. We further characterize recovery through a unified operator over rollback depth and retained memory, providing a general view of state restoration and knowledge retention. Experiments on three long-horizon benchmarks demonstrate that RIR consistently improves task performance across multiple LLM backbones, with structured reflection memory preserving useful experience and selective rollback enabling efficient recovery.