A language model with 27 billion parameters can rewrite its weights and become better, with no training and no gradients. That is the finding of a study by researchers at the University of Illinois Urbana-Champaign and other universities, published on 18 November 2026. The model's own edit made it 6.6 points more accurate on 490 problems it had never seen.
What did the researchers show?
Language models are normally trained once and then frozen. Making one better takes another training run, a prompt, or extra computation at inference that is gone once the task ends. The study shows a third way, which the authors call self-rewriting. The model is its own optimiser. It is given its weights, its graded answers and the ability to run itself. Then it diagnoses its own failure and rewrites the weights behind it, by its own reasoning alone. Earlier work had shown that a frontier model could edit the weights of a much smaller one. Here an open 27B model edits itself for the first time, as far as the authors know. Its own edit makes it 6.6 points more accurate on 490 problems it never saw, in a paired test fixed in advance. Accuracy rose over eight sessions from 57.2 percent to 63.8 percent. The model tests each edit first on practice problems and submits only what works. In five of the eight sessions it withdrew its edit and stayed as it was.
How does the model rewrite itself?
The model works in a session on its own weights. It receives its graded answers on practice problems, reads and writes its weights in a Python session, and may run itself a few times. It can test its edit in a paired test, with and without the edit on the same problems, or read its hidden states. Gradients and optimisers are blocked, so every value it changes is written by its own reasoning. The model found a concrete failure. It repeated the same sentence over and over until it hit the token limit, and never answered. It compared its hidden states on answers that finish with those on answers that run out of tokens, and weakened the direction that separates them. The gain stays in the weights and costs no extra computation per answer. Unlike training, the method needs no training infrastructure. It runs only forward passes, as serving does, and each session behind its largest gains ran in a few hours on a single GPU.
Can the model repair a damaged copy of itself?
Yes, and that part of the study is just as striking. The researchers gave the model a copy of itself in which one block of weights had been overwritten with noise, so the copy solved almost nothing. The model was told only that some values were corrupted. It located the corrupted matrix and repaired it with values of its own, never reading the undamaged weights. The repair was found on text maths problems alone, yet it carried over to image tasks the model had never seen. On six image benchmarks the damaged copy rose from 7 percent to 70 percent accuracy, or 83 percent of the undamaged model. On ScreenSpot-v2 it rose from 0 percent to 89 percent, against 93 percent for the base model. The model therefore repairs the copy itself, not a single task. The authors compare it with a broken robot that fixes itself without being rebuilt.
Why does only the largest model succeed?
The ability emerges with scale. The researchers tested four sizes of one model family, Qwen3.5 at 2, 4, 9 and 27 billion parameters, with the same task and the same tools. The 2 billion parameter model made no edit. The 4 and 9 billion parameter models perturbed themselves at random and broke themselves. Only the 27 billion parameter model improved itself and repaired its damaged copy. That shows self-rewriting is not a trick that can be taught to any model, but an ability that emerges with size. The study was written by researchers at the University of Illinois Urbana-Champaign, Carnegie Mellon University, Rutgers, Princeton, Stanford and Yale. The lead authors are Jiajun Fan and Neil He. The paper is a preprint on arXiv and has not yet been peer reviewed.
What happens next?
The authors see self-rewriting as a step towards recursive self-improvement, one of the oldest aims of AI research. A model that does not separate training from inference could keep upgrading itself for life, with no larger model and no prompt engineering. But the study shows only a first step in a controlled setting. The tests ran on maths and image tasks, and the model worked on its own weights in a session. Whether self-rewriting also works safely in larger models, on other tasks and over longer periods is open. The question of how to control a model that changes itself will also matter more as the method develops. The next steps are independent replications of the results and tests on further model families.




