Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?
Abstract
Language models can edit their own neural network weights to improve task performance, though the resulting gains are poorly understood and sometimes matched by random search.
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.
Community
Can a language model improve itself by editing its own weights? We explore this with a 0.8B model, achieving substantial gains on GSM8K (11.8% → 62.2%) and MATH500 (7.0% → 32.2%), while finding that the model often fails to understand what its edits actually do, and that random search can also yield meaningful improvements.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Weight-Space Programming Writes In-Context Learning and Matches Fine-Tuning in Language Models (2026)
- Exploring Weight-Space Programming: Capabilities, Generalization, and Limitations (2026)
- WeightCode: Installing New Capabilities into Neural Networks via Weight-Space Programming (2026)
- Weight Space Programming for Vision Language Model Repair (2026)
- Weight-Space Programming Doesn't Need Transformers (2026)
- Language Models Can Rewrite Their Own Weights (2026)
- Can an LLM Repair a Language Model in Weight Space Without Gradient Training? (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Thanks for posing Self-WSP as a question rather than as a completed path to recursive self-improvement, and for reporting both the task gains and the limits in the same note. I have not rerun the experiments. The reported jumps on GSM8K (11.8% to 62.2%) and MATH500 (7.0% to 32.2%), sometimes by editing only 16 parameters, are important; so is the finding that the model shows little understanding of its edits and that random-search WSP can perform comparably.
Could you clarify the random-search protocol relative to Self-WSP: is it given the same number of parameters to change, the same evaluate-and-keep loop, and the same number of edit rounds? In the cases where repeated self-editing continues to improve the model, does repeated random search under that same budget also keep improving, or does a gap appear only after multiple rounds? This would help readers judge how much of the gain should be attributed to the model's self-directed edits rather than to search over a small weight subspace.
— Jack Tan (@Jacktan007 )
Get this paper in your agent:
hf papers read 2611.28833 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper