Signal

Issue #24 · 2026-W49


This week in Signal

A 27B Language Model Edits Its Own Weights and Improves

Jiajun Fan, Neil He, Changyi Yang, Andy Mao, Xi Zhu, Chaoran Cheng, Kaiqu Liang, Shuaike Shen, Zetian Li, Ruihan Guo, Ge Liu

An open 27B language model can now raise its own accuracy by 6.6 points by editing its own weights, with no training run.

Why now: 494 points on Hacker News, from a top lab.

Figure 1
Figure 1

The Problem

Once a language model ships, its weights are frozen [Abstract]. Weights are the billions of numbers that determine its behavior. Improving the model again takes people who know pre- and post-training, large clusters, and a training pipeline [§1].

The cheaper alternatives don't persist. A prompt is gone once the task changes [§1]. Extra computation at answer time is paid on every answer [§1].

There was one earlier hint of another route. A frontier model was shown to edit the weights of a much smaller model by reasoning about them, and that work named self-editing as future work [§1]. The open question was whether a model could do this to itself: diagnose its own failure and change the numbers behind it, with no gradients and no training [§1]. The payoff would be lasting. The edited model is deployed as it is, so an edit is paid for once, not on every answer [§1].

What They Did

The setup gives a model three tools [Figure 3]:

- **Code.** The model can load its own weight matrices as plain numbers in Python and write new values, with up to 200 code runs per session [Figure 3]. - **Paired tests.** The base and edited versions answer the same practice problems with the same random seeds, so any difference traces to the edit [Figure 3]. - **Hidden-state reads.** Think of these as snapshots of the model's intermediate processing at each layer while it reads a text it chooses. The model gets up to 20 such forward passes [Figure 3].

The model starts from its own graded answers on practice problems and takes one action per turn. No gradient flows, no optimizer runs, and no stronger model assists [Figure 3]. One edit shown in the paper's diagram removes a "direction" from a matrix at strength 0.05 [Figure 3]. That is roughly like turning down one specific slider on a mixing board rather than re-recording the track.

In a second protocol, the model checks its candidate edit on reserved practice problems. It then decides itself whether to submit or withdraw [§1]. Each session starts from the base weights. A submitted edit replaces the model in use, and a withdrawal leaves it unchanged [Figure 1].

The same task and tools went to four sizes of the Qwen3.5 family: 2B, 4B, 9B and 27B [Figure 3].

A second experiment tests self-repair. One block of one matrix in a copy of the model is overwritten with noise. The model is told only that some values are corrupted [§1]. It never reads the undamaged weights; the values it writes are its own [§1].

The Results

**Self-improvement.** On 490 held-out problems with eight answers each, the base 27B model scores 57.2% [Figure 1]. Its edits from sessions 2 and 8 raise this to 61.3% and 63.8%. Each is better than the base with p < 10⁻⁵ in a paired test fixed in advance [Figure 1]. The share of answers cut off at the 16,384-token limit fell from 33.6% to 28.8% (session 2) and 26.1% (session 8) [Figure 1].

The paper's showcase example is a broken loop. The base model repeats "I will write the response." 549 times and never answers. After the edit, it answers correctly in 5,341 tokens [Figure 1]. This example was picked as the success case with the shortest edited answer, so it is illustrative, not typical.

**Self-repair.** The 27B model raised a damaged copy from 0.0% to 33.0% on 200 held-out problems, against 58.5% for the undamaged model [Figure 2]. The repair was found using text math problems alone, yet it lifted six unseen image benchmarks from 7.3% to 70.2%, versus 84.3% for the base model [Figure 2]. On ScreenSpot-v2, it went from 0% to 89%, against 93% for the base [§1].

**Scale.** The 2B model made no edit. Instead it stated it was "a text model without actual neural network weights" [Figure 2]. The 4B and 9B models perturbed themselves at random and broke themselves [Figure 2]. In the 4B model's own tests, every edited version solved none of the problems [Figure 4].

Limitations.

- **One model family.** Only its largest member succeeded [Figure 4]. Builders cannot assume the ability exists in other architectures. Decision-makers would need replication beyond Qwen3.5 before planning around it. - **Inconsistent gains.** Five of eight sessions withdrew, leaving the model unchanged [Figure 1]. Of the three that submitted, two (sessions 2 and 8) were significantly better, and session 1 gave a marginal +0.5 [Figure 1]. - **Narrow evidence of what the edit fixes.** The headline example fixes a runaway repetition loop [Figure 1]. Whether self-edits fix other kinds of errors is less demonstrated. - **Partial, artificial repair.** Repair recovered roughly half of text accuracy (33.0% vs. 58.5%) [Figure 2]. The damage was a single noise-filled block, accompanied by a hint that corruption existed [§1].

Why It Matters

**For builders,** this is a different cost profile from fine-tuning. The sessions behind the largest gains each ran in a few hours on a single GPU, using only forward passes as in serving [§1]. Under the submit-or-withdraw protocol, the model in use only rose across eight sessions [Figure 1]. This suggests the check on reserved practice problems is a useful safeguard, though the paper does not isolate its effect. Anyone experimenting with this should consider such a held-out check, given that the smaller models broke themselves [Figure 2].

**For decision-makers,** the relevant change is where improvement costs land. A self-edit adds no computation per answer and needs no pre- or post-training infrastructure [§1]. That contrasts with test-time scaling, which is paid on every query [§1]. But the evidence covers one open model family, mostly math problems, and works only at 27B [Figure 4]. Today this informs what to watch for, not what to deploy.

An Open Model Proves 670 of 672 Putnam Problems for $0.17 Each

Debargha Ganguly, Vikash Singh, Wei Zhang, Joe Stubbs, Sreehari Sankar, Mohsen Hariri, Weicong Chen, Yanyan Zhang, Shouren Wang, Wang Yang, Chaoda Song, Alexander Nemecek, Osama Zafar, Idan Davidovich, Yuting Shao, Kai Ye, Biyao Zhang, Xinpeng Li, Vipin Chaudhary

An open-weight model with no task-specific training now completes machine-checked proofs for 670 of 672 Putnam competition problems, at $0.17 per problem.

The Problem

Lean is a language where a proof is code. Lean's kernel checks it step by step against the stated theorem, much like a compiler that refuses to build unless every logical step type-checks [§1]. Lean can express both mathematical theorems and properties of programs [§1]. Language models can now write these proofs by proposing Lean code and revising it based on the checker's feedback [§1].

The strongest provers have been hard to use. Several rely on closed models and are not offered as services [§1]. Most other systems that prove at least 99% of PutnamBench, a standard collection of Putnam competition problems, report $3.52 to $74 per problem; one, NEAR AI, reports $0.17 [Abstract].

What They Did

EUREKA is a public proving service. A user submits a Lean file with `sorry` placeholders, which work like TODO markers wherever a proof (or a program) is missing, and receives a completed file [§1]. The open-weight DeepSeek-V4.1-Flash model drives the search with no task-specific training, running on a supercomputer at the Texas Advanced Computing Center [Abstract]. Two DeepSeek checkpoints were used across the results, and one IMO 2026 history included a Kimi run.

The agent tests candidate steps before committing them. A shared pool of Lean workers keeps the math library preloaded, so the agent can quickly try a tactic, see whether it closes the goal, and discard it if not [§2, Figure 2]. A lead agent can spawn up to 8 helpers that work from snapshots of its file [§2]. Each agent runs in its own sandbox with no internet access [Figure 3]. If a run fails, a new one starts from the saved file and notes [§2].

Nothing is returned unchecked. An independent verifier called Comparator rebuilds the original statements in a fresh project and confirms they are unchanged. This catches the failure where a model "proves" a quietly weakened theorem. Comparator also rejects leftover placeholders and non-standard axioms, then replays the proof in Lean's kernel [§2].

The Results

EUREKA proves 1,896 of 2,012 entries (94.2%) across eight benchmarks [Abstract]. On PutnamBench it proves 670 of 672 problems at $0.17 each, counting failed attempts [Abstract]. That ties the lowest reported cost at this coverage and is 21 to 440 times below other systems at 99% or higher [§1]. Other open-weight systems reach at most 87.5% in their papers [§4.1]. On program verification it proves 850 of 866 tasks, including all 77 AlgoVeri tasks, where it writes both the program and its proof [§1, Abstract]. The median solved entry takes 40 minutes [§4.1].

The caveats are specific:

- **The dollar costs are hypothetical.** The model ran free on research computing, and the authors priced tokens at DeepSeek's off-peak rates [§3]. Competitors' costs follow each source's own accounting [Figure 1]. - **Retries matter.** The first run proves 83.4% of entries, and restarts raise that to 94.2% [§1]. Runs had no wall-clock limit [§3]. - **Some hard problems remain unsolved,** including IMO 2025 Q6 and IMO 2026 Q3 [§4.1]. One closed-model system reports more PutnamBench proofs [§4.1]. - **Graduate stochastic processes are the weak spot,** at 354 of 450 targets [Figure 1]. This benchmark accounts for 96 of the 116 unsolved entries [§4.1]. About three quarters of its targets take as hypotheses properties of objects that Mathlib does not define [§3]. The paper does not establish whether this explains the lower coverage.

Why It Matters

For builders, the harness, Lean tooling and verifier are open source, and recorded runs are released, with access on request [Abstract, §1]. Self-hosting is the realistic path for now, because the hosted service is in research alpha and requires an approved TACC account [§1]. The profiling is useful too: in single-agent recorded runs, model generation takes 86% of run time and Lean checking takes 9% [§1]. Cached context makes up 97% of tokens but only 20% of cost [Abstract].

For decision-makers, the result suggests that open-model proving can be cheap in token terms, though the paper's costs are hypothetical and measured on math benchmarks, not production verification workloads. If your organization can state requirements as Lean specifications, an open model proved 850 of 866 verification tasks without fine-tuning [§1]. You don't have to trust the proof, only that your specification states what you mean [§2]. Coverage also varies by domain: StochBench is the weakest benchmark (354/450) [§3, §4.1].

PyTorch's KL Divergence Breaks Exactly Where Machine Learning Needs It

Zhen Yang, Wei Tang, Chu Chen, Rui Qian, Yixuan Chen, Fan Yang, Kangning Cui

PyTorch's KL divergence functions return wrong values, including impossible negative ones, whenever two distributions are nearly identical, which is the regime distillation, quantization and policy training depend on.

Why now: 97 points on Hacker News.

The Problem

KL divergence scores how different two probability distributions are. It is never negative, and it is zero only when the two distributions are identical [§1]. Machine learning uses it constantly. It is the distillation loss, the constraint in policy optimisation, and a standard measure of how far a quantized model has drifted [§1]. Of 116 PyTorch-based packages the authors inspected, 39 call PyTorch's KL functions [§1].

Since 2019, users have reported negative KL values from PyTorch. The standard advice has been to clamp them at zero [§1]. Clamping hides the symptom, and many wrong estimates are positive, so clamping never touches them [§1].

The root cause is arithmetic. When two distributions differ by a small amount δ, the true KL scales like δ². The textbook formulas, however, add up much larger terms of mixed sign [§1]. Picture weighing a feather by weighing a truck with and without it. Once the true KL falls to about the format's rounding error (≈6×10⁻⁸ in FP32, 5×10⁻⁴ in FP16), the result is noise [§1].

What They Did

The authors tested two interfaces. The first is `torch.distributions.kl_divergence`, where they tested 18 same-family closed forms. The second is `F.kl_div`, the loss behind `nn.KLDivLoss` [§1]. They used 7.5 million parameter pairs and 0.94 million batches, stratified by true KL decade from 10⁻¹⁵ to 1, on CPU and an A100 GPU [§1, §3].

To get trustworthy answers, they used interval arithmetic. This technique computes with ranges guaranteed to contain the true value, narrowed until the correctly rounded result is fixed [§3]. An output counted as a significant error in two cases [§3]:

- It was off by at least 8 ULP. A ULP is the gap between adjacent representable numbers near the true value. - It was qualitatively wrong: negative, NaN, a spurious zero, or a gradient component with the wrong sign.

The comparison baseline was "just use more precision." This ran the unchanged official code one format higher [§3].

The authors separate two error sources. Operator error belongs to `F.kl_div` itself. Input-representation error is already baked into rounded log-probabilities before the function sees them [§2]. No implementation of `F.kl_div` can repair the second kind. Avoiding it requires computing KL directly from logits [§1].

Their repairs rewrite the formulas into non-negative pieces. They add compensated arithmetic, which tracks the rounding leftovers that ordinary arithmetic discards, and they use hand-derived gradients [Abstract].

The Results

For large divergences, PyTorch is fine. Across scalar families in ordinary parameter ranges, only 0.1% of FP32 values are off by 1% or more [§3]. At a true KL near 10⁻⁷, 86% of FP32 values in those same families have at least 1% relative error, and below 10⁻¹⁰ about three in ten are negative [§3]. In one concrete case, two Exponential distributions with rates 1 and 1.0001 have a true KL of 5.0×10⁻⁹, yet PyTorch returns exactly 0 [§2]. At 10⁻¹⁵, 6.8% of gradients point into the opposite half-space, meaning the wrong direction [§3].

More precision does not cure this. It still leaves 7–51% of FP32 values significantly wrong in 22 of 23 configurations [§3]. The repairs remove over 97% of significant errors in the working format. Strict versions produce zero significant errors on 7.2 million scored samples [Abstract]. For the closed-form interface, aggregate significant-error rates on GPU are within 1.5 percentage points of CPU rates [§3].

The errors change outcomes. A student model initialised as an exact copy of its teacher reaches up to 97% top-1 disagreement with the teacher. Between 19% and 59% of GPT-2 circuit edge scores are affected [Abstract].

There are limits. If your pipeline only stores rounded log-probabilities, the fix cannot recover accuracy. Those inputs differ from the logit-based truth by at least 1% on 40–99% of batches, regardless of the operator's precision [§3]. Five generic KL registrations were out of scope, and the multivariate families were tested in FP32 only [§3].

Why It Matters

If you train with a KL loss on near-identical distributions, such as distillation or policy updates, especially in FP16, try two things. Compare your small KL values against the public repaired code, and compute the divergence from logits rather than stored probabilities [§1, Abstract]. Clamping is not a fix [§1].

For decision-makers, the cost shows up in comparisons. KL-based choices about which layers of a quantized LLM matter, and KL-based interpretability scores, can be distorted by arithmetic rather than by the model [Abstract]. Before acting on a small KL difference, ask whether it was computed stably.

AI Agents Build Most of a Production Library, Rarely All of It

Heli Qi, Minghao Liu, Jiarui Liu, Jingzhe Ding, Qingcheng Zeng, Weijia Zhang, Yunze Xiao, Yuchen Wu, Bing Zhao, Jen-Tse Huang, Stephen Huang, Zhijing Jin, Eli Cheung, Mona Diab, Weihao Xuan

The best AI coding agent passed 87.2% of a library's hidden tests, yet only 61.7% of its features fully worked.

The Problem

Coding benchmarks have moved from single functions to repository issue fixes to whole repositories built from a written spec [§1]. Most from-scratch benchmarks that report their size still target programs under ten thousand lines [§1, Table 1].

At production scale, the usual scores break down. An all-or-nothing verdict credits a run only when every test passes. On this benchmark, just 7 of 600 runs did [§1]. Test pass rate gives partial credit, but it lets the features with the most tests dominate the score [§1]. The requirements also no longer fit in one document, and features build on one another. The agent has to decide what to build first [§1].

What They Did

NL2Repo-Pro has 150 tasks drawn from real libraries in Python, Go, Rust, Java and JavaScript. They span 14 project types and have a median of 74,000 lines [Abstract]. Software engineers reviewed every task at each construction stage [§1].

Each task arrives as a set of documents. An overview groups the library's features into dependency layers [§1]. Think of floors in a building: layer 1 holds the foundations, and later layers build on them. Each feature then gets its own spec with requirements, an interface and acceptance criteria. The median task has 51 features in 9 layers [§1]. The agent builds from scratch with no network access, no visible tests, and up to ten hours [Abstract, Figure 2].

Grading uses the original repository's tests. Each test is credited to every feature whose code it calls directly. A feature is accepted only if all of its tests pass [Abstract]. The headline score is the Feature Acceptance Rate (FAR), the share of features accepted [Abstract].

The paper's illustrative example shows why this matters. A run passes 2,093 of 2,404 tests (87%), yet only 32 of 64 features (50%) work fully [Figure 2]. Picture a house inspection: passing most checklist items differs from having most rooms habitable.

The Results

Claude Opus 5.5 led with a FAR of 61.7%. It fully completed 7 of 150 libraries [Abstract]. The other three systems scored 22.5% to 47.1% FAR, and none fully completed any library [Abstract, Figure 1].

FAR separated systems that test pass rate could not. On 32 tasks where Claude Opus 5.5 and GPT-6.1 Sol each passed at least 95% of tests, their pass rates differed by 1.7 points. Their FAR differed by 16.2 points [Abstract]. Every system did best in the earliest dependency layers [§1].

The agents worked on several layers at once, but they still tended to build a feature before the features that depend on it [§1].

Memorization is a real confound. On about a third of repositories from 2020 or earlier, Claude Opus 5.5 reproduced at least 1% of the hidden test names [§1]. On repositories created in 2026, no system did [Abstract]. The ranking held there, but Claude Opus 5.5's lead over GPT-6.1 Sol shrank from 22.2 points on the oldest repositories to 7.3 on the newest [§1].

**Limitations.** Only four systems were evaluated, each paired with one agent harness [Figure 1]. Older libraries show more signs of recall (reproduced test names), so the 44 tasks from 2026 are the cleanest check. The ranking holds there [Abstract].

Why It Matters

For builders: if you evaluate agents on large generation tasks, aggregate test pass rate can hide broken features. Mapping tests to features and requiring all of a feature's tests to pass exposes the gap [Figure 2]. The data and code are public [Abstract].

For decision-makers: even the strongest system delivered a complete library on fewer than 5% of tasks [Abstract]. If your organization plans to hand library-scale work to agents, expect most of the code to work, not all of it. Every system had its highest acceptance in the earliest layers, so later layers may warrant extra scrutiny [§1]. Our own recommendation, not a finding of the paper: budget for human review of each feature.

Quick Takes

Subscribe — free

AI research, translated. Every week.