Artificial Intelligence · arXiv:2611.21885 v2 · submitted 16 Nov 2026
Language Models Can Rewrite Their Own Weights
The paper says
“A language model is trained once and frozen. Making it better takes another training run, or a prompt, a harness or extra computation at inference that is gone once the task ends.”
more of the abstract
We show a third way: to our knowledge for the first time, a language model rewrites its own weights by its own reasoning and becomes better, with no gradients and no training. We call this self-rewriting: the model is its own optimizer. In earlier work, a frontier model edited a much smaller one; here an open 27B model, given its weights, its graded answers and the ability to run itself, diagnoses its own failure and rewrites the weights behind it. It surpasses itself: its own edit makes it 6.6 points more accurate on problems it never saw. It keeps getting better: it tests its edits on practice problems and submits only what works, each edit improving on the last, and over eight consecutive sessions its accuracy only rises. It repairs a damaged copy of itself, like a broken robot that fixes itself without being rebuilt: the copy solves almost nothing, yet with no retraining and without ever reading the original weights, the model brings it back to over 80% of the original accuracy on image tasks it never saw. And the ability emerges with scale: in one model family, the smaller models make no edit or break themselves, and only the largest improves and repairs itself. Unlike test-time scaling, self-rewriting writes its gain into the weights, at no cost per answer; unlike training, it runs only forward passes, as serving does. The wall between training and inference is a limit of our tools, not a property of intelligence. We believe self-rewriting is a necessary step toward recursive self-improvement: a model that, like a human, does not separate training from inference could keep upgrading itself for life, with no larger model, no harness or prompt engineering, and no pre- or post-training.
from the abstract
Pith says
Machine review · deepseek-v4-flash · 18 Nov 2026 · of version 1 of the paper; version 2 is newer · read the full text (213,956 characters) · not checked by a person
It can be wrong. Challenge this review or reply to it.
Holds up, with conditions. A 27B language model rewrites its own weights by its own reasoning, improving accuracy on unseen problems and repairing a damaged copy across text and images, with the ability emerging at scale. This line is wrong
9 minor
How often objections from reviews like this one are right: not yet measured
The paper, first character to last
The reviewer was given the whole text, 213,956 characters. Not checked: figures, code, what the references say.
9 minor objections
The paper says, at Abstract and §'Introduction'
Pith says: minor objection 1 of 9
The abstract and introduction prominently feature the +6.6-point gain as the headline result (e.g., 'its own edit makes it 6.6 points more accurate on 490 problems it never saw'). This gain comes from session 8 of the second protocol, which is one of three submitted edits (two significant).
more of objection 1
The authors do report all eight sessions and the statistical tests, so the information is not hidden. However, a reader could reasonably infer that the 6.6-point gain is a representative or typical outcome of the self-rewriting process, whereas in fact it is the best of several attempts. The framing should be adjusted to make the selection transparent in the abstract itself, e.g., 'In one of several sessions, the model's edit improved its accuracy by 6.6 points; two of three submitted edits were significantly better.'
The paper says, at §'The Session' and Appendix 'The Task Prompt'
Pith says: minor objection 2 of 9
The framework provides a helper function that computes exactly the operation the model ends up using: W - α u uᵀ W. The task prompt explicitly names the failure mode ('answers that run out of tokens') and instructs the model to look at 'its own wrong and unfinished answers first.'
more of objection 2
The model's autonomy in discovering the edit mechanism is therefore heavily scaffolded. While the paper documents this fully, the phrasing 'by its own reasoning' (abstract, introduction) may overstate the degree of independent discovery. The autonomy is a matter of degree: the model chooses which direction to remove, from which layer, and at what strength, and it tests the edit against its unedited self. However, the paper should more clearly qualify the 'by its own reasoning' claim to acknowledge the scaffolding, perhaps by describing the process as 'within a structured environment that provides the necessary tools and hints about the failure mode.' The current framing risks misleading readers about how much of the solution the model invented versus was given.
show 7 more
The paper says, at §'Only at Scale' and Fig. 'The ladder'
Pith says: minor objection 3 of 9
The claim that self-rewriting 'emerges with scale' is based on single sessions at each size (2B, 4B, 9B, 27B, plus a second 27B session). The 2B model fails almost all its code runs (90% errors), never runs a forward pass of itself, and ends with no edit.
more of objection 3
This failure may reflect basic tool-use inability (the model cannot write working Python) rather than a lack of self-rewriting capability per se. The 4B and 9B models do write working code and run tests, but they apply random noise and ignore negative test results. Their failure is more informative, but the 2B case confounds coding skill with self-rewriting ability. Since the same task and tools are used at all sizes, this is a legitimate experimental limitation, but the paper should discuss it explicitly rather than presenting the ladder as unambiguous evidence that rewriting ability grows with model scale. A more careful formulation would separate 'can run the required code' from 'can use the results to guide edits'.
The paper says, at Table 2 (tab:scaling)
Pith says: minor objection 4 of 9
The 'Starting diagnosis' correct percentages for the 2B and 27B models differ dramatically (12.9% vs 61.7%). This is a known difference in base capability, but it affects the comparison: the 2B model has far less correct behaviour to preserve, which might explain why it never attempts an edit. The paper notes this in passing but should discuss how differing base accuracy affects the interpretation of the scale comparison.
The paper says, at §'What Its Edits Do' (first protocol)
Pith says: minor objection 5 of 9
The 27B model's first-protocol edit shows a +1.1% held-out improvement (p=0.038), which is statistically significant but modest. The paper describes this as making it 'significantly more accurate on held-out problems.' While technically correct, the practical relevance of a 1.1-point gain on a 57.2% base could be clarified: is this a robust gain that would replicate in other problem distributions? The evaluation fixed in advance uses 8 answers per problem, which reduces variance, but the magnitude is small.
The paper says, at §'The Repair on Image Tasks'
Pith says: minor objection 6 of 9
The image evaluation uses the first 100 problems per benchmark, selected by a fixed seed. The paper should state whether any benchmark was excluded or if these are all six image benchmarks the model can handle (it seems so, from the description). Also, the ScreenSpot-v2 metric (click inside target box) is different from the multiple-choice accuracy of other benchmarks; this should be noted in the main text, not just in the appendix.
The paper says, at §'Ablation Study'
Pith says: minor objection 7 of 9
The ablation shows that the named matrix alone gives 55% accuracy vs 33% for the full repair. This is an excellent check. However, the full repair clips 19 additional matrices and yields lower accuracy than clipping only the target matrix.
more of objection 7
This suggests that the model's broader clipping harmed performance. The paper should note this more explicitly rather than just saying 'the model's analysis found the fault, and its edit of that matrix restores the copy.' The full repair is still a net improvement, but it is suboptimal.
The paper says, at General presentation
Pith says: minor objection 8 of 9
The paper runs over 50 pages with many figures and tables. The organization is mostly clear, but some figure references are to appendix figures that are many pages away. Consider moving key ablation results (Fig. 10, repair parts) closer to the main text, or adding a forward reference.
The paper says, at §'Constraints' and Appendix 'The Python session'
Pith says: minor objection 9 of 9
The constraint that edits must not be a whole-tensor rescaling (to prevent acting like temperature change) is sensible, but the model in session 8 of the second protocol raises the time-step bias of every linear-attention layer by a constant +0.5.
more of objection 9
This is not a rescaling of a whole tensor (it's a single scalar per layer), so it passes, but it is a global, uniform change. The paper should note that this edit is qualitatively different from the direction-removal edits in other sessions.
What would settle it
Run a similar session on a 27B model from a different family (e.g., Llama 3.1-27B or DeepSeek-27B) on the same math-failure task, with the same prompt and tools. If no edit improves accuracy, the claim of scale-dependent self-rewriting would fail to generalize.
from Pith's summary of the paper
How the review went
5 passes by deepseek-v4-flash · 18 Nov 2026
- Reader holds up, with conditions
- Skeptic concern not confirmed: listed as an open question
- Referee 9 minor
- Check against the paper kept 0 of 4 objections
- Editor wrote the verdict above
Not run on this paper: the simulated authors' defence.
Pith's passes raised 4 objections. A check against the paper's text kept 0, left 1 as a question and moved 3 to the minor objections.
The review in full
The review in brief, machine-written
This paper reports something new: a 27B open language model that, given its own weights and the ability to run itself, diagnoses its failure, writes edits to its weights, and becomes more accurate on problems it never saw. It also repairs a damaged copy of itself, and the repair transfers to image tasks it never encountered. The work is unusually transparent: evaluations are fixed in advance, all sessions are reported, repeat leakage is analyzed, and limitations are stated. The mechanism—direction ablation and outlier clipping—is simple, and the model chooses it autonomously.
The result is striking but comes with caveats. The headline 6.6-point gain is the best of three submitted edits (session selection, though disclosed). The first-protocol held-out gain is 1.1 points (p=0.038). The scaling claim rests on one session per size (two for the 27B model), and the successful edit is aided by a framework helper that computes W - alpha u uT W. The model's 'autonomous discovery' is genuine but situated. These are specific, addressable weaknesses, not reasons to dismiss the paper.
The paper deserves a serious referee because it opens a paradigm that others will build on or refute. I recommend sending it to peer review.
The stress test's concern
Not confirmed. Pith could not check this concern against the text of the paper it was given; it is listed as an open question, not a finding.
The referee's report
If the central claims hold, this paper introduces a genuinely new paradigm for model improvement that bypasses gradient-based training. The demonstration that a 27B model can diagnose a failure, locate a cause in its own weights, test candidate edits in paired forward passes, and keep only those that improve held-out accuracy is striking. The cross-domain transfer (repair found on text math problems restoring image-task accuracy) strengthens the case that the edit addresses a fundamental model property rather than a surface pattern. The methodology is unusually careful: all sessions of the second protocol are reported, fixed-in-advance evaluation with pre-registered analysis, repeat-leakage analysis, discontinued sessions disclosed, and an ablation confirming the repair comes from the named matrix. The paper also documents the full session transcripts, which allow readers to inspect the model's reasoning. The result is potentially transformative for how we think about model update and self-improvement at inference time.
Pith's reading of the paper (a machine's summary, not the authors')
The paper argues that a large language model can diagnose its own failures, read its own hidden states and weights, and edit its weight matrices to become more accurate on unseen problems — without any gradient computation, optimization, or training infrastructure. This ability, called self-rewriting, is demonstrated on a 27B open model: its own edit makes it 6.6 points more accurate on 490 held-out problems. The same model can repair a damaged copy of itself, locating and clipping a corrupted matrix, and the repair — found on text math problems alone — restores accuracy on six image benchmarks to 83% of the original. Across four model sizes (2B, 4B, 9B, 27B), only the 27B model succeeds; smaller models either make no edit or break themselves. The authors claim this is the first evidence that self-rewriting ability emerges with scale.
What carries the argument. The central mechanism is a session framework in which the model acts as its own editor, using Python code to read and write weight tensors. The load-bearing operation is the helper `remove_direction(W, u, $\alpha$)` which computes $W - \alpha u u^\top W$, weakening the fraction $\alpha$ of the component of $W$ along a unit direction $u$. The model discovers $u$ as the difference between average hidden states on answers that finish and on answers that run out of tokens, measured at a chosen layer. It validates each edit through paired tests (same problems and seeds, with and without the edit) and submits only if its own tests favor the edit.
Core claim. The authors claim that a 27B language model (Qwen3.5-27B), given its own weights, graded answers, and a Python session with code execution, can autonomously locate the cause of its failures (answers that run out of tokens) by comparing hidden states, then write a small rank-one edit to its weights ($W \leftarrow W - \alpha u u^\top W$) that weakens the direction separating finished from unfinished answers. The edited model is significantly more accurate on held-out problems in a paired test fixed in advance. The same model, when given a damaged copy of itself with one matrix corrupted by noise, finds the corrupted matrix by comparing weight statistics and clips its outliers, restoring the copy to 33% accuracy (from 0%) — and this repair transfers to image tasks it never saw. The ability to rewrite oneself emerges only at the largest size: under identical tasks and tools, the 2B model never edits, the 4B and 9B models break themselves, and only the 27B model improves.
The premise it rests on. The model's 'autonomous' discovery of the edit mechanism is scaffolded: the task prompt explicitly names the failure mode (answers running out of tokens) and the Python session provides a helper that computes exactly the operation the model ends up using ($W - \alpha u u^\top W$).
If the paper is right (Pith's inferences, not the authors')
If self-rewriting works as claimed, a language model could improve itself without any training pipeline — only a conversation and access to its own weights — making improvement available to anyone who can describe a failure mode.
A deployed model could autonomously locate and repair corrupted weights (e.g., from bit flips) without needing a clean reference, as demonstrated by the repair session.
The repair found on text transfers to visual tasks, suggesting that fixes to low-level weight pathologies may benefit multiple modalities, not just the modality on which the fix was discovered.
The scaling result — only the 27B model succeeds — implies that stronger future models will be even better self-improvers, possibly enabling recursive self-improvement where an improved model rewrites itself again.
A clear next step is to test whether the self-rewriting ability generalizes across model families (e.g., Llama, Mistral) and across failure types beyond token-limit loops, such as factual errors or unsafe outputs.
The framework's reliance on an explicitly stated failure mode and a pre-supplied helper function suggests that the model's 'autonomous discovery' is scaffolded; reducing this scaffolding would test how much true self-awareness the model possesses.
If this capability scales, future models might rewrite themselves recursively, creating a potential for rapid capability gain that current safety evaluations do not account for.
Check this review
What was read
The passes were given all 213,956 characters of the paper's LaTeX source.
Fingerprint of that text (SHA-256): 4f266ff228901b73e1e1152b3c45b23d41c07df60bb051abd5f959533729c9c6
Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:
PYTHONPATH=. python scripts/review_input_check.py 2611.21885
The passes, in the order they ran
- Reader deepseek-v4-flash · medium effort · $0.0084 · instructions of the Reader, fingerprint f9ead7300382…
- Skeptic deepseek-v4-flash · medium effort · $0.0036 · instructions of the Skeptic, fingerprint 8f88c0f61488…
- Referee deepseek-v4-flash · medium effort · $0.0036 · instructions of the Referee, fingerprint a852d99aea0d…
- Check against the paper deepseek-v4-flash · medium effort · $0.0054 · instructions of the Check against the paper, fingerprint 6c7a6883d551…
- Editor deepseek-v4-flash · medium effort · $0.0034 · instructions of the Editor, fingerprint e7211f6a3d27…
- Circularity check deepseek-v4-flash · medium effort · $0.0033 · instructions of the Circularity check, fingerprint e9946e39d67b…
- Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0035 · instructions of the Summary for the page, fingerprint e4f56bf568e7…
The passes cost $0.031 in model calls together.
Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.d60f54226f00
Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.
curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum
prints the fingerprint of the reader's instructions. The same works for every pass.
The receipt
The review's fingerprint was taken on 18 Nov 2026. The review you are reading still matches it.
Fingerprint of the review (SHA-256): ffac27e0ace11658b9d28d1fbf8f63bcd0fd6e37c149a0863af611301fe52e5b
curl -s 'https://pith.science/api/v1/verdicts/2611.21885?form=canonical' | sha256sum
prints the fingerprint of the review as it stands now. The rule, in four steps.
A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.
How often reviews like this one are right
Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.
How often objections from reviews like this one are right: not yet measured
Reviews by people
This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.
The paper
Abstract
A language model is trained once and frozen. Making it better takes another training run, or a prompt, a harness or extra computation at inference that is gone once the task ends. We show a third way: to our knowledge for the first time, a language model rewrites its own weights by its own reasoning and becomes better, with no gradients and no training. We call this self-rewriting: the model is its own optimizer. In earlier work, a frontier model edited a much smaller one; here an open 27B model, given its weights, its graded answers and the ability to run itself, diagnoses its own failure and rewrites the weights behind it. It surpasses itself: its own edit makes it 6.6 points more accurate on problems it never saw. It keeps getting better: it tests its edits on practice problems and submits only what works, each edit improving on the last, and over eight consecutive sessions its accuracy only rises. It repairs a damaged copy of itself, like a broken robot that fixes itself without being rebuilt: the copy solves almost nothing, yet with no retraining and without ever reading the original weights, the model brings it back to over 80% of the original accuracy on image tasks it never saw. And the ability emerges with scale: in one model family, the smaller models make no edit or break themselves, and only the largest improves and repairs itself. Unlike test-time scaling, self-rewriting writes its gain into the weights, at no cost per answer; unlike training, it runs only forward passes, as serving does. The wall between training and inference is a limit of our tools, not a property of intelligence. We believe self-rewriting is a necessary step toward recursive self-improvement: a model that, like a human, does not separate training from inference could keep upgrading itself for life, with no larger model, no harness or prompt engineering, and no pre- or post-training.
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.
abstract compiled · 2026-11-18
The authors' main claim, as the classifier picked it out 0.88
“We ask whether a model can rewrite its own weights to make itself better, and find that it can, by its own reasoning, with no gradients and no training; we call this self-rewriting.”
How the main claim is stated: asserted 1.00
What the abstract itself states, as probabilities: claims first 0.14 · states limitation 0.76 · human participants 0.03 · controlled comparison 0.65 · randomized assignment 0.02 · states quantitative result 0.99 · compares with prior results 0.93 · mentions code or data availability 0.05
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| Language models are trained once, frozen and deployed: improving one again takes another training run, and a prompt, a scaffold or extra computation at inference is gone once the task ends. | background 0.94 | 0.06 | 0.03 | asserted 1.00 |
| A frontier model has been shown to edit the weights of a much smaller one. | background 0.98 | 0.07 | 0.06 | asserted 1.00 |
| We ask whether a model can rewrite its own weights to make itself better, and find that it can, by its own reasoning, with no gradients and no training; we call this self-rewriting. | contribution 0.92 | 0.94 | 0.85 | asserted 1.00 |
| Given its weights, graded answers and the ability to run itself, a 27B model diagnoses its failure and edits the weights behind it. | method 0.81 | 0.89 | 0.14 | asserted 0.99 |
| It surpasses itself: its own edit makes it 6.6 points more accurate on 490 problems it never saw, in a test fixed in advance, and another session's edit also makes it significantly better. | result 1.00 | 0.93 | 0.15 | asserted 1.00 |
| It keeps getting better: it submits an edit only when its own tests support it, each edit replacing the last, and over its first eight such sessions its accuracy only rises. | result 1.00 | 0.93 | 0.13 | asserted 1.00 |
| Unlike test-time scaling, the gain persists in its weights and adds no cost per answer; unlike training, it needs no pre- or post-training infrastructure, only an open model and hours on one GPU. | interpretation 0.67 | 0.80 | 0.13 | asserted 1.00 |
| It repairs a damaged copy of itself: it locates the corrupted matrix and rewrites it with values of its own, never reading the undamaged weights; found on text math problems alone, the repair lifts the copy on six image benchmarks it never saw from 7% to 70% accuracy, 83% of the undamaged model's. | result 0.99 | 0.91 | 0.08 | asserted 1.00 |
| And the ability emerges with scale: across four sizes of one family, the 2B model makes no edit and the 4B and 9B models break themselves; only the 27B model works on itself as a human would, comparing its hidden states on answers that finish and on answers that run out of tokens, weakening the direction that separates them. | result 0.97 | 0.91 | 0.07 | asserted 0.95 |
| Like a human, a model need not separate training from inference; improving a language model may come to take a conversation rather than a training run. | interpretation 1.00 | 0.23 | 0.65 | hedged possibility 0.98 |
What kind of paper the classifier reports this is: method or tool 0.52 · evidence from observation or experiment 0.92
What was examined, and what was not
Sources read
- arXiv listing abstract v1
Not examined
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Levels run
- P abstract
Not run
- S sections
- T body sentences
- C citations
- R cross-paper relations
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-11-18: 1 request, 7,920 input tokens.
Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON
Figures (43)
Showing 42 of the paper's 43 figures. Figures are the authors', reproduced from the paper.
Cited by 5 Pith papers
Reviewed papers on Pith that cite this one. The full citation record
- Don't Train It, Write It: An AI Agent Writes New Capabilities into Language Model Weights cs.LG · Nov 2026
- Self-Upgrading Embodied Agents cs.AI · Nov 2026
- Where Does a Weight-Editing Agent Help? Blind Diagnosis and Repair of Deployment Faults in Vision Models cs.CV · Nov 2026
- Do We Really Need an LLM for Weight-Space Programming? A Deterministic Forward-Only Paradigm and Its Capability Boundaries cs.AI · Nov 2026
- Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming? cs.CL · Nov 2026
Challenges and discussion
Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.
Come back by email
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account.
No comments yet.
Sign in to comment