A new arXiv preprint describes a loop in which a language model writes the code that edits its own weights, with no gradient update involved. Yunhe Li submitted the paper, titled “Recursive Self-Editing,” to arXiv on 22 November 2026.

The method is called SELFWRITE. In each round, the model reviews how it reasoned on fresh math problems, probes its own parameters and internal activations from a Python session, and produces a program that builds a small low-rank change to those parameters. Every candidate edit gets a single score on held-back problems. The best edit that beats the current model is merged, and the updated model drafts the next.

The authors tested it on Qwen3.8-27B using DAPO-Math problems. After five rounds, gate accuracy moved from 73.95 percent to 76.45 percent. On a separate test split the loop never touched, avg@4 rose from 76.30 to 77.75 percent and pass@4 from 82.60 to 84.80 percent.

These are the authors’ own results on one model and one problem family, from a preprint that has not been peer reviewed. The gains are a few points at most, so teams should wait for replication on other models before treating self-written edits as a rival to fine-tuning.

Reported from the arXiv preprint “Recursive Self-Editing: LLMs Program Their Own Weight Edits for Self-Improvement,” submitted 22 November 2026 (arXiv

.29513).