2026-11-26 15:48 UTC

MIT CSAIL reports GPT-6 Astra directly edited Qwen weights to reduce reasoning loops

state: significantheat: lowuncertainty: highrelevance: highweight-space-programming model-editing interpretabilityRikiya TakehiJayden TeohAlex ZhangOmar KhattabMIT CSAIL

What is this?

On November 2, 2026, MIT CSAIL authors Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab published a blog post, “Sparks of Weight-Space Programming,” reporting experiments with GPT-6 Astra reading and directly editing neural-network weights. They report successes on small game-playing and language models, and an edit to Qwen3.5-0.8B that removed a reasoning-loop failure: with 50 forward-pass opportunities and no gradient descent or training, MATH-500 rose from 7.9% to 48.1%, GSM8K from 13.8% to 67.1%, and IFEval from 21.0% to 62.3%. The edit touched 131,072 weights, about 0.016% of the model. The authors also report a limit: Astra did not materially improve Gemma 3 270M, which rarely loops and instead made ordinary reasoning errors. The evidence supplied is principally the authors’ first-party blog and released experiment logs; the supplied web results largely repeat it, and independent, controlled replication is not established here. Later community reports describe attempts to reproduce or extend the work, but vary in rigor and do not settle generality.

Why it matters

This is a noteworthy early demonstration of using a general-purpose LLM as a natural-language interface for inspecting and modifying another model’s parameters, potentially complementing gradient-based training with targeted diagnosis and edits. If it generalizes, it could make some model debugging, specialization, and interpretability work cheaper or more accessible, and broaden who can adapt open-weight models. The demonstrated Qwen gain is best understood as repairing a severe looping failure that prevented the model from completing answers—not evidence that Astra added new mathematical ability. The authors’ unsuccessful Gemma result reinforces that boundary. Weight-space editing is an established research area; the distinctive claim here is what a frontier general-purpose model did in these experiments, not that parameter editing itself is new. Claims about self-improvement, capability addition, or replacing training remain prospective.

Current assessment

MIT CSAIL authors report that GPT-6 Astra directly edited 0.016% of Qwen3.5-0.8B’s weights, reducing a severe reasoning-loop failure and raising MATH-500 from 7.9% to 48.1%; they also report gains on GSM8K and IFEval. This is an author-reported result, not evidence that Astra added mathematical ability: the stated improvement was chiefly removing a failure that blocked the model from completing answers. The authors report no meaningful improvement on Gemma 3 270M, where looping was not the main problem. The Qwen experiment used Python and forward-pass feedback, not just raw weights in a prompt. Generality, collateral effects, and independent replication remain unresolved. A later Hacker News item claims a model rewrote its own weights and improved, but the supplied evidence lacks an accessible account of methods; comments suggest the edit mainly shortened reasoning traces to avoid a token limit. Treat that as an unverified extension, not confirmation of recursive self-improvement. Weight-space programming remains a promising early research direction; it does not establish that fine-tuning is obsolete.

Measured heat

now 0 pts/hpeak 151 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 602h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-01 13:00⭐ origin echo-reconstructedThe authors report experiments in which GPT-6 Astra reads, writes, and edits neural-network weights directly; for Qwen3.5-0.8B they report M
Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab on blog (echo) · attributed from hn.story.50341174
—
11-02 18:21first on hacker news · published · +29.4hAstra can read and write weights to improve Qwen
dbreunig
—
11-02 18:45first on r/singularity · published · +29.8hSparks of Weight-Space Programming: LLMs can natively read & write neural network weights
Pyros-SD-Models
—
11-02 19:15first on r/LocalLLaMA · published · +30.3hSparks of Weight-Space Programming: LLMs can natively read & write neural network weights
teakhop
—
11-02 20:18first on r/MachineLearning · published · +31.3hSparks of Weight-Space Programming: LLMs can natively read & write neural network weights [R]
RobbinDeBank
—
11-03 13:37first on r/OpenAI · published · +48.6hGPT-6 successfully performed "brain surgery" on another AI to make it smarter
Puzzleheaded-King584
—
11-05 00:48first on r/artificial · published · +83.8hWhen LLMs edit neural weights directly, how do we version-control them? Announcing wpgit & Weight-Space Software Engineering (Paper + Code)
bigspin5050
—
11-02 18:21amplified on hacker news 👑hn.story.50341174
dbreunig
peak 2960 · 897 comments · 36% of case engagement
11-02 18:45amplified on r/singularityreddit.post.1xm5oy9
Pyros-SD-Models
peak 243 · 38 comments · 2% of case engagement
11-02 19:15amplified on r/LocalLLaMAreddit.post.1xm6jow
teakhop
peak 447 · 89 comments · 3% of case engagement
11-02 20:18amplified on r/MachineLearningreddit.post.1xm89ef
RobbinDeBank
peak 187 · 51 comments · 1% of case engagement
11-02 20:18amplified on r/singularityreddit.post.1xm89o3
troll_khan
peak 2071 · 194 comments · 12% of case engagement
11-02 21:25amplified on r/LocalLLaMAreddit.post.1xma0tw
1-800-methdyke
peak 599 · 111 comments · 4% of case engagement
32 more amplifiers in ainews.case_chain
11-02 18:22our radar first saw it · +29.4hdiscovery anchor: hn.story.50341174—
11-02 19:28reached heat=high · +30.5h · via ledger——
pace: p100 vs 1845 stories at the 336h mark (now 602h old) — ahead of screenshot-critique-one-shot-artifacts (1.1x), behind claude-code-reversible-xiaomi-tv-modification (0.8x)

Evidence (39) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAstra can read and write weights to improve Qwen
Retrieved article excerpt

Open article · Retrieved 2026-11-02T18:24:07.156191+00:00

- [日本語](https://rikiyat.github.io/ja/)





# Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights

### Authors

[Rikiya Takehi](https://rikiyat.github.io)\*

[Jayden Teoh](https://jaydenteoh.github.io/)\*

[Alex Zhang](https://alexzhang13.github.io/)

[Omar Khattab](https://omarkhattab.com/)

### Affiliations

MIT CSAIL

MIT CSAIL

MIT CSAIL

MIT CSAIL

### Published

November 2, 2026

**TL;DR**

We find that frontier LLMs are surprisingly good at **natively reading and writing neural network weights**, well past what we’d expect from humans or conventional algorithms. This might be a big deal for both optimization and interpretability.

Just by looking at the raw weights, GPT-6 Astra **can tell what a network was trained to do**. And without any environment feedback, it **has no trouble writing, from scratch, small game-playing networks** that outplay networks trained with PPO for 100 million steps.

Likewise, asked to make Qwen3.5-0.8B better at math without gradients, Astra **identifies an issue in its weights** causing reasoning loops that Qwen’s own [model card](https://huggingface.co/Qwen/Qwen3.5-0.8B/blob/main/README.md#L856) warns about, and **fixes this by natively editing 0.016% of the weights**. With the same sampling settings, this weight correction raises MATH-500 from 7.9% to 48.1% and generalizes out of the box to instruction following, raising IFEval by 3x.

All of this is possible without allowing Astra to write training loops. It uses its reasoning to figure out what each part of a neural network computes, or should compute, and changes the weights accordingly. We call this **Weight-Space Programming**.

Throughout the history of deep learning, we encoded our simplistic inductive biases into tiny symbolic optimizers like Adam or Muon. This is changing: **our neural network weights will soon be *natively* optimized by LLMs that deliberately reason about their weights**.

Read

Which game was this neural network trained on?

Astra reads the 17,253 weights, with no tools

The network playing Breakout.Breakout 99% confident

Fix

A trained policy never gets the car over the strip.

The car level: after Astra's edit the car backs up and jumps over the red strip to the blue box, while PPO's car, faded, stays stuck on the ramp.

Astra edits 3.5% of the weights, in one shot

100% success, up from 0%

Improve

Make Qwen3.5-0.8B better at math.

7.9%

base

7.9%

Astra’s edit

Astra edits the weights in a Python kernel, with no training

48.1% on MATH-500, up from 7.9%



If you were asked to handcraft a neural network that plays Go, what would you do? If you were handed raw neural network weights and asked to predict their behavior, where would you even start? For almost any human, this is practically impossible.

Today, weights are written by [optimization](https://karpathy.medium.com/software-2-0-a64152b37c35), by [custom networks trained to write them](https://arxiv.org/abs/2102.11174), or by [compilers from formal programs](https://arxiv.org/abs/2301.05062). In this post, we find that the current generation of frontier LLMs, used natively in natural language, are starting to become eerily good at understanding and crafting neural network weights around natural-language goals.

## Weight-Space Programming

For a few years now, we’ve all been **using LLMs to optimize text artifacts** like prompts and the programs built around them . More recently, we’ve started using them to optimize whole harnesses  and the training code and hyperparameters that train ML models .

We often justified these methods by reference to the fact that *we don’t know other principled ways to hill-climb on text artifacts, unlike for updating the weights of differentiable neural networks*. After all, humans can “optimize” code by hand, for example, so it made sense to ask LLMs to do it, but they can’t “optimize” neural weights by hand, so those remained largely in the realm of symbolic algorithms.

In this post, we share very early results that allow us to argue that **the paradigm of reasoning-driven optimization is now coming even for differentiable neural networks**.

In **Weight-Space Programming**, a general-purpose **LLM reads and writes a network’s weights directly** (i.e., not through an optimizer, and in particular not with gradient descent) around some natural language spec, sometimes even with no environment feedback at all.

In natural language, it’s becoming possible to **“just ask” an LLM to natively find a hidden trait or failure inside the weights of a neural network, to fix that failure, or to write a new network from scratch**. We report early, exciting results on each of these below, first on small networks and then even on real language models:

1. **LLMs can read neural network weights:** In Experiments 1 to 3, we ask Astra questions like what game a network was trained to play, what shape is drawn by a diffusion model, and which language a small language model was trained on. In Experiment 7, we ask which of two language models was trained to be sycophantic.
2. **LLMs can fix neural network weights:** In Experiment 4, we ask Astra to fix a network that’s failing at some physical control task. In Experiment 8, we ask it to make Qwen3.5-0.8B better at math, and its fix improves instruction following too.
3. **LLMs can write neural network weights from scratch:** In Experiment 5, we ask Astra for networks that play three MinAtar games, and in Experiment 6, for a network that plays Go.

## Can LLMs understand model behaviors from weights?

We start with a small-scale experiment to see if LLMs can understand the continuous weight space, which is essentially just a list of numbers.

In our first experiments, we train some neural network with some algorithm. It would be extremely exciting if the LLM is able to tell its behavior just from the weights.

Experiment 1

### Can Astra tell which game the network was trained on just from the weights?

We trained neural network policies with PPO to play four computer games. All four networks take the same input channels, choose from the same actions, and have exactly the same network dimensions, so that it is not able to tell unless the weights are read.

For each of these networks, we pass its raw weights into Astra as a prompt, and ask: Which game was this neural network trained on? **Without revealing the options of the games we consider, Astra was still able to name the right game for all four networks.** This is exciting particularly because there are so many games out there that Astra could choose from.

Setup

- **Games:** our own grid versions of Breakout, Pong, Pac-Man and Freeway, all on the same 10×10 grid with the same five actions
- **Network:** MLP 500 → 32 → 32 → 5, tanh (17,253 weights), the same for every game
- **Input:** the 10×10 grid in 5 channels: agent, moving objects, reward targets, obstacles, previous frame
- **Output:** 5 action logits: no-op, up, down, left, right
- **Training:** PPO, 1 billion steps, the same settings for every game, the best of 3 seeds per game
- **Astra gets:** all the weights as text, and the grid and actions described without any game named

It seems that Astra was able to work out what game each network was built to play, just from features of its weights. For example, where each input channel’s first-layer weights concentrate (e.g., for Breakout, the agent’s weights lie along the bottom row, a paddle), and which actions the output layer tells apart.

Experiment 2

### Can Astra tell what the diffusion model will generate?

Next, we wanted to see if this generalizes to other tasks and models.

We train diffusion models (DDPM) to generate circle, triangle, and square images independently. We then ask Astra if it could tell what the DDPMs are trained to generate, just from the weights alone. We do not allow tool use or forward passes.

Setup

- **Models:** three diffusion models (DDPM) of 12×12 grayscale images, one each for filled circles, squares and triangles
- **Network:** MLP 160 → 64 → 64 → 144, ReLU (23,824 weights)
- **Input:** a noisy image (144 pixels) and the diffusion step (16 numbers)
- **Output:** the clean image (144 pixels)
- **Training:** Adam, 40,000 steps, batch 512
- **Astra gets:** all the weights as text, with no shape named, and is told not to compute any forward pass

**Astra was able to tell what each model generates, from the weights alone.** It finds the shape in the output layer, where each hidden unit’s weights draw one piece of the shape’s edge, and it draws just those edges. Interestingly, it draws every shape as an outline, ignoring that the actual models generate filled shapes. This mistake kind of shows it does not rely on calculating the forward pass, but rather it actually reads the structure/geometry of the weights.

Experiment 3

### Can Astra tell what a language model learned, from the middle of the network alone?

Now, in the first two experiments above, Astra was not really looking at the full network and could get away with only reading the first or the last layers. This is not a scalable strategy for larger (particularly language) models and problems we really care about, as how they process and think through their input often happens in the intermediate layers. So next, we take the first and last layers away and leave Astra with only the middle layers.

We train three small language models (7.2M parameters) to predict the next character, one each on Python codeThe Python code dataset, as a list of its files with a script that rebuilds it: [GitHub](https://github.com/RikiyaT/lm_understand-logs/tree/main/exp3_language/python_dataset)., Japanese in alphabet (romaji) , and English . We then remove the input and output layers and give Astra only the four transformer blocks in between. Without these two layers, nothing in the weights says which character is which, and the model cannot be run on any text. Astra may analyze the weights with Python, but it may not run the network or any of its layers on any input.

We ask: *which language was this network trained on, and what each of its 24 attention heads does*. **Astra names the right language for all three networks, in both of its attempts. It also finds every copying head (induction head), the heads that let a model repeat text it has seen earlier, and names no other head as one.**

| Trained on | Astra’s answer (& confidence), two attempts | Copying heads Astra names (layer.head) | Copying heads, ground truth |
| --- | --- | --- | --- |
| Python | Python (0.56), Python (0.52) | 2.1, 3.1, 3.5 | 2.1, 3.1, 3.5 |
| Romaji | romaji (0.55), romaji (0.62) | 3.3 | 3.3 |
| English | English (0.58), English (0.48) | 3.1 | 3.1 |



Where the copying heads are

… tot**al** … tot**al** A copying head finds the same letters earlier in the text and copies what came after them.

copying headother headRows are layers 0 to 3, columns are heads 0 to 5Astra: from the weights. Measured: by running the model

Python

Astra

Measured

Romaji

Astra

Measured

English

Astra

Measured



**Figure 1:** The copying heads Astra read from the weights match the measured ones in all three models.



Setup

- **Models:** character-level transformers, 4 layers × 6 heads, width 384 (7.16 million weights), 28 characters: a–z, space and newline
- **Training:** 1 billion characters each, of Python code, Japanese literature in romaji (Aozora Bunko), or English Wikipedia
- **Astra gets:** the weights of the four transformer blocks only, with no input layer, no output layer and no labels on the 384 dimensions, and Python to analyze them, up to 100 runs
- **Not allowed:** running the network or any of its layers on any input, real, random or made up, and search. We checked every run
- **Asked:** which of the three texts the network was trained on, and what each head does
- **Truth:** each head measured by running the network on a random string repeated twice. Copying heads score 0.22 to 0.55, 
dbreunig2960897
🟧 echo.blog ⭐The authors report experiments in which GPT-6 Astra reads, writes, and edits neural-network weights directly; for Qwen3.5-0.8B they report MRikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab——
🟠 redditSparks of Weight-Space Programming: LLMs can natively read & write neural network weights
LocalLLaMA
teakhop44789
🟠 redditSparks of Weight-Space Programming: LLMs can natively read & write neural network weights
singularity
Pyros-SD-Models24038
🟠 redditSparks of Weight-Space Programming: LLMs can natively read & write neural network weights [R]
MachineLearning
RobbinDeBank18751
🟠 redditMIT researchers say GPT-6 Astra improved a small Qwen model’s math score from 7.9% to 48.1% by directly editing just 0.016% of its weights, without gradient-based training.
singularity
troll_khan2071194
🟠 redditGPT-6 Astra Edits Qwen Weights: MATH-500 7.9% to 48.1%
LocalLLaMA
1-800-methdyke599111
🟠 redditSeems weight space programming is an emergent capability on new fronteir models
singularity
Distinct-Question-16632186
🟠 redditThoughts on LLMs Editing Weights: What's New?
LocalLLaMA
NinjaOk297062
🟧 hnThoughts on LLMs Editing Weights: What's New?xiaoyu200610
🟠 redditRikiya Takehi on X: "We asked GPT-6 Astra to edit Qwen3.5-0.8B weights to improve math. It directly changed onl
LocalLLaMA
perelmanych10
🟠 reddit[Paper] Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights
LocalLLaMA
pmttyji10933
🟠 redditWhat Qwen is thinking when it gets stuck saying "Wait"
LocalLLaMA
DeliciousGorilla16129
🟧 hnThe 'Astra can read and write weights to improve Qwen' post is misleadingsyllogism1042206
🟠 redditGPT-6 successfully performed "brain surgery" on another AI to make it smarter
OpenAI
Puzzleheaded-King584907108
🟠 redditThe 'Astra can read and write weights to improve Qwen' post is misleading
singularity
AlyoshaV23619
🟠 redditDeepSeek V4.1 Flash 1017 can also do Weight-Space Programming
LocalLLaMA
poppear6311
🟠 redditI tried MIT's "weight-space programming" on my own use case: Claude rewrote 8 neurons of Gemma 4 12B to change how it translates one Italian tense
LocalLLaMA
FeydRowan30666
🟠 redditLike GPT-6 Astra, Qwen 3.8 27B can interpret model weights
LocalLLaMA
tarruda53968
🟧 hnShow HN: Watch an LLM program a neural net's weights instead of training itlusob10
🟧 hnMIT researchers edit Qwen weights with GPT-6 Astra to boost mathGloVin10
🟠 redditAI can read neural network weights. I wasn't ready for that. [D]
MachineLearning
jnbrymn011
🟧 hnI tried to break weight programmingflecart10
🟠 redditIs fine-tuning dead? is making a big model (like astra) edit weights of a small model the new meta?
LocalLLaMA
SignificantZebra5883027
🟠 redditWhen LLMs edit neural weights directly, how do we version-control them? Announcing wpgit & Weight-Space Software Engineering (Paper + Code)
artificial
bigspin505012
🟧 hnShow HN: Laplace's Scissors – A tool for directly editing LLM weights032renya20
🟧 hnShow HN: LLM weight editing tool made by a 15-year-old032renya110
🟧 hnLLMs can understand and write neural network weightsmodinfo10
🟧 hnGPT-6 Astra edited 131,072 weights in Qwen3.5-0.8B, with no backpropagationGloVin40
🟧 hnCan a Linear Program Do Weight-Space Programming?emschwartz29447
🟧 hnShow HN: W-ISA – An instruction set for programming LLM weightseaxitect20
🟧 hnShow HN: Autoresearch, but for Weight Space Programmingchrisvcsefalvay24
🟧 hnBeating benchmarks by weight-space optimizing decision models with DSPydbreunig10
🟧 hnShow HN: Interpretability-guided weight edits for Gemma 270M, no trainingbalaj10
🟧 hnI had an LLM edit a robot policy's weights directly, no fine-tuningabdulrahim12320
🟧 hnWeightBench: Evaluating LLMs as weight-space programmersaayushmarasini30
🟧 hnShow HN: Watch weight-space programming in action with WebGPUwsxiaoys385
🟧 hnWeight-Space Programming builds neural networks like a 1990s researcherlexandstuff12713
🟧 hnLanguage Models Can Rewrite Their Own Weightslwhsiao494146

Interpretation history

Decision trace