# Qwen3.5 edited its own weights to finish more answers

**Summary:** Qwen3.5-27B edited its own weights without retraining. It finished more answers and gained 6.6 percentage points on held-out math problems. Each trial began from the original model.

- Canonical: https://markhuang.ai/news/qwen35-self-rewriting-weights
- Language: en
- Author: [Mark Huang](https://markhuang.ai/about)
- Published: 2026-11-20
- Section: News
- Tags: Qwen3.5, Weight Editing, Open-Weight Models, AI Research
- Source: [arXiv](https://arxiv.org/abs/2611.21885)
- License: https://creativecommons.org/licenses/by-nc/4.0/

---

![A brass arm inside an open metal instrument reaches over to turn the instrument's own blue dial](https://cdn.markhuang.ai/news/qwen35-self-rewriting-weights/hero.webp)

*Conceptual illustration generated with imagegen. The arm turns a dial inside the same instrument, as Qwen adjusted settings inside its own model.*

On a problem about counting in base four, Qwen3.5-27B repeated "I will write the response" 549 times. It used up its entire output allowance and gave no final answer. After editing its own weights, the model answered the same question correctly with 110. The two runs appear side by side on the [researchers' project page](https://www.jiajunfan.com/projects/self-rewriting/#surpasses).

In a November 2026 preprint, Jiajun Fan and colleagues report that Qwen changed the numerical settings, or weights, that govern how it processes inputs. The edit raised its score from 57.2% to 63.8% on 490 math problems kept out of its editing sessions. The researchers tested both versions under the same output limit. Fewer of the edited model's responses ran out of room before reaching a final answer. [Read the arXiv preprint](https://arxiv.org/abs/2611.21885)

The edit stays in the weights, so the researchers could run the patched model with the usual answering setup. Finding the patch still took a dedicated session and repeated test runs. For someone who runs an open-weight model, that's the appeal of this approach to a recurring failure. Once the fix has passed its tests, the edited model carries it into the next request. [Study introduction](https://arxiv.org/html/2611.21885v2#S1)

## Qwen had a way to test its edits

The researchers gave Qwen a Python workspace, access to its weights and graded answers to practice problems. It could write code to change the weights and run both versions on the same questions. The setup blocked gradients, the calculations typically used to derive weight updates during training. In these sessions, Qwen wrote the changes itself and used the scores to see whether they helped. [Experimental setup](https://arxiv.org/html/2611.21885v2#S2)

In the series that produced the largest gain, the researchers' software also ran a check on reserved practice problems before Qwen decided whether to submit its edit. Five of the eight sessions ended in withdrawal. The strongest edit came in session eight. Qwen adjusted one setting across 48 layers, and the share of responses that hit the output limit fell from 33.6% to 26.1% on the final math test. [Session results](https://arxiv.org/html/2611.21885v2#A5.SS9)

Earlier work used GPT-6 Astra to patch a much smaller Qwen model with a similar tendency to loop. Fan's team put the model being tested in charge of the edit. In both studies, the scores show how much a model can gain by getting more of its answers out. [Astra study](https://rikiyat.github.io/blog/weight-space-programming/) · [Earlier coverage of the Astra experiment](https://markhuang.ai/news/astra-qwen-weight-space-loop-repair)

A reader on Hacker News pointed to the drop in unfinished answers as the explanation for the gain. In a follow-up, I'd look at the questions where the original model finished and got the answer wrong. Those cases would help show whether a weight edit can fix a reasoning mistake as well as a stalled response. [Hacker News discussion](https://news.ycombinator.com/item?id=50578348)

## Eight sessions started from the original weights

The paper's accuracy line rises whenever a new submission replaces the version in use. It stays flat when a session withdraws. Each session starts with the same unedited model, so the final score comes from one fresh patch. The authors list running another editing session on an already patched model as future work. [Eight-session results](https://arxiv.org/html/2611.21885v2#S1.F1) · [Future experiments](https://arxiv.org/html/2611.21885v2#A1.SS0.SSS0.Px3)

## A repair found with text carried over to images

In a separate experiment, the team overwrote eight rows of weights with noise in a copy of Qwen3.5-27B. An intact instance of Qwen examined the damaged copy, found the corrupted block and capped unusually large values. It worked with text math problems, and the researchers report that it never read the original weights during the repair. When the researchers tested just the change to the block Qwen had identified, it recovered even more math accuracy than Qwen's full patch. [Repair setup](https://arxiv.org/html/2611.21885v2#S3.SS1) · [Partial repair results](https://arxiv.org/html/2611.21885v2#S3.SS5)

The damaged copy averaged 7.3% across six image tests. After the repair it scored 70.2%, compared with 84.3% for the intact model. On ScreenSpot-v2, which asks the model to locate interface elements in screenshots, the damaged version missed all 100 targets. The repaired copy found 89. A fix Qwen found while working on math restored much of its ability to do a job it hadn't practiced during the repair. [Image benchmark results](https://arxiv.org/html/2611.21885v2#A5.T12)
