Frontier language models can now read and edit the weights of a neural network much like code and thereby improve a small model, an approach known as Weight-Space Programming (WSP). We further explore applying WSP to a language model itself, which we call Self-WSP. Specifically, Qwen3.5-0.8B reads its own weights, proposes an edit, and then continues with the edited weights as both problem solver and editor. We find many cases of genuine self-improvement. Self-edits can raise GSM8K accuracy from 11.8% to 62.2% and MATH500 accuracy from 7.0% to 32.2%, sometimes by changing only 16 parameters, and in some cases repeated self-editing keeps improving the model. A closer look, however, reveals that these gains lack interpretability. The model shows little understanding of the edits it makes, and WSP driven by random search sometimes performs comparably. Self-WSP thus holds promise as a path toward recursive self-improvement (RSI), but realizing this promise requires further exploration.
Figures & tables
Figure 1: The Self-WSP loop. One model plays two roles. As the editor, it reads its own current weights and proposes an edit. As the solver, it answers practice questions using a copy of the weights with the edit applied. The outer loop checks whether more answers are correct, and if so the copy replaces the current weights, so that the next proposal comes from the edited model.
Figure 2: Test accuracy of the best model of each method. Each method contributes its Top-1 model, the one with the largest gain on validation questions. In the Self-WSP experiments of Section 2 , the shuffled interface lists the tensor catalog in random order and the ordered interface lists it by layer. Continued runs let the best shuffled models keep editing themselves under the ordered interface. Bold values mark the highest Self-WSP score shown for each dataset. Random search replaces the editor with a random sampler under the same budget as the shuffled interface. The single random edit is the best of the edits tested individually on the original model, as described in Section 5 . GPT-6’s two edits come from Takehi et al. (2026) and are re-evaluated in our pipeline.
Setting
Original
Top-1
Top-2
Top-3
GSM8K
Shuffled
12.5
31.9
28.7
16.5
Ordered
11.8
61.0
59.9
54.0
Continued +8
11.8
62.2
53.3
48.1
MATH500
Shuffled, batch 1
6.9
17.3
10.4
8.1 †
Shuffled, batch 2
7.0
17.7
22.0
8.3 †
Ordered
7.0
24.2
21.9
24.7
Table 1: Test accuracy in % of all 24 selected models, ranked within each row by validation gain. Shuffled and ordered rows start from the original model. Continued rows start from selected models of the shuffled interface and keep running under the ordered interface, with + k counting the accumulated ordered rounds, so the MATH500 +12 models come from eight more rounds on the selected +4 models. On MATH500 the shuffled interface ran in two batches of 24 runs. Original is the unedited model evaluated on the same hardware and sampling seeds. All gains over the original model are significant except those marked †.
Figure 3: The kept proposal behind the 61.0% GSM8K model, abridged. The editor reuses the mean it has just read in both edits, while its explanation claims to undo a scaling by that same number. The catalog assigns each tensor an opaque identifier such as p273 or p298 , as described in Appendix A .
Figure 4: Layer of every valid edit. Each cell gives the rounded percentage of valid edits that fall in that layer. The first row, in grey, is each layer’s share of the catalog, the distribution an editor would follow if it treated all tensors alike. Under the shuffled interface, which lists the catalog in a random order, edits spread over the layers roughly in this proportion. Under the ordered interface, which lists the catalog by layer, 62% of valid edits fall in layer 0, the first entry of the catalog.
Figure 5: Validation accuracy of all runs started from the original model under the ordered interface, 24 per dataset. Two runs per dataset are highlighted to represent typical trajectories, thin light lines show the other runs, and the dashed line marks the original model.
Figure 6: Final validation change of every run under the shuffled interface. Each dot is one run, the shaded curve above the dots shows their distribution, and the black bar marks the mean. The frozen editor always uses the original weights while only the solver is edited. Random search uses the same tensors, operations and selection rules, and its larger budget is about twice the self-editing budget on GSM8K and 1.7 times on MATH.
Figure 7: The 352 single random edits applied to the original model, ranked from best to worst by the accuracy change they cause in the screening. The screening uses 128 held-out training questions with one sample each and an 8,192-token limit, so the vertical axis is meant for comparison within the figure and not against test accuracy. The grey band is the range of sampling noise when no edit is made. The solid blue line is the selected shuffled-interface model with the largest screening gain. Like the random edits, it starts from the original model, and its test accuracy is 31.9% on GSM8K and 17.7% on MATH500. The stronger models of the ordered interface were not part of this screening. The dashed line is GPT-6’s simpler zeroing edit.
Figure 8: Continued self-editing. The horizontal axis shows the original model and the selected shuffled models, with +4, +8 and +12 marking the cumulative rounds of ordered self-editing from the shuffled models. Solid lines connect each selected model with its starting model. Each selected model comes from the round of its run with the best validation score and is drawn at the end of its setting. Dashed lines are spot-check runs. They start from the same models as the selected ones but are fixed before running and never selected, so they represent an ordinary run. Each is tested after its 4th and 8th rounds, which correspond to +4 and +8 on GSM8K and +8 and +12 on MATH500. Labels A, B and C mark the selected GSM8K models of the shuffled interface.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 9: The editor’s system prompt under the ordered interface, verbatim from the run of Figure 3 , with only the first and last entries of the 318-entry tensor catalog kept. The prompt of the shuffled interface differs in three places. It asks the editor to pick one or two tensors directly, states the keep rule as an improvement in the combined accuracy of the two batches, and gives the catalog as a shuffled list without layers.
Call
What the editor newly sees
Required JSON output
Constraint
1 Layer
System prompt, tensor catalog and practice feedback
{"stop": false, "layer": L }
L from 0 to 23
2 Tensors
All tensors of the chosen layer
{"tensors": [...]}
One or two identifiers
3 Edit
Statistics, sampled values and row and column norms of the one or two chosen tensors
Table 2: The three calls of one proposal under the ordered interface. The shuffled interface has no first call, and the editor picks tensors directly from the shuffled catalog.
Tensor
Role
Linear-attention layers
A_log
How fast each head forgets
dt_bias
Per-head bias of the forgetting rate
in_proj_a
Input-dependent forgetting rate
in_proj_b
Strength of writes to memory
in_proj_z
Output gate
Appendix
Table 3: Tensors that appear in this paper and their roles. A_log holds one number per head, 16 per layer.
GSM8K
MATH
Training split
Official training split
7,473
7,500
Removed questions
2,378
227
Usable training questions
5,095
7,273
Practice pool
3,559
5,737
Held-out questions
1,536
1,536
Appendix
Table 4: Question splits of each dataset. Indented rows are carved out of the row above. Validation and screening questions come from the held-out questions and are therefore part of the usable training questions.
Shuffled
Ordered
Catalog and calls
Catalog order
random
by layer
Editor picks
tensors
layer, tensors
Calls per proposal
2
3
Practice and validation
Practice questions per batch
32
128
Appendix
Table 5: Settings of the two interfaces. The gain needed to keep an edit is the total over both practice batches. The shuffled interface spends 4, 6 and 12 valid edits in rounds 1 to 3. Under the ordered interface, the setting from the original model and the +4 setting each have 24 runs of 4 rounds, and the eight-round continued settings each have 12 runs.
Sampling
Random search
Tensor
One drawn uniformly, or two with probability 0.2
Layout, start
Uniform, with flat entries, rows or columns for matrices
Count
1 to 131,072, half at fixed levels and half log-uniform
Operation
Zero, scale, redraw, add or fill a number, remove a direction
Scale factors
0, 0.2, 0.5, 1, 2, 3, −1
Appendix
Table 6: Sampling of the two random baselines.
Proposal
Layer
Tensor
Block
Operation
Note
Shuffled interface, from the original model
Top-1, model A test accuracy 31.9%, 8,192 values changed
g1#1
12
in_proj_b
rows 12–15, 0–3
scale −0.5
Hypothesis says first 8 entries
Top-2, model B test accuracy 28.7%, 1,048,686 values changed
g2#0, g2#4
4
linear_attn.norm
[10:14]
redraw, ∣v∣=0.168
Both edits in both proposals
7
post_attention_layernorm
[10:14]
redraw, ∣v∣=0.168
Appendix
Table 7: Every kept edit behind all nine selected GSM8K models. In the proposal column, g r # k marks proposal k of round r with k counted from 0, and an edit with an empty proposal cell belongs to the same proposal as the row above. Slices exclude their right end, and flat counts the flattened entries of a matrix. Redrawing samples new values from a normal distribution with the tensor’s mean and ∣v∣ times its standard deviation. Values marked ∗ equal a statistic the editor had just read in the same proposal. Continued runs list only the edits after their start, and their counts of changed values are relative to the start.
Proposal
Layer
Tensor
Block
Operation
Note
Shuffled interface, batch 1, from the original model
Top-1 test accuracy 17.3%, 16,374 values changed
g1#1, g1#3
12
in_proj_b
all 16 rows
redraw, ∣v∣=0.497
The same edit is kept twice
Top-2 test accuracy 10.4%, 3,237 values changed
g2#3
9
out_proj
flat [147:1171]
scale −0.5
g3#2
23
q_norm
[0:165]
zero
Appendix
Table 8: Every kept edit behind the selected MATH500 models, part one with the nine models of the shuffled interface and of continued +4, in the notation of Table 7 .
Proposal
Layer
Tensor
Block
Operation
Note
Ordered interface, from the original model
Top-1 test accuracy 24.2%, 16 values changed
g1#6
0
A_log
all 16
add −3.2
g3#1
0
A_log
[0:3]
scale −5.179
Only these 16 values change
Top-2 test accuracy 21.9%, 16,634 values changed
g1#17
0
input_layernorm
[0:245]
scale −0.006
Appendix
Table 9: Every kept edit behind the selected MATH500 models, part two with the six models of the ordered interface and of continued +12, in the notation of Table 7 .