LoopedWSP

mbzuai-oryx

Research from MBZUAI where language models write the weights of small looped transformers directly, as programs, to solve long algorithmic reasoning tasks. Code accompanying the paper, which lists Claude Opus 5.5 among its authors.

PythonCreated

What is mbzuai-oryx/LoopedWSP?

Looped Weight-Space Programming is a method that the README introduces with a maze example. The authors asked Claude Opus 5.5 to find the shortest paths through hard 30 by 30 mazes from the Maze-Hard benchmark, where shortest paths are long. The trick is a loop: the transformer is a single block run over and over, and each pass moves the shortest-path search one step further, so a bigger maze needs more passes rather than more parameters.

The authors say Claude used the same approach on eight more tasks from well-known benchmarks, writing a transformer for each. The README gives one example, Sudoku-Extreme, where the transformer guesses and backtracks when it gets stuck and solved every one of the 141,040 test puzzles that were run. The results are the authors' own and are presented as such.

It suits researchers interested in looped transformers and program-like computation inside neural networks, and readers who want to see a concrete example of the method.

algorithmic-reasoningclaudeinterpretabilityllmlooped-transformermaze-hardmechanistic-interpretabilityno-training