# Language Models Can Rewrite Their Own Weights

arXiv: https://arxiv.org/abs/2611.21885 · HTML: https://mlsanity.com/paper/2611.21885/

## Key facts

- Cited by 3 papers in the map (data through 24 Nov 2026).
- Builds on 2 of its 37 references that are in the map.
- Submitted 16 Nov 2026, announced 18 Nov 2026.

## Builds on (most cited first, 2 of 2)

- [Representation Engineering: A Top-Down Approach to AI Transparency](https://mlsanity.com/paper/2310.01405/) (2023)
- [Steering Language Models With Activation Engineering](https://mlsanity.com/paper/2308.10248/) (2023)

## Built on by (most cited first, 3 of 3)

- [Don't Train It, Write It: An AI Agent Writes New Capabilities into Language Model Weights](https://mlsanity.com/paper/2611.28483/) (2026)
- [Where Does a Weight-Editing Agent Help? Blind Diagnosis and Repair of Deployment Faults in Vision Models](https://mlsanity.com/paper/2611.28781/) (2026)
- [Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?](https://mlsanity.com/paper/2611.28833/) (2026)

## Abstract (arXiv)

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.
