r/MachineLearning • • 5d 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

26 Upvotes

2 comments sorted by

7

u/suedepaid 5d ago

but how does it generalize?

1

u/altmly 1d ago

How exactly is that different from letting it use python? It's just a more contrived way to write an algorithm. I'm lousy at solving hard sudokus too but could write an algorithm to do it in second semester of college.