Generator-Assistant Stepwise Rollback Framework for Large Language Model Agent

Xingzuo Li, Kehai Chen, Yunfei Long, Xuefeng Bai, Yonggang Xu, Min Zhang

Abstract

Large Language Model (LLM) agents typically operate under a "one-pass" reasoning paradigm, where early errors propagate and lead to task failure. This paper introduces GA-Rollback, a framework that utilizes an "Assistant" model to monitor a "Generator" agent in real-time. Upon detecting an error or suboptimal action, the Assistant triggers a state-reverting rollback and provides corrective feedback. Our evaluation across mathematical reasoning (Game of 24), embodied tasks (ALFWorld), and web navigation (Webshop) demonstrates that GA-Rollback significantly enhances agent robustness and success rates, outperforming standard ReAct and competing with complex search-based methods at a fraction of the cost.

1. Introduction

Current LLM agents often follow a linear trajectory where every thought and action is immediately committed to the context. If an agent misidentifies an object or selects a suboptimal path early on, this error persists, leading to "irreversible error propagation." While trial-level reflection methods like Reflexion attempt to mitigate this, they are often computationally expensive and slow as they require full task completion before correction. GA-Rollback addresses this by performing stepwise correction, identifying and fixing errors during execution before they derail the entire process.

2. Methodology: The GA-Rollback Framework

The GA-Rollback framework introduces a dual-role architecture to manage task execution and error correction simultaneously.

Figure 2: Overview of the GA-Rollback architecture, illustrating the interaction between the Generator, Assistant, and the environment, including the Wait-Info strategy and Feedback Evaluation loop.

2.1 Generator-Assistant Architecture

The system splits responsibilities between two LLM instances:

  • Generator: Interacts directly with the environment to produce actions.
  • Assistant: Meticulously examines the trajectory (actions and observations) to detect deviations from the optimal path.

2.2 Stepwise Rollback and Feedback

When the Assistant detects an error, it identifies the specific step of deviation. The system then reverts the environment to that state. The Generator attempts the step again, now guided by natural language feedback from the Assistant.

2.3 Probability-based Feedback Evaluation

To prevent "hallucinated" corrections from the Assistant, the framework employs a confidence filter. It calculates a confidence score based on the mean-pooled token probabilities of the Assistant's output. Feedback falling below a predefined threshold (e.g., 0.93) is discarded to avoid unnecessary rollbacks.

2.4 Wait-Info Strategy

In complex environments, constant intervention can be counterproductive. The Wait-Info Strategy requires the Assistant to wait for $k$ consecutive actions before analyzing the trajectory. This provides the Generator with sufficient "breathing room" to establish context while ensuring errors do not become too diffused to correct.

3. Experimental Evaluation

The framework was tested on three benchmarks: Game of 24 (math), ALFWorld (embodied AI), and Webshop (web navigation).

Figure 4: Success rates and confidence density distributions for GLM4-9B-Chat and Qwen2.5-14B-Instruct across Webshop and ALFWorld benchmarks.

3.1 Performance Metrics

  • Mathematical Reasoning: On Game of 24, GA-Rollback improved the success rate of Qwen2.5-14B from 7.6% (ReAct) to 17.2%.
  • Embodied Tasks: In ALFWorld, the framework achieved an 88.1% success rate, demonstrating high robustness in household navigation tasks.
  • Web Navigation: Significant gains were observed in Webshop, where the Assistant effectively corrected suboptimal product searches.

4. Key Insights

  • Information Bandwidth: Analysis of the Wait-Info parameter $k$ revealed a $\cap$-shaped performance curve. Intervening too early starves the Assistant of context, while intervening too late allows errors to propagate too far. The optimal balance was found at $k=6$.
  • Confidence as a Safety Switch: Using token-level probability as a filter significantly reduced redundant rollbacks. As shown in Figure 4, higher confidence often correlates with more effective feedback, though the distribution varies by model and task.
  • Efficiency: GA-Rollback achieves performance comparable to tree-search methods (like ToT-BFS) but with significantly lower overhead—approximately 2x token cost versus the exponential costs of branching searches.

5. Conclusion and Future Work

GA-Rollback provides a robust mechanism for real-time error correction in LLM agents. While highly effective, the framework currently requires environment reversibility, which may not be available in all real-world scenarios. Future research will focus on dynamically adjusting hyperparameters like the confidence threshold and Wait-Info steps to adapt to varying task complexities.

Summary updated

BibTeX
@misc{li2025generator,
  author = {Xingzuo Li and Kehai Chen and Yunfei Long and Xuefeng Bai and Yonggang Xu and Min Zhang},
  title = {{Generator-Assistant Stepwise Rollback Framework for Large Language Model Agent}},
  year = {2025},
  eprint = {2503.02519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.02519},
}
Figure