A world model small enough to run games on a Raspberry Pi Pico 2 W

A tiny world model running games on a Raspberry Pi Pico 2 W

A world model small enough to run games on a Raspberry Pi Pico 2 W

SheepSeb built tinyworldformer, a looped transformer world model of just 26k–131k parameters that generates games frame by frame on a Raspberry Pi Pico 2 W. A separate tiny MLP actor plays inside the dream, never seeing the real game. The model hits up to 100% exact frames on Breakout and Flappy Bird and 83.6% on Doom-lite, and a Stream AC(λ) agent can even learn from scratch on the board.

Agents trained only in the dream scored 210 there (the real maximum is 56) and 28 in the real game, as World Models (Ha & Schmidhuber) predicts.
  1. boustrophedon

    I might have missed it in the readme, but what hardware did the training take place on? This is really neat.

  2. xpct

    Is the actor trained on world model's mistakes as well? If so, it should learn to force hallucinations that force it into an easier state.

  3. dannyw

    This is incredibly cool! Fascinating to see looped transformers be necessary for mini-Doom, but not for simpler games.

More from this day

2026-10-29