Alphabell.
Paper · Self-modifying agents

Recursive Self-Editing

Recursive Self-Editing: LLMs Program Their Own Weight Edits for Self-ImprovementA language model improves itself by inspecting its own weights and writing Python programs to construct low-rank weight edits without gradient descent.

Recursive Self-Editing
Figure 1 of the paper, arXiv. Source
The loop

The SELFWRITE model inspects its own weights and activations to write Python programs that construct low-rank weight edits for itself. The best edits are merged into the model's weights, resulting in a successor that is better at solving math problems and writing subsequent edits.

The loop
Recursive Self-Editing
Paper · arXiv
  1. Model inspects its own weights
  2. Writes Python program to edit weights
  3. Merges best edits into its weights
  4. Successor model writes better edits
  1. Model inspects its own weights
  2. Writes Python program to edit weights
  3. Merges best edits into its weights
  4. Successor model writes better edits
↻ The improved system does the next round, and the loop turns again.

Why it is a road to recursion

Allowing models to directly program their own weight updates bypasses the need for gradient descent and opens a new avenue for recursive self-improvement.

Evidence

Five generations of SELFWRITE on Qwen3.8-27B raised gate accuracy from 73.95% to 76.45%.

weight-editingself-improvementmath-reasoning