R274 · Agent architecture › Self-improvement and learning loops

SELFWRITE: a model programs low-rank edits to its own weights

Read the original

Authors Linghua Zhang, Yunhe Li

self-improving-agentsinterpretabilityweight-editingresearch

In SELFWRITE, a model studies its own reasoning and inspects its weights and activations in a persistent Python session. It then writes a program that builds a low-rank edit to its own weights, with no gradient step. Over five generations on Qwen3.8-27B, accuracy on DAPO-Math problems rises a little: held-out avg@4 goes from 76.30% to 77.75% (arXiv 2611.29513, Zhang and Li, 22 Nov 2026).

The loop

  1. The current model works fresh training problems and studies its own reasoning.

  2. In a persistent Python session, it inspects its weights and activations using white-box primitives only: singular directions, contrasts between activations on right and wrong answers, rank-one projections and tensor operations. It has no training or gradient tool.

  3. It writes a program that constructs a low-rank weight edit.

  4. Each candidate edit is graded once on a hidden gate set against the current model. The best strictly improving edit is merged.

  5. The edited model writes the next edit.

Results (abstract)

Metric, after 5 generationsBeforeAfter
Gate-set accuracy73.95%76.45%
Held-out test, avg@476.30%77.75%
Held-out test, pass@482.60%84.80%

The held-out split is never seen by the loop, so the gain is not just overfitting to the gate set. Still, it is 1.5 to 2.5 points on one model and one domain.

Why it is interesting

Open questions (not answerable from the abstract)

Safety and engineering notes

Sources

Connections

See R274 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.