TL;DR
When an AI agent surgically tweaked just 0.016% of a small language model’s weights, its math accuracy famously jumped by over 40 percentage points—making it look like the model suddenly learned how to reason. By building a diagnostic test to separate new knowledge from unblocked knowledge, the authors show that the edit didn't actually teach the model new math; it simply stopped the model from getting stuck in infinite text loops. In fact, turning off the model's "thinking" mode with zero weight changes recovers 93% of that headline gain.
What Problem Does This Paper Address?
Imagine a brilliant student taking a timed test who gets neurotic, writes "Wait, I'm getting confused" 191 times in a row, and runs out of time. If you hand them a stopwatch to snap them out of it, their test score skyrockets. Did you make them better at math, or did you just let them finish?
Small reasoning models suffer from this exact pathology. Under standard settings, Qwen3.5-0.8B hits its 32,768-token limit on 93% of MATH-500 problems because it falls into repetitive text loops. Recently, a paradigm called weight-space programming made waves when an AI agent directly edited 64 columns in two MLP matrices of Qwen3.5-0.8B (0.016% of its weights) without gradients, boosting MATH-500 accuracy from 7.9% to 48.1%.
Standard accuracy metrics only count how often a model succeeds, so they cannot distinguish between releasing ability (helping a model finish problems it already knows how to solve) and adding ability (teaching it to solve new problems). This paper sets out to tell the two apart.
Methods
To separate release from addition on models that loop, the authors introduce the beyond-reach test:
- Mapping the "Decoding Reach": First, they find problems where the base model always loops across four attempts. Because the unedited model never finishes these natively, they probe what it already knows by applying eight purely inference-time decoding fixes—interventions that alter zero weights. These include turning "thinking" mode off, raising sampling temperature ($T=1.0$), repetition penalties, budget forcing (forcing an answer after 8k tokens), loop-stopping detectors, end-of-thinking logit biases, and anti-repetition prompts. Pooling 4 samples from each of the 8 fixes (32 total) establishes the base model's empirical decoding reach.
- Counting Beyond Reach: Any edited model is then given 32 samples of its own to see how many problems outside that decoding reach it can solve.
- Calibrating Against Controls: Because a finite pool of 32 samples won't catch everything the base model knows, the authors compare the edit's "beyond-reach" count—matched on finished samples—against:
- Decoding-only references (which can only release ability by definition, like sampling the unedited model with thinking off).
- Negative controls (models fine-tuned strictly on the base model's own finished answers).
- Positive controls (a 0.8B model distilled from a much stronger Qwen3.5-9B teacher, which genuinely adds ability).
Datasets
No new datasets are introduced, though the authors release their raw model generations on Hugging Face. Evaluations span five public benchmarks across mathematics and medicine:
- Mathematics: MATH-500, GSM8K, and the math category of MMLU-Pro (1,351 questions).
- Medicine: MedQA (1,273 exam questions) and MMLU-Pro health (818 questions). (Training splits of MATH and GSM8K were used for tuning hyperparameters and training the fine-tuned/distilled controls.)
Key Insights and Ideas
- The Base Model is Quietly Accurate—When It Finishes: On the rare occasions the unedited Qwen3.5-0.8B actually finishes a MATH-500 problem on its own, it is right 98.6% of the time! Most inference-time fixes simply slide the model up this existing accuracy slope by helping more answers cross the finish line.
- Breaking Loops Doesn't Supply Missing Knowledge: When the authors transfer the exact same math weight-edit to medical questions (MedQA), accuracy barely budges. Why? Because when the base model finishes a medical question natively, it's only right 48.7% of the time. Ending a loop lets a model state what it worked out, which helps enormously in math (where its derivations are sound) and barely at all in medicine (where it lacks the facts).
- Per-Sample vs. Per-Token Reliability: Where the weight edit genuinely shines is single-sample reliability: one strict draw from the edited model beats any single decoding fix. However, the edit still burns 2.6x to 7.8x more tokens than simply turning thinking off. If you spend that exact same token budget taking a majority vote over fast "thinking-off" samples, the unedited model matches or beats the weight edit.
Key Results
- Zero-Weight Recovery (RQ1): Reproducing the agent's edit boosts MATH-500 accuracy from 7.6% to 51.7% (and 13.7% to 67.6% on GSM8K). Simply switching
thinking=offon the unedited model hits 48.6% on MATH-500 and 58.1% on GSM8K—recovering 93% and 82% of the edit's gains without touching a single weight. - Answers Stay Within Reach (RQ2): On always-looping problems, 97.7% (MATH-500) and 99.3% (GSM8K) of the edited model's correct answers fall squarely inside the base model's 32-sample decoding reach.
- Fewer New Problems Solved Than Decoding Alone (RQ3): Matched on finished samples across 32 tries, the unedited model with thinking off actually solves more problems beyond the decoding reach than the weight edit (-21 problems on MATH-500; -18 on GSM8K). Meanwhile, the test successfully detects added ability in the 9B-distilled positive control on GSM8K (+13 problems over thinking off).
- Token-Matched Voting Wins or Ties (RQ4): On single strict samples, the edit beats the best decoding fix by +3.1 to +9.3 points. Yet under an equal token budget, majority voting over 8k-token thinking-off samples beats the edit on MATH-500 (56.1% vs. 51.7%) and ties it on GSM8K, though the edit retains a lead (+5.5 to +9.4 points) on MMLU-Pro math.
Limitations and Future Work
- Model & Run Scope: Deep audits focus on a single 0.8B model (Qwen3.5-2B was only tested with a lighter single-model flag) and evaluate single published runs rather than sweeping across weight-editing architectures.
- Test Sensitivity Ceiling: While the beyond-reach test cleanly detects distillation on GSM8K, the 9B-distilled control does not beat
thinking=offbeyond reach on MATH-500—meaning on harder benchmarks, the test can bound how much ability was added, but lacks the statistical power to detect additions as small as distillation's. - Serving Variance: Across the original paper, the model card, and this reproduction, the edited model's MATH-500 score varies from 48.1% to 51.7%—a 3.6-point spread larger than its +3.1-point single-sample lead over the best decoding fix.
- Untested Regimes: The authors leave weight-space programming gains on tiny networks and instruction-following benchmarks for future audits, recommending that future researchers always benchmark weight edits against tuned decoding fixes before claiming new reasoning capabilities.
Summary updated