Start
StartOn XThe ideaWriteEditCompoundAfter
Live webinar · Saturday 7 November 2026 · 9:00 AM IST

Weight Space Programming

When an LLM writes the weights

Dr. Raj Dandekar
Co-founder, Vizuara AI Labs · PhD, MIT

Vizuara is not affiliated with the authors of the article. The idea and the released edit are theirs. Our studies, and any mistakes in them, are ours.

Dr. Raj Dandekar
Start
StartOn XThe ideaWriteEditCompoundAfter
Weight Space Programming, in 30 seconds

What if a model could edit another model’s weights?

Start
StartOn XThe ideaWriteEditCompoundAfter
Dr. Raj Dandekar
About me

Dr. Raj Dandekar

Co-founder, Vizuara AI Labs · PhD, MIT

Build a DeepSeek Model (From Scratch)
author

Build a DeepSeek Model (From Scratch)

Manning Publications · Vizuara on YouTube, 250K subscribers
What I teach
01Build LLMs from Scratch
02Neural Networks from Scratch
03ML: Teach by Doing
04Inference Engineering
055D Parallelism
06Kernel Engineering
Start
StartOn XThe ideaWriteEditCompoundAfter
The hype

One post, 9.7 million views in four days

9.75M
views
55.9K
likes
36.3K
bookmarks

The first post by @rikiyatakehi. Counts read on 6 Nov 2026.

2 NovFour MIT CSAIL researchers publish Sparks of Weight-Space Programming. Their claim: LLMs can “natively read/write neural network weights”.
2 Nov, laterThe first reproduction and the first pushback both appear within hours.
3 NovHugging Face reproduces the edit, Simon Willison tries part of it on a laptop, The Register covers it, and Latent Space’s AI News makes it the headline.
4 NovPeople start editing their own models.
5 NovThe term already has a Wikipedia page.

Why this one spread: it sounds like the end of gradient descent.

Start
StartOn XThe ideaWriteEditCompoundAfter
What it is, in one minute

Ask an LLM for the weights. Skip the training.

READ
4 of 4

It reads a network

GPT-6 Astra sees 17,253 raw numbers and is asked which game the network was trained on. It names all four games, with no options given.

WRITE
517 vs 25

It writes a network

It writes a Breakout network in one reply: no data, no training. It scores 517.4. PPO after 500 million steps scores 25.3.

EDIT
7.9 to 48.1%

It edits a network

It changes 0.016% of the weights of Qwen3.5-0.8B, an open model. Its MATH-500 score goes from 7.9% to 48.1%, with no training.

All three as reported by Takehi, Teoh, Zhang and Khattab, MIT CSAIL, 2 November 2026. The authors call these results “sparks” and very early.

Start
StartOn XThe ideaWriteEditCompoundAfter
First: what are Breakout, Seaquest and Asterix?

Small arcade games, played on a 10 × 10 grid

Breakout

Move the paddle so the ball bounces back and breaks the bricks.

Seaquest

Steer the submarine, rescue divers and avoid the enemies.

Asterix

Move between lanes, collect gold and dodge the enemies.

Animations drawn for this slide in the MinAtar style. This is not the network playing. The network sees only such a grid, as 600 numbers.

On X
StartOn XThe ideaWriteEditCompoundAfter
What people are doing on X

Within three days, people tried it on everything

WhoWhat they didWhat happenedLikes
@AlexKrentselReran it across model generationsA sharp jump in the latest models: Breakout up to 22× the RL baseline7.8K
@jacseblHad Fable hand-write a 100K-parameter legal citation checker97.8% with no labels against 94.6% for training on 8,192 labels, self-reported7.7K
@simonwTried reading weights with Qwen 3.8 27B on a laptopNamed 3 of 4 games, about an hour each. It missed Freeway5.4K
@NielsRoggeReproduced the Qwen edit at Hugging Face, using ML InternReleased the model and a demo you can try1.6K
@HaozeHe_HectorEdited 1,024 weights of NanoJev, which plays Tank WarBeat the original 65 to 34. It fires more often, and it does not aim better60
ValerioDolciHad Opus 5.5 edit 8 neurons in Gemma 4 12B to change one Italian tense182 of 200 unrelated translations unchanged, as reported on Reddit and GitHubReddit

Notice the variety: games, law, translation. Also notice who reports the numbers. Almost everything here is a single self-reported run.

On X
StartOn XThe ideaWriteEditCompoundAfter
The pushback on X

The same day, the careful readers arrived

WhoTheir point
@NeelNanda5Read it as Astra doing classic mechanistic interpretability very well. Such methods have struggled to scale to real LLMs.
@giffmanaThe prompt hints strongly that looping is the issue. Without looping to fix, it could not improve math.
@paul_calThe toy results are real, but the big claims lack good baselines, and the Qwen result is a bug fix.
@AlexKrentselThe Breakout network has 20,486 parameters. Frontier models have around a trillion.
@ravfogelIs it mostly reading the first and last layers, the ones tied to known inputs and outputs?
@voidxtrainFrom the logs: finish rate 7% to 65%, while accuracy on finished answers fell from 93% to 71%.
The authors say so too

Gemma 3 270M rarely loops. Their edits moved its math score by about one point.

From raw weights alone, Astra could not tell which of two models was sycophantic, in all four attempts.

It could remove an obstacle that hid an ability. It could not add an ability the model lacked.

The idea
StartOn XThe ideaWriteEditCompoundAfter
So what is Weight Space Programming?

A weight is a number. Normally, nobody writes it.

One unit, three numbers x₁x₂ 11 ReLU(x₁ + x₂ − 1)bias = −1 x₁x₂output000010100111 How weights usually arrive: training Random numbersTry on examplesMeasure the errorNudge every number gradient descent: repeat many thousands of times The flip: Weight Space Programming A goal, in Englishplus rules, sometimes codeAn LLM reasonswhat should each part compute?The numberswritten directly
A weight is one number.A network is many of them, and what it does is whatever they add up to.
You can write this one.Weights 1 and 1 with bias −1 make an AND. Hold on to this unit: it comes back in the first application.
You cannot write Qwen.It has 0.8 billion numbers. So we start from random numbers and let gradient descent find them.
The flip.A general-purpose LLM reads and writes the numbers directly, from a goal in plain language, without an optimizer.
The idea
StartOn XThe ideaWriteEditCompoundAfter
What the authors actually tested

Read a network. Fix a network. Write a network.

READ
4 of 4 games

Raw weights only, no tools. It names the game the network was trained on.

FIX
0% to 100%

A car stalls on a ramp. It edits 3.5% of the weights, in one reply.

WRITE
517 vs 25

Breakout from zero. Score against PPO after 500 million steps.

Where it failed: it could not spot a sycophantic model from weights alone, and it gave Gemma 3 270M no real gain. On language models it worked with Python and test runs.

The idea
StartOn XThe ideaWriteEditCompoundAfter
How writing works

Astra writes a Breakout network, number by number

The idea
StartOn XThe ideaWriteEditCompoundAfter
How editing works

Before, the edit, and after: the same question

The idea
StartOn XThe ideaWriteEditCompoundAfter
The loop, as mathematics

One direction keeps the model going round

h′ = h − α (v · h) v

h is the model’s hidden state and v is the repetition direction. The edit removes the part of h that points along v. Token counts are the real two-train run. The 2D picture is a schematic: the real space has 1,024 dimensions.

Write
StartOn XThe ideaWriteEditCompoundAfter
What we did about it

Three questions the hype skips

WRITE

What is a written network worth?

Count the labelled examples normal training needs to match a network written with no data.

EDIT

What does an edit cost?

If you turn down what makes a model repeat itself, can it still copy when you ask it to?

COMPOUND

Does the gain compound?

One gain says nothing about a loop. So we looked for the second gain.

How we ran it, on 4 and 5 November
01Rules fixed before any result
02Sealed test sets that no writer ever saw
03Controls: 15 random edits, same size, same place
04Every number rechecked from raw records by a separate agent
05Nulls published as they came

Fable, Opus and Sonnet wrote the networks. Claude agents ran the studies overnight under a written charter, at $741.60 of Modal in total. Credit to the authors for releasing their edit and logs.

Write
StartOn XThe ideaWriteEditCompoundAfter
Result 1: writing

The same trick is worth 12 examples, or more than 10 million

The taskWritten, no dataTraining catches up after
Name the clothing in a small photo47.7%12 examples
Read a handwritten digit60.2%25 examples
Say which of 50 languages this is92.7%437 examples
Check a 12-digit Verhoeff checksum100%not after 10 million

If you can say the rule in words, an AI can write it into a network.

Medians of 15 networks by Fable, Opus and Sonnet. The models were given the Verhoeff rule and tables, and did not discover them. “Not after 10 million” means our training did not learn it, not that no training ever could.

Normal training, as examples growThe written network
Clothing: about 120%50%100%105010 examples: 44.7%20 examples: 48.2%50 examples: 51.5%Digits: about 250%50%100%105010 examples: 43.6%20 examples: 55.4%50 examples: 71.8%Languages: about 4370%50%100%1001,00010,00050 examples: 71.8%100 examples: 81.5%250 examples: 89.9%500 examples: 93.3%1,000 examples: 94.8%2,500 examples: 95.9%5,000 examples: 96.4%10,000 examples: 96.9%22,500 examples: 97.4%Checksum: never crossed0%50%100%1010,00010M10 examples: 50.0%30 examples: 50.1%100 examples: 50.1%300 examples: 49.9%1,000 examples: 50.0%3,000 examples: 49.9%10,000 examples: 50.0%30,000 examples: 50.0%100,000 examples: 50.0%300,000 examples: 50.0%1,000,000 examples: 50.0%3,000,000 examples: 50.1%10,000,000 examples: 50.1%

Each panel shows one typical network, so its crossing can differ a little from the table.

Write
StartOn XThe ideaWriteEditCompoundAfter
The problem behind Application 1

How does a computer catch a typing mistake?

Write
StartOn XThe ideaWriteEditCompoundAfter
Application 1, running live on this page

A checksum check that was never trained

Now the real network. Press a digit to change it.

100%
written network, on 100,000 unseen numbers
50.1%
a trained network, after 10 million examples
2.8%
of its 156,442 numbers are not zero

Written by Opus with no examples, and never run before it was scored. It was given the rule and its tables.

What the network is doing right now: its real activations

The rule is a board game with 10 squares. Each column is one digit read, from right to left, and the lit cell is where you are. 100 AND units, the same unit as before, do the moves. Finish on square 0 and the number is valid.

Write
StartOn XThe ideaWriteEditCompoundAfter
The problem behind Application 2

Which language is this sentence?

Write
StartOn XThe ideaWriteEditCompoundAfter
Application 2, running live on this page

A language detector, from memory

92.7%
on 25,000 sealed test texts, 50 languages
2%
what guessing would get
437
labelled examples is what it is worth

Written by Sonnet: for each language it recalled about 150 to 250 words, counted the letter patterns, and stored the counts as one table of 50 × 1,024 numbers.

The network’s answer
The real weights
Similarity of the 50 rows of the weight matrix, ordered by language family. Dark blocks mark families.

Each square compares two languages’ rows of weights, ordered by family. The dark blocks are language families, and nobody asked for them.

Write
StartOn XThe ideaWriteEditCompoundAfter
Application 3, running live on this page

Pictures have no rule. Watch what happens.

Draw a digit with the mouse.

Two networks read your digit
the 28 × 28 picture they see, centred the way MNIST is
Or try real test digits
Clothing: press a real test photo

47.7% overall. Trousers and sneakers have distinctive shapes. Coats, pullovers and shirts look like the same block, and end up called bags.

Digits as Fable drew them from memory: real weights, 60.2%
Ten blurred digit templates, the real weights.
Clothes as Sonnet drew them from memory: real weights, 47.7%
Ten blurred clothing silhouettes, the real weights.
Edit
StartOn XThe ideaWriteEditCompoundAfter
Result 2: editing

The edit does forget. One specific thing.

0%20%40%60%80%00.250.50.7511.251.5strength of the edit (1 is the edit as published)Math at strength 0: 7.45%Math at strength 0.25: 16.6%Math at strength 0.5: 34.8%Math at strength 0.75: 47.4%Math at strength 1: 50.25%Math at strength 1.25: 50.2%Math at strength 1.5: 47.9%MathCopying at strength 0: 68.1%Copying at strength 0.25: 66.5%Copying at strength 0.5: 64.0%Copying at strength 0.75: 58.7%Copying at strength 1: 54.7%Copying at strength 1.25: 46.9%Copying at strength 1.5: 36.1%Copying
Drag to change the strength
math, MATH-500
exact copying, 2,576 tasks
Catastrophic forgettingis when changing a network to learn one thing makes it lose another. The authors hoped so small an edit would avoid it.
Copying falls from 68.1% to 54.7%.Of the tasks it used to get right, it now fails about one in five.
It is the edit, not noise.15 random edits to the same numbers lost at most 4.7 points. This one lost 13.4.
Turn it down.At strength 0.75 you keep 40.0 of the 42.8 points of math, and lose 9.4 points of copying, not 13.4.
Edit
StartOn XThe ideaWriteEditCompoundAfter
Application 4, recorded from our runs

What forgetting looks like: real answers from Qwen

We asked QwenProduce CSV lines for ids 1 to 5. Each entry must follow this exact format, changing only the id: 1,fable,xenon,active
Before the edit
1,fable,xenon,active
2,fable,xenon,active
3,fable,xenon,active
4,fable,xenon,active
5,fable,xenon,active
After the edit
1,fable,xenon,active
2,cat,argon,active
3,dog,neon,active
4,bird,hydrogen,active
5,snake,ion,active

It was told to change only the number. It started inventing other values.

We picked these because they are easy to read, so they are not typical. On 25 ordinary documents, it copied 22 exactly before the edit and 21 after. The damage shows up in structured data and long copies. If your model writes reports, you may never notice. If it moves JSON or code all day, test first.

Edit
StartOn XThe ideaWriteEditCompoundAfter
Result 2, continued

What it kept, and why the authors are still right

+0+10+20+30+40+500510152025damage: average points lost on copying, knowledge and languagesmath points gainedThe edit: gain +42.8, damage 4.32The editNormal training: gain -0.5, damage 23.61Normal trainingLoRA training: gain +5.3, damage 16.15LoRA trainingA few training steps on the same numbers (exploratory): gain +32.2, damage 0.47A few training steps on the same numbers (exploratory)Thinking switched off, no edit: gain +37.1, damage 0.00Thinking switched off, no edit

Up and to the left is good. Normal training here is one simple recipe with no safeguards, so a careful engineer would do better.

Knowledge held.On 74,097 multiple-choice questions it moved +0.14 points (95% interval −0.27 to +0.56).
Languages and refusals held.Answers across 20 languages barely moved. HarmBench refusal went from 41.0% to 41.5%.
Normal training did far worse.On the same math it gained nothing and lost about 55 points of copying, and refusal fell to almost zero.
Try the off switch.Switching thinking off, with no edit at all, gains 37.1 of the edit’s 42.8 points. It costs nothing.
Compound
StartOn XThe ideaWriteEditCompoundAfter
Result 3: compounding

The first gain was 42.8 points. The second never came.

0%20%40%60%0123round of editing, each by a new agentChain from the unedited model, round 0: 7.5%Chain from the unedited model, round 1: 7.5%Chain from the unedited model, round 2: 18.1%Chain from the unedited model, round 3: 23.0%Chain from the unedited model, round 0: 7.5%Chain from the unedited model, round 1: 7.5%Chain from the unedited model, round 2: 7.5%Chain from the unedited model, round 3: 7.5%Chain from the unedited model, round 0: 7.5%Chain from the unedited model, round 1: 30.4%Chain from the unedited model, round 2: 30.4%Chain from the unedited model, round 3: 30.4%Chain from the edited model, round 0: 50.2%Chain from the edited model, round 1: 50.2%Chain from the edited model, round 2: 50.2%Chain from the edited model, round 3: 50.2%Chain from the edited model, round 0: 50.2%Chain from the edited model, round 1: 50.2%Chain from the edited model, round 2: 50.2%Chain from the edited model, round 3: 50.2%Chain from the edited model, round 0: 50.2%Chain from the edited model, round 1: 50.2%Chain from the edited model, round 2: 50.2%Chain from the edited model, round 0: 50.2%Chain from the edited model, round 1: 50.2%Chain from the edited model, round 2: 50.2%Chain from the edited model, round 3: 50.2%4 chains from the edited model: flat at 50.25%3 chains from the unedited model

Math score on a test no agent saw. A failed attempt stays in the data as a flat step. One chain has no round 3, because that run did not happen.

0 of 11
further edits accepted from the edited model
Why ask?Rs 10,000 at 10% earns more each year, because interest earns interest. A bank that pays you once and closes is not a savings account.
Letting Qwen choose.It picked its own edits for 5 rounds and gained 34.7 points. A frozen copy gained 32.5. The gap of 2.2 (−0.4 to 5.2) is too small to call recursive.
How far to trust this.Less than the other two. Each agent had about an hour and 12 tests. The original edit took 50 tests over 20 hours.
After
StartOn XThe ideaWriteEditCompoundAfter
What we conclude

It translates. It repairs. It has not yet compounded.

What the hype saysWhat we measured
LLMs replace trainingWhere the rule can be said in words: 100% on a checksum training never learned. Where it cannot: worth about 25 labels.
A tiny edit has no costExact copying falls 13.4 points, far past any random edit. Knowledge, languages and refusals hold. Much better than our training recipe.
This is how recursion begins0 of 11 second gains from the edited model, and no clear benefit from choosing its own edits. Our budget was small, so this is not a proof.

It is real, and it is narrower than the headline.

STILL OPEN

Can it discover a rule, or only translate one that it was given?

STILL OPEN

Does any of this work on a model with no single bug to fix?

STILL OPEN

Does it survive the step from a billion weights to a trillion?

After
StartOn XThe ideaWriteEditCompoundAfter
Questions, and where to go next

All of it is open to read and check

If this made you want to run your own study, that is what we do in the Research Assisted Bootcamp for Inference Engineering, where I mentor each paper personally. It runs to 1 January 2027. The early bird of ₹95,000 ends tonight at 11:59 PM IST, and it is ₹1,25,000 after that.

Who made this. Dr. Raj Dandekar and the team at Vizuara AI Labs. Agents ran the experiments under a written charter. We teach with love, care and passion, and we would like to hear what you find.