# Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?

> A 0.8B model can self-improve by editing its own weights, quintupling GSM8K accuracy, but random edits match it, revealing search, not understanding, drives gains.

- **Source:** [arXiv](https://arxiv.org/abs/2611.28833)
- **Published:** 2026-11-28
- **Permalink:** https://picx.dev/p/r7y0wi
- **Whiteboard:** https://picx.dev/p/r7y0wi/image

## Summary

## Summary (Overview)

- **Self-WSP introduces a recursive self-improvement loop** where Qwen3.5-0.8B reads its own weights, proposes edits, and continues with edited weights as both solver and editor, achieving significant performance gains: GSM8K accuracy rises from 11.8% to 62.2% and MATH500 from 7.0% to 32.2%.
- **Edits are remarkably minimal** — sometimes changing only 16 parameters (e.g., the A_log tensor of the first linear-attention layer), with no selected model changing more than 0.2% of its weights.
- **The model shows little understanding of its edits**: it edits whichever tensors are listed first in the catalog, copies statistics it has just read, and often provides hallucinated explanations (including one that reads "The cost of one chair is $11").
- **Random search performs comparably**: random edits match self-editing on GSM8K (32.8% vs. 31.9%) but fall short on MATH500 (13.6% vs. 17.3% with the same budget), and the best single random edit matches GPT-6's simpler published edit.
- **Continued self-editing yields further gains in lucky cases** (MATH500 rises to more than four times original accuracy), but typical runs stall, showing the model does not become a better editor over time.

## Introduction and Theoretical Foundation

**Recursive Self-Improvement (RSI)** is the longstanding idea that a system can improve its own intelligence, and with it its ability to improve further (Good, 1966; Schmidhuber, 2007). Language models already improve themselves indirectly through self-generated data, rationales, or code (Zelikman et al., 2022; Huang et al., 2023; Yuan et al., 2024), but always change weights through training, data, or code.

**Weight-Space Programming (WSP)** offers a more direct route: Takehi et al. (2026) showed GPT-6 Astra can read a neural network's weights and edit them like code. Their most effective edit traced Qwen3.5-0.8B's math failures to a single direction in two MLP layers, removed that direction from 0.016% of weights, and raised MATH500 accuracy from 7.9% to 48.1%.

**Self-WSP asks the open question**: can a model improve itself by editing its own weights? The paper studies this directly with Qwen3.5-0.8B, a 24-layer model where three of every four layers use linear attention (storing information in fixed-size states with a forget rate set by weights) and the fourth uses standard attention.

## Methodology

**The Self-WSP loop** (Figure 1) involves one model playing two roles:
- **As editor**: reads its own weights and proposes edits (with thinking turned off)
- **As solver**: answers math questions using edited weights (with thinking turned on)

**The editing interface**:
- The editor sees a catalog of 318 tensors across all 24 layers, with names, shapes, statistics (mean, standard deviation), up to 64 values with positions, and row/column norms
- Edits are written as JSON under a grammar guaranteeing format but not content
- Seven operations are available: set to zero, multiply, add, fill, redraw at random, remove a direction, or apply a short NumPy expression
- Invalid edits (repeats, uniform rescaling, no-value changes) are discarded

**Selection mechanism**:
- Three question types: *practice* (training split, shown to editor, used to test edits), *validation* (training split, never shown to editor, used for model selection), and *test* (GSM8K and MATH500, used only for final evaluation)
- Edits are kept only if they gain enough correct answers on two practice batches without doing worse on either
- **Two interfaces**: *shuffled* (random tensor order, 32 questions/batch, keep edits gaining 1 answer) and *ordered* (layer order, 128 questions/batch, require 3-answer gain)

**Random baselines** include a random sampler (no model calls), a frozen editor, and 352 single random edits evaluated individually.

## Empirical Validation / Results

**Table 1: Test accuracy (%) of selected models**

| Dataset | Setting | Original | Top-1 | Top-2 | Top-3 |
|---------|---------|----------|-------|-------|-------|
| GSM8K | Shuffled | 12.5 | 31.9 | 28.7 | 16.5 |
| GSM8K | Ordered | 11.8 | 61.0 | 59.9 | 54.0 |
| GSM8K | Continued +8 | 11.8 | 62.2 | 53.3 | 48.1 |
| MATH500 | Shuffled, batch 1 | 6.9 | 17.3 | 10.4 | 8.1† |
| MATH500 | Shuffled, batch 2 | 7.0 | 17.7 | 22.0 | 8.3† |
| MATH500 | Ordered | 7.0 | 24.2 | 21.9 | 24.7 |
| MATH500 | Continued +4 | 7.0 | 25.4 | 25.4 | 28.4 |
| MATH500 | Continued +12 | 7.0 | 31.8 | 32.2 | 28.6 |

†Not significant. All other gains are significant.

**Key findings**:
- **22 of 24 selected models** are significantly better than the original; the best GSM8K model comes within 5 points of GPT-6's best edit (66.9%)
- **The 61.0% GSM8K model** came from an edit that multiplied layer-0's first tensor by −1.979 and added the same number to the second — reusing the mean it just read, despite the explanation claiming to *undo* a scaling by that number
- **62% of valid edits under the ordered interface** fall in layer 0 (the first catalog entry), while under shuffled ordering, edits spread proportionally across layers
- **69% of all 11,580 proposals are invalid**; only 12% of valid edits are kept
- **More than 40% of kept rounds under shuffled interface** lower validation accuracy (a third under ordered interface on MATH)
- **Random search matches self-editing on GSM8K** (32.8% vs. 31.9%) but falls short on MATH500; with 70% more budget it finds a 13.6% model
- **GPT-6's simpler edit** (zeroing 256 columns of layer-15 attention output) scores 22.0% on GSM8K and 13.8% on MATH500, comparable to the best single random edits
- **The original model fails to finish within its 32k-token budget on ~90% of questions** due to repetition loops — any edit breaking repetition can sharply raise accuracy

## Theoretical and Practical Implications

**Why small edits go a long way**: Qwen3.5-0.8B often gets stuck repeating itself during thinking, and accuracy falls almost linearly with the share of unfinished answers. Edits that break repetition loops can therefore raise accuracy dramatically, which explains why:
- A few parameters can have outsized effects (Yu et al., 2024)
- Correcting a small fraction of thinking tokens clearly raises accuracy (Ling et al., 2026b)
- GPT-6 could not improve Gemma 3 270M, a model that rarely repeats itself

**The outer loop does much of the work**: Self-WSP is best seen as a search where the model supplies proposals that beat random ones on MATH500 but merely match them on GSM8K. The model does not become a better editor over time — its weights change, but its editing ability does not improve.

**Path toward genuine self-improvement** requires:
- Tools for analyzing weights (which GPT-6 had but the 0.8B editor lacked)
- Training models specifically to propose edits
- Solvers whose failures run deeper than repetition
- Measuring progress against random search with the same interface and budget, reported alongside spot-check runs

## Conclusion

A 0.8B language model *can* improve itself by editing its own weights — raising GSM8K accuracy fivefold and MATH500 accuracy more than fourfold, sometimes by changing only 16 parameters. Continued self-editing keeps paying off in lucky runs. However, the model shows little understanding of its edits: it follows catalog order, copies statistics it reads, and gives hallucinated explanations. Random edits sometimes achieve comparable gains.

Self-WSP is a promising path toward RSI, but the current successes come mostly from search and selection rather than understanding. **Turning this into a reliable ability — where the model improves itself *because* it understands its weights — is the main challenge ahead.**

**Limitations** acknowledged by the authors:
- Single small model, two math benchmarks; repetition weakness is unusually easy to repair
- Improvement is supervised (outer loop uses reference answers)
- Ordered interface designed after seeing shuffled results
- Random search not yet run under ordered interface; layer-0 preference source not directly tested by reversing the catalog
- GPT-6 comparison is indicative only (different tools, feedback, budgets)

---

_Markdown view of https://picx.dev/p/r7y0wi, served by PicX — AI-generated visual whiteboard summaries of research papers._
