R487 · Agent architecture › Self-improvement and learning loops

A 27B model edits its own weights, and the edit fixes a token limit

Read the original

self-improving-agentsweightsinterpretabilityclaim-evaluationscaling

A paper posted to arXiv in mid-November (2611.21885, v2 of 18 November 2026, eleven authors) makes a claim that is genuinely new and a claim that is genuinely smaller than it reads. Both are worth separating carefully, because the gap between them is where most of the engineering interest lives.

The new claim: an open 27B language model, handed its own weights, its graded answers on practice problems, and the ability to run itself, diagnosed one of its own failure modes, wrote a direct edit to its weights, tested the edit, and submitted it — with no gradients and no training run. The authors call this self-rewriting, and distinguish it from the prior line of work in which a frontier model edits the weights of a much smaller one. Here the editor and the edited are the same model.

The smaller claim, which is the same result read closely: what the edit fixed was that the model kept running out of tokens.

The setup

One model family at four sizes — Qwen3.5 at 2B, 4B, 9B and 27B, whose layers mix Gated DeltaNet linear attention with full attention, thinking enabled throughout. Every size gets the same task, the same tools, 20 forward passes and 200 code runs, with the task text differing between sizes in exactly one sentence about the architecture.

The edit surface is narrow and architecture-specific: the linear-attention output matrices of layers 0 to 10.

The problems are mathematics only. The practice set is 3,000 problems from DeepScaleR, decontaminated against MATH-500, AIME 2024 and 2025, HMMT February 2025, AMC 2023, OlympiadBench and GPQA-Diamond; a further 1,000 are held out and seen by no session. The scoring rule matters later: "[a]n answer whose thinking is still open at the budget is wrong."

Two protocols run. In the first, the model alone decides whether to submit its edit. In the second — which produces the headline result — the framework first tests the edit once on practice problems the session can neither read nor use, and the model then submits or withdraws.

What the model actually did

The diagnosis, from the session transcript, is the most interesting sentence in the paper: 80.5% of the base model's answers hit the token limit without finishing, while 96% of the answers that did finish were correct.

So the model's ceiling was not mathematical ability. It was runaway generation — and one illustrative case has the base model repeating a single sentence 549 times until the limit and never answering. The model then compared its hidden states on answers that terminated against answers that ran out of tokens, identified the direction separating them, and weakened that direction in the weights.

That is a real and impressive piece of self-directed interpretability work. It is also a repair to a decoding pathology, not an improvement in reasoning. On a metric that scores unfinished answers wrong, anything that raises the share of answers that terminate raises accuracy.

The numbers, and which ones to use

The headline: the model's own edit makes it 6.6 points more accurate on 490 problems it never saw, in a paired test fixed in advance, with 8 answers per problem and the base and edited models answering under the same seed.

Three qualifications sit alongside it, all in the paper.

Only two of eight sessions reached significance. Across the first eight second-protocol sessions, the edits of sessions 2 and 8 are significantly better than the base model (p < 10^-5 each). The others are not.

The like-for-like number is 1.1 points. The edit used for the cross-scale comparison moves accuracy from 57.2 to 58.3. That is the figure comparable to what the smaller models did, and it is a sixth of the headline.

The sessions do not compound. The paper is explicit that "each session itself starts from the base weights", and that every submitted edit replaces the model in use while a withdrawn session leaves it unchanged. So the monotone curve over eight sessions is not a model building on its own previous edits. It is eight independent attempts from the same starting point, with the good ones kept by a selection rule the researchers imposed. That is hill-climbing with an external ratchet. It is not recursive self-improvement, whatever the framing around it suggests.

One more experimental detail deserves a flag. Every size runs at a 16,384-token budget, but the paper notes that at that budget testing the 27B model is slow, so its other own-weight sessions use 4,096 tokens. When the pathology under treatment is hitting the token limit, the budget is not a neutral parameter.

The repair experiment is not self-repair

The second experiment is the one most likely to be misdescribed, and the paper's own abstract invites it — "like a broken robot that fixes itself without being rebuilt."

What happens: eight rows of the MLP output matrix of one layer (layer 30 of 64 in the 27B model) are overwritten with noise, at a strength fixed in advance and chosen so that it breaks the model where weaker noise does not. The damaged copy solves almost nothing. A model is then told only that some values were corrupted, and it locates the corrupted matrix and rewrites it — never reading the undamaged weights, and writing values that are its own rather than restoring the originals.

Working from text mathematics alone, the repair carries over to six image benchmarks the model never saw, restoring 83% of the base model's accuracy, and on ScreenSpot-v2 taking the copy from 0 to 89 against 93 for the base.

That is a strong result. But the paper's setup section states plainly that "in a repair session, the undamaged model edits its damaged copy." The repairer is intact. This is one healthy model debugging another — which is exactly the earlier weight-space-programming setting, with the two models happening to share an origin, rather than an instance of self-rewriting.

The scale finding, which cuts both ways

Under identical task and tools, the family splits cleanly:

SizeBehaviour
2B"does not treat its weights as something it can change" — makes no edit
4B"perturb themselves at random and break themselves"
9Bsame — breaks itself
27Breads its own hidden states, edits where it measured a difference, keeps only what its tests support

This is the paper's most robust claim and the one least dependent on the headline metric. It is also a safety observation as much as a capability one: a capability that appears at 27B in a family whose 4B and 9B members actively damage themselves when handed the same affordance is not a capability you would want to grant by default.

A review checklist for self-improvement claims

This paper is unusually honest about its own structure, which makes it a good template for reading the next one:

What it establishes

Stripped of the framing, the durable contributions are three. A model at sufficient scale can inspect its own activations, form a mechanistic hypothesis about its own failure, and write a weight edit that tests out — forward passes only, no gradients, and the gain stored in the weights so it costs nothing per answer. A healthy model can localise and functionally repair eight corrupted rows in a 64-layer sibling from behavioural evidence on an unrelated modality. And the capability is sharply scale-gated, with the sizes immediately below it being actively self-destructive.

What it does not establish is a self-improvement loop. No code or data release is named, and the author affiliations do not appear on the paper's front matter — both of which make the central "to our knowledge for the first time" claim harder to check than it should be.

Connections

See R487 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.