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, Ge Liu

arXiv:2611.21885 · 2026-11-22 공개 · arXiv · PDF

large-language-models language-models benchmarking scaling-laws hidden-states no-gradients self-rewriting weight-editing

Abstract

Language models are trained once, frozen and deployed: improving one again takes another training run, and a prompt, a scaffold or extra computation at inference is gone once the task ends. A frontier model has been shown to edit the weights of a much smaller one. We ask whether a model can rewrite its own weights to make itself better, and find that it can, by its own reasoning, with no gradients and no training; we call this self-rewriting. Given its weights, graded answers and the ability to run itself, a 27B model diagnoses its failure and edits the weights behind it. It surpasses itself: its own edit makes it 6.6 points more accurate on 490 problems it never saw, in a test fixed in advance, and another session's edit also makes it significantly better. It keeps getting better: it submits an edit only when its own tests support it, each edit replacing the last, and over its first eight such sessions its accuracy only rises. Unlike test-time scaling, the gain persists in its weights and adds no cost per answer; unlike training, it needs no pre- or post-training infrastructure, only an open model and hours on one GPU. It repairs a damaged copy of itself: it locates the corrupted matrix and rewrites it with values of its own, never reading the undamaged weights; found on text math problems alone, the repair lifts the copy on six image benchmarks it never saw from 7% to 70% accuracy, 83% of the undamaged model's. And the ability emerges with scale: across four sizes of one family, the 2B model makes no edit and the 4B and 9B models break themselves; only the 27B model works on itself as a human would, comparing its hidden states on answers that finish and on answers that run out of tokens, weakening the direction that separates them. Like a human, a model need not separate training from inference; improving a language model may come to take a conversation rather than a training run.

한국어 요약

한 줄 요약

27B 언어 모델이 자체 추론으로 가중치를 수정해 성능을 6.6점 향상시키는 '셀프-리라이팅(self-rewriting)' 기법이 제시되었다.

핵심 기여도

핵심 아이디어

기존 언어 모델은 훈련 후 가중치가 고정되고, 이후 개선은 추가 훈련이나 프롬프트 조작에 의존한다. 본 연구는 모델이 **자체 추론**을 통해 **가중치를 직접 수정**함으로써 성능을 향상시킬 수 있음을 보인다. 이는 'self-rewriting'으로 명명된 새로운 패러다임이다.

핵심 아이디어는 다음과 같다:

기술적 접근법

주요 결과

의의 및 한계

실용적 활용