Self-Edited Weights: Gains Vanish at 32k Tokens

Chart-style summary of self-edited weights tested on Qwen3.5 models

Can a language model rewrite its own parameters and get better at reasoning? A new replication says self-edited weights help, but mostly by helping answers finish inside a token budget. The study reran results from two November papers on weight-space programming (WSP), where a model edits a network’s weights directly with no gradient training, and added controls the originals left out.

What the two papers claimed

In the first paper, Fan et al. had the 27-billion-parameter Qwen3.5 write changes to itself. The best change moved math accuracy on unseen problems from 57.2% to 63.8% when answers were capped at 16,384 tokens. The second paper, from Ling et al. and named Self-WSP, tried the same on the much smaller 0.8B Qwen3.5. Its two published edits scored 59.9% on GSM8K and 24.2% on MATH-500, against 11.8% and 7.0% before, with a 32,768-token cap. Neither paper released code, so the replication could not be an exact replay.

The concern is simple. A gain at a fixed budget can mean the model reasons better. It can also mean the model wraps up sooner, so fewer replies get cut off and graded as failures.

Animated sculptural articulated robot bust in side profile with an open cranium holding a wireframe lattice sphere. Its hand pulls on a violet weight node until the connecting filaments strain crimson and snap, scattering the wireframe shards and detaching the head, neck, and articulated arm across the floor before magnetically reassembling.
Image: morethanamachine.com

The 27B model at 16k tokens

Qwen3.5-27B has 64 layers, and 48 of them are Gated DeltaNet layers, a linear-attention design where a running memory replaces looking back at every earlier token. A learned gate decides how quickly that memory fades. Fan et al.’s best edit adds 0.5 to the dt_bias value in all 48 layers, altering 2,304 values among 27.8 billion, which makes every memory head forget faster.

On 200 held-out DeepScaleR problems with two answers each, at the original settings of 16k tokens and temperature 0.6, the edit lifted accuracy from 60.8% to 65.2%. That is +4.5 points with an interval of +0.5 to +8.8. The paper’s reported +6.6 sits inside that range.

All 41 answers that only the edited model got right came from problems where the base model ran out of tokens at the 16k limit. None came from a base answer that finished and was wrong. When both versions completed an answer, they were right or wrong together in 256 of 257 pairs. Under the sampling settings Qwen recommends (a temperature of 1.0 and a presence penalty of 1.5), the edit still added +5.5 points, though 25 of its 29 wins were cut-off base answers, and 4 turned a finished wrong answer right.

Animated sculptural articulated robot bust in side profile with an open cranium holding a wireframe lattice sphere. Its hand pulls on a violet weight node until the connecting filaments strain crimson and snap, scattering the wireframe shards and detaching the head, neck, and articulated arm across the floor before magnetically reassembling.
Image: morethanamachine.com

Give the base model more room

At 32,768 tokens the edit’s advantage disappears: +0.0 points, with both models at 74.2%. Letting the untouched model run to 32k tokens added +13.5 points, three times the edit’s 16k gain, for about 28% more tokens per answer. The edited model did reach 74.2% with roughly 8% fewer tokens, 12,604 against 13,717 per answer, though that difference was not tested formally.

Turning thinking off did better still. With the temperature at 1.0 and the penalty at 1.5, it scored 76.2% at 16k using 3,492 tokens per answer, against 10,688 with thinking on. The model still shows its math in the reply, only more concisely. Because the sampling settings changed too, that comparison is descriptive.

The 0.8B model

For Ling et al.’s two published edits, both in layer 0, the replication capped answers at 8,192 tokens, a quarter of the paper’s limit. The gains showed up there too. The 32-number edit lifted GSM8K from 10.9% to 52.3%, and the 16-number edit took MATH-500 from 4.7% up to 24.2%. Every win again came from a base answer that hit the limit, including all 56 GSM8K wins and all 27 MATH-500 wins.

Thinking off tied the 32-number edit on GSM8K at 52.3%, with 1,391 mean tokens against 4,400. On MATH-500 it beat both edits, 44.5% to 29.7% and 24.2%. Shifting only layer 0’s A_log values kept about 90% of the GSM8K gain, while moving the full edit to layer 2 did nothing, so layer 0’s decay gate does the work.

What the study doesn’t settle

Both edits adjust one type of setting, the decay gate in linear-attention layers, which accounts for only 4,608 of the 27B model’s 27.8 billion parameters. The runs cover only Qwen3.5 and math. They don’t test a stronger model editing a different one, which the author labels Level 3 WSP, so they don’t settle weight-space programming in general. The practical takeaway for now is to compare any self-edit against a larger token budget and a thinking-off baseline before calling it better reasoning.

Source: morethanamachine.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.