Language Models Can Rewrite Their Own Weights
Jiajun Fan, Neil He, Changyi Yang, Andy Mao, Xi Zhu, Chaoran Cheng, Kaiqu Liang, Shuaike Shen et al. · UniversityofIllinoisUrbanaChampaign
16 Nov 2026 · cs.AI · single gpu · 3 repros · reasoning & test-time compute, rl & post-training, efficiency & inference, multimodal
24 hf upvotes · 494 hn points, 146 comments · 0 citations
A language model is trained once and frozen. Making it better takes another training run, or a prompt, a harness or extra computation at inference that is gone once the task ends. We show a third way: to our knowledge for the first time, a language model rewrites its own weights by its own reasoning and becomes better, with no gradients and no training. We call this self-rewriting: the model is its own optimizer. In earlier work, a frontier model edited a much smaller one; here an open 27B model, given its weights, its graded answers and the ability to run itself, diagnoses its own failure and rewrites the weights behind it. It surpasses itself: its own edit makes it 6.6 points more accurate on problems it never saw. It keeps getting better: it tests its edits on practice problems and submits only what works, each edit improving on the last, and over eight consecutive sessions its accuracy only rises. It repairs a damaged copy of itself, like a broken robot that fixes itself without being rebuilt: the copy solves almost nothing, yet with no retraining and without ever reading the original weights, the model brings it back to over 80% of the original accuracy on image tasks it never saw. And the ability emerges with scale: in one model family, the smaller models make no edit or break themselves, and only the largest improves and repairs itself. Unlike test-time scaling, self-rewriting writes its gain into the weights, at no cost per answer; unlike training, it runs only forward passes, as serving does. The wall between training and inference is a limit of our tools, not a property of intelligence. We believe self-rewriting is a necessary step toward recursive self-improvement: a model that, like a human, does not separate training from inference could keep upgrading itself for life, with no larger model, no harness or prompt engineering, and no pre- or post-training.
Compute: single gpu. Forward passes only; 2B session runs 3.5 hours on one GPU; no training.
Paper's setup: single GPU (model not named). Smallest run that tests the claim: 2B model self-rewriting session on its own weights, 16,384-token budget, 3.5 hours (~4 GPU-hours on one A100-class GPU).
“each session behind its largest gains ran in a few hours on a single GPU”
(read from the paper's full text by Claude)
Potential
signals behind the hidden gems rankingExisting reproductions
3 likely reproductions · 1 builds on it · 6 repos mention it · 0 HF models · checked 22/11/2026
- DukeCaesar/models-rewrite-own-weights
An independent implementation of the arXiv:2611.21885 paper
1★
reproduction
0★
reproduction
- techdevfun/weightpin
Did these deployed model weights change since I pinned them? A zero-dependency CLI that pins model weights to a sha256 lockfile and gates CI on byte-level drift (CLEAN / CHANGED / MISSING / NEW) - local only, no network, no signing infrastructure.
0★
reproduction
Code that cites or uses it, but isn't a reproduction:
- Ian729/HackerNewsArchive 4★ · Auto RSS HackerNews and Archive
2 other repos that only mention it
On Hacker News
- Language Models Can Rewrite Their Own Weights494 points · 146 comments · 20 Nov 2026
Comments