Ai4
Fine-tuning open-source models on authentic human workflows and expanding test-time interaction steps outperforms prompt scaffolding and internal reasoning tokens.
AI-assisted summary of Towards Specialized Web Agents Using Production-Scale Workflow Data With Carnegie Mellon University — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by Ai4 on August 28, 2025, this talk features Carnegie Mellon University researcher Junhong Shen discussing specialized web agents. The session focuses on moving beyond general-purpose models like GPT-4 by fine-tuning open-source LLMs on production-scale workflow data encompassing over 250 domains and 6 billion tokens.
## TL;DR Junhong Shen outlines why traditional scaffolding around general-purpose LLMs falls short for browser navigation and presents specialized training on grounded human workflows as a superior alternative. He highlights ScribeAgent, a fine-tuned open-source model trained on 20,000 real-world user trajectories that achieves state-of-the-art results on WebArena. Shen then investigates test-time reasoning in multi-step settings, demonstrating that allocating compute to environmental actions ('act more') offers greater information advantages than merely expanding per-step deliberation ('think more'). Finally, he presents Test-Time Interaction (TTI), a reinforcement learning framework using Gemma 3 12B that progressively expands the action horizon to foster rich exploration and error recovery.
## Atmosphere & style The presentation carries an engaging, forward-looking academic energy, opening with Shen's enthusiastic note about adding brand-new research findings on agent scaling right before the talk. Shen speaks with clear, methodical authority, dissecting the structural limitations of chatbot-centric architectures with lucid diagrams and measured reasoning. The pacing moves smoothly from critique to practical fine-tuning results and paradigm-shifting reinforcement learning concepts, making the viewer feel plugged directly into the bleeding edge of agent research.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=Llm5SdguQOY&t=4s) Unlike conversational chatbots, digital web agents operate in a continuous perception-action cycle, processing multimodal observations (HTML, accessibility trees, screenshots) to execute browser actions. - [04:16](https://www.youtube.com/watch?v=Llm5SdguQOY&t=256s) Scaffolded systems built around general-purpose frontier LLMs face major bottlenecks because base models lack native pre-training on structured web contexts and grounded interaction. - [04:50](https://www.youtube.com/watch?v=Llm5SdguQOY&t=290s) Specializing the foundation model directly through post-training on web interaction data yields greater performance headroom than complex prompting templates or external evaluator modules. - [07:27](https://www.youtube.com/watch?v=Llm5SdguQOY&t=447s) ScribeAgent was trained via supervised fine-tuning on roughly 20,000 authentic production workflow trajectories captured across hundreds of web domains. - [08:50](https://www.youtube.com/watch?v=Llm5SdguQOY&t=530s) Fine-tuning open-source models on real human demonstrations enabled even compact 7B models to outperform large proprietary models like OpenAI's o1-mini on web benchmarks. - [12:34](https://www.youtube.com/watch?v=Llm5SdguQOY&t=754s) Injecting test-time reasoning tokens enables web agents to deliberate over constraints and compare alternatives before committing to irreversible actions. - [14:20](https://www.youtube.com/watch?v=Llm5SdguQOY&t=860s) Multi-step web environments introduce an orthogonal axis for scaling test-time compute: scaling environmental interaction steps ('act more') rather than just per-step reasoning tokens ('think more'). - [15:10](https://www.youtube.com/watch?v=Llm5SdguQOY&t=910s) Executing more actions provides an empirical information advantage by retrieving live feedback from the external world, facilitating exploratory navigation and backtracking. - [16:15](https://www.youtube.com/watch?v=Llm5SdguQOY&t=975s) The Test-Time Interaction (TTI) reinforcement learning framework progressively expands the maximum step horizon during training to incentivize non-greedy exploration and error recovery. - [17:10](https://www.youtube.com/watch?v=Llm5SdguQOY&t=1030s) Applying TTI to the open-weights multimodal Gemma 3 12B model achieved state-of-the-art performance across competitive open web agent benchmarks.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=Llm5SdguQOY&t=4s) Introduction and the Agentic Interaction Loop
Junhong Shen, a PhD student at Carnegie Mellon University, opens his talk by sharing recent research on developing specialized web agents through large language models (LLMs) and real-world data. He notes with a smile that his presentation title differs slightly from the conference poster outside because of a last-minute addition: a brand-new research development that he believes is "potentially leading to a new paradigm in agent scaling" and will likely become an active area of exploration across the research community in the coming months.
To ground the discussion, Shen draws a fundamental distinction between conversational chatbots and agentic systems. While chatbots operate in closed text exchanges, an agent continuously interacts with an external environment. The environment emits observations, which the LLM processes to formulate and issue concrete actions. Once executed in the environment, these actions alter the state and produce fresh observations. This iterative perception-action cycle forms the backbone of digital agents across varied environments such as IDEs, video games, mobile operating systems, and web browsers.
```mermaid flowchart LR accTitle: Web Agent Interaction Loop subgraph Environment ["Browser Environment"] WebState["Web Page State<br/>(HTML, A11y Tree, Screenshots)"] end subgraph Agent ["LLM Web Agent"] History["Task Goal & Action History"] ActionGen["Action Determination<br/>(Click, Type, Hotkeys)"] end WebState -->|"Observations"| History History --> ActionGen ActionGen -->|"Executable Commands"| WebState ```
In web navigation specifically, the agent begins with an explicit task goal—such as booking a flight or reserving a hotel room—along with a starting URL. At each step, the agent inspects the page state via modalities like raw HTML, browser-specific accessibility trees, or visual screenshots. It weighs these observations alongside its historical trail of prior actions to decide what to do next, generating discrete commands such as clicking links, typing text strings, or triggering keyboard shortcuts (e.g., Ctrl+C, Ctrl+V). The agent repeats this loop until the overarching task reaches completion.
[04:16](https://www.youtube.com/watch?v=Llm5SdguQOY&t=256s) The Limitations of Scaffolding and General-Purpose LLMs
The dominant paradigm for building web agents relies on taking proprietary, general-purpose frontier models—such as GPT-4o or Claude—and constructing elaborate scaffolding on top of them. Developers design intricate workflow charts that decompose user tasks into multi-stage pipelines and augment the base model with external modules. These include memory components designed to store and retrieve past successful trajectories, as well as evaluator modules that validate and score candidate actions before they are executed in the browser.
Shen emphasizes that despite their architectural complexity, these scaffolded systems suffer from a major bottleneck: general-purpose LLMs are inherently unspecialized for web-native execution. Because frontier models are pre-trained predominantly on general web text rather than grounded browser workflows and structured HTML layouts, their out-of-the-box navigation ability leaves a substantial performance gap when compared to human users. Complex scaffolding cannot fully compensate for a foundation model that lacks native grounding in web interaction.
Instead of endlessly tweaking prompting templates or chaining external modules around an off-the-shelf model, Shen and his collaborators argue that the greatest headroom for improvement comes from specializing the LLM itself before adding scaffolding. This hypothesis is supported by recent results on WebArena, a premier academic benchmark for web agents, where the leaderboard is led by models post-trained and fine-tuned on specialized web interaction datasets rather than raw general-purpose models wrapped in prompt engineering.
[07:27](https://www.youtube.com/watch?v=Llm5SdguQOY&t=447s) ScribeAgent: Specializing Open-Source Models on Production Workflow Data
To build a genuinely specialized web agent, the CMU team partnered with Scribe, an AI workflow documentation startup. Scribe provides a browser extension that records user interactions on the web—such as an HR employee navigating enterprise software during an employee onboarding process—and automatically transforms those clicks and keystrokes into structured, step-by-step guides with AI-generated titles and descriptions. This platform captures authentic, real-world human workflows across hundreds of diverse web domains.
The researchers sampled a subset of roughly 20,000 real-world user trajectories from Scribe's production data to investigate how human demonstrations could augment LLMs for web tasks. The training methodology relies on straightforward Supervised Fine-Tuning (SFT): each recorded workflow is formatted into a standardized trajectory sequence pairing environmental inputs with the corresponding human action. When applied across various open-source base models, SFT on this golden dataset produced dramatic performance jumps. The gains scaled predictably with both model capacity and the volume of training tokens.
- **Model Variants:** The team trained two primary open-source models, releasing them as ScribeAgent Small (7B parameters) and ScribeAgent Large (32B parameters). - **Internal Benchmark Performance:** Even the compact 7B ScribeAgent outperformed large proprietary models such as OpenAI's o1-mini on internal web evaluation benchmarks. - **Academic Benchmark Success:** ScribeAgent achieved state-of-the-art results on the competitive WebArena benchmark, demonstrating that fine-tuning on authentic human trajectories establishes a strong, durable performance foundation.
Shen highlights that while ScribeAgent established top performance using standard direct-response models, the machine learning landscape underwent a swift transformation heading into late 2024 with the emergence of test-time reasoning models that deliberate and generate thinking traces prior to emitting their final browser actions.
[12:34](https://www.youtube.com/watch?v=Llm5SdguQOY&t=754s) Reasoning Paradigms and Test-Time Compute for Web Agents
Recent breakthroughs in reasoning models demonstrate that generating internal reasoning traces or "thinking tokens" before producing a final answer dramatically boosts model capability on complex, single-turn tasks such as mathematics and competitive coding. Motivated by these successes, the research team investigated how this reasoning paradigm could be adapted to agentic environments. Early iterations of agents like ScribeAgent operated via a direct mapping: the model ingested a webpage observation and immediately outputted a concrete browser action. The new approach explores whether prompting or fine-tuning the agent to output explicit thinking traces before taking an action can substantially improve task completion.
In practical web agent scenarios, this mirrors human rumination. For instance, when tasked with booking a hotel for a specific date, an agent should not merely click the "book" button on the first hotel it sees. Instead, it benefits from pausing to reason through multiple constraints: comparing prices, analyzing location proximity, evaluating amenities, and synthesizing user reviews. Injecting intermediate reasoning tokens allows the model to deliberate on whether a particular option genuinely satisfies the user's criteria before committing to an irreversible web action.
```mermaid flowchart TD accTitle: Test-Time Interaction (TTI) Reinforcement Learning Loop subgraph EnvLoop ["Online Trajectory Collection"] A["Agent Deployed in Web Environment"] --> B["Interact Across Webpages<br/>(Horizon / Max Steps Expands over Training)"] B --> C["Collect Trajectories with Exploration & Backtracking"] end subgraph UpdateLoop ["Policy Filtering & Training"] C --> D["Filter Successful Trajectories"] D --> E["Update Multimodal Model<br/>(e.g., Gemma 3 12B)"] E --> A end ```
---
[14:20](https://www.youtube.com/watch?v=Llm5SdguQOY&t=860s) The "Think More vs. Act More" Trade-Off in Multi-Step Environments
While scaling per-step reasoning tokens is the conventional approach borrowed from single-turn benchmarks, agentic tasks introduce a fundamental structural difference: they are intrinsically multi-step and interactive. In web tasks, the agent continuously acts within and receives feedback from a dynamic external environment. This realization opens up a completely orthogonal axis for scaling test-time compute: scaling the number of interaction steps rather than merely scaling the internal reasoning tokens generated at each step. This exploration forms the core premise of the team's research on the trade-offs between "thinking versus doing."
Given a fixed test-time compute budget, developers face a strategic choice between allocating tokens to per-step deliberation ("think more") or allowing the agent to execute more environmental actions ("act more"). The speaker emphasizes that acting more provides a distinct advantage that per-step reasoning alone cannot offer: it enables the retrieval of fresh, ground-truth information from the external world. By clicking through multiple search results, inspecting alternative pages, and navigating deep into booking flows, the agent gathers real data, explores alternative paths, and backtracks when hitting dead ends instead of hallucinating on stale observations.
- **Per-step Scaling ("Think More"):** Allocates compute budget toward generating extended internal reasoning chains before emitting an action on the current webpage. - **Interaction Scaling ("Act More"):** Allocates compute budget toward executing a higher volume of actions, facilitating active web exploration, diverse query formulation, and multi-page information synthesis. - **Information Advantage:** Acting directly in the environment uncovers latent state information and real-world feedback that static per-step ruminations cannot produce.
---
[16:15](https://www.youtube.com/watch?v=Llm5SdguQOY&t=975s) Test-Time Interaction (TTI) via Horizon-Scaled Reinforcement Learning
To evaluate whether scaling environmental interaction genuinely benefits agents, the team introduced Test-Time Interaction (TTI), a specialized reinforcement learning (RL) framework designed to incentivize exploration and multi-step problem-solving. TTI functions through an iterative two-stage online RL loop: the agent is first deployed into the live web environment to roll out interaction trajectories, after which successful trajectories are filtered out and used to update the policy.
The distinguishing feature of TTI lies in how it manages the agent's interaction horizon. As training proceeds, the framework progressively increases the maximum allowable steps per task. Rather than forcing the agent into brittle, greedy shortcuts, expanding the horizon populates the training dataset with increasingly long, rich, and sophisticated trajectories. This curriculum encourages advanced behavioral patterns such as speculative exploration, cross-checking, and error recovery.
Using DeepMind's open-source multimodal Gemma 3 12B model, the resulting agent established state-of-the-art results across several competitive open-source and open-data web agent benchmarks. In closing, the speaker reiterated that as reasoning models proliferate, researchers must look beyond chatbot-style token scaling. Because interaction is the defining attribute of autonomous agents, scaling test-time interaction represents one of the most promising frontiers for building capable, production-grade web agents.
- **TTI Mechanism:** Employs an online trajectory collection loop paired with success-filtering and supervised policy updates. - **Expanding Horizon Curriculum:** Dynamically raises the maximum step threshold throughout training to reward exploratory and non-greedy behavioral patterns. - **Benchmark Performance:** Fine-tuning the Gemma 3 12B multimodal open-weights model achieved top-tier performance on established web agent benchmarks under fully open data and model settings.
## Notable quotes > Large Language Model (LLM) agents are rapidly improving to handle increasingly complex web-based tasks. — Junhong Shen
> general-purpose LLMs are not specifically trained to understand specialized web contexts such as HTML, and they often struggle with long-horizon planning. — Junhong Shen
> We explore an alternative approach that fine-tunes open-source LLMs using production-scale workflow data collected from over 250 domains corresponding to 6 billion tokens. — Junhong Shen
> [00:04](https://www.youtube.com/watch?v=Llm5SdguQOY&t=4s) potentially leading to a new paradigm in agent scaling — Junhong Shen
> [00:04](https://www.youtube.com/watch?v=Llm5SdguQOY&t=4s) While chatbots operate in closed text exchanges, an agent continuously interacts with an external environment. — Junhong Shen
> [04:16](https://www.youtube.com/watch?v=Llm5SdguQOY&t=256s) general-purpose LLMs are inherently unspecialized for web-native execution. — Junhong Shen
> [04:16](https://www.youtube.com/watch?v=Llm5SdguQOY&t=256s) Complex scaffolding cannot fully compensate for a foundation model that lacks native grounding in web interaction. — Junhong Shen
> [04:16](https://www.youtube.com/watch?v=Llm5SdguQOY&t=256s) the greatest headroom for improvement comes from specializing the LLM itself before adding scaffolding. — Junhong Shen
> [14:20](https://www.youtube.com/watch?v=Llm5SdguQOY&t=860s) scaling the number of interaction steps rather than merely scaling the internal reasoning tokens generated at each step. — Junhong Shen
> [14:20](https://www.youtube.com/watch?v=Llm5SdguQOY&t=860s) acting more provides a distinct advantage that per-step reasoning alone cannot offer: it enables the retrieval of fresh, ground-truth information from the external world. — Junhong Shen
> [14:20](https://www.youtube.com/watch?v=Llm5SdguQOY&t=860s) Acting directly in the environment uncovers latent state information and real-world feedback that static per-step ruminations cannot produce. — Junhong Shen
> [16:15](https://www.youtube.com/watch?v=Llm5SdguQOY&t=975s) Because interaction is the defining attribute of autonomous agents, scaling test-time interaction represents one of the most promising frontiers for building capable, production-grade web agents. — Junhong Shen
## Mentioned Junhong Shen, Carnegie Mellon University, Ai4, GPT-4, GPT-4o, Claude, OpenAI o1-mini, Scribe, ScribeAgent, ScribeAgent Small, ScribeAgent Large, WebArena, Google DeepMind, Gemma 3 12B, Test-Time Interaction (TTI)
## Video description Junhong Shen, Researcher, Carnegie Mellon University
Abstracts
Large Language Model (LLM) agents are rapidly improving to handle increasingly complex web-based tasks. Most of these agents rely on general-purpose, proprietary models like GPT-4 and focus on designing better prompts to improve their planning abilities. However, general-purpose LLMs are not specifically trained to understand specialized web contexts such as HTML, and they often struggle with long-horizon planning. We explore an alternative approach that fine-tunes open-source LLMs using production-scale workflow data collected from over 250 domains corresponding to 6 billion tokens. This simple yet effective approach shows substantial gains over prompting-based agents on existing benchmarks.
[Source](https://www.youtube.com/watch?v=Llm5SdguQOY)