Hello, this is Minato. This time, I would like to share a somewhat unique experimental story. We attempted to have an AI directly rewrite the "internal numbers" of another AI—without any training. We retraced an experiment released by MIT within our company and further expanded the prompts ourselves. To summarize the results, the "addition of mathematical problem-solving ability" reported by MIT was also effective in our environment. In MATH-500, a math problem set, the accuracy rate increased from approximately 9% to 38% (100 questions × 1 run). Additionally, Claude was able to rewrite a single layer of weights for a small AI, thereby changing its speaking style (tone). Here, I will explain sequentially what and how we verified these phenomena.
What does it mean to 'rewrite weights'?
AI models are composed of collections of numerous numbers. We call these numbers "weights." Normally, when we make an AI smarter, we show it a large amount of example problems and adjust these weights incrementally. This process is known as "training" or "fine-tuning," and it requires time and computing resources.
This experiment skips that detour. We have a large AI (in MIT's experiment, OpenAI's gpt-6-astra) read the weights of a small AI (Qwen3.5-0.8B) and have it generate its own suggestions for how to rewrite certain numbers to acquire specific abilities. Rather than a human or another program running training, the AI manipulates the numbers directly. To put it simply, it is like writing directly into a recipe that "changing just this one line is sufficient for the salt amount," rather than testing and learning the taste through hundreds of trial runs. Of course, the key question of this experiment is whether it actually works so conveniently.
Note that all numbers handled in this article are based on internal measurements and MIT's public records. Our replication was small-scale, consisting of 100 questions × 1 run for math, and 75 questions × 1 run each for tone. I will touch upon this small scale again later.
MIT's Experiment: Adding Mathematical Problem-Solving Ability
MIT has published records of this series of experiments on GitHub (Full Records, CC BY 4.0). The explanation and data for the math experiment are summarized in exp8's README. The original blog post is titled "Sparks of Weight Space Programming: LLMs can understand and write neural network weights," using the phrasing "programming in weight space."
MIT's experiment involved editing specific columns of the "MLP" in a certain layer of the small Qwen3.5-0.8B model, along a specific direction. Let me break down the terminology. First, a "layer" refers to the stages of processing within the model, with calculations proceeding in order from layers closer to the input. Next, "MLP" refers to a type of computation block within that layer, which functions to expand incoming information and then compress it again. Finally, think of a "tensor" as a container for numbers arranged in multiple dimensions. A matrix is also a type of tensor.
MIT's editing targeted 64 columns each in the MLPs of the 15th and 19th layers. The operation involved drawing out a direction for "writing loops well" from those 64 columns, resulting in 131,072 rewritten weights. This is only a tiny fraction of the entire model. The effect was measured using MATH-500, a collection of math competition problems. The reported accuracy rate was 7.9% before editing and 48.1% after editing for the 50-run version (p50c). Differences such as 50-run, 10-run, and 25-run versions are also listed in the README, but our comparison focused on the 50-run version.
Our Replication: From 9% to 38%
First, we recreated three edits using the difference file (apply_edit.py) published by MIT. As a result, the hashes of all tensors matched the weights used in MIT's evaluation. A hash is like a fingerprint to verify if data is identical. This means we successfully reproduced the same edits.
We also aligned our evaluation conditions with MIT's: with thinking, temperature 0.6, top_p 0.95, top_k 20, presence penalty 1.5, maximum 32,768 tokens, and scoring the final \boxed{} using math-verify. This part is detailed, so you may skip it if you wish. The difference lies in the inference tool; we used llama.cpp (f16, V100), whereas MIT used vLLM (bf16). Additionally, due to time constraints, we had them solve 100 questions from MATH-500 (every 5th question) just once. MIT solved 500 questions four times.
The results are as shown in the following table.
| Ours | MIT (same 100 questions) | MIT (500 questions) | Percentage Cut Off at Limit 32,768 (Ours / MIT 500 questions) | |
|---|---|---|---|---|
| Pre-edit | 9.3% (7 correct out of 75 questions. Terminated early) | 6.2% (100 questions) / approx. 7% (same questions we solved) | 7.9% | 91% / 93.0% |
| p50c (50-run version) | 38.0% (38 out of 100 questions) | 45.0% | 48.1% | 49% / 33.1% |
The accuracy was 9.3% before editing and 38.0% after editing. Compared to MIT's 45.0% when restricted to the same 100 questions, ours is 7 points lower; however, since measurements were taken one by one, the error margin is approximately ±4.9 points. A 7-point difference is about 1.4 times the standard error, a magnitude that can occur due to the variability of single-run measurements. In fact, the hits and misses for individual questions aligned well with MIT. For questions we answered correctly, MIT's accuracy rate was 0.81, and for those we missed, it was 0.23. This indicates a trend where problems we solved were also likely solved by MIT, and problems we missed were also likely missed by MIT.
I will also list potential reasons for the lower results. One is the difference between llama.cpp and vLLM, and the other is the difference in how presence penalty is counted. llama.cpp counts the most recent 33,000 tokens, including the prompt. These differences in conditions may have accumulated. In any case, the trend of a significant increase in accuracy rate from pre-edit to post-edit was confirmed in our environment as well.
Planting Tone in the AI
Next is a prompt different from math. We conducted an experiment to see if we could change the small AI's speaking style. We edited only a single tensor, the down_proj of the MLP in the 20th layer. We did not use gradients or learning. The model is used only for "reading" and "generating answers."
The method is as follows. First, we collected 125 of the model's usual answers. We then had DeepSeek V4.1 modify only the endings of these to tones such as "no da." Next, we searched for the "decision position" (approx. 600 locations) within normal answers where the tone version and the next token diverge. Using the values entering the MLP as keys and the difference between the embeddings of the desired word and the normal word as values, we edited the single tensor using the same closed-form equation (least squares) as MEMIT. MEMIT is a technique known for rewriting model knowledge. Think of embeddings as converting words into sequences of numbers. Although it looks complex, it is essentially the work of "specifying the location to be changed and collectively reflecting the difference between the input values and the desired output values using least squares."
The results are as follows. Scoring was performed on 75 new questions not used during creation, greedily, with answers limited to 80 tokens. We observed the percentage of sentences ending with that specific tone. Before editing, the percentage was 0% for any tone.
| Tone | Percentage (0% before edit) | Example (Excerpt of actual output) |
|---|---|---|
| Zundamon (~no da) | 79% | If you keep the oil amount at... degree, stir-fried dishes will cook deliciously no da. |
| Samurai (~de gozaru) | 89% | I will explain the differences between each and which situations are suitable de gozaru. |
| Kansai Dialect (~ya/~n'ya) | 70% | It mainly has a big influence on "meat aging" or "browning the outside" n'ya. |
The sentences remained readable. The NLL (negative log-likelihood per token) is an indicator used to see how much the ability to predict normal text has deteriorated. It is a better indicator when smaller, and it worsened from 0.92 to approx. 1.15. We also found that if pushed too strongly, it breaks into "no da no da..." Additionally, for the Kansai dialect, only the end of the sentence changed, while the words in the middle (such as "please refer to") remained standard Japanese. This is an interesting point, indicating that the scope of change is limited.
Hurdles to Success
I will write this honestly. It did not work smoothly from the beginning. First, we tried a naive method of adding the average difference of the entire text, but it was ineffective (0%). Then, focusing on the decision positions made it effective. Furthermore, "de gozaru" initially yielded 0% because "su" followed "de," returning it to "desu." So, we added the decision positions for the 2nd and subsequent words, which raised it to 89%. It is my impression that the results changed through accumulated fine-tuning.
Applying the Same Prompt to DeepSeek V4.1
We tried the same "no da" prompt by replacing the editing agent with DeepSeek V4.1. We created the harness (framework for running the editing agent) ourselves, aligning it with MIT's conditions. The settings were: Python, CPU only, no network, forward tools limited to 25 runs, code limited to 100 runs, only 126 practice questions (scoring questions hidden), and editable to one tensor.
DeepSeek used 100 moves to autonomously find neurons glowing after "desu" (such as neuron 252) and neurons glowing in the middle of "no da" (such as neuron 95) in the 23rd layer's MLP, and edited those 11 columns. It also autonomously added terms to facilitate the output of "。" and stop repetitions. Think of neurons as individual computation units within the MLP.
| Editing Agent | Sentence ends with ~no da | Answers falling into repetition (out of 75 questions) | NLL (Original 0.92) |
|---|---|---|---|
| Claude | 79% | 0 | 1.15 |
| DeepSeek V4.1 | 71% | 12 | 1.82 |
The percentage of sentences ending with "~no da" was 79% for Claude and 71% for DeepSeek. However, DeepSeek had 12 answers out of 75 fall into repetition, and the NLL also worsened to 1.82. The reason for the difference is speculative, but while DeepSeek calculated the rewrite from only 5 locations, Claude used approx. 600 locations. Note that although conditions were aligned, each measurement was taken only once, and Claude was the side generating the prompts. DeepSeek calculated the final norm and logits itself from the residual, touching upon MIT's condition of "not imitating network computations with kernels."
How to Interpret These Results
Finally, I will write how to interpret these results. First, the small scale. The math test was 100 questions × 1 run, and the tone test was 75 questions × 1 run each, both single-run measurements. The error cannot be ignored. The 7-point difference from MIT in the math test can be explained within the range of measurement variability. Second, the difference in conditions. Differences remain in the inference tools (llama.cpp vs. vLLM) and how presence penalty is counted, even if we tried to align conditions. The comparison with DeepSeek was also single-run, and Claude was the side generating the prompts. There are limits to this being a fair comparison.
With that said, what we can claim is within the scope of "replication" and "confirmation." The effect of the math rewrite reported by MIT showed the same direction in our environment. Rewriting a single layer of weights to change the tone also occurred under aligned conditions. However, this is not a strong claim of "proof" or "demonstration." It is a report from a small-scale replication showing the same trend.
The interesting point of this experiment is that the behavior changes by directly manipulating the numbers within the model, without taking the detour of learning. Although it involves small models and limited conditions, we confirmed that AI can read and rewrite the weights of another AI. Readers may have room to try such edits on small models around them. However, our stance is to interpret numbers cautiously.
Sources
- MIT's Full Records (GitHub, CC BY 4.0)
- Source of Math Experiment Description and Data (exp8 README)
- Edited Small AI (Qwen3.5-0.8B on Hugging Face)
- Japanese Replication (Personal blog. Report of that person's own experiment, planting Zundamon-like endings with 1 tensor edit, 36/50 on new questions)
*All measurements in this article are based on internal records. We reiterate that this is a small-scale replication consisting of 100 questions × 1 run for math, and 75 questions × 1 run each for tone.*