Claude writes transformer weights directly: 100% on test mazes for $19, no training

Eliv_nurotic · reddit · 2026-11-24

Ahmed Heakl's "Looped Weight-Space Programming": Claude Opus 5.5 solved only 26% of hard mazes, but when asked to write a transformer and set every weight directly — no gradient descent, just 39 minutes and $19 — the resulting tiny model solved 100% of test mazes at lower cost and size. The method generalizes to Sudoku, Tower of Hanoi, Boolean expressions, graph walks, and reasoning chains, producing fully interpretable small models where each parameter's purpose can be explained. Commenters frame it as "LLM as compiler": using a language model's code generation to construct network weights, bypassing training entirely.

Related event: Claude Hand-Writes Transformer Weights to Solve Mazes Without Training(4 posts)→

Original post →

More from Models

Models channel →