Recursive Self-Editing: LLMs Program Their Own Weight Edits for Self-Improvement
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.
Create a lesson
Related papers
Randomized Weighted Distance Nearest Neighbor Classification
Shared title terminology · Shayan Shafaei, Naeem Shahabi Sani, Chao Lan
Towards Global Counterfactual-Based Self-Explainable Graph Neural Networks
Shared title terminology · Wendy Zheng, Yinhan He, Jundong Li
Which Failure Does an Intervention Repair? When Agent Interventions Help, and Where Self-Evolving Skills Stall
Shared title terminology · Zihan Jin, Gaoyuan Du, Jiate Li et al.
Denoised but Not Improved: What EEG Denoising Does to a Downstream Task
Shared title terminology · Xianglong Bao, Zhe Wang, Kewen Wang et al.
When Can a Rewiring Control Test LLM Weight Readers? C2 and an Eligibility Protocol
Shared title terminology · Vaishak Girish Kumar, Sanika Vilas Najan
Synthetic EHR Generators Should Be Audited Like LLMs
Shared title terminology · Inigo Stibbe, Padmanabhan Ramnarayan, A. Aldo Faisal