Language models can rewrite their own weightsLanguage Models Can Rewrite Their Own Weights
Translation in progress — untranslated text is omitted.
Researchers from UIUC, CMU and other institutions had Qwen3.5 27B rewrite its own weights without gradients or training; in one session, the edit raised its accuracy on 490 unseen math problems by 6.6 percentage points, with results from a pre-fixed paired test. The model measured the directional difference between completed and incomplete answers from its own hidden states and subtracted 5% of that direction from two output matrices at layer 8. It could also repair a damaged copy: after the layer 30 MLP output matrix was overwritten with noise, the model located and truncated the anomalous weights on its own, and the copy's accuracy on unseen problems rose from 0% to 33.0% (base model 58.5%); a repair found only on text problems restored the copy to 83% of the base model's accuracy on six image benchmarks. Across the four scales 2B, 4B, 9B and 27B, 2B made no edits, 4B and 9B made itself worse, and only 27B improved and repaired itself. The authors call this a step toward recursive self-improvement and argue that every self-rewrite requires safety evaluation and human confirmation.
- A language model is frozen once trained, and further improvement requires a training pipeline or one-off prompt/reasoning overhead. The authors ask: can a model, using only its own reasoning, rewrite its own weights and get better, and does this ability emerge with scale.
- Proposes self-rewriting: in a session, the model reads and writes its own weights, runs itself to do paired tests, and reads hidden states, with gradients and optimizers disabled; a separate damaged-copy repair task is set up (8 rows of one matrix are overwritten with noise, and the model is only told that some values are damaged).
- 27B self-editing gains +6.6 points on 490 unseen questions (p<10⁻⁵); the damaged copy goes 0.0%→33.0%, and the repair transfers to six image benchmarks 7.3%→70.2%; 2B does not edit, and 4B and 9B make themselves worse.
- Future directions listed by the authors: more measurements per session, multi-round self-editing, graded damage, and tasks beyond mathematics. The experiments cover only four sizes of one family, Qwen3.5, and both practice and held-out questions come from the DeepScaleR math pool.
The paper presents the complete experimental pipeline and per-scale results for a model rewriting its own weights and repairing a damaged copy, which can serve as concrete material for discussing the feasibility of recursive self-improvement.
Related events and news
1 events · 1 news mentions
News that mentions this paper
研究称 LLM 可经权重编辑植入后门
- X @jiqizhixin(机器之心)gives the paper's title语言模型可改写自身权重