NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Subgoal-driven RL Framework for Improving Long-Horizon Web Agents

Taiyi Wang, Sian Gooding, Florian Hartmann, Oriana Riva, Edward GrefenstetteNeurIPS 2026

TL;DR

Imagine trying to learn how to assemble IKEA furniture, except nobody tells you if you’re doing it right until the very end—when they simply yell "Pass!" or "Fail!" That’s what training web-browsing AI agents with standard Reinforcement Learning (RL) looks like today. This paper introduces MiRA, a framework that breaks long web tasks into reliable "milestones" to give agents continuous, step-by-step feedback during training, enabling a modest 12B open-weight model to decisively outperform giants like GPT-4o and Gemini-2.5-Pro.

Figure 1: Overview of MiRA. A high-level task goal is decomposed into a sequence of subgoals by a Subgoal Generator (SGG). These subgoals drive reward shaping during RL fine-tuning of the target agent.

What Problem Does This Paper Address?

Asking an LLM agent to navigate a live website—like finding the nearest cafe to Carnegie Mellon University on a map or managing an e-commerce store—requires stringing together dozens of clicks, scrolls, and keystrokes.

Static imitation learning (Supervised Fine-Tuning, or SFT) is brittle; the moment an agent clicks the wrong button, it enters unfamiliar territory and panics. Researchers have turned to RL so agents can learn by trial and error. However, web tasks suffer from sparse, delayed rewards: an Outcome Reward Model (ORM) only gives a binary $1$ or $0$ at the very end of an episode. When an agent fails at step 18, it has no idea if it messed up at step 17 or took a wrong turn back at step 3. This "credit assignment" bottleneck causes agents—open and proprietary alike—to lose the plot mid-task and spiral into unproductive action loops.

Methods

To bridge the gap between rigid step-by-step imitation and sparse end-of-task rewards, the authors introduce MiRA (Milestoning your Reinforcement Learning Enhanced Agent).

Comparison of supervision signals: Imitation Learning, Outcome Reward Models, and MiRA's dense shaped rewards.

Here is what’s under the hood:

  • Validated Subgoal Generation: Using Gemini-2.5-Pro with randomized few-shot examples (shuffled to prevent memorizing rigid patterns), MiRA decomposes high-level instructions into semantic milestones. During training rollouts, an LLM judge checks off completed milestones, and MiRA linearly interpolates between them to create a smooth $0 \to 1$ progress score across Successful trajectories.
  • Dual-Critic RL Architecture (Novel): Standard RL uses a single Value Critic ($V_\phi$) to predict final task success. MiRA pairs this with a new Potential Critic ($P_\psi$) trained to predict continuous milestone progress. At every step, the agent gets an auxiliary reward proportional to its change in progress ($\Delta\psi$).
  • Mixed Advantage & Regression: Instead of standard KL-divergence policy updates, the actor is updated via Mean Squared Error (MSE) regression on log-probability ratios. Crucially, it uses a mixed target combining 1-step Temporal Difference (TD) errors with full Monte-Carlo returns, shielding the agent from noisy critic estimates early in training.
  • Failure-Driven Curriculum: Rather than training on a static set of tasks until the agent overfits, MiRA wraps training in an iterative loop. It analyzes failed tasks after each phase and dynamically pulls similar (or newly mutated) instructions into the next round.
Figure 3: The MiRA-RL training pipeline. Trajectories are evaluated by an Auto Rater (binary success) and a SubGoal Checker (intermediate progress). Two critics are trained: a Value Critic Vϕ for final success and a Potential Critic Pψ for progress. The actor is updated using shaped rewards, stabilized by perplexity filtering.

Datasets

No new evaluation benchmarks were created; instead, the authors evaluate on established, realistic web environments spanning five domains (Reddit, GitLab, Shopping, Shopping Admin, and Map):

  • WebArena-Lite: The primary testbed—a curated, verified 165-task subset of WebArena.
  • WebArena (Full): The broader 812-task suite, used to verify that gains aren't an artifact of the smaller subset.
  • Training Pools: 1,237 exploratory tasks to warm up the Potential Critic, plus a pool of 1,573 LLM-generated instructions (carefully de-duplicated against test tasks) to fuel the iterative curriculum.

Key Insights and Ideas

  • "Getting Stuck" is Structural, Not a Scale Issue: Automated failure analysis across 812 WebArena tasks revealed that 42–49% of all failures happen because agents get stuck in mid-task loops. Surprisingly, this exact failure rate plagues small base models, SFT models, RL agents, and frontier giants like Gemini-2.5-Pro uniformly—proving that scale alone doesn't fix long-horizon drift.
  • Milestones Work as Soft Scaffolding, Not Handcuffs: Completing all generated subgoals isn't strictly required to solve a task (sometimes there's a clever shortcut!). Yet, empirically, the more subgoals an agent hits, the strictly higher its probability of ultimate success (AUROC of $0.84$). Treating milestones as soft training hints rather than rigid inference-time plans gives the agent guidance without restricting valid alternative paths.
  • Theoretical Purity vs. Practical Success: Classical Potential-Based Reward Shaping guarantees you won't accidentally warp the agent's optimal policy, provided you follow strict discounting math ($\gamma\Phi(s') - \Phi(s)$). MiRA deliberately drops the discount factor $\gamma$ and trains its two critics separately. While this breaks the theoretical guarantee—meaning over-weighting the milestone reward can degrade performance—a moderate shaping weight works wonders in practice.

Key Results

Starting from a Gemma3-12B base model (which scores a meager $6.4\%$ out of the box and $30.9\%$ after SFT), Gemma3 + MiRA hits a $43.0\%$ Pass@1 success rate on WebArena-Lite:

  • Beats Proprietary Frontier Models: Surpasses GPT-4o ($13.9\%$), GPT-4-Turbo ($17.6\%$), and Gemini-2.5-Pro ($23.0\%$).
  • Beats Open-Weight RL State-of-the-Art: Outperforms a budget-matched Gemma3 WebRL reproduction ($35.1\%$) by nearly 8 points, and improves Llama3.1-8B from $38.8\%$ (WebRL) to $41.2\%$. On the full 812-task WebArena, Gemma3 + MiRA reaches $30.4\%$ vs. WebRL's $24.0\%$.
  • Emergent Sequential Fluency: Heatmaps of training progression show that early-phase agents cluster all their effort on the first subgoal and stall out. By Phase 6, subgoal completions form a clean diagonal wave across time—visual proof that the agent learned to chain intermediate steps smoothly.

Limitations and Future Work

The authors are admirably candid about what MiRA does not prove:

  • Environment Scope: All evaluations take place within the WebArena ecosystem. While tested on two model backbones (Llama and Gemma), these results do not guarantee zero-shot generalization to entirely unseen digital environments (like desktop OS control).
  • Hyperparameter Sensitivity: Because MiRA's reward shaping is a pragmatic surrogate rather than policy-invariant PBRS, cranking the shaping weight $\alpha$ too high causes the agent to chase milestones at the expense of the final goal.
  • Reliance on Frontier Judges: While inference is lean and fast, the training pipeline leans on Gemini-2.5-Pro and Flash to generate subgoals, check milestones, and curate curriculum tasks. Exploring fully self-evolving agents that ground and verify their own subgoals is a natural next frontier.

Summary updated

BibTeX
@inproceedings{wang2026subgoal,
  author = {Taiyi Wang and Sian Gooding and Florian Hartmann and Oriana Riva and Edward Grefenstette},
  title = {{A Subgoal-driven RL Framework for Improving Long-Horizon Web Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YhHyFaPXAJ},
}
Figure