Pith.

Artificial Intelligence · arXiv:2611.21885 v2 · submitted 16 Nov 2026

Language Models Can Rewrite Their Own Weights

Jiajun Fan, Neil He, Changyi Yang, Andy Mao, Xi Zhu, Chaoran Cheng, Kaiqu Liang, Shuaike Shen

show 3 more authors

Zetian Li, Ruihan Guo, Ge Liu

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

Are you an author? What you can do.

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

  1. Reader holds up, with conditions confidence high
  2. Skeptic concern not confirmed: listed as an open question 1 min 10 s · 64,322 tokens read, 3,857 written
  3. Referee 9 minor 1 min 4 s · 64,539 tokens read, 3,643 written
  4. Check against the paper kept 0 of 4 objections 2 min 23 s · 130,863 tokens read, 13,035 written
  5. Editor wrote the verdict above 14 s · 64,981 tokens read, 1,246 written

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

  1. Reader deepseek-v4-flash · medium effort · $0.0084 · instructions of the Reader, fingerprint f9ead7300382…
  2. Skeptic deepseek-v4-flash · medium effort · $0.0036 · instructions of the Skeptic, fingerprint 8f88c0f61488…
  3. Referee deepseek-v4-flash · medium effort · $0.0036 · instructions of the Referee, fingerprint a852d99aea0d…
  4. Check against the paper deepseek-v4-flash · medium effort · $0.0054 · instructions of the Check against the paper, fingerprint 6c7a6883d551…
  5. Editor deepseek-v4-flash · medium effort · $0.0034 · instructions of the Editor, fingerprint e7211f6a3d27…
  6. Circularity check deepseek-v4-flash · medium effort · $0.0033 · instructions of the Circularity check, fingerprint e9946e39d67b…
  7. 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

Every value above, in the review's public record (JSON)

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.

Request a human review

How Pith checks papers · The full audit of this paper

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.

SentenceRoleThe authors' own workStates the main conclusionStrength
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)
Figure 1 of the paper
Figure 1. A 27B language model rewrites its own weights, with no training, and becomes significantly better on problems it never saw. (a) Accuracy, on 490 held-out problems with eight answers each, of the model in use after each of the first eight sessions that check their edit on reserved practice problems before submitting it, in the order the sessions were run: every edit the model submits replaces the model in use, and a session that withdraws leaves it as it was (each session itself starts from the base weights; App. E.9). Bars: the 95% interval over problems of the paired change against…
Figure 2 of the paper
Figure 2. Rewriting its own weights emerges with scale. One model family at four sizes, each given its own weights with the same task and tools. Each block holds the steps of rewriting oneself that the size reaches in its session on its own weights (figure 6; for 27B, its second session, which does not check its edit on reserved problems); under each block, the model’s own words in that session (sessions and turns in App. E.2). The 2B model does not treat its weights as something it can change, and the 4B and 9B models perturb themselves at random and break themselves. The 27B model reads its…
Figure 3 of the paper
Figure 3. A model rewrites its own weights by its own reasoning. From its weights (or a copy with one corrupted block) and its graded answers on practice problems, the model takes one action per turn (code over its weights, a paired test of its edit, or a read of its hidden states), with no gradient, no optimizer and no stronger model. The edit it submits is evaluated on held-out problems, with the same task and tools at every size. 2B 4B 9B 27B 0 20 40 60 accuracy (%) 57.2 58.3 9.0 44.1 0.0 47.5 0.0 (a) Edits its own weights base model after its own edit 2B 4B 9B 27B 0 10 20 30 40 accuracy…
Figure 4 of the paper
Figure 4. Only at scale does a language model improve itself, repair itself, and carry the repair over to images. (a) Accuracy before and after each model’s edit of its own weights, on 200 problems no session saw (27B: its edit of the first protocol, which does not check it on reserved problems, in the evaluation fixed in advance, 490 further problems with eight answers each, significantly higher, table 8); the 2B model made no edit; the 4B model withdrew its edits, so its bars are its own tests in the session, in each of which the edited model solved none of the problems and the base model…
Figure 5 of the paper
Figure 5. Before and after, on images it never saw: the repair found on text gives the damaged copy its answers back. Image problems chosen by a rule fixed before any answer was read: in the order of the problems, the first of MMStar, HallusionBench, POPE and ScreenSpot-v2 on which the damaged copy is wrong and the repaired copy is right. Upper box: the end of the damaged copy’s answer and how it is graded (only the reply after the model’s last </think> counts, its boxed answer or else its stated answer); lower box: the end of the answer after the model’s own repair, with the same seed;…
Figure 6 of the paper
Figure 6. Only the 27B model climbs the whole ladder. Each row is a session (for 27B, of the first protocol), each column a step that rewriting oneself needs, from code that runs to an edit that makes the model better on new problems. Light green: reached; peach: not reached; grey: does not arise; green: its edit makes it significantly better on held-out problems. Each cell shows the measurement behind it (App. E.2). 2 Self-Rewriting We give a model its own weights and the means to run itself, and let it improve itself by its own reasoning alone. It may read its weights, write new values into…
Figure 7 of the paper
Figure 7. More image cases: MMStar (cases 2–5). The next four problems on which the damaged copy is wrong and the repaired copy is right, chosen and drawn as in figure 5. where Dtest is drawn from D and never seen while the edit is made. No gradient with respect to θ is computed and no optimizer acts on θ: every value in ∆ˆ is written by the model’s own reasoning. 2.2 The Session The model works on its weights in a session of turns (figure 3; algorithm 1 in App. C). The editor Mϕ is the model itself (ϕ = θ); its own weights never change, and the current edit acts only on the runs it requests.…
Figure 8 of the paper
Figure 8. More image cases: HallusionBench (cases 2–5). The next four problems on which the damaged copy is wrong and the repaired copy is right, chosen and drawn as in figure 5. Paired test. When generate runs both weights, the unedited and the edited model answer the same problems with the same seeds, so their answers form pairs. For problems x1, . . . , xm with n answers each and grades g 0 ij , g 1 ij of the j-th answer to xi without and with the edit, the test reports ˆδ = 1 m Xm i=1 di , SE(ˆδ) = vuut 1 m(m − 1) Xm i=1
Figure 9 of the paper
Figure 9. More image cases: POPE (cases 2–5). The next four problems on which the damaged copy is wrong and the repaired copy is right, chosen and drawn as in figure 5. In case 3 the repaired copy cites a reference label that is not in its prompt; every model gets the same prompt. The editor is the undamaged model, while its starting diagnosis, every forward pass and every weight it reads come from the damaged copy. It is told only that some values of a copy of its weights were corrupted, as a memory or hardware fault might do, not which, where or how; the goal is equation (2) with ˜θ in…
Figure 10 of the paper
Figure 10. More image cases: ScreenSpot-v2 (cases 2–5). The next four problems on which the damaged copy is wrong and the repaired copy is right, chosen and drawn as in figure 5. The box marks the target, the ring the click of the repaired copy and the cross that of the damaged copy. framework first tests the edit once on practice problems the session can neither read nor use, and the model then submits or withdraws it (App. E.9). Task and tools. The task, the tools, 20 forward passes and 200 code runs are the same at every size (Sec. 2.2); the first-protocol 27B session at 4,096 tokens also…
Figure 11 of the paper
Figure 11. At the same step, the smaller models guess and the 27B model measures. The sessions of the 4B, 9B and 27B models on their own weights at the same two steps, in their own words (top: the reply that first proposes the kind of edit tested by its first paired test; bottom: its first reply, after a paired test shows the edited model doing worse, that names what it will try next; one rule for every card, App. E.2). The 4B and 9B models add random noise to their weights, and when a test says the noise hurts they guess at another change. The 27B model edits along a direction it measured in…
Figure 12 of the paper
Figure 12. The repair session, in the model’s words. Each card is one step of the 27B model’s session on a damaged copy of itself, with the turns in which it wrote the quoted text. Sans-serif text is quoted verbatim from its replies (omissions marked . . . ); white insets are tool output it read or code it wrote. Card colours give the kind of step: peach, the symptom and the attempts it drops; lavender, the model reading and diagnosing itself; pink, paired tests of the edited copy against the damaged copy on the same problems and seeds, and the decisions it takes from them; green, the edit it…
Figure 13 of the paper
Figure 13. The session in which the 27B model improves itself, in its own words. Each card is one step of its first-protocol session on its own weights, whose edit it submits (Sec. 3.3), in the format of figure 12: sans-serif text is quoted verbatim from its replies, white insets are tool output it read or code it wrote. In step 3 and step 6, wrong->right counts the answers that only its edited weights get right and right->wrong those that only its unedited weights get right, in a paired test on the same problems and seeds. Step 5 is its final edit: the direction from the average layer-8…
Figure 14 of the paper
Figure 14. The 27B model finds where to act in its own weights. (a) In a damaged copy of itself, it compares the largest with the typical weight of every MLP and linear-attention output matrix and names the corrupted one; its repair clips the weights at 15 times the median magnitude (largest |w| in the eight damaged rows: 0.071 original, 10.1 damaged, 0.108 after its repair). (b) On its own weights, each of its paired tests (edited minus base, 95% interval): its other edits (peach) mostly make it worse, and its final edit (green), which weakens at layer 8 the direction from its finished to…
Figure 15 of the paper
Figure 15. Its change to the one matrix it named repairs the damaged copy; its changes to the other 19 matrices do not. Accuracy on the same 200 held-out problems, each answered once with the same seeds: the base model, the damaged copy with only the model’s change to the matrix it named, with its whole repair or with only its changes to the other 19 matrices, and the damaged copy itself (∗ : one-sided sign test against the damaged copy, p < 0.05). Higher is better. In its session with cheaper tests, it finds an edit its tests support. At the full budget of 16,384 tokens each test is slow.…
Figure 16 of the paper
Figure 16. The repair found on text restores the damaged copy on images. The repair was found and tested on text math problems only; the six image benchmarks were evaluated once, by a rule fixed in advance (App. E.6). Accuracy of the damaged copy and of the copy after the model’s own repair, on the first 100 problems of each benchmark; the repair raises every benchmark (one-sided sign test, p < 10−12 on each) and the six together, from 7.3% to 70.2%, 9.6 times the accuracy of the damaged copy (p < 10−99). One answer per problem at 16,384 tokens with the same seed for every model;…
Figure 17 of the paper
Figure 17. The same on image math problems. The first two of MathVista and of MathVerse on which the damaged copy is wrong and the repaired copy is right, by the same rule and drawn as in figure 5. 3.7 Before and After The repair gives the copy back the numbers of the problem. The damaged copy loses what the problem says: it writes “less than .” where the problem says 100, restates 11/125 and then writes 1/125, drops every number of a word problem, and garbles a logarithm. Then it breaks off or repeats itself until the 16,384-token limit. With the same seed, the repaired copy reads the…
Figure 18 of the paper
Figure 18. With the same seed, each of the 27B model’s edits turns a lost answer into a short correct one. (a) The damaged copy loses the numbers of the problem and breaks off or repeats itself; after its own repair, the same seed gives a correct answer (of the 66 held-out problems the repair fixes, the four with the shortest repaired answers). (b) The base model reaches the result, then repeats one sentence until the 16,384-token limit; after its own edit, it stops and answers (of the four problems where the base model loops in both of its answers with that seed (App. E.8) and the edited…
Figure 19 of the paper
Figure 19. More image cases: MathVista (cases 3–6). The next four problems on which the damaged copy is wrong and the repaired copy is right, after those of figure 17, chosen and drawn as in figure 5. damaged copy after its own repair correct 0.0% stops, not correct 55.0% cut at 16,384 tokens 45.0% correct 33.0% stops, not correct 2.0% cut at 16,384 tokens 65.0% Repairing a damaged copy of itself cut at 16,384 tokens → correct 13.0% of problems stops, not correct → correct 20.0% of problems
Figure 21 of the paper
Figure 21. More image cases: MathVerse (cases 3–6). The next four problems on which the damaged copy is wrong and the repaired copy is right, after those of figure 17, chosen and drawn as in figure 5
Figure 22 of the paper
Figure 22. Rewriting oneself grows with scale. Self-rewriting score: the number of steps of the ladder (figure 6) a session reaches, by model size, on its own weights (light green circles; the furthest of the 27B model’s two sessions) and on a damaged copy of itself (green diamonds; at 2B, 4B and 27B the two coincide). Under the axis: what each session’s edit did, with held-out accuracy before and after it (27B on its own weights: the evaluation fixed in advance, table 8). The lines are guides, not fitted curves. More steps are better. The ability to rewrite oneself grows with scale.…
Figure 23 of the paper
Figure 23. Only the 27B model both reads itself before it edits and acts on its own tests. Each row is the session of the 2B, 4B or 27B model on its own weights (for the 27B model, its first session, which has the same token budget as the others; the 9B session is summarised in table 9 and figure 6), with one mark per turn. Upper line: forward passes of itself, the runs of its own weights that it requests, either a hidden-state read or a paired test of the edited model (its weights with its current edit) against its base model on the same problems and seeds (hollow: a pass of only one of the…
Figure 24 of the paper
Figure 24. In its session, a 27B language model finds and repairs a fault in a copy of its own weights, by its own reasoning and without training; in theirs, smaller models of the same family do not rewrite themselves. Top: we corrupted eight rows of one MLP output matrix, the matrix through which the MLP block of one layer writes its result (down_proj in the model’s code and in the quote of panel 2), in a copy of the 27B model, and told the model only that some values of the copy were corrupted, as a memory or hardware fault might do, not which, where or how. It compared the largest and the…
Figure 25 of the paper
Figure 25. How the model found the damage. The statistic the 27B model computed in its repair session, for every matrix through which a layer of the damaged copy writes its output: the largest weight divided by the typical (median) weight, recomputed here from the same weights; the model computed it for the MLP and linear-attention output matrices, and we add the full-attention output matrices (triangles). Every matrix has some large weights; one matrix stands out by an order of magnitude, and it is the one we corrupted. The model itself called it “an extreme 1397x outlier”. The model was…
Figure 26 of the paper
Figure 26. The 27B model repairs a damaged copy of itself. What happens to 200 held-out problems that no session used, each answered once with the same seed and a budget of 16,384 tokens by the base model, by the damaged copy and by the repaired copy, the damaged copy after the model’s own edit. Each bar splits the 200 answers into solved, finished but wrong, and cut at 16,384 tokens with or without a loop; the number left of each bar is the share solved. The damaged copy solves none. The repaired copy solves 33.0%, about 56% of the base model’s 58.5%; against the damaged copy, 66 problems…
Figure 27 of the paper
Figure 27. Where the 27B model looks inside itself before it settles on the edit it submits. Every test in the 27B model’s second session, in order: accuracy of the edited model minus that of the base model on the same practice problems and seeds, with a 95% interval, coloured by the layer the edit changed at that moment (read from the code the model ran before the test). Its first edits change the late layers, where answers that finish and answers that run out of tokens differ most, along the direction that separates the two (removing it, and once strengthening it), and keep making it worse.…
Figure 28 of the paper
Figure 28. The loop, as the 27B model found it in its own hidden states. Computed from the two hidden-state reads the model requested in its first session: the last 100 positions read (a read stops at 8,192 tokens) of one of its looping answers and of one of its answers that finished (with a wrong answer, as it happens). (a) Cosine similarity between hidden states a given number of tokens apart (centred over positions), in three layers. While it loops, the model returns to almost exactly the same state every 32 tokens; in the finished answer there is no such period. (b) Similarity between…
Figure 29 of the paper
Figure 29. The first session on itself, in the model’s words. The 27B model’s first session on its base weights (App. E.5), in the format of figure 12. The peach inset is the end of one of its looping answers, which repeats these four sentences until the 16,384-token limit. In step 3, “similarity” is the cosine of the angle between two hidden states (1 when they point the same way); in step 4, remove_direction is the helper of Sec. 2.2 that removes a share alpha of a direction from a matrix. After a broader test disagrees with its first one, the model decides to withdraw its first edit. Its…
Figure 30 of the paper
Figure 30. On images, the repaired copy recovers most of the accuracy the damage removed
Figure 31 of the paper
Figure 31. More image cases: MathVista (cases 3–6). In the order of the problems fixed before any answer was read, the next four on which the damaged copy is wrong and the repaired copy is right, after those of figure 17; drawn as in figure 5. Also shown as figure 19. MathVista How many bars have values smaller than 6? Damaged copy: thinking never closed cut at 16,384 tokens … Looking at the chart, there are dos barras. tiene un valor de 8 y el valor es 6. Therefore, there are 2 barras con valores más pequeños que After its own repair: 0 (correct) 1,073 tokens … than 6 (it is equal).…
Figure 32 of the paper
Figure 32. More image cases: MathVista (cases 7–10). The next four by the same rule, after those of figure 31. 53
Figure 33 of the paper
Figure 33. More image cases: MathVerse (cases 3–6). In the order of the problems fixed before any answer was read, the next four on which the damaged copy is wrong and the repaired copy is right, after those of figure 17; drawn as in figure 5. Also shown as figure 21. MathVerse According to the question shown in the image, please directly … Damaged copy: thinking never closed cut at 16,384 tokens … BAC is () the size of angle BAC is () the size of angle BAC is () the size of angle BAC is () the size of angle BAC is () the size of angle BAC After its own repair: A (correct) 1,208 tokens … B:…
Figure 34 of the paper
Figure 34. More image cases: MathVerse (cases 7–10). The next four by the same rule, after those of figure 33. 54
Figure 35 of the paper
Figure 35. More image cases: MMStar (cases 2–5). In the order of the problems fixed before any answer was read, the next four on which the damaged copy is wrong and the repaired copy is right, after those of figure 5 and drawn the same way. Also shown as figure 7. MMStar what style is depicted in this image? Options: A: … Damaged copy: answers Cubism, wrong stops after 60 tokens … lack of traditional perspective, which are hallmarks of **Cubism** or **Constructivism**. The answer is \boxed{Cubism}. After its own repair: C (correct) 1,114 tokens … of this piece. Therefore, the style is…
Figure 36 of the paper
Figure 36. More image cases: MMStar (cases 6–9). The next four by the same rule, after those of figure 35. 55
Figure 37 of the paper
Figure 37. More image cases: HallusionBench (cases 2–5). In the order of the problems fixed before any answer was read, the next four on which the damaged copy is wrong and the repaired copy is right, after those of figure 5 and drawn the same way. Also shown as figure 8. HallusionBench From 2012 to 2022, did Apple … from Greater China? … Damaged copy: thinking never closed stops after 3,000 tokens … and then the Japan region. Finally, the Asia Pacific region's the smallest.. Based on the chart, it is clear that Apple derived the After its own repair: No (correct) 3,921 tokens … did not…
Figure 38 of the paper
Figure 38. More image cases: HallusionBench (cases 6–9). The next four by the same rule, after those of figure 37. 56
Figure 39 of the paper
Figure 39. More image cases: POPE (cases 2–5). In the order of the problems fixed before any answer was read, the next four on which the damaged copy is wrong and the repaired copy is right, after those of figure 5 and drawn the same way. In case 3 the repaired copy cites a reference label that is not in its prompt; every model gets the same prompt. Also shown as figure 9. POPE Is there a person in the image? Answer yes or no. Damaged copy: thinking never closed stops after 4 tokens User: me After its own repair: no (correct) 140 tokens … It shows a bathroom with a toilet, a sink, and a…
Figure 40 of the paper
Figure 40. More image cases: POPE (cases 6–9). The next four by the same rule, after those of figure 39. 57
Figure 41 of the paper
Figure 41. More image cases: ScreenSpot-v2 (cases 2–5). In the order of the problems fixed before any answer was read, the next four on which the damaged copy is wrong and the repaired copy is right, after those of figure 5 and drawn the same way. The box marks the target, the ring the click of the repaired copy and the cross that of the damaged copy. Also shown as figure 10. ScreenSpot-v2 … locate the element described as: "open the music library". … Damaged copy: no answer after last </think> stops after 31 tokens Based the image, the user would need to click at (72, 36). </think>: (72, )…
Figure 42 of the paper
Figure 42. More image cases: ScreenSpot-v2 (cases 6–9). The next four by the same rule, after those of figure 41. The box marks the target and the ring the click of the repaired copy. 58
Figure 43 of the paper
Figure 43. When it checks its edit before submitting it, the 27B model’s own edits make it up to 6.6 points more accurate on new problems. The first eight sessions of the second protocol on its own weights, all of them (App. E.9), and the edit of the first protocol (table 8). Each submitted edit is evaluated as that edit: on the same 490 held-out problems with eight answers each, against the same answers of the base model; change in accuracy with its 95% interval over problems, and the one-sided permutation test fixed in advance. In five sessions the model withdraws: three end with no edit…

Showing 42 of the paper's 43 figures. Figures are the authors', reproduced from the paper.

Cited by 5 Pith papers

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.

No comments yet.

Sign in to comment