Skip to content

Language models can rewrite their own weightsLanguage Models Can Rewrite Their Own Weights

Hugging Face Daily Papers· arXiv:2611.21885· Jiajun Fan, Neil He, Changyi Yang, Andy Mao, Xi Zhu, Chaoran Cheng, Kaiqu Liang, Shuaike Shen, Zetian Li, Ruihan Guo, Ge LiuUIUC; Yale; CMU; Rutgers; Princeton; StanfordIndexed by this site · 3 days ago· Originally publishedSelected AlignmentSelectedAttention44

Translation in progress — untranslated text is omitted.

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers 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.

Questions
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.
Methods
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).
Experiments and results
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.
Limitations and future work
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.
Why it was selectedThe 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.

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 可经权重编辑植入后门

Read originalhuggingface.co