Language Models Can Rewrite Their Own Weights
Jiajun Fan, Neil He, Changyi Yang, Andy Mao, Xi Zhu, Chaoran Cheng, Kaiqu Liang, Shuaike Shen, Zetian Li, Ruihan Guo
- Published
- Nov 16, 2026
- Source
- Hugging Face Papers
- URL
- https://huggingface.co/papers/2611.21885
This work tests whether a language model can improve itself by directly editing its own weights without gradient training. A 27B model's edit raises accuracy by 6.6 points on 490 unseen problems, and the paper also reports repeated improvements and repair of a damaged model.
The authors describe self-rewriting: a model inspects its weights, receives graded answers, runs tests, and proposes persistent weight edits using its own reasoning rather than gradient updates. A 27B model improves by 6.6 accuracy points on a prespecified test of 490 unseen problems, with another session also yielding a significant gain. Across its first eight accepted-edit sessions, reported accuracy only increases. In a separate repair experiment, the model identifies and rewrites a corrupted matrix without access to undamaged weights; a repair developed on text math problems raises accuracy on six unseen image benchmarks from 7% to 70%, or 83% of the undamaged model's performance.