Self-Rewriting Lets a 27B Model Rewrite Its Own Weights Without Training, Boosting Accuracy on New Problems by 6.6 Percentage Points
Researchers from UIUC, Yale, CMU, Rutgers, Princeton, and Stanford introduced Self-Rewriting, which enables Qwen3.5 27B to rewrite its own weights through reasoning without gradients or an optimizer. On 490 unseen math problems, the best modification increased accuracy from 57.2% to 63.8%. After repairing corrupted weights, accuracy on text-based math problems recovered from 0.0% to 33.0%, while performance across six image benchmarks rose from 7.3% to 70.2%. Under the same process, the 2B model failed to complete the modification, while the 4B and 9B models corrupted themselves; only the 27B model was able to improve itself and repair a corrupted copy.
Why read this
SelectedAI score 78
The research demonstrates a path for models to rewrite their weights without gradients or an optimizer, and reveals a link between this self-repair capability and model scale.
Topics
Body · AI translation
Researchers from UIUC, Yale, CMU, Rutgers, Princeton, and Stanford have introduced Self-Rewriting: a 27B open-source model rewrites its own weights without training, improving accuracy on new problems by 6.6 percentage points
Language Models Can Rewrite Their Own Weights https://arxiv.org/abs/2611.21885
# Letting Models Modify Their Own Weights
Language models are typically trained once and then frozen. Further improvement requires either retraining or spending more compute at inference time, but the benefits of that extra compute disappear after use and are not written into the weights. UIUC’s Jiajun Fan and Liu Ge, together with collaborators from Carnegie Mellon, Rutgers, Princeton, Stanford, and Yale, have presented a third approach called Self-Rewriting: the model uses its own reasoning to rewrite its weights, entirely without gradients or training.
The method gives the model a session. It first sees its scores on practice problems, then at each step can choose one action: use Python to read and write weights, inspect hidden states, or have its pre-modification and post-modification versions answer the same problem with the same random seed for comparison. The system disables gradients and prohibits the use of optimizers. Each round permits up to 200 code executions and 20 forward passes. The experiments use the Qwen3.5 series, primarily the 27B model.
# After the Modification, It Really Did Perform Better on New Problems
Under the workflow that requires evaluation before submission, the 27B model completed eight consecutive rounds, each starting from the original weights. Before submission, the framework first evaluates the model on practice problems that it cannot inspect, after which the model decides whether to submit or revert the changes. Of the eight rounds, five were reverted and three were submitted; submitted versions replaced the model then in use, and accuracy only increased, never decreased. The rounds producing the largest gains required only a few hours on a single GPU.
In the best round, the model uniformly added 0.5 to the timestep bias in every linear-attention layer, reducing the proportion of responses left unfinished due to timeouts from 33.6% to 26.1%. On 490 previously unseen math problems, with eight responses generated per problem under identical settings, accuracy rose from 57.2% to 63.8%, an increase of 6.6 percentage points. Another round improved accuracy by 4.0 percentage points. Once the changes are written into the weights, no additional computation is needed for future answers.
# It Can Also Repair a Damaged Copy, and the Capability Emerges with Scale
The researchers also conducted a repair experiment: they replaced eight consecutive rows in the layer 30 MLP output matrix with strong noise, leaving the damaged copy almost unable to solve any problems. The intact 27B model was responsible for reasoning and writing code, but the weights, hidden states, and answer results it accessed all came from the damaged copy, and it never compared them with the original weights. The model independently located the damaged part of the matrix and clipped excessively large weights at 15 times the median. On 200 previously unseen text-based math problems, accuracy recovered from 0.0% to 33.0%, compared with 58.5% for the original model. This repair, discovered using text alone, increased accuracy across six previously unseen image benchmarks from 7.3% to 70.2%, equivalent to 83% of the original model’s 84.3% accuracy.
The same task and tools were given to the 2B, 4B, 9B, and 27B models: the 2B failed to make the modification, the 4B and 9B damaged themselves, and only the 27B could both improve itself and repair a damaged copy.
AI Trends