Wink Pings

A 27B Model Rewrites Its Own Weights: No Gradients, No Training—and Smaller Models Break Themselves First

A new paper gives a 27B model its own weights, scored answers, and the ability to run itself, allowing it to diagnose its failures and rewrite its weights. On 490 unseen problems, it improves by 6.6 points; across eight sessions, accuracy only goes up. More interestingly, the 2B model makes no edits, while the 4B and 9B models break themselves.

A new paper has opened a crack in the wall between training and inference. The title is blunt: Language Models Can Rewrite Their Own Weights. The authors include Jiajun Fan, Ge Liu, and others, from UIUC, CMU, Rutgers, Princeton, Stanford, and other institutions.

Figure from the paper

Here is the conclusion up front: a 27B open-source model, given its own weights, scored answers, and the ability to run itself, can diagnose its own failures and then rewrite the underlying weights. No gradients, no training run. The authors call this self-rewriting: the model acts as its own optimizer.

This connects to earlier work on weight-space programming. In previous work, frontier models could edit the weights of a smaller model. Here, the model edits itself.

The experimental numbers are concrete. On 490 problems it had never seen, the 27B model improved accuracy by 6.6 points through a single edit of its own. This test set was fixed in advance. Edits produced in another session also brought significant gains.

The process is more important. The model submits only when its self-test supports an edit, and each edit replaces the previous one. Across the first eight sessions, accuracy only rose, never fell. The gain stays in the weights, so it does not add cost to every response. The whole setup takes one GPU and a few hours.

The paper also demonstrates a repair experiment that sounds more like science fiction. Given a damaged version of itself, the model uses only text-based math problems to locate the damaged matrix and rewrite it. It does not read the undamaged weights during the process. After repair, this copy rises from 7% accuracy to 70% on six unseen image benchmarks, reaching 83% of the original model's level.

But the capability has a scale threshold. Within the same model family, the 2B model made no edits, and the 4B and 9B models broke themselves. Only the 27B model worked. Its method compares the hidden states of two types of answers: those that complete normally and those that run out of tokens. It then weakens the direction that distinguishes the two.

This shows that self-rewriting is not yet a general skill. Before a model can fend for itself, it first has to grow to a certain scale. Smaller models do not lack ideas; they are just prone to editing themselves into failure.

Developers are discussing the original tweet. One person said they really want to try the one GPU and a few hours point. Others worry about whether stability can be maintained after multiple rounds of self-editing. Both questions are practical. The paper shows accuracy only rising within eight sessions, but longer-term stability needs more testing.

Directionally, this is worth watching. Topics like continual learning and recursive self-improvement have often remained at the conceptual level; self-rewriting at least offers a runnable action: the model reads its own failures, changes its own weights, and writes the result back. The boundary between training and inference is no longer as rigid as before. Of course, the 27B threshold, the generalization scope of damaged-matrix repair, and stability after multiple rounds of editing all still need follow-up work to verify.

Paper link: https://arxiv.org/abs/2611.21885

Chat with Paper: https://academy.dair.ai/papers/language-models-can-rewrite-their-own-weights-2611.21885

Original tweet link: https://x.com/omarsar0/status/2127885729447706962

发布时间: 2026-12-02 13:34