How to Train Your LLM Web Agent: A Statistical Diagnosis

Dheeraj Vattikonda, Santhoshi Ravichandran, Emiliano Penaloza, Hadi Nekoei, Megh Thakkar +11 more
7/5/2025
cs.AIcs.LGstat.ML

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

LLM-based web agents have recently made significant progress, but much of it has occurred in closed-source systems, widening the gap with open-source alternatives. Progress has been held back by two key challenges: first, a narrow focus on single-step tasks that overlooks the complexity of multi-step web interactions; and second, the high compute costs required to post-train LLM-based web agents. To address this, we present the first statistically grounded study on compute allocation for LLM web-agent post-training. Our approach uses a two-stage pipeline, training a Llama 3.1 8B student to imitate a Llama 3.3 70B teacher via supervised fine-tuning (SFT), followed by on-policy reinforcement learning. We find this process highly sensitive to hyperparameter choices, making exhaustive sweeps impractical. To spare others from expensive trial-and-error, we sample 1,370 configurations and use bootstrapping to estimate effective hyperparameters. Our results show that combining SFT with on-policy RL consistently outperforms either approach alone on both WorkArena and MiniWob++. Further, this strategy requires only 55% of the compute to match the peak performance of pure SFT on MiniWob++, effectively pushing the compute-performance Pareto frontier, and is the only strategy that can close the gap with closed-source models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vattikonda2025train,
  title  = {How to Train Your LLM Web Agent: A Statistical Diagnosis},
  author = {Dheeraj Vattikonda and Santhoshi Ravichandran and Emiliano Penaloza and Hadi Nekoei and Megh Thakkar and Thibault Le Sellier de Chezelles and Nicolas Gontier and Miguel Muñoz-Mármol and Sahar Omidi Shayegan and Stefania Raimondo and Xue Liu and Alexandre Drouin and Laurent Charlin and Alexandre Piché and Alexandre Lacoste and Massimo Caccia},
  year   = {2025},
  eprint = {2507.04103},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.04103v3}
}

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

Discussion