







An LLM edited 0.016% of another LLM's weights and fixed its infinite loops. Watch it in your browser.
Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights
We find that frontier LLMs are surprisingly good at natively reading and writing neural network weights, using a variety of recent tools and algorithms or even via direct weight editing.

Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights
We find that frontier LLMs are surprisingly good at natively reading and writing neural network weights, using a variety of recent tools and algorithms or even via direct weight editing.

Alex Krentsel on Twitter / X
i've reproduced the results from the MIT blog post today on weight-space programming. but one additional result i have to add: this is a new, step-change emerging capability that's appeared in just the latest set of models. pic.twitter.com/EhMsQaaOkL— Alex Krentsel (@AlexKrentsel) November 2, 2026
Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights
We find that frontier LLMs are surprisingly good at natively reading and writing neural network weights much like code, sometimes with tools such as a Python kernel and sometimes from the raw weights alone.

Qwen 3.8 27B on my laptop can interpret model weights, too
Yesterday’s hot paper was Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights by Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab. The paper found …
Weight-Space-Programmed Qwen3.5-0.8B - a Hugging Face Space by ML-Intern-lab
This app lets you type a math problem and (optionally) set a token limit. It then runs both the original Qwen3.5‑0.8B model and its weight‑edited version, showing the two generated answers side‑by‑...
Weight Space Misfolding
Weight space editing changes a neural network’s knowledge, behaviour and alignment through direct modification of its weights. Model-mediated weight space manipulation, also known as weight space...

Your LLM Doesn't Write Correct Code. It Writes Plausible Code.
One of the simplest tests you can run on a database:

MatinKhajavi/Weight-Space-Programming
Replication of 'Sparks of Weight-Space Programming' (Takehi et al., 2026)
Rikiya Takehi on Twitter / X
We asked GPT-6 Astra to edit Qwen3.5-0.8B weights to improve math.It directly changed only 0.016% of weights, fixing 0.8B's reasoning loops & improving math up to 6x and even instruction following 3x, without gradients or training.We call this Weight-Space Programming:… pic.twitter.com/DwTwzXzSbE— Rikiya Takehi (@rikiyatakehi) November 2, 2026
Solving a Million-Step LLM Task with Zero Errors
LLMs have achieved remarkable breakthroughs in reasoning, insights, and tool use, but chaining these abilities into extended processes at the scale of those routinely executed by humans,...

Sliding-window beats linear attention
Due to the nature of quadratic attention, Large Language Models (LLMs) consume a lot of memory and energy. Every new token costs more than the previous one. For each additional token, the keys and values must be stored in memory indefinitely, which is unsustainable.
Who Needs an LLM to Program an LLM?
A rank-one weight edit built from a model’s own matched pairs and a linear program, with no language model anywhere in the loop.

A Language Model Architecture Whose Initial Weights an LLM Can Write as Code
An LLM writes 97% of a language model's stored weights as code. 11% lower perplexity at the same size, and continual knowledge updates without training.

Piano to flute, one weight edit
I tried weight-space programming on Google’s Magenta RealTime 2. The same piano request produced flute after changing one matrix, without backpropagation.