RL Computer Use Notebook
Chapter one

Learning by trying, with only a pass or a fail.

We took a small model that can already see a screen and talk about it, gave it simple web pages to operate, and let it practice. Nobody showed it the right clicks. It only learned whether each attempt worked.

Think of learning a new video game without a guide. You try something. Sometimes the level ends, sometimes it doesn't. After enough tries you start repeating whatever you did on the attempts that worked. That's reinforcement learning (RL) in one paragraph.

What makes it work for a language model is that the model isn't starting from zero. It already reads text, understands screenshots, and can describe a button. It just isn't reliable at finishing a task on a web page. Practice with a pass or fail score makes the behaviors that finish tasks more likely, and the ones that don't, less likely.

Four words you'll see everywhere

  • Model

    The thing we train. Here, a 4-billion-parameter model that reads images and text, called Qwen3-VL-4B. RL papers also call it the policy, because it decides what to do next.

  • Task

    One small web page with an instruction, such as “Select Ertha from the list and click Submit.” Each task has endless random variations, called seeds.

  • Episode

    One attempt at one variation of a task: look, act, look again, act again, up to eight turns, until the page says done or time runs out.

  • Reward

    The score for an episode: 1 if the task was completed, 0 if not. That's the only feedback the model gets.

What we wanted to see

A visible gain in one day of training on one rented GPU. Not a state-of-the-art agent, but a clear before-and-after you can measure, plus an understanding of every moving part.

27%
Practice tasks solved by the untouched model
58%
Same tasks after run 1
73%
A harder, wider task set after run 2 (base model: 47%)

The rest of this notebook explains where those numbers come from, and what they do and don't mean.