Recursive Self-Editing: LLMs Program Their Own Weight Edits for Self-Improvement

Linghua Zhang, Yunhe Li
11/22/2026
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026recursive,
  title  = {Recursive Self-Editing: LLMs Program Their Own Weight Edits for Self-Improvement},
  author = {Linghua Zhang and Yunhe Li},
  year   = {2026},
  eprint = {2611.29513},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.29513v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.29513.svg)](https://codeofpaper.com/paper/2611.29513)

Discussion