🎉 Giảm 20% cho đơn hàng đầu tiên!✦🚚 Miễn phí vận chuyển cho đơn trên 500.000₫✦⚡ Flash Sale — Số lượng có hạn!✦🎁 Quà tặng kèm cho đơn từ 1.000.000₫✦🎉 Giảm 20% cho đơn hàng đầu tiên!✦🚚 Miễn phí vận chuyển cho đơn trên 500.000₫✦⚡ Flash Sale — Số lượng có hạn!✦🎁 Quà tặng kèm cho đơn từ 1.000.000₫✦
Claude Spent 39 Minutes and $19 Writing an AI Model That Beat Itself: 19,936 Weights, No Training, 100% Accuracy
Quay lại Blog

Claude Spent 39 Minutes and $19 Writing an AI Model That Beat Itself: 19,936 Weights, No Training, 100% Accuracy

26 tháng 11, 20269 phút đọcVũ Khôi
English
#English#AI tạo sinh#Khoa học & Tư duy
Vũ Khôi

Vũ Khôi

Tác giả tại Wotech Electronics Blog

Claude writing a transformer that solves mazes at 100%

Claude Spent 39 Minutes and $19 Writing an AI Model That Beat Itself: 19,936 Weights, No Training, 100% Accuracy

The MBZUAI ORYX team gave Claude Opus 5.5 a maze problem that it could only solve 26% of the time. Then they changed the assignment: stop solving mazes, and instead build an AI model that solves mazes. 39 minutes later, Claude had hand-set every weight of a small Transformer — no training, no gradient descent, no data — and that model scored 100%.

Quick answer: The MBZUAI ORYX team asked Claude Opus 5.5 to write all 19,936 weights of a looped Transformer for solving Maze-Hard mazes, instead of asking it to solve the mazes itself. The result scored 100% on the test set, while Claude solving directly managed only 26%. The method is called Looped Weight-Space Programming. It proves AI can encode a known algorithm straight into weights, but it does not prove AI can upgrade itself or replace training for general-purpose models.

Looped Weight-Space Programming is a method in which a large language model writes the weights of a small Transformer directly, instead of letting gradient descent find them through training. The key is the loop: a single Transformer block runs over and over, each pass advancing the algorithm by one step, so a bigger problem only needs more passes, not more weights.

What happened in this experiment?

The story starts with a rather embarrassing exam result for Claude Opus 5.5. The MBZUAI ORYX team — Abdelrahman Elsayed, Ahmed Heakl, Abdelrahman Shaker, Fahad Khan, Salman Khan, with Claude Opus 5.5 itself listed as a co-author — gave Claude the Maze-Hard benchmark: find the shortest path through 30×30 mazes whose solutions run longer than 110 moves. One of the world's leading AI models solved only 26%. The researchers even walked it through the pathfinding algorithm in detail, and the result only improved to 48%.

So they changed the assignment. Instead of asking Claude to find its way out of the maze, they asked it to build an AI model that finds its way out of mazes.

In a single Claude Code session lasting 39 minutes and costing about $19 at public API prices, Claude set all 19,936 weights of a Transformer directly in code. No training. No gradient descent. No training data. The result: 100% accuracy on the test mazes. The team then scaled the mazes up to 60×60 and then 100×100, using the same weights with no retraining, and the result was still 100%.

The model that had just failed the exam had built a machine that aced it.

Why did hand-written weights beat training?

The trick is the loop. Claude designed each maze cell to hold a memory of 35 values, each with a clearly defined role decided before a single weight was set. Four attention heads read information from the four neighboring cells: up, down, left, right. It did not even need to store the real distance to the goal — storing only the remainder of the distance divided by 3 was enough to tell whether a move goes toward the goal or away from it.

Each loop advances the search by one step. A bigger maze needs more loops, not more weights — just like writing a for loop: nobody rewrites a program because the iteration count grew from 100 to 10,000.

And here is the part that makes the result remarkable: when the researchers took the very Transformer architecture Claude had designed, reset its weights to random values, and trained it on 1,000 mazes, test accuracy was 0%. Gradient descent simply could not find these weights. Meanwhile, when Claude was limited to at most 1,000 weights, it wrote a Transformer with only 928 weights — about 1,900 times smaller than comparable models — that still scored 100%.

Approach Weights Cost Maze-Hard accuracy
Claude Opus 5.5 solving directly — — 26%
Claude solving with algorithm guidance — — 48%
Transformer hand-written by Claude 19,936 ~$19, 39 minutes 100%
Transformer hand-written by Claude, capped at 1,000 weights 928 — 100%
EBR (trained with gradient descent) 1.8 million 1,160 PFLOPs 94.1%
Same architecture, random init then trained 19,936 1,000 mazes 0%

What other numbers are worth remembering?

The team did not stop at mazes. They had Claude design separate Transformers for other tasks, and the results were still 100%:

  • Tower of Hanoi, 20 disks: one block of 3,686 weights looped more than 2 million times, playing all 1,048,575 moves in a row without a single mistake.
  • Sudoku-Extreme: solved all 141,040 test puzzles correctly.
  • GraphWalks: handled inputs up to 1 million tokens long at 100% accuracy, while Claude Opus 5.5 answering directly managed only 66.8%.

All weights, the runner code, and even the prompts given to Claude are public on GitHub (mbzuai-oryx/LoopedWSP, MIT license), along with two demos that run in the browser. The work was published on 23/11/2026 as a blog post and code repository, not as a peer-reviewed paper. It builds on Weight-Space Programming, earlier work from MIT CSAIL in which a frontier LLM edits another model's weights directly, without any training.

What are the limits of this method?

The study does not prove Claude can upgrade its own brain, nor that this method can replace training for general-purpose AI models. The Transformers it produced are still specialist models for tasks with clear rules and known algorithms. To write weights by hand, you first have to know the algorithm to encode — the method does not discover new algorithms on its own.

In other words, this is a way of writing a program down into weights, not a way for a machine to learn by itself. All figures in this article are the research team's own reported results, with no independent verification yet.

What is the lesson for how we assign work to AI?

The most valuable part of this research, in the view of the original post's author, is what it says about how we delegate to AI. Imagine asking a programmer to sort 100,000 numbers by hand — they might still be getting it wrong by the next morning. But ask that same person to write a sorting algorithm for 100 million numbers, and it is a completely different story.

LLMs are the same. Instead of burning piles of tokens making AI reason step by step through a thousand-step problem, why not let it build a tool that executes the algorithm, and hand the repetitive work to the computer? That is also one reason why AI agent architectures that combine code, tools, and workflows deserve more attention than simply stretching prompts longer.

And perhaps the most interesting paradox of the AI era is this: a machine not smart enough to solve a problem can still be smart enough to build a machine that solves it.

Apply it now

  • Change the question when AI gets stuck: instead of making AI reason through a long problem step by step, ask it to write a program or a tool that solves the problem, then run the tool instead of the reasoning.
  • Separate repetition from reasoning: work that repeats thousands of times under the same rule belongs in code, not in a prompt.
  • Read results for what they are: 100% on a task with a known algorithm does not mean the AI got smarter — it means the AI wrote the algorithm down in a different form.
  • Verify before trusting: this work is a blog post and open-source code, not peer-reviewed — run the public code yourself before quoting the numbers.

Frequently asked questions

1. What is Looped Weight-Space Programming? A method in which a language model writes every weight of a small Transformer directly, then runs that single block in a loop. Each pass performs one step of the algorithm, so a larger problem needs more passes, not more weights.

2. Why did Claude score only 26% solving mazes directly but 100% writing a Transformer? Solving directly requires step-by-step reasoning over more than 110 moves in text, which LLMs tend to lose track of midway. Writing a Transformer only requires writing one correct step of the search algorithm, then letting the loop repeat it.

3. Can this method replace AI training? No. It only applies to problems where the algorithm is already known. General-purpose models still need training, and the study does not show AI upgrading itself.

4. Have these results been independently verified? Not yet. This is a blog post and open-source repository published on 23/11/2026, not peer-reviewed. All weights and code are public so anyone can run them and check.

5. How does this relate to the Weight Programming story in share 85? They belong to the same research family: writing weights directly instead of training. Share 85 covered grafting LFM3-1.7B behavior into Gemma-3-270M. This article covers a different experiment by the MBZUAI ORYX team: Claude writing a brand-new Transformer to solve mazes.

Source: Facebook post by Hỏi Dân it Offical (24/11/2026), summarizing "Looped Weight-Space Programming: LLM-Written Transformers for Long Algorithmic Reasoning" by MBZUAI ORYX (blog and GitHub mbzuai-oryx/LoopedWSP, published 23/11/2026). All figures are the research team's own reported results.