SELFWRITE让LLM自行编写权重编辑程序实现无梯度自改进
Recursive Self-Editing: LLMs Program Their Own Weight Edits for Self-Improvement
研究提出SELFWRITE方法,让语言模型在持久Python会话中检视自身权重与激活,编写程序构造低秩权重编辑,全程不使用梯度或训练工具。在Qwen3.8-27B与DAPO-Math数学题上,五代迭代将门控集准确率从73.95%提升至76.45%,未参与循环的留出测试集avg@4从76.30%升至77.75%、pass@4从82.60%升至84.80%。
论文展示模型无需梯度、仅靠自写程序构造低秩权重编辑即可在多代迭代中提升数学推理准确率,为自改进训练路线提供了一种可复现的替代思路。
arXiv:2611.29513v1 Announce Type: new Abstract: Recursive self-improvement asks a system to improve the very system that improves it. Today's language models improve themselves through data, training recipes or scaffolds. Whenever their weights change, gradient descent writes the update, not the model. We let the model write its own weights. In SELFWRITE, each generation the current model studies its own reasoning on fresh training problems, inspects its own weights and activations in a persistent Python session, and writes a program that constructs a low-rank weight edit for itself from white-box primitives (singular directions, activation contrasts between its right and wrong answers, rank-one projections, tensor computations), with no training or gradient tool. Every candidate is graded once on a hidden gate set against the current model; the best strictly improving edit is merged into the weights, and the edited model writes the next edit. On Qwen3.8-27B and math problems from DAPO-Math, five generations of SELFWRITE raise gate accuracy from 73.95% to 76.45% and accuracy on a held-out test split that the loop never sees from 76.30% to 77.75% (avg@4) and from 82.60% to 84.80% (pass@4), without a single gradient step. A language model can author useful changes to its own weights without gradients, and the edited model keeps writing useful edits.
来源:arXiv (AI + Vision + Imaging) · arxiv.org