Speculative Rollback Correction for Quality-Diverse Web Agent Imitation

Longkun Hao, Hongyu Lin, Hao Li, Zhuowen Liu, Zhichao Yang +9 more
6/10/2026
2 citations
cs.LGcs.AI

Official code: LongkunHao/SRC_gui_agent (1 star, Python, MIT, last commit 2026-06-10).

Abstract

Training interactive web agents through imitation learning from expert trajectories has emerged as a highly effective approach. However, determining the optimal timing for expert intervention presents a critical challenge in this context.

Show full abstract

Delayed intervention often leads to the accumulation of early-stage errors, pushing the page state into an irrecoverable regime. Conversely, premature or excessive intervention causes the agent to become overly reliant on expert policies, trapping the model in local optima characterized by a single, rigid trajectory. We propose Speculative Rollback Correction (SRC), a branch-level imitation framework for resettable agent environments. Instead of requesting teacher labels at every visited state or correcting only after a completed trajectory, SRC uses fixed-horizon branch review: the student executes a short speculative segment before teacher review, and the teacher localizes the first harmful deviation only when local progress breaks. Rollback preserves useful prefixes, while successful rollouts are filtered by a hard verifier and retained in a lightweight quality-diversity archive. The resulting data supports next-action supervised fine-tuning on both localized corrections and verifier-passing trajectories. On WebArena-Infinity, SRC collects 977 verifier-passing trajectories and 9,183 next-action examples; fixed-horizon review improves the recovery-versus-query tradeoff over step-level review while retaining verifier-passing solution variants. Code is available at https://github.com/LongkunHao/SRC_gui_agent.

View on arXivView PDF

Code Implementations(1)

MIT

Speculative Rollback Correction for Quality-Diverse Web Agent Imitation 论文的代码仓库

10Python, JavaScriptJun 10, 20265 months agoMIT

Similar Papers

Cite this paper

@article{hao2026speculative,
  title  = {Speculative Rollback Correction for Quality-Diverse Web Agent Imitation},
  author = {Longkun Hao and Hongyu Lin and Hao Li and Zhuowen Liu and Zhichao Yang and Haojie Hao and Dongshuo Huang and Haitao Yang and Hongyu Ge and Ming jie Xie and Yanjun Wu and Zi Hao Yin and Yan Bai and Yihang Lou},
  year   = {2026},
  eprint = {2606.12485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.12485v2}
}

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

Discussion