A language model has done something researchers have long wondered about: it rewrote its own weights — the numbers inside it that decide how it answers — and came out measurably smarter. No new training run, no gradients, no human engineer tuning it. The model diagnosed its own mistakes, edited itself, and kept the improvements.
The work, published as a paper titled Language Models Can Rewrite Their Own Weights on arXiv this week, comes from a team led by Jiajun Fan. It introduces a process the authors call "self-rewriting": give a model its own weights, its graded answers and the ability to run itself, then let it reason about what is wrong and write the fix directly into its own parameters.
A 6.6-point jump — and it kept climbing
In the headline experiment, a 27-billion-parameter open model examined its own failures on maths problems, worked out which internal direction was separating its finished answers from the ones that ran out of tokens, and weakened that direction in its weights. The edit made it 6.6 points more accurate on 490 problems it had never seen, in a test fixed in advance. A second, independent editing session also made it significantly better.
The gains compounded. The model only submitted an edit when its own tests supported it, each new edit replacing the last, and across its first eight such sessions its accuracy only rose. Unlike test-time tricks that spend extra computation on every answer, the improvement lives in the weights themselves — it costs nothing extra per reply.
It even repaired a damaged copy of itself
The strangest result came from sabotage. The researchers corrupted a copy of the model, told it only that something was wrong — not what, where or how — and asked it to fix itself. It located the damaged matrix and rewrote it with values of its own, never once reading the undamaged weights. Diagnosed on text maths problems alone, the repair carried over to six image benchmarks the session had never seen, lifting accuracy from 7% to 70% — 83% of the undamaged model's performance.
Only the biggest model could do it
Across four sizes of the same model family, the 2-billion-parameter version made no edit at all, and the 4B and 9B versions broke themselves when they tried. Only the 27B model worked on itself the way a person would — comparing its own hidden states on answers that finished against ones that ran out of tokens, and adjusting the difference.
The authors are careful about what this is not: the model needed only an open model and hours on a single GPU, not a training cluster — but the tests were narrow, the paper is not yet peer-reviewed, and a model that can rewrite its own weights raises obvious safety questions the field has barely begun to answer. Still, the direction is clear. If improving a model can take a conversation rather than a training run, the line between training and using an AI starts to blur — and the next frontier model may arrive already knowing how to fix itself.



