Language Models Can Rewrite Their Own Weights

Jiajun Fan, Neil He, Changyi Yang, Andy Mao, Xi Zhu, Chaoran Cheng, Kaiqu Liang, Shuaike Shen and 3 others

UIUC · CMU · Rutgers · Princeton · Stanford

Published November 16, 2026 · on the feed November 20, 2026 · ▲ 23 · arXiv 2611.21885

Reasoning & math No code arXiv ↗Hugging Face ↗

The abstract

Language models are trained once, frozen and deployed: improving one again takes another training run, and a prompt, a scaffold or extra computation at inference is gone once the task ends. A frontier model has been shown to edit the weights of a much smaller one. We ask whether a model can rewrite its own weights to make itself better, and find that it can, by its own reasoning, with no gradients and no training; we call this self-rewriting. Given its weights, graded answers and the ability to run itself, a 27B model diagnoses its failure and edits the weights behind it. It surpasses itself: its own edit makes it 6.6 points more accurate on 490 problems it never saw, in a test fixed in advance, and another session's edit also makes it significantly better. It keeps getting better: it submits an edit only when its own tests support it, each edit replacing the last, and over its first eight such sessions its accuracy only rises. Unlike test-time scaling, the gain persists in its weights and adds no cost per answer; unlike training, it needs no pre- or post-training infrastructure, only an open model and hours on one GPU. It repairs a damaged copy of itself: it locates the corrupted matrix and rewrites it with values of its own, never reading the undamaged weights; found on text math problems alone, the repair lifts the copy on six image benchmarks it never saw from 7% to 70% accuracy, 83% of the undamaged model's. And the ability emerges with scale: across four sizes of one family, the 2B model makes no edit and the 4B and 9B models break themselves; only the 27B model works on itself as a human would, comparing its hidden states on answers that finish and on answers that run out of tokens, weakening the direction that separates them. Like a human, a model need not separate training from inference; improving a language model may come to take a conversation rather than a training run.

The Brief

2:25

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Language Models Can Rewrite Their Own Weights. By Jiajun Fan and ten others, from the University of Illinois Urbana-Champaign, Carnegie Mellon University, and three other institutions. Published on the sixteenth of November.

Language models are trained once, frozen and deployed. Improving one again takes another training run, and whatever is added at inference, a prompt, a scaffold or extra computation, is gone once the task ends. A frontier model has already been shown to edit the weights of a much smaller one. The authors ask whether a model can rewrite its own weights to make itself better, and find that it can: by its own reasoning, with no gradients and no training. They call this self-rewriting.

The model is given its weights, graded answers and the ability to run itself. With that, a twenty-seven billion parameter model diagnoses its failure and edits the weights behind it. Its own edit makes it six point six points more accurate on four hundred and ninety problems it never saw, in a test fixed in advance, and an edit from another session also makes it significantly better. The improvement continues. The model submits an edit only when its own tests support it, each edit replacing the last, and over its first eight such sessions its accuracy only rises.

It can also repair a damaged copy of itself. It locates the corrupted matrix and rewrites it with values of its own, never reading the undamaged weights. The repair was found on text math problems alone, yet on six image benchmarks the copy never saw, it lifts accuracy from seven percent to seventy percent, which is eighty-three percent of the undamaged model's. Set against the alternatives, the gain persists in the weights and adds no cost per answer, unlike test-time scaling. And unlike training, it needs no pre- or post-training infrastructure, only an open model and hours on one GPU.

The ability emerges with scale, and below a certain size it is absent or harmful. Across four sizes of one family, the two billion parameter model makes no edit. The four billion model breaks itself, and so does the nine billion model. Only the twenty-seven billion model works on itself the way a human would: comparing its hidden states on answers that finish with those on answers that run out of tokens, and weakening the direction that separates them. Every positive result here belongs to that largest model, and the smaller ones show that attempting self-editing is not the same as succeeding at it.

The authors end on an analogy with people. A human does not keep learning and doing in separate phases, and on this evidence a model need not separate training from inference either. If that holds, improving a language model may come to take a conversation rather than a training run.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.