r/MachineLearning • • 1d ago

Research Looped Weight-Space Programming: transformer weights written directly [R]

We asked a frontier reasoning model to solve set of mazes from Mazes-Hard. It got only 26% right.

Then we asked it to write a transformer that solves them, setting every weight directly.

It took just 39 minutes and $19. No training.

The model it wrote solves 100% of the test mazes.

The key idea is to design it using a single looped transformer block. One small block runs again and again, advancing the computation by one step per pass. This lets the same approach solve many algorithmic reasoning problems, including Sudoku-Extreme, GraphWalks, Tower of Hanoi, and BIG-Bench Extra Hard tasks.

Blog: https://mbzuai-oryx.github.io/LoopedWSP/

X thread: https://x.com/ahmedmm72234641/status/2124869402634129901

19 Upvotes

1 comment sorted by

4

u/suedepaid 22h ago

but how does it generalize?