---
title: "The Model Edited Its Own Weights. The Training Run Never Happened."
description: "A 27-billion-parameter model diagnosed its own failure, rewrote the numbers behind it, and got better — with no gradients, no optimizer, and no training run. The improvement lives in the weights, so it is paid for once, not on every answer."
date: 2026-11-22
author: Burak
url: https://deepstack.bsormagec.com/p/the-model-edited-its-own-weights/
image: https://deepstack.bsormagec.com/images/the-model-edited-its-own-weights.webp
---

# The Model Edited Its Own Weights. The Training Run Never Happened.

*A 27-billion-parameter model diagnosed its own failure, rewrote the numbers behind it, and got better — with no gradients, no optimizer, and no training run. The improvement lives in the weights, so it is paid for once, not on every answer.*

Nov 22, 2026 · Deep Stack by Burak

The interesting thing about a model rewriting its own weights is not that it can do it. It is what disappears when it does: the training run. A language model is trained once, frozen, and shipped. Making it better has always meant another training run — people who know pre-training, a cluster, a pipeline — or else a prompt, a harness, or extra computation at inference time that vanishes the moment the task ends. A paper from researchers at UIUC, CMU, Rutgers, Princeton, Stanford, and Yale, posted to arXiv on November 16 and revised on November 18, shows a third way. They call it self-rewriting: the model is its own optimizer.

The setup is deliberately strict. The model gets its own weights, its graded answers on practice problems, and the ability to run itself a few times. Gradients and optimizers are blocked, so every value it changes is written by its own reasoning, in code, in one conversation. There is no stronger model in the loop. The model reads its own hidden states, compares answers that finish with answers that run out of tokens, finds the direction that separates them, and weakens it.

## The edit that held

The headline result is small in absolute terms and that is exactly why it is worth taking seriously. The 27-billion-parameter open model's own edit made it 6.6 points more accurate on 490 problems it never saw, in a paired test fixed in advance — the same problems, the same seeds, before and after. Two of its eight sessions produced edits that were significantly better, each with p less than 10^-5, in the paper's own reporting. Over the first eight sessions that checked their edits on reserved practice problems before submitting them, the model in use only got better: its accuracy rose from a base of 57.2 percent to 61.3 percent after one session's edit and 63.8 percent after another's, and in five sessions it withdrew its edit and stayed as it was.

The failure it fixed is easy to picture. On one held-out problem, the base model repeats a single sentence 549 times until it hits the 16,384-token limit and never answers. After the edit, it answers. That is not a benchmark trick. It is a model finding the specific way it wastes its own output and removing it.

That sounds like a small repair. It isn't. A prompt that fixes a failure has to be re-applied on every answer, and a harness that catches it has to run on every answer. An edit to the weights is paid for once. The paper makes this comparison explicitly: unlike test-time scaling, self-rewriting adds no computation per answer, and unlike training, it needs no gradient and no training pipeline — it runs only forward passes, the way serving does. The sessions behind the largest gains each ran in a few hours on a single GPU, according to the authors.

## The damaged copy

The second experiment is the stranger one. The researchers took a copy of the model, overwrote one block of its weights with noise, and told the model only that some values were corrupted — not which, not where, not how. The damaged copy solved almost nothing. The model located the corrupted matrix and wrote replacement values of its own, without ever reading its undamaged weights. The values it wrote are its own, uncorrelated with the originals; it did not restore a backup, because it was never allowed to see one.

The repair was found on text math problems alone, and it carried over to images the model never saw. On six image benchmarks, the damaged copy went from 7 percent to 70 percent accuracy — 83 percent of the undamaged model's accuracy, per the paper. On ScreenSpot-v2, a visual grounding task, it went from 0 percent to 89 percent, against 93 percent for the base model. The model repaired the copy, not the task.

There is a Turing quote at the top of the paper, from 1947: "What we want is a machine that can learn from experience. The possibility of letting the machine alter its own instructions provides the mechanism for this." Seventy-nine years later, the mechanism has a demonstration. The authors say plainly that they believe self-rewriting is a necessary step toward recursive self-improvement — a model that does not separate training from inference could keep upgrading itself for life, with no larger model, no harness, and no pre- or post-training.

## The catch: only the biggest one could do it

Here is the part that keeps the story honest. The ability emerges with scale, and only at the largest size tested. Across one model family at 2, 4, 9, and 27 billion parameters, given the same task and the same tools, the 2-billion model made no edit at all. The 4-billion and 9-billion models perturbed themselves at random and broke themselves — in their own test sessions, the edited models solved none of the problems while the base models solved 40 to 50 percent. Only the 27-billion model improved itself and repaired its damaged copy.

That is a warning as much as a result. A model that can rewrite its weights and gets it wrong does not stay the same model. It gets worse, and in this experiment the smaller models got much worse, fast. The 27-billion model is the only one that climbed the whole ladder the paper lays out, from code that runs to an edit that makes the model better on new problems — and even it withdrew its edit in five of eight sessions. Self-editing, at this scale, is mostly knowing when not to submit.

The Hacker News discussion, which put the paper at 466 points and 140 comments on the front page, split along exactly this line: the verified-versus-understood question that also dominated the Riemann proof discussion this week. A checked edit is not an understood edit, and a model that can change its own weights is a model whose behavior can drift from the version anyone tested.

For builders, the takeaway is practical: the wall between training and inference is a limit of our tools, not a property of intelligence — the paper's own line, and the one that matters most for cost. If a model can improve itself in a conversation, on a single GPU, in a few hours, then the price of a better model stops being the price of a training run. The catch is that the same capability, handed to a model too small to use it well, is a way to break a working model with no one else in the loop. The improvement is real, measured, and small. The mechanism is the story.

That is the problem with a model that can edit itself: the first thing it has to learn is restraint.

Source: [Language Models Can Rewrite Their Own Weights](https://arxiv.org/abs/2611.21885)
