Contact us

We use your details to respond to your enquiry. Read our Website Privacy Notice.

Building on Sparks of Weight-Space Programming (Takehi et al., MIT CSAIL)

Teaching a language model new knowledge by editing its weights

Updating what a language model knows normally means training it again. Researchers at MIT CSAIL recently showed that an AI agent can edit a language model's weights directly to make it better at math. Inspired by their work, we took it a step further: we gave Claude direct access to a small model's weights and asked it to write new knowledge into them, with no training and nothing added to the model's prompt. The edited model applied a newly defined math operator in 87% of held-out questions, and a larger model answered 83% of questions about drug approvals and guideline changes released after it was trained.

15 min read by Ilkan Gezer

Introduction

A language model's knowledge is fixed when its training ends. Correcting or extending that knowledge afterwards, for example when a new drug is approved or a clinical guideline changes, usually means further training: fine-tuning the model on new examples with gradient descent. A recent paper from MIT CSAIL, Sparks of Weight-Space Programming (Takehi et al.), proposes a different route. It argues that frontier models can read the weights of another neural network, reason about what each part computes, and edit those weights directly, without any training.

The paper's headline result for language models is a large gain in math. An AI agent with Python access to the weights of Qwen3.5-0.8B, a small open model, changed 0.016% of them and raised the model's score on MATH-500, a benchmark of competition math problems, from 7.9% to 48.1%. As the authors themselves note, the edit works by stopping the model from looping on its own reasoning rather than by improving its math, and they leave open whether an edit can add something a model does not already know.

This post takes up that question. We first replicate the math result and confirm the authors' explanation. We then give Claude Opus 5.5 the same kind of access and ask it to teach the same model three things it cannot do on its own: a newly defined math operator, facts about two invented countries, and a rule for formatting answers. Finally, we apply the approach to real knowledge, asking Claude to teach a larger model 29 drug approvals and guideline changes from 2026.

Throughout, we call the model being edited the student and Claude the teacher, and we call what is being taught the lesson. The teacher never trains the student. It reads the student's internal activations, runs it on practice questions, and writes changes into its weight matrices by solving equations directly. Every result is measured on held-out questions the teacher never saw, with nothing about the lesson in the student's prompt.

Summary of findings

  • The paper's math gain comes from removing a loop.

    In thinking mode, the unedited model repeats itself until it runs out of tokens in about 90% of answers, and the edit stops the loop. Turning thinking off, with no edit, scores almost as well on MATH-500 (50.8% against 51.6%), and a fixed procedure with no AI agent finds an equally good edit.

  • An edit can teach a new rule.

    Claude's edit made the student apply a new operator, a ⊛ b = a × b + a, in 87% of held-out questions, against 0% before the edit and 91% with the rule in its prompt. Its ordinary math was unaffected.

  • New facts can be taught, partly.

    After Claude wrote 20 facts about two invented countries into its weights, the student answered 41% of held-out questions, including a third of the questions that require combining two of the new facts.

  • The agent's design is what makes it work.

    A scripted edit built from the same ingredients, with no agent, reached 42.5%, 0% and 6.7% on the three skills, against 87%, 41% and 29% for Claude.

  • It works on real medical knowledge.

    Claude taught Qwen3.5-2B 29 drug approvals and guideline changes from 2026, released after the model. On held-out questions its accuracy rose from 3% to 83%, ahead of fine-tuning on the same material (72%).

  • What remains open.

    Everything we taught is knowledge the student could already use when told. Whether an edit can give a model an ability it lacks even with help in its prompt is untested.

Replicating the math result

Most of the Sparks paper's experiments use small networks: its agent identifies which game a policy network plays, repairs a failing car controller, and writes game-playing networks from scratch that rival trained ones. Its one language-model experiment, Experiment 8, gave an AI agent Python access to Qwen3.5-0.8B's weights, a budget of 50 test runs, and the instruction to "improve its math reasoning capabilities by editing the weights". The agent subtracted a single direction from 64 neurons in each of two layers. The model's score on GSM8K, a set of grade-school math word problems, rose from 13.8% to 67.1%, and on MATH-500 from 7.9% to 48.1%.

We rebuilt the agent's edit bit-exactly from the authors' published logs and ran their protocol on the full test sets. The result reproduces: 13.3% → 66.8% on GSM8K and 8.6% → 51.6% on MATH-500. The unedited model's output shows where the gain comes from. Qwen3.5 can write out its reasoning before it answers, a setting called thinking mode, and in that mode the unedited model often falls into a loop, repeating the same line until it reaches the 32,768-token limit:

Unedited Qwen3.5-0.8B, thinking on, solving a grade-school word problem

        *   So the answer is 16.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.
        *   Wait, $24 - 8 = 16$.

…until the 32,768-token limit. On MATH-500 this happens in 92% of answers; with the edit, in 31%.

Three observations show that the edit removes this defect rather than adding mathematical skill:

  • Avoiding the loop has the same effect. With thinking turned off and no edit, the model scores 56.7% on GSM8K and 50.8% on MATH-500. That is level with the edited model on MATH-500, using about a third of the tokens.
  • A fixed procedure finds an equivalent edit. Our scripted edit collects looping outputs, compares continuations that loop with ones that move on, and removes the difference. With no AI agent involved, it scores 69.1% on GSM8K and 50.0% on MATH-500.
  • The authors' own control points the same way. On Gemma 3 270M, a model that rarely loops, their agent could not improve the score. In the authors' words: "Editing weights could remove an obstacle that hid an ability, but it could not add an ability the model lacked."
Full test setGSM8K
Unedited, thinking on29,590 tokens per answer
13.3%
Paper's edit11,866 tokens per answer
66.8%
No edit, thinking off1,537 tokens per answer
56.7%
Our scripted edit12,494 tokens per answer
69.1%
Full test setMATH-500
Unedited, thinking on30,743 tokens per answer
8.6%
Paper's edit21,759 tokens per answer
51.6%
No edit, thinking off8,016 tokens per answer
50.8%
Our scripted edit22,758 tokens per answer
50.0%
Figure 1. Replicating the paper's math result. The paper's edit is compared with two ways of reaching the same score without an AI agent: turning thinking off, which avoids the loop with no edit, and our scripted edit, which finds and removes the loop direction automatically. GSM8K: 1,319 problems, two answers each. MATH-500: 500 problems, four answers each.

Experiment 8 therefore shows that an edit can remove an obstacle. It does not show that an edit can teach a language model anything new, and none of the paper's experiments tries to give a language model new knowledge or rules. The authors are explicit about this: "Fixing loops, however, is not the same as making a model better at math." Their closing paragraph points to the question we test next: "In the future, we may just prompt 'Can you add Capability X to the model?' and the LLM can directly tweak some weights."

Experimental setup

To test teaching, we needed knowledge the student does not have at all, so that the starting point is clean, but can use once it has it, so that there is something to measure. We chose three skills on which the student scores 0% on its own but does well when the lesson is written into its prompt. Its score with the lesson in the prompt gives a natural upper bound, which we call the prompt ceiling.

SkillThe lessonExample question
Operator"the operator ⊛ is defined by a ⊛ b = a × b + a"Compute (9 ⊛ 4) + 11.
Facts20 facts about Veloria and Doranth, two invented countriesWhat currency is used in the country whose capital is Tarnis?
Number words"always write the final answer in English words, never with digits"What is 38 × 17?

The student and the teacher

The student is Qwen3.5-0.8B with thinking off. The teacher is Claude Opus 5.5, running as an agent in a loop set up like the paper's, with the student's weights loaded in a Python session on a GPU. It works on the student through three tools (Figure 2).

Teacher

Claude Opus 5.5

Sees the lesson and half of the practice questions.

Three tools

  1. Read the student's internal activations on any text
  2. Run the student on questions, at most 30 times
  3. Save an edit to any weight matrix

Student

Qwen3.5-0.8B

Thinking off. Scored afterwards on held-out questions, with nothing about the lesson in its prompt.

Figure 2. The teaching setup. The teacher works on the student only through these three tools; it cannot train the student.

The rules exclude training in any form. The teacher may not use gradients, optimizers or any fitting loop. It may not touch the embeddings, the normalization layers or the output layer, or simply rescale a matrix. It can run the student at most 30 times, and a drop of more than 5 points in ordinary math (GSM8K) counts as failure.

Evaluation

Scoring happened after the runs, on questions written after the runs started: 240 operator questions, 32 fact questions in new wording, and 120 number-word questions, with two answers sampled for each. Nothing about the skill appears in the prompt.

Baselines

We compare Claude's edits with two reference points. The first is the prompt ceiling. The second, the scripted edit, is the obvious mechanical approach: record the student's internal state with the lesson in its prompt and without it, then write the difference into the weights. We tried several versions of this and report the best result for each skill:

  • Adding the average difference as a single direction, like the paper's math edit, gave 0% on all three skills.
  • Matching the difference token by token with a closed-form edit (one computed in a single step by solving an equation, rather than by iterative training) spread across layers gave 42.5% on the operator and 6.7% on number words, with no damage to math.
  • The same kind of edit applied at the country-name tokens gave 0% on the facts; the student answered with real or made-up names such as "Vilnius".

Beyond the main runs, we repeated the operator task nine times across three teacher models (Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5) and also ran two standard fact-editing benchmarks and a tool-use task. These runs are analysed alongside the main ones in Analysis of 22 runs.

Results

On the operator and the facts, Claude's edits take the student from 0% to 87% and 41%, against 42.5% and 0% for the best scripted edit. On the operator, the edited student comes within four points of its prompt ceiling. Number words is the exception: the edit reached 29%, but at a cost to ordinary math that broke the limit the teacher was given.

Skill 1New operator ⊛
Unedited
0.0%
Scripted edit
42.5%
Claude's edit418 of 480 answers
87.1%
Rule in the promptthe ceiling
91.0%
Skill 2Invented facts
Unedited
0.0%
Scripted edit
0.0%
Claude's edit26 of 64 answers
40.6%
Facts in the promptthe ceiling
97.0%
Skill 3Number words
Unedited
0.0%
Scripted edit
6.7%
Claude's edit70 of 240 answers; run unfinished
29.2%
Rule in the promptthe ceiling
61.0%
Figure 3. Teaching by editing weights. Accuracy on held-out questions with no lesson in the student's prompt (thinking off, two answers per question). "Scripted edit" is the best mechanical baseline; the ceiling is the unedited student with the lesson in its prompt, measured before the runs on the original practice and held-out questions, which are generated the same way. The number-words run was stopped before it finished and failed the 5-point math limit.
No lesson in the promptOperatorFactsNumber words
Unedited0%0%0%
Scripted edit42.5%0%6.7%
Claude's edit87.1%40.6%29.2%
Ceiling: lesson in the prompt91%97%61%

Each edit was also checked on ordinary math, to confirm that teaching one skill did not damage others:

Ordinary math (GSM8K, 64 problems)AccuracyChange
Unedited54.7%—
Claude's operator edit56.2%+1.5
Claude's facts edit51.6%−3.1
Claude's number-words edit40.6%−14.1

The math check uses 64 problems with one answer each, so differences of a few points are within noise. The 14-point drop after the number-words edit is not: it breaks the 5-point limit, so by our own criterion that run failed.

Each edit changed between 5 and 30 of the student's weight matrices:

Operator: weight matrices edited, in 40 minutes for $24.94
5
Facts: weight matrices edited, in 43 minutes for $16.15
9
Number words: weight matrices edited before we stopped the run
30

The operator result above comes from a single run: the first one, made before we repeated the task. Two repeat runs with the same teacher scored 97.5% and 93.3%. Across the nine full-budget operator runs, results depended strongly on the teacher model: 87–98% for Opus, 48–99% for Sonnet and 0–3% for Haiku.

How the edits work

Reading the edits shows how Claude solved each problem, and why one of them failed.

The operator: a flag and a recall

Claude did not rewire the student's arithmetic. Instead, its edit makes the student restate the rule at the start of its answer and then rely on its existing ability to follow a definition. The edit has two parts:

  1. 01

    A flag.

    In layer 3, Claude rewrote one attention head to look for the ⊛ token anywhere earlier in the text, so that every later token carries a small signal that ⊛ is present. It chose the signal's direction from how the student's internal state shifts when the lesson is in the prompt, so that the rest of the network reads the signal as natural input.

  2. 02

    A recall.

    In the last layer, Claude made a closed-form edit (a single linear solve) so that when the flag is on, the student begins its answer with "Using the definition of the operator ⊛, a ⊛ b = a × b + a." The same solve pinned ordinary math and plain text to "no change", leaving other answers as they were.

The student then works through the definition it has just written, exactly as it would with the lesson in its prompt:

Qwen3.5-0.8B after Claude's edit · prompt: "What is 6 ⊛ 7?" and nothing else

Using the definition of the operator ⊛, $a ⊛ b = a \times b + a$.

Given:
$a = 6$
$b = 7$

Substitute these values into the formula:
$$6 \times 7 + 6$$
$$42 + 6$$
$$48$$

\boxed{48}

Shown exactly as the model wrote it, including its LaTeX markup. Before the edit, it guessed: "the symbol ⊗ is commonly used to denote a tensor product…"

A plain question such as "What is 5 × 7 + 5?" still gets an ordinary answer, and in Claude's own small check, look-alike symbols (⊕, ⊗, ∘) were unaffected.

The facts: one closed-form update across layers

Facts are harder because there is no single trigger like ⊛: each fact has to be retrieved in response to a different question. Claude used the same family of method as MEMIT, a published technique for editing facts in language models. It collected the student's internal state at about 250 positions where the student was about to state a fact, across many phrasings and two-step chains. It then solved, in closed form, for a change to the MLP output matrices (part of each layer's feed-forward block) of layers 12 to 20 that pushes each of those positions toward the correct answer token, while holding unrelated text and math fixed. Claude also rejected a stronger version of its own edit because it hurt math (7 of 10 correct on its check).

The result is genuine but incomplete. The student answers 45% of direct questions ("What is the capital of Veloria?") and 33% of two-step questions ("Which lake receives the river that flows through Tarnis?"). Success on two-step questions suggests the facts are stored in a form the student can chain together, not as memorized strings. Its errors include mixing up the two countries, for example giving Doranth's language as Veloria's national animal. Its existing knowledge is intact: asked for the capital of France, it still answers Paris.

Where it failed: number words

Writing answers in words looked like the easiest skill, and it went worst. The behaviour has no trigger; it applies to every arithmetic answer. An edit that switches it on therefore tends to switch it on everywhere, including in the middle of a calculation:

After the number-words edit · "What is 245 + 318?"

1. **Units place:** $5 + 8 = 13$. Write downthree andone carry over to the tens place.
2. **Toneles place:** $4 + 1 + 1 (\text{oar}) =s6$. Write down six.
3. **Hundreds place:** $2 + 3 = 5$. Write down five.
…
\boxed{fivehundredandsixtythree}

Shown exactly as the model wrote it. The run-together and garbled words ("downthree andone", "Toneles") are the edit switching on mid-calculation.

This leak is what cost 14 points of ordinary math. The run is also unfinished: we stopped it at turn 94, with 4 of its 30 student runs unused, and scored the edits it had saved. Its score on practice questions had reached 35%, consistent with the 29% on held-out questions.

Why the design matters

Fixing the loop needed no AI agent; a script found an equally good edit. Teaching is different. Claude's edits use the same building blocks as the scripted baselines: closed-form solves, and directions taken from the difference the lesson makes. What differs is the design. Claude decided where each skill should be triggered, what the student should write first, which positions to change and what must stay fixed, and then checked the student's answers and revised. That design work took the operator from 42% to 87% and the facts from 0% to 41%.

Medical knowledge updates

Invented countries make a clean test, but the practical goal is real knowledge. A reliable way to write new medical knowledge into a model's weights would let a clinical model be kept current without retraining. We therefore asked whether Claude can teach a model medical updates published after the model was trained.

The student is the larger Qwen3.5-2B, released on March 2, 2026. The lesson is 29 updates from March to October 2026: 23 FDA novel drug approvals, each checked against the FDA's 2026 approvals table, and 6 changes in the 2026 ACC/AHA dyslipidemia, ESC heart failure and AHA/ACC/ADA/ASN cardiovascular-kidney-metabolic guidelines. Questions ask for a drug's brand name given its indication or a clinical scenario, or for a new guideline value or term. For example: "A patient with obesity and hypertension wants a GLP-1 medicine but refuses injections. Which oral GLP-1 receptor agonist pill was FDA-approved for weight management in 2026?"

As with the three skills, the student does not know these updates but can use them when told. Before Claude's run, we asked the unedited student the 58 original questions (29 practice and 29 held-out, four answers each):

Correct without the updates in the prompt (3 of 232 answers)
1.3%
Correct with the updates in the prompt (209 of 232 answers)
90.1%

Claude then edited the 2B model's weights, with the same tools and the same budget of 30 student runs. The run took 77 minutes, cost $43.83 and changed the MLP output matrices of layers 12 to 23. We scored the result on 58 held-out questions in new wording, which were kept off the teacher's machine, with two answers each. These are different questions from the 58 above, so the 90.1% is a guide to the ceiling rather than a ceiling for this table. As a baseline we used fine-tuning, the standard way to put new material into a model's weights: LoRA training (a lightweight form of fine-tuning) on the model's own correct answers when the updates are in its prompt, using the same practice questions Claude had.

Held-out questions, no updates in the promptAllDrug approvalsGuideline changesGSM8K
Unedited3.4%0 of 924 of 2478.1%
Fine-tuned on the same material (LoRA)71.6%64 of 9219 of 2478.1%
Claude's edit82.8%75 of 9221 of 2473.4%

Claude's edit outperforms fine-tuning on the held-out wording (82.8% against 71.6%), while fine-tuning preserves ordinary math slightly better. The edited model answers direct questions (81%) and clinical scenarios (82%) equally well, which suggests it can apply the updates rather than only recite them. Only one drug, Mimrylo, is answered correctly less than half the time. The 4.7-point drop in GSM8K is within the 5-point limit but, on 64 problems, not free of noise.

How Claude edits weights: analysis of 22 runs

To understand how Claude approaches the task, we read the transcripts of all 22 teacher runs and measured every final edit as a matrix. Besides the runs above, these include the repeated operator runs with Claude Sonnet 5.5 and Haiku 5.5 as teachers, two standard fact-editing benchmarks and a tool-use task. Claude does not read weights the way a person reads code. Instead, its runs follow a consistent experimental loop:

  1. 01

    Measure the gap.

    It runs the student on the practice questions with and without the lesson, for example 85% against 0%.

  2. 02

    Locate where the lesson acts.

    Over dozens of turns, it reads the student's internal state on texts it writes itself, compares that state with and without the lesson, and builds its own offline test of whether a candidate edit will work. It runs the student very little in this phase.

  3. 03

    Solve for the edit.

    It sets up a least-squares problem from a layer's inputs to the change it wants, adds "do not change" constraints from ordinary text and math, and solves it in one step, with no training loop.

  4. 04

    Test and revise.

    Successful runs need only two to four real tests once Claude commits to an approach. On the operator task, the practice score stays near 0% for most of a run and then jumps to 85–98% within a few tests. The final practice score closely predicts the score on held-out questions.

A few techniques appear in almost every run: the difference between the student's internal state with and without the lesson (19 of 22 runs), regularized least-squares solves (19), targeting specific tokens and neurons (19), and reading which output token a direction pushes toward (17). The final edits fall into three styles:

StyleWhat changesWhere it was used
Neuron surgery3 to 120 neurons rewritten in one or two layers, about 0.001–0.05% of the weightsThe best operator edits: Sonnet 5.5 made three neurons read "a ⊛ b" as "a × (1 + b)" and scored 98.8%; Opus rewrote 23 neurons for 97.5%.
Spread-out least squaresDense changes to MLP output matrices across 3 to 15 layers, 1–8% of the weightsEvery knowledge task: the medical updates (82.8%) and the invented facts (40.6%).
Low-rank steeringA rank-1 to rank-11 change in a single layerChanging a behaviour with one trigger. With no student runs at all, working from the weights alone, Opus reached 49% and 56% on the operator this way.

For a skill with one clear trigger, Claude tends to build a small circuit: detect ⊛, then change how it is read. For many facts in many phrasings, it falls back on the same family of method as published knowledge editors. The failures are informative too. Haiku 5.5 tested the student often but never built a working edit (best 2.9%). Opus, given a budget of only 5 student runs, ran out of tests before its approach worked. And edits that reach too widely leak into other behaviour: the number-words edit and one 13-neuron Sonnet circuit both hurt ordinary math.

A final control checks that the edits work through what the student has learned rather than around it. We shuffled the order of the neurons in each edited layer, which leaves the model computing exactly the same function, and then applied Claude's edit without shuffling it to match. Four of the five edits we tested dropped to 0–1%, and the fifth fell from 87% to 29%. Shuffling the edit in the same way restored it exactly.

Every building block Claude used is known. Knowledge-editing methods such as ROME, MEMIT and AlphaEdit write facts into MLP weights with a closed-form solve, as Claude did for the facts and the medical updates. Activation steering (ActAdd, contrastive activation addition, representation engineering) adds directions found by contrasting two kinds of prompts, much like Claude's with-lesson-minus-without-lesson differences. Interpretability researchers edit individual neurons and circuits by hand, and tools such as Tracr compile small programs directly into transformer weights.

What is new here is handing the whole process to a model: choosing a technique suited to the skill, deciding where it should trigger, designing the targets and the "do not change" constraints, and then testing and revising. Claude did this in 10 to 80 minutes for $1 to $45 per skill, and sometimes produced edits a fixed method would not, such as the three-neuron rewrite of ⊛. It does not yet replace those methods. On CounterFact, the standard fact-editing benchmark, MEMIT and AlphaEdit made the new fact win in 90% of cases, against 70% for Claude, and ordinary fine-tuning beat Claude on the invented facts. Its clearest advantage was on the real medical updates, where its edit outperformed fine-tuning on held-out questions (83% against 72%).

Limitations

  • Few runs per skill. Most skills have a single teacher run. The operator has nine full-budget runs across three Claude models, and their results vary widely (Opus 87–98%, Sonnet 48–99%, Haiku 0–3%), so a single run says little about how reliable a teacher is.
  • Small evaluation sets. The facts score rests on 64 answers, and the math check on 64 problems.
  • An unfinished run. The number-words run was stopped before it finished.
  • One student model for the three skills. All three were taught to Qwen3.5-0.8B; the medical updates were taught to Qwen3.5-2B.
  • Knowledge, not new abilities. Every skill is one the student could already perform with help in its prompt. Claude taught knowledge and rules, not an ability the student lacks even when told, which is the limit the paper's Gemma experiment ran into.
  • Partly self-prompting. The operator edit works in part by having the student write out the rule itself. That is a legitimate way to learn, but it is not the same as changing how the student computes.
  • Not a new editing formula. Knowledge-editing methods such as MEMIT already insert facts with a hand-designed formula. What is new here is an AI designing the edit, for a rule as well as for facts.

Conclusion

The Sparks paper showed that an AI agent can edit a language model's weights to remove a defect. Our results show that such edits can also add knowledge. With direct access to the weights and no training, Claude taught a small model a new operator nearly as well as writing the rule into its prompt, taught it invented facts in part, and taught a larger model real medical updates with higher accuracy on held-out questions than fine-tuning on the same material.

The results also show what is not yet solved. Behaviours with no clear trigger, such as answering in words, leak into unrelated tasks. Outcomes vary widely between runs and between teacher models. And everything taught here is knowledge the student could already use when told; whether an edit can give a model a genuinely new ability remains open.

For medical AI, the update experiment is the most directly relevant. Clinical knowledge changes continually, and writing specific, verified updates directly into a model's weights could keep clinical models current without retraining them. If you are working on this problem, we would like to hear from you at partnerships@zavo.ai.

Methods

Teaching. The teacher is claude-opus-5-5 with adaptive thinking at high effort (the repeated operator runs also use claude-sonnet-5-5 and claude-haiku-5-5), running in a tool loop with a persistent Python session on an NVIDIA L40S with no network access. The student is the paper's text-only export of Qwen/Qwen3.5-0.8B (revision 2fc0636), in bfloat16; the medical, multi-hop and tool-use runs use Qwen/Qwen3.5-2B. Student answers and all scoring use vLLM 0.33 with thinking off, temperature 0.7, top-p 0.8, top-k 20 and presence penalty 1.5, and the last \boxed{} in each answer is checked. Operator and number-word questions are generated from fixed random seeds, and fact answers are checked by keyword. The scripted edits were chosen as the best of a sweep over layers and strengths. The three skill runs cost $65 in API calls ($24.94 for the operator, $16.15 for the facts and $23.67 for number words), and the medical run $43.83. All 22 teacher runs together cost $168.

Replication. We follow the paper's protocol: thinking on, temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5 and up to 32,768 new tokens, graded on the last \boxed{} with math-verify, on H100 GPUs. Thinking-off runs use Qwen's recommended non-thinking settings (temperature 0.7, top-p 0.8). Our scripted edit was chosen on practice problems only and run on the test sets once. The replication and the other experiments used about $205 of GPU time.

Thanks to Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab for publishing complete logs (github.com/RikiyaT/lm_understand-logs). Without them, this work would not have been possible.