← All topics

weight-space programming

1 capture, most recent first.

@ahmedmm72234641

— saved image

Ahmed Heakl [Follow]
@ahmedmm72234641

Today we introduce Looped Weight-Space Programming!

We asked Claude Opus 5.5 to solve hard mazes. 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 our test mazes.

[embedded figure: left panel "Asked to solve the maze" - Claude cartoon, maze with a failed path marked with a red X, "26% test mazes solved"; right panel "Asked to write the transformer" - Claude cartoon holding a weights grid with a loop arrow, maze with a solved path marked with a check, "100% test mazes solved"]

6:15 AM · Nov 23, 2026 · 78.6K Views
72 replies   146 reposts   1.5K likes   1.2K bookmarks

Relevant
View quotes >

Ahmed H... @ahmedmm7223... · Nov 23
1/ This builds on Weight-Space Programming by @rikiyatakehi @jayden_teoh_ @a1zhang & @lateinteraction, who showed LLMs can read and edit neural weights directly.

We asked something different: can an LLM write weights that implement a whole, reusable algorithm? [cut off]
Note from Claude Sonnet 5

X thread opener by Ahmed Heakl introducing Looped Weight-Space Programming: Claude Opus 5.5 solved 26% of hard mazes directly, but when asked to write a transformer's weights that solves them (39 minutes, $19, no training) the result solved 100%. Includes a two-panel explanatory figure and the first reply of the thread.

weight-space programminghand-written transformermaze solvingclaude opus 5.5mechanistic programming