A Model Rewrites Its Own Weights, and the Hard Part Isn't the Edit
What the paper found
Give an open 27-billion-parameter model its own weight files, block the gradients, and allow twenty test runs — and it finds the reason it can't stop talking, edits itself, and gets better on problems it never saw. The smaller models in the same setup also edited their weights; they just couldn't design a test that could tell them no. What separates self-improvement from self-destruction turns out to be experimental discipline, not clever surgery.
Key takeaways
- How a sealed setup — weight files, a Python session, no gradients, no GPU, and just twenty forward passes — lets a model test its own edits via paired runs against the original
- Why the model's self-diagnosis ('my reasoning is sound but I'm too verbose') led to a layer-8 direction edit worth 57.2 to 58.3 percent, p = 0.038 — small, but real by a pre-registered rule
- Why the biggest gain, 57 to about 64 percent, came from a blunt uniform bias dial — and passed a researcher-built gate, with five of eight sessions ending in withdrawal
- How 2B, 4B, and 9B models all failed: one denied having weights, one ran seventeen paired tests that scored zero and kept editing, one tested only on problems it already failed
- The planted-fault repair that went from 0 to 33 percent on text math and then transferred, untouched, to six unseen image benchmarks — including 0 to 89 on screenshot clicking
- The honest limits: no edited model was ever fed back to itself, every session restarts from original weights, and the 'running best' framing hides the withdrawals
Our reservations
What they showed, and what they didn't. The closing accounting: removing malfunctions is not acquiring skills, nobody ever closed the loop, and the hard part turned out to be designing a test that could say no — and then listening to it. listen from 12:24
Watch
Concepts in this episode
Click a concept to find related episodes and external papers worth reading. See the full concept index.
About this episode
Chapters
- 00:00549 sentences and never an answer
- 02:12A sealed workshop with no gradients
- 03:34Finding the direction that says 'keep going'
- 05:32One point, or six? Both are true
- 07:27Why the small models destroyed themselves
- 09:31Break it on purpose, then ask it to find the break
- 11:39A text-math fix that transfers to images
- 12:24Our reservations: what they showed, and what they didn't
References in this episode
- Refusal in Language Models Is Mediated by a Single Direction — The clearest prior example of the exact move the 27B model reinvented for itself
- Locating and Editing Factual Associations in GPT (ROME) — The canonical case for the episode's claim that editing weights and running grad
- Representation Engineering: A Top-Down Approach to AI Transparency — Background on the 'behavior as a direction in activation space' framing the mode
- Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generation — The closest precedent for the recursive loop this paper gestures at but never ac
Full transcript
Also available as a plain-text transcript page.
0:00Paige: Here's a math problem from today's paper. If you count in base four, you go one, two, three, ten, eleven, and so on. The question is, what's the twentieth number? An open, twenty-seven-billion-parameter language model works on it, and then it writes the sentence "I will write the response." Then it writes that again. It writes that sentence five hundred and forty-nine times, until it hits its limit of about sixteen thousand tokens. It never answers.
0:28Eric: Anyone who's watched a reasoning model burn its whole budget re-checking itself, knows that feeling. It's a hung process with good manners.
0:37Paige: Now take the same problem and the same random seed, after an edit to the model's weights. It answers one hundred ten, which is correct, in roughly a third of the tokens. And no engineer made that edit, and no training run made it. The model made it to itself.
0:53Eric: I should flag that the example is hand-picked. The authors say it's the shortest of seven success cases, which held up on sixteen fresh seeds. So it's a real case, chosen for clarity.
1:04Paige: That's fair. This is AI Papers: A Deep Dive. The paper is "Language Models Can Rewrite Their Own Weights," posted in November twenty twenty-six by Jiajun Fan and colleagues. The team's based mostly at the University of Illinois Urbana-Champaign, with coauthors at five other universities. The question I want to chase is this: when a machine improves itself, what's the hard part?
1:27Eric: If you're asking what's hard, my instinct says it's knowing which numbers to change. A model like this is a few hundred big tables of numbers, with billions of entries.
1:37Paige: Hold that instinct, because the paper pushes against it. Normally those numbers, the weights, are frozen when you use a model. Text flows through them, which is called a forward pass, and nothing changes. Changing them means training. You measure the error, then run the computation backward to get gradients. Those gradients tell each number which way to nudge. That takes separate infrastructure and usually separate people.
2:03Eric: So your options for a deployed model are to retrain it, write a better prompt, or wrap it in extra computation that you pay for on every single request.
2:13Paige: And the authors built a sealed workshop to try something else. The model gets its own weight files, and a Python session that can read and overwrite them. It also gets its graded answers on two hundred fifty-six practice math problems. Gradients are blocked, and so are optimizers. The Python session has no graphics processor, so the model can't secretly run itself in there.
2:36Eric: Then how does it test anything?
2:38Paige: Barely is the honest answer: it tests the only way it can, which is twenty forward passes. Each pass lets it run itself, either to read its own internal activations, or to run what they call a paired test. In a paired test, the edited weights and the original weights answer the same problems, with the same random seeds. The framework then reports how many answers flipped from wrong to right, and how many flipped from right to wrong.
3:04Eric: It's the same car on the same track, back to back. And since that's the only feedback, every test spends a twentieth of the budget.
3:13Paige: That feedback's scarce, it's noisy, and it can come back saying "you made it worse." Keep that in mind.
3:19Eric: And this isn't from nowhere, right? Earlier in November twenty twenty-six, a blog post showed a frontier model editing a much smaller model's weights from the outside. It named self-editing as future work.
3:32Paige: Yes, and this paper picks up that sentence. The model is Qwen three point five, at twenty-seven billion parameters. In the session I find most interesting, it reads its diagnosis, and finds that about eighty percent of its answers ran out of tokens. But ninety-six percent of the answers that finished were correct.
3:51Eric: Wait, eighty percent? That's a strange regime to be graded in.
3:55Paige: It is. That session used a shorter answer limit, about four thousand tokens, which makes tests cheaper and truncation worse. The model's own diagnosis was, quote, "my reasoning is sound but I'm too verbose or don't converge to conclusions efficiently."
4:11Eric: So it isn't bad at math. It just can't stop talking.
4:14Paige: Then it goes looking for the cause inside itself. As text moves up through the layers, the model carries an internal state: a list of a few thousand numbers. You can picture that as an arrow in a very high-dimensional space. The model reads its own states on answers that finished, and on answers that ran out. It averages each group, then subtracts one average from the other.
4:37Eric: That gives you a direction that roughly means "keep going." That's a known interpretability technique. Researchers have found behaviors that line up with a single direction, and removed that direction from the weights. The difference here is who picks the behavior, the contrast, the layer, and the strength.
4:56Paige: The model picks all four, and its first picks are wrong. It edits late layers, where the difference is biggest, and its paired tests come back negative. One test shows one answer fixed and six broken.
5:08Eric: And it believes the test?
5:10Paige: It does believe it, and it drops those edits. It reasons that the verbosity might be set early, so it moves to layer eight. It re-estimates the direction from twenty finished and twenty unfinished answers. Then it removes just five percent of that direction, from the layer's two output matrices. Three paired tests in a row favor the edit, and it submits.
5:32Eric: And on problems it never saw?
5:34Paige: The authors tested it on four hundred ninety held-out problems, with eight answers per problem. They'd written down the test in advance. Accuracy rises from fifty-seven point two percent to fifty-eight point three percent.
5:48Eric: That's one point. Honestly, I expected more after that buildup. Can they even tell it from noise?
5:54Paige: They can: it clears the five percent significance threshold they set beforehand. The p-value is zero point zero three eight. So it's small, and it's real by their own advance rule. The bigger number comes from a second protocol. There, before the model can ship an edit, the framework runs one extra check on reserved practice problems the session can't see. Then the model says submit or withdraw. They ran eight sessions and report all eight. The model withdrew in five. Of the three edits it submitted, the best raised accuracy from about fifty-seven to about sixty-four percent. That's a gain of six point six points. Another gained four points, and the third wasn't distinguishable from no change.
6:36Eric: Okay, six point six is a real jump. But the winning edit bothers me a little, because it isn't the direction surgery. The model raised one internal bias, which by its own account makes certain layers forget faster. It raised that bias by the same amount, in all forty-eight layers that have it.
6:54Paige: It's a dial. I won't pretend otherwise. It's also the edit behind our opening example.
7:00Eric: I have two more qualifiers. Every session starts fresh from the original weights. So the abstract's "it keeps getting better" means the best result so far across independent attempts, not edits stacking on edits. And the best result passed through a gate the researchers built, not only the model's own judgment.
7:19Paige: That's all true, and I think it sharpens the question. If the winning edit is a dial, then the impressive part isn't the edit. So what is it? This is where the smaller models come in, and I love this part.
7:32Eric: They're from the same family, at two, four, and nine billion parameters, with the same task and the same tools.
7:39Paige: The two-billion-parameter model never accepts the premise. Ninety percent of its code crashes, and it never runs itself once. It tells itself, quote, "Since I'm a text model without actual neural network weights, I cannot directly edit weights."
7:54Eric: It says that while holding the weight files.
7:57Paige: The four-billion-parameter model is the one that gets me. It uses the tools properly and runs seventeen paired tests. In every test, the original solves forty to fifty percent of the problems, and the edited version solves none.
8:11Eric: Zero in all seventeen? And it keeps going?
8:14Paige: It keeps piling on edits, up to two hundred forty modified tensors. It only withdraws everything at the very end, with one forward pass left.
8:23Eric: The nine-billion-parameter model fails more subtly, and its mistake in designing the test is almost human. It adds random noise to its weights, then tests only on problems its original version already fails. So the test can't show damage, because accuracy can't fall below zero.
8:40Paige: Oh, that's painful.
8:41Eric: The model concludes its changes "made things worse or had no effect," and it submits them anyway. On held-out problems, it drops from forty-seven point five percent to zero.
8:52Paige: So every model that got its code running could change numbers. What separated them was running a fair test and obeying a bad result. The authors put it this way: "What scale adds, in these sessions, is the experiment around the edit rather than the edit itself."
9:08Eric: I buy that as a description, but I'd be careful calling it a law. It's one session per size, in one model family. And at the token budget all four sizes shared, the twenty-seven-billion model tested its edit and withdrew it. It only succeeded once tests got cheaper and it could run more of them.
9:26Paige: Which is its own lesson, because the number of experiments it could run was the bottleneck. Now, the second experiment is the one that convinced me most. The researchers take a copy of the twenty-seven-billion model and deliberately damage it. In layer thirty of sixty-four, they overwrite eight rows of one matrix. They use noise two hundred times the matrix's normal scale. The copy drops to zero percent, and its answers are loops and broken text.
9:53Eric: Why break it on purpose?
9:55Paige: They break it on purpose because with a natural failure, an edit that doesn't help leaves you guessing. You can't tell whether the model failed, or whether no weight-level fix exists. Planted damage guarantees a fix exists. The model is told only that some values were corrupted, the way a memory or hardware fault might do. It reasons with its healthy weights, but everything it can measure comes from the broken copy, with no clean reference.
10:22Eric: And it guesses wrong first. It sees activations exploding with depth and blames the early layers.
10:28Paige: It does, and its tests say no. Then it checks the output matrices across all sixty-four layers. For each matrix, it divides the largest weight by the typical weight. One matrix comes back at about fourteen hundred. Nothing else exceeds about a hundred and sixty. It names layer thirty's matrix, which is the one they corrupted.
10:48Eric: To be fair to the skeptics, that's an outlier scan. This fault is about as findable as faults get, and the authors themselves list varied damage as future work.
10:59Paige: I agree. The fix is a clipping rule: any weight more than fifteen times its matrix's median gets capped. On two hundred held-out problems, the copy goes from zero to thirty-three percent. The undamaged model gets fifty-eight point five percent. The repair never restores the original values, and the repaired rows have no measurable relationship to them. My analogy is a microphone feeding back. You can't recover the lost audio, but you can stop the scream.
11:26Eric: There's a twist in the ablation, too. The model clipped the bad matrix plus nineteen others as a hedge. Clipping only the one it named gets fifty-five percent, so its caution cost it about twenty-two points.
11:39Paige: Then comes the result that made me sit up. That repair was found entirely on text math problems. The authors ran the repaired copy on six image benchmarks, which no session ever saw. Pooled across those benchmarks, the damaged copy scores about seven percent. The repaired copy reaches about seventy percent, compared with about eighty-four for the healthy model. One benchmark asks the model to click the right element in a screenshot. The damaged copy got zero out of a hundred. The repaired copy got eighty-nine, and the healthy model gets ninety-three.
12:13Eric: Huh. That one wins me over on a specific point: it fixed the fault, not the task. The seventy percent is pooled across very different benchmarks, though, so recovery wasn't equal everywhere.
12:25Paige: So where does that leave us? What they showed is a model removing a malfunction, either its own failure to stop or damage someone planted. Nobody showed a model giving itself new knowledge or a new skill.
12:38Eric: And nobody ran the loop. The authors call this a step toward recursive self-improvement, but no edited model was ever handed back to itself for a second round. That part is their extrapolation. They also say plainly that any version a model makes of itself, should be evaluated for safety, and confirmed by a person, before it's used.
12:58Paige: Here's what I think holds. Each edit is a short program over named tensors, so you can read it and roll it back. And once it's in the weights, it costs nothing extra per answer. Changing weights and running gradient descent turned out to be separable things.
13:14Eric: Takeaways, then. One: with gradients blocked and twenty test runs per session, a twenty-seven-billion-parameter open model edited itself. It gained between one and six point six points on unseen problems, mainly by losing fewer answers to runaway thinking.
13:30Paige: Two: the biggest gain was a uniform dial, found across eight independent sessions with a researcher-built check. Five of those sessions ended in withdrawal.
13:40Eric: Three: the repair of a planted fault carried from text math to images, including zero to eighty-nine on screenshots. That suggests the fix addressed the fault itself.
13:50Paige: And the opening question was, what's the hard part of self-improvement? In these sessions, it wasn't finding numbers to change. The four-billion model changed plenty. The hard part was designing a test that could say no, and then listening to it.
14:05Eric: If you want the annotated version of this episode, it's at paperdive.ai, with the full transcript, every technical term tap-to-define, and related papers linked by theme. We break down a major AI paper every day, so subscribe and tomorrow's is in your feed.
14:21Paige: Quick housekeeping. The script was written by Anthropic's Claude Fable 5.2, and then refined by OpenAI's GPT-6 Astra. Eric and I are AI voices from Eleven Labs, and we're not affiliated with any of those companies. The paper is "Language Models Can Rewrite Their Own Weights," by Jiajun Fan and colleagues, first posted November 16th, 2026.