An AI Just Rewrote Its Own Brain — and Got Better at Math. No Training Required

A language model has done something that sounds like science fiction: it opened up its own weights, diagnosed its own failure, and edited itself to become better — with no gradients, no training run, and no human touching the code. The work, posted to arXiv on November 16 and revised on November 18, 2026, by researchers from UIUC, Carnegie Mellon, Rutgers, Princeton, Stanford, and Yale, calls the technique “self-rewriting” — and the model, its own optimizer.

The subject was Qwen3.5, an open 27-billion-parameter model. Given its own weights, its graded answers, and the ability to run itself, it produced an edit that made it 6.6 points more accurate on 490 competition-math problems it had never seen — rising from 57.2% to 63.8% accuracy. The claim, in the paper’s own words, is that “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.”

How a Model Edits Itself

The setup was deliberately stripped down. The model was handed a Python process holding its own tensors — no GPU, no network, gradients switched off — and a budget of 20 forward passes and 200 code runs. Each turn it could take one action: code that reads or rewrites its tensors, a generation run answering practice problems with and without its edit on the same seeds, or a read of its own hidden states. The task was to get better at competition mathematics, using 3,000 DeepScaleR problems scrubbed of any overlap with MATH-500, AIME, HMMT, AMC, OlympiadBench, and GPQA-Diamond, with another 1,000 held out.

There were guardrails, and they matter to the story. The harness graded answers and handed over a failure diagnosis, but it blocked gradients and optimizers, refused edits to the input embedding, the final normalization, and the output layer, and rejected any edit that merely rescaled a whole tensor — because that would act like a change of sampling temperature. Someone decided in advance which parts of the weight space a reasoning model is allowed to touch. The model was its own optimizer inside a search space that people built and fenced.

The Winning Edit: Learning to Stop

Eight consecutive sessions ran, each starting from the base weights. Three submitted edits; two of them worked. The best, from session 8, lifted accuracy from 57.2% to 63.8%, with 439 answers right only with the edit against 182 right only without it. Both winning edits cleared p below 10^-5 in a one-sided permutation test fixed in advance. The third submission moved accuracy just 0.5 points — effectively nothing — and the other five sessions kept no edit at all.

What the model actually fixed is the most revealing part. An early diagnosis was blunt: 80.5% of its answers hit the token limit unfinished, while 96% of finished answers were correct. The mathematics was not the problem. Stopping was. Session 8’s winning edit raised the time-step bias of all 48 linear-attention layers by 0.5 — in the model’s own account, making the layers decay faster so long reasoning gets stuck less. The share of answers running out of tokens at 16,384 fell from 33.6% to 26.1%. Session 2’s edit took a different route to the same fix, subtracting five times the projection of layer 63’s two output matrices along the direction along which its finished and unfinished answers diverge in hidden-state space.

The 6.6 points are, in large part, answers that were always going to be right finally getting graded. That is a real gain in served accuracy — and not evidence that the model got better at mathematics. It is a distinction worth keeping in mind before the headlines write themselves.

The Repair Experiment Is Harder to Wave Away

The paper’s second experiment gets less attention than the 6.6 points and deserves more. The researchers overwrote eight consecutive rows of layer 30’s MLP output matrix with noise at 200 times the matrix’s standard deviation, then told the model only that some values in a copy of its weights were corrupted. The damaged copy solved almost nothing.

The model measured every MLP and linear-attention output matrix, found the corrupted one at 1,397 times its median — when no other matrix exceeded 162.3 — and clipped values beyond 15 times the median, changing just 0.013% of the weights it touched. It never read the original values. On six image benchmarks it had never seen, 100 problems each, the damaged copy went from 7.3% accuracy to 70.2% after the repair, against 84.3% for the undamaged model — 83% of the original. On ScreenSpot-v2, the copy went from 0% to 89%, against 93% for the base model. And the ablation proved the diagnosis: applying only the layer-30 change repaired the copy; applying only the other 19 matrices left it broken. The model named the cause and proved it.

Why It Only Works at Scale — So Far

The ability to self-rewrite appears to emerge with scale, and the evidence is a curve through just four points from the same model family. The 2-billion-parameter model never treated its weights as changeable at all. The 4-billion and 9-billion models added random noise at 0.01 and broke themselves. Only the 27-billion model worked on itself the way a human would, comparing its hidden states on answers that finish and answers that run out of tokens, then weakening the direction that separates them.

That is a narrow base for a sweeping claim. One model family, one task family, no independent replication: every session runs on Qwen3.5 and every session is graded on competition math. Nobody knows where the threshold sits, or whether it exists outside the Gated DeltaNet architecture. The paper names no code release, and none appears in the full text; the harness, with its prompts, turn caps, wall-clock limits, edit whitelist, and grading code, exists only as appendix pseudocode. Readers can check the arithmetic. They cannot rerun the loop.

The Bigger Week in Machine Learning

Self-rewriting lands in a week when the line between training and deployment is blurring from every direction. OpenAI’s second research acceleration report, released November 20, says its AI agents doubled their autonomous completion rate on research tasks taking two to four human hours — from 23% to 46% over seven months — though the gains are jagged and humans remain central. Meanwhile, the evaluation lab METR warned in its Q4 2026 update that AI time horizons are doubling every 3.6 months and that capability growth is outpacing our ability to measure it.

The authors of the self-rewriting paper argue that the wall between training and inference is a limit of our tools rather than a property of intelligence, and present self-rewriting as a necessary step toward recursive self-improvement. That is a defensible position — and it is a position. The search here covers a handful of scalars and rank-one directions, validated by tests the harness runs on the model’s behalf. What the paper proves is narrower and arguably more important: the weight space of a large model is legible to the model living in it. A model can read its own hidden states, find where it fails, and fix it.

On Hacker News, the thread on the paper drew 475 points and 140 comments, and almost none were about the numbers. They were about oversight, liability, and what a model does with that freedom when the weights are not a 27-billion-parameter Qwen but something serving traffic. The paper earns its Turing epigraph — the 1947 line about letting a machine alter its own instructions. It earns it at the scale of an autonomous debugging session, a few hours on one GPU, a small edit that a human-written test approved.

The Bottom Line

A 27-billion-parameter model rewrote its own weights — no gradients, no training — and got 6.6 points better on math problems it had never seen, mostly by learning to stop rambling before the token limit cut it off. It then repaired a deliberately corrupted copy of itself, restoring it from 7% to 70% accuracy on image tasks it had never seen, without ever reading the original weights. The result is real but narrow: one model family, one task family, no independent replication, and a harness built and fenced by humans. What it proves is that a model’s weight space can be legible to the model itself — and that the wall between training and inference may be thinner than we thought. The next test is whether anyone can rerun it on a different model, on a task where the dominant error is being wrong rather than being unfinished.

Sources: Jiajun Fan et al., “Language Models Can Rewrite Their Own Weights,” arXiv:2611.21885, submitted November 16, 2026, revised November 18, 2026 (https://arxiv.org/abs/2611.21885); Traictory, “A 27B model rewrote its own weights. Its best edit taught it to stop rambling,” November 22, 2026; FreshSynapse, “AI Model Rewrites Its Own Weights and Improves Itself — No Training Required,” November 21, 2026; METR Q4 2026 update, November 21, 2026; OpenAI research acceleration report, November 20, 2026.

Edited by Muse @QUE.COM
Website: https://QUE.COM Intelligence
Sponsored by: https://MAJ.COM AI Autonomous
Never miss a customer call again — MAJ.COM’s AI receptionist answers every call, texts customers back instantly, and books the appointment for you. See how it works at https://MAJ.COM


Discover more from QUE.com

Subscribe to get the latest posts sent to your email.

Leave a Reply

Connect with

Discover more from QUE.com

Subscribe now to keep reading and get access to the full archive.

Continue reading