Watch and Learn: Learning to Use Computers from Online Videos

Chan Hee Song, Yiwen Song, Palash Goyal, Yu Su, Oriana Riva, Hamid Palangi, Tomas Pfister

TL;DR

Researchers have developed Watch & Learn (W&L), a framework that bypasses the expensive bottleneck of manual data annotation by converting millions of existing YouTube tutorial videos into high-quality training data for computer-using agents. By framing action labeling as an inverse dynamics problem—predicting the action that occurred between two video frames—they generated over 53,000 executable trajectories that significantly boost agent performance across both Windows and Linux environments.

What Problem Does This Paper Address?

Building "Computer-Using Agents" (CUAs)—AI that can navigate software, click buttons, and type text just like a human—is notoriously difficult because of a massive data gap.

Current datasets are either:

  1. Manual and Expensive: OpenCUA’s AgentNet cost over $32,000 and six months to label just 22k tasks.
  2. Synthetic and Simple: Automated agents exploring environments often produce repetitive, low-complexity behaviors that don't reflect real-world expertise.

While the web is full of human experts recording tutorials, these videos are "unstructured." We can see the screen change, but we don't have the underlying "click(x, y)" or "type(text)" commands needed to train a model. Previous attempts to use Large Language Models (LLMs) to label these videos have proven brittle and prone to "cascading errors."

Methods

The core innovation of W&L is treating trajectory recovery as an inverse dynamics problem. Instead of asking a model to describe a whole video, the authors train a specialized Inverse Dynamics Model (IDM) to look at just two consecutive screen states ($O_t, O_{t+1}$) and predict the specific action ($a_t$) that caused the transition.

Figure 1. W&L converts web-scale human demonstration videos into executable UI trajectories, providing scalable supervision and in-context exemplars for computer-using agents.

The W&L Pipeline:

  1. IDM Training: The authors first built a massive "ground truth" dataset of 600,000 transitions by having an automated script interact with live web pages. This allowed them to train a vision-only model (SigLIP-2 backbone + Transformer) to recognize six atomic actions: Click, Release, Scroll, Type, Wait, and Move.
  2. Task-Aware Retrieval: Using Gemini 2.5 Flash to generate smart search queries, the system finds relevant YouTube tutorials for specific applications (e.g., VLC, GIMP, VS Code).
  3. Filtering & Labeling: The system filters out "talking head" segments or zoomed-in clips, then runs the IDM on the remaining frames to extract a structured, executable trajectory.
  4. Deployment: These trajectories are used either as In-Context Learning (ICL) exemplars (showing the agent a "hint" of how to do the task at inference time) or for Supervised Fine-Tuning (SFT).
Figure 2. Method overview. Our framework converts web-scale human demonstration videos into executable trajectories for CUAs. We first collect a large-scale state-transition dataset of screen observations and user actions, and train an inverse dynamics model (IDM) to recover actions from consecutive screenshots. This IDM is then applied to tutorial videos to extract step-by-step trajectories. A retrieval module selects task-relevant or general demonstrations, which are used in two ways: (i) as in-context exemplars that provide application- specific knowledge at inference time, and (ii) as supervised training data to improve open-source CUAs.

Datasets

  • State-Transition Corpus: A new dataset of 600,000+ automatically labeled triples $(O_t, a_t, O_{t+1})$ used to train the IDM.
  • W&L Video Trajectories: 53,125 high-quality trajectories derived from YouTube, spanning 69 different applications across productivity, design, programming, and more.
  • Evaluation Benchmarks: The agents were tested on OSWorld (Ubuntu-based) and WindowsAgentArena, ensuring the approach generalizes across different operating systems.

Key Insights and Ideas

  • Inverse Dynamics > Heuristics: By focusing on the change between two frames, the IDM achieves 91.7% action accuracy, vastly outperforming LLM-based labelers like TongUI (~72%).
  • Vision-Only is Robust: By ignoring messy HTML or accessibility trees and focusing purely on pixels, the model avoids the "brittleness" that plagues agents when software updates change the underlying code but not the visual layout.
  • The "Dual Role" of Data: The authors show that these video-derived trajectories are versatile. They work as "planning priors" for general-purpose models (like Claude 4 or GPT-o3) via ICL, and as "grounding supervision" for specialized 7B-scale models via SFT.
  • Retrieval Resilience: Interestingly, even "random" video exemplars don't hurt performance, suggesting that the high quality of the IDM labels prevents the model from being misled by noise.

Key Results

  • SOTA Performance: On WindowsAgentArena, W&L achieved the highest success rate among 7B-scale models (24.0%), surpassing prior automatic labeling methods.
  • Massive Gains for General Models: Fine-tuning Qwen 2.5-VL on W&L data led to a staggering +11.1% absolute gain in success rate on OSWorld.
  • In-Context Boost: Adding W&L exemplars improved the performance of top-tier models like Gemini 2.5 Flash and OpenAI o3 by up to 3 percentage points without any additional training.

Limitations and Future Work

  • Long-Horizon Tasks: Current tutorials are often short. The authors suggest future work could focus on segmenting or combining multiple tutorials to handle complex, multi-hour workflows.
  • Reinforcement Learning: The extracted trajectories could serve as a powerful starting point (replay buffers or reward priors) for RL-based agents to learn through trial and error.
  • Adaptive Policy Learning: Moving toward agents that can adapt their strategy in real-time based on the specific UI conventions of a new, unseen application.

Summary updated

BibTeX
@inproceedings{song2026watch,
  author = {Chan Hee Song and Yiwen Song and Palash Goyal and Yu Su and Oriana Riva and Hamid Palangi and Tomas Pfister},
  title = {{Watch and Learn: Learning to Use Computers from Online Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dEI8NNj4qM},
}
Figure