Language Models Can Rewrite Their Own Weights
Title: Language Models Can Rewrite Their Own Weights
标题:语言模型可以重写自身的权重
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.
我们将此称为“自我重写”:模型即其自身的优化器。在早期的研究中,前沿模型曾编辑过规模小得多的模型;而在这里,一个开源的 27B 模型在获得其权重、评分答案以及运行自身的能力后,能够诊断出自身的失败并重写其背后的权重。它超越了自身:通过自身的编辑,它在从未见过的难题上准确率提高了 6.6 个百分点。
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.
它不断进步:它在练习题上测试其编辑结果,并仅提交有效的部分,每一次编辑都比上一次有所改进,在连续八次会话中,其准确率持续上升。它修复了一个受损的自身副本,就像一个无需重建就能自我修复的故障机器人:该副本原本几乎无法解决任何问题,但在没有重新训练且从未读取原始权重的情况下,模型使其在从未见过的图像任务上恢复到了原始准确率的 80% 以上。
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.
这种能力随着规模的扩大而显现:在同一个模型系列中,较小的模型无法进行编辑或导致自身损坏,只有最大的模型能够实现自我改进和修复。与测试时扩展(test-time scaling)不同,自我重写将增益写入权重,且不会增加每个答案的成本;与训练不同,它仅运行前向传播,就像服务部署时一样。训练与推理之间的壁垒是我们工具的局限,而非智能的属性。
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.
我们认为,自我重写是迈向递归自我改进的必要步骤:一个像人类一样不将训练与推理分开的模型,可以在无需更大模型、无需辅助工具或提示工程、也无需预训练或后训练的情况下,终身不断地自我升级。