← Looped Weight-Space Programming · Tower of Hanoi demo
Looped weight-space programming · demo

Run the maze transformer

This page runs the Maze-Hard transformer from the post, in your browser, on real test mazes. It loads the transformer's weights, … of them, and only … aren't zero. Then it runs them with one generic loop: look up each cell, run the same transformer block again and again, and read off every cell. The loop knows nothing about mazes. The grid shows the numbers inside the transformer after each loop.

knows its distance from the goalthe path the transformer writeswall
Loop
0
Path cells
0
Matches the answer
–
Transformer time
0.0 s
Pick a maze and press Run.

What happens when you press Run

  1. Each of the 900 cells becomes one token: its row, its column, and what is there (wall, open, start or goal).
  2. In every loop, the same transformer block runs over all the cells. Each cell reads its four neighbors. First, distance from the goal spreads out, one step per loop: the cells one step farther away learn how far they are from the goal. Once this reaches the start, the path grows from the start, one cell per loop, each time to the neighbor one step closer to the goal.
  3. After every loop, the transformer reads off a character for every cell. The cells it marks as path are drawn in blue.
  4. When it stops, the page compares the transformer's grid with the dataset's answer, character by character.

The transformer's rule is to run 1,800 loops on a 30×30 maze. Long before that, its whole internal state stops changing: every number is the same as after the loop before. From then on, every loop gives the same state, so the page stops there by default. Tick "Run all 1,800 loops" to run them anyway, which takes about a minute on a laptop.

The whole runner: the loop that runs the transformer

  

The mazes come from the start of the Maze-Hard test set (the HRM paper's release), in file order. The transformer solves 100% of the test mazes, whereas Claude Opus 5.5 solves 26% when asked directly. The same transformer and loop in Python are in weights/.